1 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
3 Fix a conflict between ports structures with 2 controllers of
6 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
8 * include/grub/boottime.h: Add missing file.
10 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
12 Initialize USB ports in parallel to speed-up boot.
14 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
16 Fix USB devices not being detected when requested
17 due to delayed attach.
19 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
21 Implement boot time analysis framework.
23 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
25 Remove get_endpoint_descriptor and change all functions needing
26 descriptor to just receive it as argument rather than endpoint
29 2013-03-19 Aleš Nesrsta <starous@volny.cz>
31 Better estimate the maximum USB transfer size.
33 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
35 Resend a packet if we got the wrong buffer in status.
37 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
39 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
40 multiplication rather than division.
42 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
44 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
47 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
49 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
50 operations to have intended shifts and not divisions.
52 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
54 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
55 intended shifts rather than division.
57 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
59 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
60 computation for some years before epoch. Avode confusing division
63 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
65 * grub-core/video/i386/pc/vbe.c
66 (grub_video_vbe_print_adapter_specific_info): Replace division by
69 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
71 Adjust types in gdb module to have intended unsigned shifts rather than
74 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
76 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
77 maximum size is 4G - 1 on hfs
79 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
81 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
83 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
85 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
88 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
90 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
91 causing gcc error with gcc 4.7.1.
93 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
95 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
96 dereference null pointer. While the code is technically correct, gcc
97 may eliminate a null check if pointer is already dereferenced.
99 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
101 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
103 * grub-core/normal/term.c (read_terminal_list): Likewise.
105 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
107 Lift up core size limits on some platforms. Fix potential memory
108 corruption with big core on small memory systems. Document remaining
111 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
113 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
116 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
118 Remove all trampoline support. Add -Wtrampolines when
119 present. Remove symbols used for trampolines to make
120 link fail if trampolines are present.
122 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
124 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
125 append out of its parent.
127 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
129 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
132 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
134 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
135 all vars to a macro. All users updated.
137 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
139 * grub-core/disk/ieee1275/nand.c: Fix compilation on
142 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
144 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
146 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
148 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
150 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
152 Move to more hookless approach in IEEE1275 devices handling.
154 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
156 * grub-core/kern/term.c (grub_term_normal_color),
157 (grub_term_highlight_color): Add back lost defaults.
159 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
161 Make elfload not use hooks. Opt for flags and iterators instead.
163 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
165 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
166 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
168 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
170 * grub-core/script/execute.c (gettext_append): Remove nested functions.
172 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
174 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
175 hook pass-through parameter. All users updated and unnested.
177 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
179 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
182 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
184 * grub-core/fs/hfs.c: Remove nested functions.
186 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
188 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
190 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
192 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
194 * util/grub-editenv.c (list_variables): Move print_var out of its
197 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
199 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
202 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
204 * grub-core/gentrigtables.c: Make tables const.
206 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
208 Remove nested functions from videoinfo iterators.
210 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
212 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
213 for 64-bit platforms.
215 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
217 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
218 a FOR_CHILDREN macro.
220 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
222 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
223 platform from firmware path.
225 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
227 Enable linux16 on non-BIOS systems for i.a. memtest.
229 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
231 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
233 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
235 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
236 Fix end of table condition.
238 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
240 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
243 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
245 * grub-core/fs/jfs.c: Remove nested functions.
247 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
249 * grub-core/fs/minix.c: Remove nested functions.
251 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
253 * grub-core/fs/iso9660.c: Remove nested functions.
255 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
257 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
260 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
262 * util/grub-fstest.c: Remove nested functions.
264 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
266 * grub-core/loader/machoXX.c: Remove nested functions.
268 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
270 Remove nested functions from disk and file read hooks.
272 * include/grub/disk.h (grub_disk_read_hook_t): New type.
273 (struct grub_disk): Add read_hook_data member.
274 * include/grub/file.h (struct grub_file): Likewise.
275 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
280 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
282 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
283 Fix off by one error in enumerating extended partitions.
285 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
287 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
288 memory leak if device name is not found.
290 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
292 * grub-core/normal/menu_entry.c (update_screen): remove
293 unused variable `off' which caused scroll down arrow to be always shown.
295 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
297 * grub-core/normal/menu_entry.c (insert_string): fix off by one
298 access to unallocated memory.
300 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
302 * Makefile.util.def: Add partmap/msdos.c to common library.
303 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
304 * grub-core/disk/ldm.c: Check for existence of
305 GRUB_PC_PARTITION_TYPE_LDM.
307 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
309 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
310 sizes and display sector size.
312 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
314 Implement new command cmosdump.
316 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
318 Support Openfirmware disks with non-512B sectors.
320 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
322 * (grub_ofdisk_get_block_size): New function.
323 * (grub_ofdisk_prepare): Use the correct block size.
324 * (grub_ofdisk_read): Likewise.
325 * (grub_ofdisk_write): Likewise.
326 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
329 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
331 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
333 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
335 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
338 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
340 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
343 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
345 Implement USBDebug (full USB stack variant).
347 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
349 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
350 unless they have unexpected values.
352 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
354 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
357 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
359 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
360 zero-out of port structure.
362 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
364 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
365 of extended attributes.
367 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
369 * util/grub-install.in: change misleading comment about
372 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
374 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
375 when menu highlight color isn't set.
377 2013-01-27 C. Masloch <pushbx@38.de>
379 Improve FreeDOS direct loading support compatibility.
381 * include/grub/i386/relocator.h (grub_relocator16_state):
383 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
385 (grub_relocator16_boot): Handle %ebp.
386 * grub-core/lib/i386/relocator16.S: Likewise.
387 * grub-core/loader/i386/pc/freedos.c:
388 Load BPB to pass kernel which partition to load from.
389 Check that kernel file is not too large.
390 Set register dl to BIOS unit number as well.
392 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
394 * util/grub-reboot.in (usage): Document the need for
396 * util/grub-set-default.in (usage): Likewise.
397 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
399 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
401 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
402 than defining WORDS_BIGENDIAN manually.
404 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
406 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
409 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
411 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
413 (blit_comb: add_device_width): Likewise.
415 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
417 Remove nested functions from USB iterators.
419 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
420 (grub_usb_controller_iterate_hook_t): Likewise.
421 (grub_usb_iterate): Add hook_data argument.
422 (grub_usb_controller_iterate): Likewise.
423 (struct grub_usb_controller_dev.iterate): Likewise.
425 Update all implementations and callers.
427 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
429 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
430 margin when not needed.
432 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
434 Make color variables global instead of it being per-terminal.
436 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
438 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
441 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
443 Fix powerpc and sparc64 build failures caused by un-nesting memory
446 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
448 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
449 parameter declarations.
451 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
453 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
455 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
457 Improve spkmomdem reliability by adding a separator between bytes.
459 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
461 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
462 an Acer registration utility with several sightings in the wild.
463 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
465 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
467 Remove nested functions from filesystem directory iterators.
469 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
470 (struct grub_fs.dir): Add hook_data argument.
472 Update all implementations and callers.
474 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
476 * docs/grub.texi (Multi-boot manual config): Fix typo for
479 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
481 * util/grub-mkimage.c (main): Postpone freeing arguments.output
482 until after its use in generate_image.
484 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
486 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
487 initrd size to addr_min, since the initrd will be allocated after
490 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
492 * conf/Makefile.common: Fix autogen rules to pass definition
493 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
495 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
497 * include/grub/elf.h: Update ARM definitions based on binutils.
499 2013-01-20 Aleš Nesrsta <starous@volny.cz>
501 Split long USB transfers into short ones.
503 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
505 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
506 is interrupted by ESC.
508 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
510 * util/grub-script-check.c (main): Uniform the error message.
512 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
514 Remove nested functions from ELF iterators.
516 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
518 Remove nested functions from device iterators.
520 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
521 (grub_arc_iterate_devs): Add hook_data argument.
522 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
523 (struct grub_ata_dev.iterate): Add hook_data argument.
524 * include/grub/device.h (grub_device_iterate_hook_t): New type.
525 (grub_device_iterate): Add hook_data argument.
526 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
527 (struct grub_disk_dev.iterate): Add hook_data argument.
528 (grub_disk_dev_iterate): Likewise.
529 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
531 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
533 * include/grub/partition.h (grub_partition_iterate_hook_t): New
535 (struct grub_partition_map.iterate): Add hook_data argument.
536 (grub_partition_iterate): Likewise.
537 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
538 (struct grub_scsi_dev.iterate): Add hook_data argument.
542 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
544 Fix typos for "developer" and "development".
546 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
548 Add license header to spkmodem-recv.c.
550 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
552 Rewrite spkmodem to use PIT for timing. Double the speed.
554 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
556 Add new command pcidump.
558 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
560 New terminal outputs using serial: morse and spkmodem.
562 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
564 Improve bidi handling in entry editor.
566 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
568 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
569 argument to prevent name collision.
571 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
573 Remove nested functions from script reading and parsing.
575 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
576 getline_data argument, passed to getline.
577 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
578 getline_data argument, passed to grub_parser_split_cmdline.
579 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
580 lexerstate->getline_data to lexerstate->getline.
581 (grub_script_lexer_init): Add getline_data argument, saved in
582 lexerstate->getline_data.
583 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
584 argument, passed to grub_script_parse.
585 * grub-core/script/script.c (grub_script_parse): Add getline_data
586 argument, passed to grub_script_lexer_init.
587 * include/grub/parser.h (grub_parser_split_cmdline): Update
588 prototype. Update all callers to pass appropriate getline data.
589 (struct grub_parser.parse_line): Likewise.
590 (grub_rescue_parse_line): Likewise.
591 * include/grub/reader.h (grub_reader_getline_t): Add void *
593 * include/grub/script_sh.h (struct grub_lexer_param): Add
595 (grub_script_parse): Update prototype. Update all callers to pass
596 appropriate getline data.
597 (grub_script_lexer_init): Likewise.
598 (grub_normal_parse_line): Likewise.
600 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
602 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
603 static instead of nested. Rename to ...
604 (grub_parser_execute_getline): ... this.
605 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
607 * grub-core/normal/main.c (read_config_file: getline): Make static
608 instead of nested. Rename to ...
609 (read_config_file_getline): ... this.
610 (grub_normal_read_line): Add unused data argument.
611 * grub-core/script/execute.c (grub_script_execute_sourcecode:
612 getline): Make static instead of nested. Rename to ...
613 (grub_script_execute_sourcecode_getline): ... this.
614 * util/grub-script-check.c (main: get_config_line): Make static
617 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
619 Remove nested functions from memory map iterators.
621 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
622 argument, passed to hook.
623 * grub-core/kern/i386/coreboot/mmap.c
624 (grub_linuxbios_table_iterate): Likewise.
625 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
627 (grub_machine_mmap_iterate): Add hook_data argument.
628 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
629 Add hook_data argument, passed to hook.
630 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
632 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
634 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
636 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
638 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
640 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
642 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
643 (grub_machine_mmap_iterate): Likewise.
644 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
645 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
647 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
648 Remove NESTED_FUNC_ATTR from here and from all users.
649 (grub_mmap_iterate): Update prototype.
650 (grub_efi_mmap_iterate): Update prototype. Update all callers to
651 pass appropriate hook data.
652 (grub_machine_mmap_iterate): Likewise.
654 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
655 static instead of nested.
656 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
658 (lsmmap_hook): ... this.
659 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
661 (grub_efiemu_mmap_fill: fill_hook): Likewise.
662 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
663 heap_init): Likewise.
664 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
666 (mmap_iterate_hook): ... this.
667 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
669 * grub-core/lib/ieee1275/relocator.c
670 (grub_relocator_firmware_get_max_events: count): Likewise.
671 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
673 (grub_relocator_firmware_fill_events_iter): ... this.
674 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
675 hook): Likewise. Rename to ...
676 (grub_relocator_alloc_chunk_align_iter): ... this.
677 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
679 (generate_e820_mmap_iter): ... this.
680 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
682 (count_hook): ... this.
683 (grub_linux_boot: hook): Likewise. Rename to ...
684 (grub_linux_boot_mmap_find): ... this.
685 (grub_linux_boot: hook_fill): Likewise. Rename to ...
686 (grub_linux_boot_mmap_fill): ... this.
687 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
688 hook): Likewise. Rename to ...
689 (grub_fill_multiboot_mmap_iter): ... this.
690 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
691 hook): Likewise. Rename to ...
692 (count_hook): ... this.
693 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
694 hook): Likewise. Rename to ...
695 (grub_fill_multiboot_mmap_iter): ... this.
696 * grub-core/loader/powerpc/ieee1275/linux.c
697 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
698 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
699 Likewise. Rename to ...
700 (alloc_phys_choose): ... this.
701 (determine_phys_base: get_physbase): Likewise.
702 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
703 find_hook): Likewise.
704 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
705 (malloc_hook: count_hook): Likewise.
706 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
707 Likewise. Rename to ...
708 (lower_hook): ... this.
709 (grub_mmap_get_upper: hook): Likewise. Rename to ...
710 (upper_hook): ... this.
711 (grub_mmap_get_post64: hook): Likewise. Rename to ...
712 (post64_hook): ... this.
713 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
714 Likewise. Rename to ...
715 (lower_hook): ... this.
716 (grub_mmap_get_upper: hook): Likewise. Rename to ...
717 (upper_hook): ... this.
718 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
719 (grub_mmap_iterate: fill_hook): Likewise.
720 (fill_mask): Pass addr and mask within a single struct.
721 (grub_cmd_badram: hook): Make static instead of nested. Rename
723 (badram_iter): ... this.
724 (grub_cmd_cutmem: hook): Likewise. Rename to ...
725 (cutmem_iter): ... this.
727 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
729 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
730 delimit path in strings using quotes.
731 * util/getroot.c (grub_guess_root_devices): Likewise.
732 (grub_make_system_path_relative_to_its_root): Likewise.
733 * util/grub-probe.c (probe): Likewise.
734 * util/ieee1275/ofpath.c (find_obppath): Likewise.
735 (xrealpath): Likewise.
737 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
739 Fix compilation with older compilers.
741 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
742 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
744 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
745 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
746 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
748 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
749 * include/grub/crypto.h: Add type defines.
750 * util/import_gcrypth.sed: Remove duplicate type defines.
752 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
754 New command list_trusted.
756 * grub-core/commands/verify.c (grub_cmd_list): New function.
758 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
760 * util/grub-mkimage.c (generate_image): Fix "size of public key"
763 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
765 Remove nested functions from PCI iterators.
767 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
768 passed to hook. Update all callers to pass appropriate hook data.
769 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
770 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
771 Remove NESTED_FUNC_ATTR from here and from all users.
772 (grub_pci_iterate): Update prototype.
773 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
774 instead of nested. Rename to ...
775 (grub_cs5536_find_iter): ... this.
776 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
777 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
779 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
781 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
783 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
785 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
786 * grub-core/video/radeon_fuloong2e.c
787 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
788 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
789 find_card): Likewise.
790 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
793 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
795 * grub-core/commands/verify.c: Mark messages for translating.
797 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
799 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
802 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
804 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
807 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
809 * autogen.sh: Do not try to delete nonexistant files.
810 * util/import_gcrypth.sed: Add some missing header removals.
812 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
814 Clean up dangling references to grub-setup.
815 Fixes Ubuntu bug #1082045.
817 * docs/grub.texi (Images): Refer generally to grub-install rather
818 than directly to grub-setup.
819 (Installing GRUB using grub-install): Remove direct reference to
821 (Device map) Likewise.
822 (Invoking grub-install): Likewise.
823 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
824 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
825 * util/grub-install.in (usage): Likewise.
827 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
828 Apply to grub-bios-setup and grub-sparc64-setup rather than to
830 * configure.ac: Remove grub_setup output variable.
832 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
834 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
835 grub-setup to grub-sparc64-setup.
837 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
839 Import gcrypt public-key cryptography and implement signature checking.
841 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
843 * grub-core/fs/ntfs.c: Ue more appropriate types.
844 * grub-core/fs/ntfscomp.c: Likewise.
845 * include/grub/ntfs.h: Likewise.
847 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
849 Support Apple FAT binaries on non-Apple platforms.
851 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
852 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
854 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
857 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
859 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
862 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
864 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
865 explicitly zeroing elements.
866 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
867 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
868 of elements in a structure already allocated using grub_zalloc.
869 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
871 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
873 * docs/grub.texi (grub_cpu): New subsection.
874 (grub_platform): Likewise.
876 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
878 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
880 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
882 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
885 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
887 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
888 * grub-core/fs/ntfscomp.c: Likewise.
889 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
890 (grub_ntfs_comp): Likewise.
892 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
894 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
896 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
897 of groups_per_block. All users updated.
899 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
901 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
903 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
904 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
906 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
908 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
910 Reported by: Yuta Satoh.
912 2013-01-03 Yuta Satoh <nigoro>
914 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
917 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
919 * configure.ac: Extend -Wno-trampolines to host.
921 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
923 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
926 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
928 * docs/grub.texi (Invoking grub-mkrelpath): New section.
929 (Invoking grub-script-check): Likewise.
931 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
933 * docs/grub.texi (Invoking grub-mount): New section.
934 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
936 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
938 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
939 test failures, so that a failing unit test correctly causes 'make
942 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
944 Fix failing printf test.
946 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
947 '$' in the correct order when collecting type information.
949 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
951 * docs/grub.texi (configfile): Explain environment variable
953 (source): New section.
954 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
956 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
958 Remove several trivially-unnecessary uses of nested functions.
960 * grub-core/commands/i386/pc/sendkey.c
961 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
963 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
965 (legacy_file_getline): ... this.
966 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
968 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
969 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
971 (probe_dummy_iter): ... this.
972 * grub-core/kern/i386/coreboot/mmap.c
973 (grub_linuxbios_table_iterate: check_signature): Likewise.
974 * grub-core/kern/parser.c (grub_parser_split_cmdline:
975 check_varstate): Likewise. Mark inline.
976 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
977 an additional parameter.
978 (find_long: fnd_long): Likewise. Pass two additional parameters.
979 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
980 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
981 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
982 Likewise. Rename to ...
983 (grub_cmos_find_port_iter): ... this.
984 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
986 (find_rtc_iter): ... this.
988 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
989 function directly into the function body, since it is only called
992 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
994 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
995 __attribute__ ((unused)).
996 * grub-core/video/bochs.c (find_card): Likewise.
997 * grub-core/video/cirrus.c (find_card): Likewise.
998 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
999 * grub-core/video/sis315pro.c (find_card): Likewise.
1000 * grub-core/video/sm712.c (find_card): Likewise.
1002 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
1004 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
1005 Fixes Savannah bug #37821.
1007 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
1009 Apply program name transformations at build-time rather than at
1010 run-time. Fixes Debian bug #696465.
1012 * acinclude.m4 (grub_TRANSFORM): New macro.
1013 * configure.ac: Create output variables with transformed names for
1015 * util/bash-completion.d/grub-completion.bash.in: Use
1016 pre-transformed variables for program names.
1017 * util/grub-install.in: Likewise.
1018 * util/grub-kbdcomp.in: Likewise.
1019 * util/grub-mkconfig.in: Likewise.
1020 * util/grub-mkconfig_lib.in: Likewise.
1021 * util/grub-mknetdir.in: Likewise.
1022 * util/grub-mkrescue.in: Likewise.
1023 * util/grub-mkstandalone.in: Likewise.
1024 * util/grub-reboot.in: Likewise.
1025 * util/grub-set-default.in: Likewise.
1026 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
1027 * tests/util/grub-shell-tester.in: Remove unused assignment.
1028 * tests/util/grub-shell.in: Likewise.
1029 * util/grub.d/00_header.in: Likewise.
1031 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
1033 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
1035 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
1037 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
1039 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1041 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
1042 Reported by: Eriks Latosheks <foresterlv>.
1044 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1046 * docs/grub.texi (Network): Update instructions on generating netboot
1049 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1051 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
1052 around device name if necessarry.
1054 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1056 * util/grub-install.in: Follow the symbolic link parameter added
1057 to the file command.
1059 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
1061 * util/grub-install.in: Remove stale TODO.
1063 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1065 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
1066 dynamic allocation for the bootpath buffer.
1068 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
1070 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
1073 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1075 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
1076 argument rather than font name. All users updated.
1077 (grub_gfxterm_set_window): Likewise.
1079 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
1081 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
1084 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1086 * util/getroot.c (convert_system_partition_to_system_disk): Support
1089 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1091 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
1092 infinite loop on corrupted FS.
1094 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1096 Fix big-endian mtime.
1098 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
1099 together sec and usec.
1100 (grub_ufs_dir): Use correct byteswapping for UFS time.
1102 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1104 Support big-endian UFS1.
1106 * Makefile.util.def (libgrubmods): Add ufs_be.c
1107 * grub-core/Makefile.core.def (ufs1_be): New module.
1108 * grub-core/fs/ufs_be.c: New file.
1109 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
1112 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
1114 * include/grub/types.h: Fix functionality unaffecting typo in
1115 GRUB_TARGET_WORDSIZE conditional macro.
1117 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1119 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
1121 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
1123 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
1124 that /netbsd appears first (when it exists).
1126 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
1128 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
1129 Fixes Savannah bug #37558.
1131 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
1133 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
1134 description of extract_entries_configfile.
1136 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
1138 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
1140 (grub_cmd_linux): Likewise.
1141 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
1142 preferred_lifetime. Update all users.
1144 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
1146 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
1147 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
1149 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
1151 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
1152 errors from grub-probe to /dev/null, not stdout.
1154 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
1156 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
1159 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
1161 * util/grub-install.in: Make the error message if $source_dir
1162 doesn't exist more useful.
1164 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
1166 Fix grub-emu build on FreeBSD.
1168 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
1169 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
1171 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
1172 implementation is currently Linux-specific.
1173 * util/getroot.c (exec_pipe): Define only on Linux or when either
1174 libzfs or libnvpair is unavailable.
1175 (find_root_devices_from_poolname): Remove unused path variable.
1177 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
1179 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
1180 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
1181 should fit before end == 63.
1183 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
1185 * util/grub-setup.c (write_rootdev): Remove unused core_img
1186 parameter. Update all callers.
1187 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
1188 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
1191 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1193 * util/grub-mkconfig_lib.in (grub_tab): New variable.
1194 (grub_add_tab): New function.
1195 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
1196 * util/grub.d/10_illumos.in: Likewise.
1197 * util/grub.d/10_kfreebsd.in: Likewise.
1198 * util/grub.d/10_linux.in: Likewise.
1199 * util/grub.d/10_netbsd.in: Likewise.
1200 * util/grub.d/10_windows.in: Likewise.
1201 * util/grub.d/10_xnu.in: Likewise.
1202 * util/grub.d/20_linux_xen.in: Likewise.
1203 * util/grub.d/30_os-prober.in: Likewise.
1205 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1207 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1208 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
1209 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
1210 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
1211 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
1213 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
1214 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
1216 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1218 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
1220 Reported by: BURETTE, Bernard.
1222 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
1224 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
1227 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
1229 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
1230 IEEE1275 machines. Fixes powerpc-emu compilation.
1231 * include/grub/terminfo.h: Likewise.
1233 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1235 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
1237 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
1239 (efiemu_set_variable): Make vendor_guid a const pointer.
1241 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1243 Don't require grub-mkconfig_lib to generate manpages for programs.
1245 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
1246 dependencies, don't add grub-mkconfig_lib.
1247 (program): Pass empty adddeps.
1248 (script): Pass grub-mkconfig_lib as adddeps.
1250 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
1252 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
1253 * util/getroot.c (grub_find_device): Likewise.
1254 (get_mdadm_uuid): Likewise.
1255 (grub_util_is_imsm): Likewise.
1256 (grub_util_pull_device): Likewise.
1257 * util/grub-probe.c (probe): Likewise.
1259 2012-09-10 Benoit Gschwind <gschwind>
1261 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
1262 (devs): Add devpath_8.
1264 2012-09-08 Peter Jones <pjones@redhat.com>
1266 * grub-core/Makefile.core.def (efifwsetup): New module.
1267 * grub-core/commands/efi/efifwsetup.c: New file.
1268 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
1269 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
1271 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
1273 2012-09-05 Jiri Slaby <jslaby@suse.cz>
1275 * configure.ac: Add SuSe path.
1277 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
1281 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
1283 * util/import_gcry.py: Sort cipher_files, to make build system
1284 generation more deterministic.
1286 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1288 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
1289 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
1290 (grub_set_datetime): Likewise.
1292 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1294 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
1297 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1299 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
1301 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1303 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
1305 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1307 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
1308 required for checkouts from bzr, but it may be useful for users or
1309 distributors wishing to update translations against a tarball
1310 distribution, and it can be helpful for the tarball to be a superset
1313 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1315 * Makefile.am (EXTRA_DIST): Add
1316 grub-core/tests/boot/linux.init-mips.S,
1317 grub-core/tests/boot/linux.init-ppc.S, and
1318 grub-core/tests/boot/linux-ppc.cfg.
1320 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1322 * grub-core/mmap/mips/loongson: Remove empty directory.
1324 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1326 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
1329 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1331 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
1334 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
1336 * configure.ac: Strengthen the test for working -nostdinc -isystem.
1338 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
1340 * po/POTFILES.in: Regenerated.
1342 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
1344 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
1345 (NetBSD): New subsection.
1347 2012-07-22 Ales Nesrsta <starous@volny.cz>
1349 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
1350 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
1352 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1354 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
1355 * util/grub.d/10_hurd.in: Add missing quoting.
1356 * util/grub.d/10_illumos.in: Likewise.
1357 * util/grub.d/10_kfreebsd.in: Likewise.
1358 * util/grub.d/10_linux.in: Likewise.
1359 * util/grub.d/20_linux_xen.in: Likewise.
1361 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1363 New command `lsefi'.
1365 * grub-core/Makefile.core.def (lsefi): New module.
1366 * grub-core/commands/efi/lsefi.c: New file.
1367 * include/grub/efi/api.h: Add more GUIDs.
1369 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1371 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
1372 (grub_bsd_elf32_hook): Likewise.
1373 (grub_bsd_elf64_size_hook): Likewise.
1374 (grub_bsd_elf64_hook): Likewise.
1375 (grub_bsd_load_elf): Likewise.
1377 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1379 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
1380 if hash function is unavailable.
1381 (dec_stream_header): Likewise.
1383 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1385 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
1388 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1390 Fix coreboot compilation.
1392 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
1393 (grub_vga_text_init_real): ... this.
1394 (grub_vga_text_fini): Rename to ...
1395 (grub_vga_text_fini_real): ... this.
1397 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
1399 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
1401 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1403 * grub-core/lib/legacy_parse.c: Support clear and testload.
1405 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1407 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
1409 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1411 * grub-core/fs/ext2.c: Experimental support for 64-bit.
1413 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1415 * grub-core/net/tftp.c (ack): Fix endianness problem.
1416 (tftp_receive): Likewise.
1417 Reported by: Michael Davidsaver.
1419 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1421 * gentpl.py: Make mans depend on grub-mkconfig_lib.
1423 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1425 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
1426 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
1427 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
1429 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1431 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
1433 Reported by: Stuart Hayes.
1435 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
1437 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
1439 * grub-core/Makefile.core.def (mda_text): New module.
1440 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
1441 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
1442 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
1443 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
1445 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
1446 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
1447 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
1449 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
1451 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
1453 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
1455 * grub-core/term/i386/vga_common.c: Removed.
1456 * include/grub/i386/vga_common.h: Likewise.
1457 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
1458 (grub_vga_cr_bw_read): Likewise.
1459 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
1460 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
1461 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
1462 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
1463 grub_vga_cr_read/grub_vga_cr_write.
1464 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
1466 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1468 * configure.ac: Bump version to 2.00.
1469 * grub-core/normal/main.c (features): Add feature_200_final.
1471 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1472 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
1474 * NEWS: Fix unclarity and language mistakes.
1476 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1478 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
1479 additional size to 3 pages.
1480 Reported by: Stuart Hayes.
1482 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1484 * NEWS: Add 2.00 entry.
1486 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1488 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
1489 put explicit "/" for empty path.
1490 (wildcard_expand): Improve dprintf.
1492 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1494 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
1495 it's equal to currnode. This can happen with "" symlink.
1497 2012-06-27 Yves Blusseau <blusseau@zetam.org>
1499 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
1500 echo shell command by printf command.
1502 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1504 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
1505 the value returned by firmware is the maximal position, not diumension.
1506 (grub_terminfo_output_state): Use a more sane fallback.
1508 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1510 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
1512 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1514 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
1515 frequency to 150 MHz.
1517 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1521 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
1523 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
1525 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
1527 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1529 Handle slash in HFS label.
1531 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
1532 (grub_hfs_dir): Tanslate slash.
1533 (grub_hfs_label): Don't translate slash.
1535 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1537 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
1538 network protocol listing since it introduces problematic dependency on
1541 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1543 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
1545 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1547 Init video early on yeeloong to avoid being rebooted by watchdog.
1549 * grub-core/Makefile.am (gensm712): New target.
1550 (sm712_start.S): Likewise.
1551 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
1552 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
1553 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
1555 * include/grub/vga.h: Move registry definitions to...
1556 * include/grub/vgaregs.h: ... here.
1558 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1560 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
1563 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1565 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
1566 platforms with firmware disk drivers in the core.
1568 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1570 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
1571 informative verbose message.
1572 (read_lv): Handle 64-bit segment size.
1574 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1576 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
1578 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1580 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
1581 character but still remove trainling spaces.
1582 (grub_fat_label): Ignore archive flag.
1584 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1586 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
1587 cast between linux_kernel_header and linux_kernel_params.
1589 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1591 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
1593 (grub_raid6_recover_func_t): Likewise.
1594 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
1595 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
1597 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1599 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
1601 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
1605 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
1606 [__NetBSD__]: Add explicit cast before bitshift.
1608 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1610 * configure.ac: Bump to 2.00~rc1.
1612 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1614 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
1617 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1618 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
1620 * docs/grub.texi: Fix search syntax.
1621 (Multi-boot manual config): Put msdos rather than GPT example.
1622 Grammar corrections.
1624 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1626 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
1628 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1630 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
1632 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1634 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
1635 message on double free. Put the value of magic in case of mismatch.
1637 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1639 Speed-up video on yeeloong.
1641 * grub-core/video/sm712.c (framebuffer): Remove render_target and
1643 (grub_video_sm712_video_fini): Unmap cached_ptr.
1644 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
1645 (grub_video_sm712_set_active_render_target): Removed.
1646 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
1647 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
1650 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1652 Avoid flushing the same line multiple times on loongson.
1654 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
1655 Step in 32 bytes and not 1 byte.
1656 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
1659 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1661 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
1664 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1666 Implement flow control for http.
1668 * grub-core/net/http.c (parse_line): Handle response 206.
1669 (http_receive): Stall if too many packets are in the queue.
1670 (http_establish): Fix range header.
1671 (http_seek): Fix double free.
1672 (http_close): Likewise.
1673 (http_packets_pulled): New function.
1674 (grub_http_protocol): Set http_seek
1675 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
1676 (ack_real): Set window depending on i_stall.
1677 (grub_net_send_tcp_packet): Likewise.
1678 (grub_net_tcp_stall): New function.
1679 (grub_net_tcp_unstall): Likewise.
1680 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
1681 (grub_net_tcp_unstall): Likewise.
1683 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1685 * grub-core/net/tftp.c: Decrease stall to 50 packets.
1687 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1689 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
1691 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1693 * tests/util/grub-shell.in: Fix a typo.
1695 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1697 Implement flow control for tftp.
1699 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
1700 packets but stop only if stop condition is satisfied.
1701 (grub_net_fs_read_real): Call packets_pulled after real read. Use
1702 `stall' instead of `eof' as stop condition.
1703 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
1704 (http_err): Likewise.
1705 * grub-core/net/tftp.c (ack): Replace the first argument with data
1707 (tftp_receive): Stall if too many packets are in wait queue.
1708 (tftp_packets_pulled): New function.
1709 (grub_tftp_protocol): Set packets_pulled.
1710 * include/grub/net.h (grub_net_packets): New field count.
1711 (grub_net_put_packet): Increment count.
1712 (grub_net_remove_packet): Likewise.
1713 (grub_net_app_protocol): New field `packets_pulled'.
1714 (grub_net): New field `stall'.
1716 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1718 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
1719 sync part to handle them.
1721 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1723 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
1724 * grub-core/net/drivers/ieee1275/ofnet.c
1725 (grub_ieee1275_net_config_real): Likewise.
1727 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1729 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
1730 the direct route for server/gateway.
1732 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1734 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
1735 IP address to server name since we may not hame the DNS.
1737 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1739 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
1740 freeing random buffer on failure.
1741 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
1743 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1745 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
1747 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1749 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
1751 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
1752 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
1753 Handle malloc error correctly.
1755 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1757 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
1760 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1762 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
1765 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1767 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
1768 none is explicitly specified.
1770 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1772 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
1775 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1777 Respect netmask from bootp/dhcp.
1779 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
1780 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
1781 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
1783 (grub_net_add_ipv4_local): ... this.
1784 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
1785 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
1786 (grub_net_add_ipv4_local): New proto.
1788 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1790 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
1791 determining EFI memory map size.
1793 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1795 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
1797 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1799 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
1800 when looking for partition separator.
1802 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1804 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
1807 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1809 Restructure FAT driver to avoid hook in label reading as it hits a
1812 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
1813 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
1814 (grub_fat_iterate_dir): Split into ...
1815 (grub_fat_iterate_init): ... this, ...
1816 (grub_fat_iterate_fini): ... this, ...
1817 (grub_fat_iterate_dir_next): ... and this. All users updated.
1819 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1821 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
1822 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
1823 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1824 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
1825 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
1826 New fields last_key and last_key_time.
1827 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
1828 extended key-esc into extended key-extended key.
1830 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1832 Avoid unnecessary memcpy of whole video buffer.
1834 * grub-core/video/fb/video_fb.c (dirty): New struct.
1835 (framebuffer): Add members current_dirty and previous_dirty.
1836 (dirty): New function.
1837 (grub_video_fb_fill_rect): Update dirty.
1838 (common_blitter): Likewise.
1839 (grub_video_fb_scroll): Likewise.
1840 (doublebuf_blit_update_screen): Copy only dirty part.
1841 (doublebuf_pageflipping_update_screen): Likewise.
1842 (grub_video_fb_doublebuf_blit_init): Init dirty.
1843 (doublebuf_pageflipping_init): Likewise.
1844 (grub_video_fb_setup): Likewise.
1846 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1848 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
1851 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1853 Fix wildcard regexp dot and other special characters handling.
1854 Reported by: Robert Mabee.
1856 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
1857 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
1858 (split_path): Trigger expansion on '?'.
1859 (unescape): New function.
1860 (wildcard_expand): Unescape parts copied without globbing.
1861 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
1862 (grub_script_arglist_to_argv): Don't unescape expansions.
1864 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1866 * include/grub/net.h (grub_net_card): New member txbufsize.
1867 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
1868 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
1869 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
1870 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
1872 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
1873 compatible property to check for macs. Set
1874 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
1875 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
1876 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
1877 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
1878 (send_card_buffer): Use txbuf.
1879 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
1880 nested function out of the parent while on it.
1882 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1884 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
1886 (grub_ieee1275_net_config_real): Fix config pointer.
1888 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1890 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
1891 filename parsing to non-block devices.
1893 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1895 * grub-core/kern/device.c (grub_device_open): Remove dead code.
1897 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1899 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
1902 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1904 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
1905 UUID search command even if hints probing failed.
1907 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1909 * po/POTFILES.in: Regenerated.
1911 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
1913 Speed-up video on fuloong.
1915 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
1917 (grub_pci_device_unmap_range): Handle non-cached address.
1918 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
1920 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
1921 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
1922 (grub_video_sis315pro_set_active_render_target): Removed.
1923 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
1924 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
1925 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
1927 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
1930 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
1932 * docs/grub.texi (Multi-boot manual config): New section.
1934 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1936 Avoid slow read-back from VRAM.
1938 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
1940 * grub-core/video/fb/video_fb.c
1941 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
1942 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
1943 (front_target): Remove front_target. Add pages.
1944 (grub_video_fb_init): Skip setting front_pages.
1945 (grub_video_fb_fini): Likewise.
1946 (doublebuf_blit_update_screen): Use pages.
1947 (grub_video_fb_doublebuf_blit_init): Likewise.
1948 (doublebuf_pageflipping_init): Allocate offscreen buffer.
1949 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
1950 (grub_video_fb_setup): Prefer doublebuffing.
1952 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1954 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
1957 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1961 * tests/util/grub-shell.in: Handle loongson.
1962 * tests/partmap_test.in: Add loongson to the list of platform using ATA
1964 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
1965 Reboot instead of shutdown if REBOOT is defined.
1967 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1969 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
1970 sized ports since unlike on real hardware qemu supports only 32-bit
1973 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1975 * Makefile.util.def (grub-mkrescue): Enable on loongson.
1976 * util/grub-mkrescue.in: Handle loongson.
1978 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
1980 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
1981 Set is_part appropriately.
1982 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
1983 names. Canonicalize partition without full disk.
1985 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1987 Revert usb-quiesce since it's wrong.
1989 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
1990 (grub_ofdisk_init): Don't do quiesce.
1992 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1994 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
1995 PowerMac workaround to Xserves as well.
1996 Information supplied by: Benjamin Herrenschmidt.
1998 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2000 Don't assume that beginning address is also the entry point on ppc.
2002 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
2003 (grub_linux_boot): Use linux_entry.
2004 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
2005 (grub_linux_load64): Likewise.
2007 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2009 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
2011 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2013 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
2014 needlessly lose the console.
2016 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2018 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
2021 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2023 Remove non-functional EFI grub_get_rtc. Put a better fatal message
2024 than current grub_get_rtc() not implemented when booted with
2025 coreboot without TSC.
2027 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
2028 Add machine/time.h to kernel headers on loongson.
2029 * grub-core/Makefile.core.def (kernel): Remove
2030 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
2031 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
2032 (grub_get_rtc): Likewise.
2033 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
2034 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
2035 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
2036 * grub-core/kern/i386/tsc.c (grub_tsc_init)
2037 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
2038 rather than installing known non-working time source.
2039 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
2040 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
2041 * include/grub/time.h: Don't include machine/time.h.
2042 * include/grub/efi/time.h: Removed.
2043 * include/grub/i386/efi/time.h: Likewise.
2044 * include/grub/i386/ieee1275/time.h: Likewise.
2045 * include/grub/powerpc/ieee1275/time.h: Likewise.
2046 * include/grub/sparc64/ieee1275/time.h: Likewise.
2047 * include/grub/x86_64/efi/time.h: Likewise.
2049 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2051 Remove dot on i and j when combining with above diacritics.
2053 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
2055 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
2056 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
2057 with dotless variants when any combining above is present.
2059 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2061 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
2062 text and not binary.
2064 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2066 Stop polling as soon as we have the packet we were waiting for.
2068 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
2070 * grub-core/net/arp.c (have_pending): New var.
2071 (pending_req): Likewise.
2072 (grub_net_arp_send_request): Fill pending_req and use have_pending as
2074 (grub_net_arp_receive): Set have_pending.
2075 * grub-core/net/dns.c (recv_data): New field stop.
2076 (recv_hook): Set stop.
2077 (grub_net_dns_lookup): Init stop and use as stop condition.
2078 * grub-core/net/http.c (http_establish): Use headers_recv as stop
2080 * grub-core/net/net.c (grub_net_poll_cards): New argument
2081 stop_condition. Stop when it goes true.
2082 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
2084 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
2086 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2088 Keep TX and RX buffers on EFI rather than always allocate new ones.
2090 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
2091 card. All users updated.
2092 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
2093 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
2094 (get_card_packet): Likewise.
2095 (grub_efinet_findcards): Init new fields.
2097 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2099 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
2100 compilation error on sparc64.
2102 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2104 Use ITC on IA64 rather than broken routine based on daytime.
2106 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
2108 (grub_get_rtc) [__ia64__]: Likewise.
2109 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
2110 (get_itc): New function.
2111 (grub_rtc_get_time_ms): Likewise.
2112 (grub_machine_init): Calibrate ITC.
2113 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
2114 Keep only on non-ia64. Don't export since it's broken and used only
2115 if TSC is unavailable.
2117 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2119 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
2121 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
2122 Skip if parent is unused.
2124 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2126 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
2128 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2130 Fix wildcard escaping.
2132 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
2133 * grub-core/script/execute.c (wildcard_escape): .. to here.
2135 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
2136 * grub-core/script/execute.c (wildcard_unescape): .. to here.
2138 * grub-core/script/execute.c (gettext_append): Always escape.
2139 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
2140 * grub-core/script/yylex.l: Don't cut away the escaping.
2141 * tests/grub_script_echo1.in: Add tests with wildcard.
2143 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2145 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
2146 (ftdi_hw_configure): Likewise.
2147 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
2149 (real_config): Handle 1.5 stop bits.
2150 (pl2303_hw_configure): Likewise.
2152 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2154 * Makefile.am: Add ppc linux bootcheck.
2155 * grub-core/tests/boot/linux-ppc.cfg: New file.
2156 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
2158 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2160 * tests/grub_script_expansion.in: Skip network protocols.
2162 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2164 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
2166 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2168 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
2172 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2174 ESCC serial driver for conducting sautomated tests in qemu.
2175 Not tested on real hardware.
2177 * include/grub/serial.h (grub_serial_port): New field escc_desc.
2178 * grub-core/term/ieee1275/escc.c: New file.
2179 * grub-core/Makefile.core.def (escc): New module.
2181 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2183 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
2185 (serial_hw_fetch): Don't read invalid handle.
2186 (serial_hw_put): Don't write into invalid handle.
2188 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2190 Add a 1.5 stop bits value.
2192 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
2193 * include/grub/serial.h (grub_serial_stop_bits_t): Add
2194 GRUB_SERIAL_STOP_BITS_1_5.
2196 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2198 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
2199 value rather than let it uninited.
2201 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2203 * grub-core/commands/wildcard.c (+check_file): New function.
2204 (wildcard_expand): Don't expand to non-existing files, expand with
2205 suffix and not attempt to expand if not needed.
2207 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2209 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
2210 out of partitions containing other partitions.
2212 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2214 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
2215 on some qemu versions with GRUB.
2217 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
2219 (grub_openbsd_bootarg_pcibios): New struct.
2220 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
2223 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2225 * tests/util/grub-shell.in: Trim firmware output on EFI.
2227 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2229 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
2230 and coreboot since it's already in kernel.
2232 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2234 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
2235 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
2236 to here. New return value start. All users updated.
2237 Recursively scan linear mappings.
2238 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
2240 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
2241 Use grub_util_get_dm_node_linear_info.
2242 * util/getroot.c (convert_system_partition_to_system_disk): Use
2243 grub_util_info rather than grub_dprintf.
2244 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
2246 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2248 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
2250 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
2251 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
2253 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2255 * include/grub/types.h (grub_set_unaligned64): New function.
2256 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
2259 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2261 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
2262 (grub_ofdisk_fini): Quiesce USB devices.
2264 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2266 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
2269 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2271 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
2273 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2275 * grub-core/disk/pata.c (grub_pata_pio_read)
2276 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
2277 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
2279 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2281 Extend automated tests to qemu-mips.
2283 * Makefile.am: reorganise tests and enable qemu-mips.
2284 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
2285 * grub-core/tests/boot/linux.init-mips.S: New file.
2286 * tests/partmap_test.in: Handle ata0 disks.
2287 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
2290 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2292 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
2294 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
2297 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2299 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
2300 (grub_halt): Likewise.
2301 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
2303 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2305 * grub-core/term/serial.c (grub_serial_register)
2306 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
2307 the behaviour in line with x86 platforms.
2309 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2311 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
2312 (grub_ata_strncpy): Likewise.
2313 (grub_ata_identify): Add missing byteswaps.
2315 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2317 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
2319 (screen_read_char): Likewise.
2320 (grub_vga_text_cls): Likewise.
2322 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2324 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
2326 (make_file_path): Likewise.
2328 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2330 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
2332 Tested by: Paulo Flabiano Smorigo.
2333 Crucial information about API supplied by: Coleen <Last name unknown>.
2334 Reviewed by: Coleen <Last name unknown>.
2336 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2338 * util/grub-mkimage.c: Disable -Wcast-align.
2340 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2342 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
2345 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2347 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
2349 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2351 * util/grub-probe.c (escape_of_path): Fix double free.
2353 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2355 * grub-core/commands/videoinfo.c (hook): Show pitch.
2357 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2359 * util/grub.d/20_linux_xen.in: Skip xen-syms.
2361 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2363 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
2364 (probe): Add ieee1275 to OFW devices.
2366 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2368 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
2370 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2372 Handle IBM OFW path.
2374 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
2376 (of_path_of_scsi): Handle vdevice.
2378 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
2380 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
2381 Allocate in multiples of 16 to avoid adding a few bytes free region the
2384 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
2386 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
2387 Allocate in multiples of 16 to avoid adding a few bytes free region the
2389 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
2391 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2393 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
2395 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
2396 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
2398 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
2400 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
2402 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2404 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
2405 resulted in \\ at the end of the line.
2407 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2409 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
2410 (grub_parser_cmdline_state): Likewise.
2411 (grub_parser_split_cmdline): Likewise.
2413 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2415 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
2416 /dev/root and /dev/dm-*.
2418 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2420 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
2421 fix partially stale display.
2423 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2425 * grub-core/normal/menu_entry.c (backward_char): Use right line for
2428 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2430 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
2431 Fix MBR remapping workaround.
2432 (grub_util_biosdisk_read) [__linux__]: Likewise.
2434 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
2436 * util/grub-install.in: Check for ieee1275 and not ieee1276.
2438 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2440 * configure.ac: Bump to beta6.
2442 2012-05-31 Christer Weinigel <christer@weinigel.se>
2444 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
2446 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2448 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
2449 (grub_cmd_linux): Likewise.
2451 2012-05-31 Christer Weinigel <christer@weinigel.se>
2455 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
2456 (GRUB_EHCI_MULT_TWO): Likewise.
2457 (GRUB_EHCI_MULT_THREE): Likewise.
2458 (GRUB_EHCI_CMASK_MASK): New enum value.
2459 (GRUB_EHCI_SMASK_MASK): Likewise.
2460 (GRUB_EHCI_CMASK_OFF): Likewise.
2461 (GRUB_EHCI_SMASK_OFF): Likewise.
2462 (grub_ehci_pci_iter): Enable periodic schedule.
2463 (grub_ehci_parse_notrun): Likewise.
2464 (grub_ehci_restore_hw): Likewise.
2465 (grub_ehci_setup_qh): Set flags for low speed transfers.
2466 (grub_ehci_find_qh): Use periodic list for low speed.
2467 (grub_ehci_setup_transfer): Check periodic queue as well.
2468 (grub_ehci_check_transfer): Likewise.
2469 (grub_ehci_cancel_transfer): Cancel periodic transfer.
2471 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2473 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
2476 2012-05-31 Peter Jones <pjones@redhat.com>
2478 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
2479 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
2480 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
2482 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2484 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
2485 uninited variable. Allocate at least setup_sects.
2487 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2489 Fix handling of EFI with big memory maps.
2491 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
2492 (real_mode_mem): Likewise.
2493 (real_mode_target): Likewise.
2494 (real_mode_pages): Likewise.
2495 (prot_mode_pages): Likewise.
2496 (linux_params): New var.
2497 (linux_cmdline): Likewise.
2498 (free_pages): Don't set real mode variables.
2499 (allocate_pages): Don't allocate real mode memory.
2500 (grub_e820_add_region): Remove the limit.
2501 (grub_linux_boot): Allocate and copy real mode memory.
2502 (grub_linux_unload): Free linux_cmdline.
2503 (grub_cmd_linux): Use temporary storage for parameters.
2504 (grub_cmd_initrd): Likewise.
2505 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
2506 (linux_kernel_params): Make it 1K big.
2508 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2510 * Makefile.util.def: Remove -Wno-format.
2511 * grub-core/Makefile.core.def: Likewise.
2513 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2515 * tests/cmp_unit_test.c: Add missing failure message.
2516 * tests/example_unit_test.c: Likewise.
2517 * tests/printf_unit_test.c: Likewise.
2519 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2521 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
2522 relaxation of protective MBR requirements.
2524 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2526 * configure.ac: Add condition for COND_HOST_XNU.
2527 * Makefile.util.def (10_xnu): New script.
2528 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
2530 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2532 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
2535 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2537 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
2538 Binary on other platforms stays identical.
2540 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2542 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
2545 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2547 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
2549 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2551 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
2552 rather than defining size_t ourselves to avoid conflict.
2554 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2556 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
2557 initialisation to avoid __bzero reference.
2559 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2561 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
2563 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
2564 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
2565 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
2566 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
2567 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
2569 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2571 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
2572 * grub-core/kern/misc.c: Likewise.
2573 * grub-core/loader/i386/xnu.c: Likewise.
2574 * include/grub/i386/tsc.h: Likewise.
2575 * include/grub/symbol.h: Likewise.
2577 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2579 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
2580 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
2583 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2585 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
2586 Implement Apple flavour.
2587 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
2589 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2591 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
2592 (memmove) [__APPLE__]: Likewise.
2593 (memcpy) [__APPLE__]: Likewise.
2594 (memset) [__APPLE__]: Likewise.
2595 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
2596 (memmove) [__APPLE__]: Likewise.
2597 (memcpy) [__APPLE__]: Likewise.
2598 (memset) [__APPLE__]: Likewise.
2600 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2602 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
2605 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2607 * grub-core/normal/main.c (read_config_file): Provide config_file and
2609 * util/grub.d/41_custom.in: Use config_directoy when available.
2611 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2613 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
2614 (grub_bfs_dir): Likewise.
2616 2012-05-27 Peter Jones <pjones@redhat.com>
2618 The old code gives arguments to a printf function which can't work
2619 correctly, and the compiler complains.
2621 * grub-core/tests/example_functional_test.c (example_test): Add
2623 * grub-core/tests/lib/test.c (add_failure): Rewrite.
2624 * include/grub/test.h (grub_test_assert_helper): New declaration.
2625 (grub_test_assert): Use grub_test_assert_helper.
2627 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2629 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
2630 (exfctest): ... this to avoid overlong filenames.
2633 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2635 Handle "." and ".." on squashfs.
2637 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
2638 Make inode numbers into stack.
2639 (grub_squash_read_symlink): Use stack.
2640 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
2641 (make_root_node): Fill stack.
2642 (grub_squash_open): Use stack.
2644 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2646 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
2649 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2651 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
2652 stderr on test calls.
2654 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2656 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
2658 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2660 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
2662 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2664 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
2667 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2669 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
2670 (grub_hfsplus_iterate_dir): Add "." and "..".
2672 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2674 * grub-core/fs/cpio.c (canonicalize): Handle "..".
2675 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
2677 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2679 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
2680 (find_path): Handle "." and "..".
2682 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2684 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
2685 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
2686 (grub_affs_iterate_dir): Handle hardlinks.
2688 2012-05-26 Matthew Garrett <mjg@redhat.com>
2690 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
2691 (grub_efi_console_fini): Likewise.
2692 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
2693 (grub_video_gop_fill_mode_info): Rename to ...
2694 (grub_video_gop_fill_real_mode_info): ... this.
2695 (grub_video_gop_fill_mode_info): New function.
2696 (grub_video_gop_setup): Setup double framebuffer.
2697 (grub_video_gop_get_info_and_fini): Use original framebuffer.
2699 (grub_video_gop_swap_buffers): Copy framebuffer.
2700 (grub_video_gop_fini): Free offscreen buffer.
2701 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
2703 (grub_efi_gop_blt_pixel): New struct.
2705 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2707 * gentpl.py: Remove error disabling for objconv.
2709 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2711 * configure.ac: Remove -Wunitialized as it's not available on older
2714 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2716 Fix extent overflow comparator.
2718 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
2719 (grub_hfsplus_read_block): Set type.
2720 (grub_hfsplus_cmp_extkey): Compare type.
2722 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
2724 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
2726 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2728 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
2731 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2733 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
2734 (dejavu_bold_14.pf2): New target.
2736 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2738 * configure.ac: Fix djvu font detection.
2740 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2742 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
2743 ext* instead of ext2.
2745 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2747 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
2750 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
2752 * docs/grub-dev.texi: Remove dot from .png.
2754 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2756 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
2757 protective entry in any slot.
2758 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
2759 if protective entry is found in any slot.
2761 Protective entry in non-first slot make no sense but is a widespread
2764 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2766 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
2768 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2770 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
2772 (grub_reiserfs_open): Don't free root.
2774 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2776 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
2777 after freeing for safety.
2779 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2781 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
2782 Reported by: Jordan Uggla.
2784 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
2786 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
2787 actual implementation. Specifically, clarify that the grub menu will
2788 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
2791 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
2793 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
2796 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2798 Remove unjustified hard dependency of normal.mod on gfxterm.
2800 * include/grub/term.h (grub_term_output): New member fullscreen.
2801 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
2802 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
2803 (grub_gfxterm): Set .fullscreen.
2804 * grub-core/normal/menu.c (menu_init): Use fullscreen.
2805 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
2807 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2809 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
2810 mentioning possible problems with non-ASCII (non-compliant) ISOs.
2811 Mention case-insensitive AFFS, SFS and JFS.
2813 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2815 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
2817 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2819 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
2822 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2824 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
2825 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
2827 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2829 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
2830 (grub_jfs_mount): Fill caseins.
2831 (grub_jfs_find_file): Respect caseins.
2833 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2835 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
2838 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2840 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
2841 New argument origpath. All users updated.
2843 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2845 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
2846 (read_attr): Ensure that we read start of possibly compressed block.
2848 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2850 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
2851 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
2854 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2856 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
2857 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
2858 (dejavu.pf2): Replace with ...
2859 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
2862 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2864 * util/grub.d/20_linux_xen.in: Add missing line.
2866 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2868 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
2869 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
2870 (grub_utf16_to_utf8): Likewise.
2872 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2874 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
2875 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
2876 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2877 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
2878 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
2879 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
2881 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2883 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
2886 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2888 * grub-core/fs/udf.c (read_string): Bail out on size=0.
2889 (grub_udf_read_symlink): Handle read_string failure.
2891 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2893 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
2896 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2898 Fix handling of UDF symlinks.
2900 * grub-core/fs/udf.c (read_string): New argument outbuf.
2902 (grub_ufs_read_symlink): Rename to ...
2903 (grub_udf_read_symlink): ... this. All users updated.
2904 Handle symlinks with more than one component.
2906 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2908 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
2909 symlinks. Replace leading colon with a slash.
2911 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2913 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
2916 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2918 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
2919 match in inner node.
2921 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2923 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
2924 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
2925 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
2926 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
2927 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
2928 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
2929 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
2930 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
2931 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
2933 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2935 Use grub-probe and not cmp to check that disk is empty.
2937 * util/grub-install.in: Use grub-probe for zero-check.
2938 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
2939 (probe): Handle PRINT_ZERO_CHECK.
2940 (argp_parser): Handle -t zero_check.
2942 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2944 Flush block cache on adding disk to device map.
2946 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
2947 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
2949 (read_device_map): Likewise.
2950 (open_device): Flush on opening.
2952 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2954 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
2955 (handle_symlink): Fix off-by-one error.
2956 Canonicalize the target.
2957 (grub_cpio_dir): Canonicalize the name.
2960 (grub_cpio_open): Canonicalize the name.
2962 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2964 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
2967 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2969 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
2970 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
2972 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2974 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
2975 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
2978 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2980 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
2983 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2985 Fix UFS1 big file support.
2987 * grub-core/fs/ufs.c (INODE): Removed.
2988 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
2990 (INODE_MODE): Simplify.
2991 (grub_ufs_inode): Use uint64_t for size and not int64_t.
2992 (grub_ufs_lookup_symlink): Don't use INODE.
2994 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2996 Fix minixfs with non-power-of-two blocks since it's supported by minix.
2998 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
2999 (grub_minix_data): Replace log_block_size with block_size.
3000 (grub_minix_read_file): Use block_size but avoid 64-bit division.
3001 (grub_minix_mount): Fill block_size.
3003 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3005 * configure.ac: Bump to beta5.
3007 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3009 Fix wrapped HFS+ handling.
3011 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
3012 blocks_start. All users updated.
3013 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
3015 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
3017 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3019 Fix long symlinks on reiserfs.
3021 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
3022 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
3023 (grub_reiserfs_iterate_dir): Save size for non-directories.
3024 (grub_reiserfs_open): Don't reread stat block as we already know the
3026 (grub_reiserfs_read): Split into...
3027 (grub_reiserfs_read_real): ... and ...
3028 (grub_reiserfs_read): ...this.
3030 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3032 Fix non-indexed JFS.
3034 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
3035 (grub_jfs_data): New field namecomponentlen.
3036 (grub_jfs_mount): Fill namecomponentlen.
3037 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
3039 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3041 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
3042 * tests/grub_script_echo1.in: Add tests.
3044 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3046 * util/grub-install.in: Ignore empty devicetree directory.
3048 2012-05-08 Bean <bean123ch@gmail.com>
3050 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
3052 (free_rsm): Free header as well.
3053 (free_old_fragments): Fix memory leak.
3054 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
3055 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
3056 (destroy_pq): Likewise.
3057 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
3059 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3061 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
3062 resulting hash as a precaution.
3064 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3066 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
3067 '_' in variable names.
3068 * grub-core/net/net.c (grub_net_network_level_interface_register):
3071 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3073 Fix AFFS with non-512B blocks.
3075 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
3076 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
3077 (grub_affs_data): Replace blocksize with log_blocksize.
3078 (grub_affs_read_block): Fix non-512B blocks.
3079 (grub_affs_read_symlink): Likewise.
3080 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
3081 (grub_affs_read): Fix non-512B blocks.
3082 (grub_affs_label): Likewise.
3083 (grub_affs_mtime): Likewise.
3084 (grub_affs_mount): Fix block detection routine.
3086 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3088 Add filesystem mtime to AFFS.
3090 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
3091 (aftime2ctime): New function.
3092 (grub_affs_dir): Use aftime2ctime.
3093 (grub_affs_label): Fix return value.
3094 (grub_affs_mtime): New function.
3095 (grub_affs_fs): Add mtime.
3097 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3099 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
3102 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3104 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
3107 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3109 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
3111 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3113 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
3115 (FLAGS_CASE_SENSITIVE): New enum value.
3116 (cache_entry): New struct.
3117 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
3118 cache_size and cache.
3119 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
3120 Add log_blocksize and fshelp_flags.
3121 (grub_sfs_read_extent): Handle non-512 blocks.
3122 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
3123 (grub_sfs_read_file): Handle non-512 blocks.
3124 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
3126 (grub_sfs_read_symlink): Handle non-512 blocks.
3127 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
3128 (grub_sfs_dir): Free cache.
3129 (grub_sfs_close): Likewise.
3131 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3133 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
3136 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3138 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
3140 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3142 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
3144 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3146 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
3147 (grub_sfs_read_extent): Likewise.
3148 (grub_sfs_read_block): Likewise.
3149 (grub_sfs_mount): Likewise.
3150 (grub_sfs_iterate_dir): Likewise.
3151 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
3152 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
3154 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3156 Fix errors on compressed NTFS with 512B clusters.
3158 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
3160 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
3162 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
3163 Relax check for inline extents.
3164 (ntfscomp): Return correct -1 on error and not 0.
3166 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3168 * util/grub-install.in: Fix handling of prefix containing spaces.
3170 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3172 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
3173 (grub_squash_read_data): Fix offset byte-swapping.
3175 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3177 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
3178 per common usage and preffered in several parts of code.
3179 (grub_memcmp): Likewise.
3180 (grub_strncmp): Likewise.
3181 * include/grub/misc.h (grub_strcasecmp): Likewise.
3182 (grub_strncasecmp): Likewise.
3183 * Makefile.util.def (cmp_test): New test.
3184 (grub_script_strcmp): Likewise.
3185 * tests/cmp_unit_test.c: New file.
3186 * tests/grub_script_strcmp.in: Likewise.
3187 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
3189 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3191 * include/grub/pci.h: Move enums into no-asm part.
3193 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3195 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
3197 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
3199 * util/getroot.c (find_hurd_root_device): Try to make error message
3200 and comments to translators clearer.
3202 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3204 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
3206 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3208 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
3211 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3213 * docs/grub.cfg: Update.
3215 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3217 * docs/grub.texi (PXE): Remove not present variables.
3219 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3221 * grub-core/net/net.c (defserver_set_env): New function.
3222 (defserver_get_env): Likewise.
3223 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
3225 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3227 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
3230 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3232 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
3233 * grub-core/kern/emu/hostdisk.c: Likewise.
3235 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3237 Handle hurd userspace partitions.
3239 * util/getroot.c (find_hurd_root_device): New function.
3240 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
3242 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3244 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
3246 Reported by: Bastian Blank.
3248 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3250 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
3251 crossing page boundary.
3253 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3255 Fix B-tree search in BFS, especially in presence of non-ASCII
3258 * grub-core/fs/bfs.c (bfs_strcmp): New function.
3259 (find_in_b_tree): Use standard bsearch + btree algorithm.
3261 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3263 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
3266 2012-05-03 Matthew Garrett <mjg@redhat.com>
3267 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3269 Suspend broadcom cards in order to stop their DMA.
3271 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
3272 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
3273 (pci): Don't build on x86 EFI.
3274 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
3275 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
3277 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
3278 stop_broadcom if running on EFI.
3279 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
3280 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
3281 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
3282 (grub_pci_find_capability): New proto.
3284 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3286 * docs/grub.texi: Remove dot from the extension as it apparently
3287 doesn't work with some makeinfo versions.
3289 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3291 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
3292 with GRUB expectance.
3294 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3296 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
3298 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3300 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
3301 zero after directory block since last entry may be not 0-terminated if
3302 it ends on block boundary. Use continue instead of if spanning whole
3305 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3307 Support 4K sectors UDF inline files.
3309 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
3310 (grub_udf_extended_file_entry): Likewise.
3311 (grub_fshelp_node): Name the anonymous union. Put block at the end.
3313 (get_fshelp_size): New function.
3314 (grub_udf_read_icb): Read whole block.
3315 (grub_udf_iterate_dir): Likewise.
3316 (grub_udf_dir): Likewise.
3317 (grub_udf_open): Likewise.
3319 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3321 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
3323 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3325 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
3326 inline symlinks in addition to workaround.
3328 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3330 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
3332 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3334 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
3336 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3338 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
3340 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3342 Fix reiserfs big seek times.
3344 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
3345 exact. All users updated.
3346 (grub_reiserfs_read): Use nearest btree search for seeking.
3347 Fix return value on error.
3349 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3351 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
3353 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
3354 * docs/grub.texi: Update menuentry description.
3356 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3358 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
3359 crash when embedding onto filesystem.
3361 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3363 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
3366 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3368 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
3370 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3372 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
3375 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3376 2012-05-01 Bean <bean123ch@gmail.com>
3378 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
3380 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3382 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
3383 Special behaviour for len = 0 to read whole file isn't used anywhere and
3384 can cause buffer ovewrflows in several places.
3386 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3388 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
3390 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3392 Handle RAIDZ on non-512B sectors.
3394 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
3395 max_children_ashift.
3396 (fill_vdev_info_real): Fill max_children_ashift.
3397 (read_device): Use max_children_ashift.
3399 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3401 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
3403 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3405 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
3407 * docs/grub.texi: Update device.map parts.
3409 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3411 Don't scan into non-diskfilter devices having diskfilter names.
3413 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
3414 (scan_disk): New argument accept_diskfilter. Fix recursion depth
3416 (scan_disk_hook): New function.
3418 2012-04-29 Bean <bean123ch@gmail.com>
3420 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
3423 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
3425 * configure.ac: Detect starfield theme font path
3426 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
3428 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3430 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
3431 geometry on serial consoles.
3433 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3435 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
3436 because of network consoles.
3438 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3440 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
3443 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3445 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
3448 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3450 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
3451 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
3453 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3455 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
3456 Allocate at lest 8192 for temporary buffer as required for lzo.
3458 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3460 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
3461 to cluster_bits, since it's already added in.
3462 (grub_fat_read_data): Likewise.
3464 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3466 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
3467 as long as cluster size is multiple of 512 bytes.
3469 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
3471 * util/grub-mkrescue.in: Fix locale directory.
3473 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
3475 * grub-core/kern/emu/hostdisk.c (map): Make static.
3477 2012-04-23 Bean <bean123ch@gmail.com>
3479 * util/grub-fstest.c (fstest): Add missing break.
3481 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
3485 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
3486 not define nr variable.
3487 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
3488 find_root_devices_from_poolname, find_root_devices_from_libzfs,
3489 grub_find_device): Do not define.
3491 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3493 Fix kfreebsd compile and behaviour.
3495 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
3497 * util/getroot.c: Fix wait.h include.
3498 (grub_guess_root_devices): Error if grub_find_device fails.
3499 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
3500 (grub_util_get_dev_abstraction): Likewise.
3501 (grub_util_pull_device): Likewise.
3502 (grub_util_get_grub_dev): Likewise.
3503 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
3505 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3507 Fix and unify wholedisk detection.
3509 * util/getroot.c (convert_system_partition_to_system_disk): New argument
3510 is_part. All users updated.
3511 (device_is_wholedisk): Removed.
3512 (grub_util_biosdisk_get_grub_dev): Use is_part.
3514 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3516 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
3519 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3521 * configure.ac: Bump to beta4.
3523 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3525 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
3526 --fs-uuid --set UUID syntax.
3528 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3530 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
3533 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3535 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
3537 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
3539 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
3541 2012-04-18 Mike Gilbert <floppym@gentoo.org>
3543 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
3545 2012-04-18 Bean <bean123ch@gmail.com>
3547 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
3550 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3552 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
3554 (grub_util_biosdisk_read): Handle Linux partitions not exactly
3555 corresponding to GRUB partitions.
3556 (grub_util_biosdisk_write): Likewise.
3558 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3560 Scan mdraid before LVM.
3562 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
3563 (grub_diskfilter_register_front): ... this.
3564 (grub_diskfilter_register_back): New function.
3565 All users of grub_diskfilter_register updated.
3567 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3569 * util/grub-install.in: Fix an automatic target detection bug.
3571 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3573 * util/grub-install.in: New option --efi-directory.
3575 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3577 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
3578 boot services if we have no other choice.
3580 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3582 * util/grub-mknetdir.in: Rename --override-directory to --directory and
3584 * tests/util/grub-shell.in: Update to --directory.
3586 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3588 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
3590 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3592 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
3593 (grub_minix_read_file): Likewise.
3594 (grub_minix_read_inode): Likewise.
3595 (grub_minix_find_file): Likewise.
3596 (grub_minix_dir): Likewise.
3598 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3600 * util/grub-setup.c (setup): Fix partition handling and blocklist
3603 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3605 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
3606 redundant buggy overlap check.
3608 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3610 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
3613 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3615 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
3616 kh.loadflags on pre-2.00 kernels.
3618 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3620 Terminate UNDI and PXE before launching the payload to avoid problems
3623 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
3624 (grub_loader_flags): ... this. All users updated.
3625 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
3626 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
3627 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
3628 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
3630 (grub_pxe_restore): Likewise.
3631 (fini_hnd): New var.
3632 (GRUB_MOD_INIT): Register shutdown hook.
3633 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
3634 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
3635 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
3636 (grub_loader_set): Rename second argument to flags.
3638 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3640 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
3642 (grub_get_num_of_utf8_bytes): New function.
3643 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
3644 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
3646 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
3647 (grub_ucs4_to_utf8): Change return type.
3649 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3651 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
3653 * grub-core/fs/bfs.c (hop_level): Likewise.
3654 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
3656 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3658 * grub-core/lib/adler32.c: Recode due to license unclearness.
3660 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3662 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
3663 (test_header): Likewise.
3665 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3667 Fix --help formatting.
3669 * util/grub-mkconfig_lib.in (print_option_help): New function.
3670 (grub_fmt): Likewise.
3671 * util/grub-install.in: Use print_option_help and grub_fmt.
3672 * util/grub-kbdcomp.in: Likewise.
3673 * util/grub-mkconfig.in: Likewise.
3674 * util/grub-mknetdir.in: Likewise.
3675 * util/grub-mkrescue.in: Likewise.
3676 * util/grub-mkstandalone.in: Likewise.
3677 * util/grub-reboot.in: Likewise.
3678 * util/grub-set-default.in: Likewise.
3679 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3681 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3683 * linguas.sh: Remove autogenerated *.po.
3685 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3687 * po/README: Move language fetcing to ...
3688 * linguas.sh: ... here.
3689 * po/README: Point to linguas.sh.
3691 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3693 * po/README: Exclude ko.po due to disclaimer problems.
3695 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3697 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
3699 (grub_gettext_translate_real): Handle 0th string.
3700 (grub_gettext_translate): Ensure that "" isn't translated.
3702 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3704 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
3705 TRANSLATORS comment.
3706 (grub_diskfilter_print_partmap): Propagate changing of error into
3709 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3711 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
3712 to uint64_t to prevent overflow.
3713 (grub_diskfilter_lv): Increase start_extent and extent_count
3714 to uint64_t to prevent overflow.
3716 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3718 * configure.ac: Increase version.
3720 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3722 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
3724 * po/Rules-translit: New file.
3725 * po/arabic.sed: Likewise.
3726 * po/cyrillic.sed: Likewise.
3727 * po/greek.sed: Likewise.
3728 * po/hebrew.sed: Likewise.
3729 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
3730 * po/Makefile.in.in: Add extra_dist4.
3732 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3734 Handle big-endian minixfs (fixes minixfs tests on bigendian).
3736 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
3737 modify names. Introduce MODE_BIGENDIAN.
3738 * grub-core/fs/minix_be.c: New file.
3739 * grub-core/fs/minix2_be.c: Likewise
3740 * grub-core/fs/minix3_be.c: Likewise.
3741 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
3743 * grub-core/Makefile.core.def (minix_be): New module.
3744 (minix2_be): Likewise.
3745 (minix3_be): Likewise.
3747 2012-04-01 Felix <email@hamburg.de>
3749 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
3750 (devs): Add MBP 2011.
3752 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3754 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
3756 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3758 * grub-core/normal/cmdline.c (print_completion): New field
3760 (grub_cmdline_get): Handle width properly.
3762 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3764 * grub-core/commands/lsacpi.c (options): Add missing terminator.
3766 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3768 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
3769 after 29th of February.
3771 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3773 Fix exfat endianness handling.
3775 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
3776 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
3777 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
3778 Byte-swap utf16 when necessary.
3779 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
3781 2012-03-31 Anton Blanchard <anton@samba.org>
3782 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3784 Fix btrfs endianness handling.
3786 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
3787 (lower_bound): Make root uint64_t. Use root in le.
3788 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
3789 (find_path): Fix template key init.
3790 (grub_btrfs_dir): Fix mtime byteswap.
3791 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
3793 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3795 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
3796 recursion_depth. Break infinite resursions. All users updated.
3798 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3800 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
3802 Reported by: Peter Jones.
3804 2012-03-31 Anton Blanchard <anton@samba.org>
3806 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
3809 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
3811 * util/grub-install.in: Fix nvram call for PreP.
3813 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
3815 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
3816 the error when some elements are missing into a warning.
3818 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
3820 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
3822 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
3824 * docs/grub.texi (Invoking grub-probe): New section.
3825 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
3827 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
3829 Fix tab and wide character handling in editor and menu.
3831 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
3832 agglomerate control characters with combining marks.
3833 (bidi_line_wrap): Allow break on tab.
3834 (grub_unicode_get_comb_start): New function.
3835 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
3837 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
3839 * grub-core/normal/term.c (print_ucs4_terminal): New argument
3840 fixed_tab_size. All users updated.
3841 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
3842 (grub_term_getcharwidth): Handle \t.
3843 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
3846 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3848 Handle big-endian mdraid.
3850 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
3851 * grub-core/Makefile.core.def (mdraid09_be): New module.
3852 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
3853 rather than grub_le_to_cpu* and grub_cpu_to_le*.
3854 * grub-core/disk/mdraid_linux_be.c: New file.
3856 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3858 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
3860 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3862 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
3863 missing quotes which caused confusion among translators.
3865 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3867 * util/grub-mkconfig_lib.in: Fix typo.
3869 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3871 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
3873 * tests/grub_script_leading_whitespace.in: New file.
3874 * Makefile.util.def (grub_script_leading_whitespace): New test.
3876 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3878 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
3881 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3883 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
3884 starts with control character.
3886 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3888 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
3890 (grub_gdb_outbuf): Likewise.
3892 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3894 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
3895 zero terminator. Fixes a crash.
3897 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3899 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
3901 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
3902 images independently of preffered adderss field.
3904 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3906 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
3907 * grub-core/commands/regexp.c: Likewise.
3908 * grub-core/loader/i386/linux.c: Likewise.
3909 * grub-core/partmap/msdos.c: Likewise.
3910 * grub-core/script/execute.c: Likewise.
3911 * grub-core/term/gfxterm.c: Likewise.
3913 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3915 Add variable parsing in $"..." and fix several mismatches with bash.
3917 * Makefile.util.def (grub_script_gettext): New test.
3918 * grub-core/script/execute.c (parse_string): New function.
3919 (gettext_append): Likewise.
3920 (grub_script_arglist_to_argv): Use gettext_append.
3921 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
3922 * tests/grub_script_gettext.in: New file.
3924 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3926 Fix handling of leading spaces in scripts.
3928 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
3930 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
3931 other than skipping \r. All users updated.
3932 * tests/grub_script_echo1.in: Add space-related tests.
3933 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
3935 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3937 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
3939 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3941 * configure.ac: Bump up the version to beta2.
3943 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3945 Fix gettext reload bugs (e.g. inability to disable gettext
3948 * grub-core/gettext/gettext.c: Encapsulate all static variables in
3949 main_context and secondary_context. All functions updated.
3950 (grub_gettext_translate): Rename to ...
3951 (grub_gettext_translate_real): ... this. Return NULL on failed
3953 (grub_gettext_translate): Handle secondary context.
3954 (grub_gettext_delete_list): Close file and zero-out the context.
3955 (grub_mofile_open): Don't call grub_gettext_delete_list.
3957 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
3958 if locale="" to avoid pointless error message.
3959 (grub_gettext_env_write_lang): Update lang even if load fails.
3960 Handle secondary context.
3961 (grub_gettext_reread_prefix): New function.
3962 (read_main): Likewise.
3963 (read_secondary): Likewise.
3964 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
3965 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
3966 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
3967 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
3969 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3971 * configure.ac: Decrease warning level to avoid spurious warnings and
3972 to be able to compile with GCC 4.2.
3973 * Makefile.util.def: Remove -Wno-error=logical-op.
3975 2012-03-10 William Bittner <william.bittner@gmail.com>
3977 * util/import_unicode.py: Add missing brackets around string for
3980 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3982 Fix efi chainloader on network root.
3984 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
3986 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
3989 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3991 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
3992 unused show_text member.
3993 * docs/grub.texi: Document "text" property.
3995 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3997 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
4000 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4002 Fix IMSM handling on Fedora.
4004 * util/getroot.c (grub_util_is_imsm): New function.
4005 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
4007 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4009 * Makefile.am: Strip gold section.
4010 * conf/Makefile.common: Likewise.
4011 * gentpl.py: Likewise.
4012 * grub-core/Makefile.core.def: Likewise.
4013 * grub-core/genmod.sh.in: Likewise.
4015 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4017 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
4018 * util/grub.d/20_linux_xen.in: Likewise.
4019 Based on Debian patch.
4021 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4023 * util/grub.d/10_linux.in: Fix syntax error resulting in
4024 Richard Laager's patch.
4025 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
4027 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4029 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
4032 2012-03-10 Richard Laager <rlaager@wiktel.com>
4034 * util/grub.d/10_linux.in: Fix ZFS root passing.
4036 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4038 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
4039 * grub-core/commands/xnu_uuid.c: Likewise.
4040 * grub-core/loader/efi/appleloader.c: Likewise.
4041 * grub-core/script/execute.c: Likewise.
4042 * grub-core/script/main.c: Likewise.
4043 * util/grub-mkfont.c: Likewise.
4045 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4047 * util/grub-mkfont.c (options): Use more appropriate "select" that
4048 "set" for face index.
4050 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4052 * util/grub-editenv.c (options): Gettextize command summaries.
4054 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4056 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
4057 "out of memory" error messagge.
4059 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4061 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
4062 of diskfilter for diskfilter on diskfilter support.
4064 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4066 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
4068 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4070 * util/grub-install.in: Check for themes/starfield/theme.txt and not
4073 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4075 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
4077 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4079 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
4081 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4083 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
4086 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
4088 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
4090 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
4092 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
4094 * util/grub-install.in: Fix and gettextize error message.
4096 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4098 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
4100 * util/grub-mount.c (options): Likewise.
4102 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4104 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
4106 * grub-core/commands/search_wrap.c (options): Likewise.
4108 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4110 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
4112 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4114 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
4116 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
4119 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4121 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
4122 "temporary" since it's used in identifier and is limited in space.
4124 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4126 * po/POTFILES.in: Regenerate. Include *.h since they contain
4127 translatable strings as well.
4129 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4131 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
4132 byte-swap on big-endian.
4133 Reported by: Lennart Sorensen
4135 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
4137 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
4138 (allocate_pages): Improve dprintf.
4139 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
4140 code32_start. Fill code32_start and kernel_alignment in params.
4141 (grub_cmd_initrd): Use prot_init_space.
4143 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4145 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
4147 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4149 * util/grub-install.in: Add missing dot at the end of sentence.
4151 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4153 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
4154 * grub-core/commands/videotest.c: Likewise.
4155 * grub-core/loader/i386/linux.c: Likewise.
4157 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4159 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
4161 Reported by: Milo Casagrande.
4163 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4165 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
4166 * grub-core/commands/gptsync.c: Likewise.
4167 * grub-core/commands/hashsum.c: Likewise.
4168 * grub-core/commands/i386/pc/sendkey.c: Likewise.
4169 * grub-core/commands/legacycfg.c: Likewise.
4170 * grub-core/io/gzio.c: Likewise.
4171 * grub-core/net/net.c: Likewise.
4172 * grub-core/term/gfxterm.c: Likewise.
4173 * grub-core/term/terminfo.c: Likewise.
4174 * grub-core/tests/test_blockarg.c: Likewise.
4175 * grub-core/video/video.c: Likewise.
4176 * util/grub-install.in: Likewise.
4177 * util/grub-mkfont.c: Likewise.
4179 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4181 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
4183 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4185 * grub-core/commands/search_wrap.c (options): Fix a typo.
4186 Reported by: David Prévot.
4188 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4190 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
4193 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4195 * util/grub-script-check.c (main): Fix a syntax error message which was
4198 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4200 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
4202 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4204 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
4207 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4209 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
4211 * util/grub-mount.c (options): Likewise.
4213 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4215 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
4217 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4219 * grub-core/net/http.c: Add TRANSLATORS comments.
4220 * grub-core/normal/cmdline.c: Likewise.
4221 * grub-core/normal/misc.c: Likewise.
4222 * grub-core/partmap/msdos.c: Likewise.
4223 * grub-core/parttool/msdospart.c: Likewise.
4224 * grub-core/script/execute.c: Likewise.
4225 * grub-core/script/main.c: Likewise.
4226 * grub-core/term/terminfo.c: Likewise.
4227 * grub-core/video/bitmap.c: Likewise.
4228 * util/grub-install.in: Likewise.
4229 * util/grub-mkimage.c: Likewise.
4230 * util/grub-mklayout.c: Likewise.
4231 * util/grub-setup.c: Likewise.
4233 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4235 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
4236 with similar messages in grub-fstest.
4238 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4240 * util/grub-install.in: Unify "option requires an argument" message
4241 with similar messages in other files.
4242 * util/grub-mkconfig.in: Likewise.
4244 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4246 * util/grub-set-default.in: Replace printf with gettext_printf (the
4247 string in in question is already translated from grub-reboot)
4249 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4251 * configure.ac: Bump up the version to beta1.
4253 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4255 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
4256 case when min_align = 0.
4258 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4260 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
4261 and fix a case when line_start overflows.
4263 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4265 * util/grub-reboot.in (usage): Mention id posibility.
4266 * util/grub-set-default.in (usage): Likewise.
4268 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4270 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
4271 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
4272 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
4273 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
4274 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
4275 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
4276 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
4278 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4280 * grub-core/commands/menuentry.c (options): Remove
4281 GRUB_ARG_OPTION_REPEATABLE.
4282 Reported by: Andreas Vogel
4284 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
4286 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
4288 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
4290 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
4293 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4295 Use sort -V by the idea of Georgi Georgiev.
4297 * util/grub-mkconfig_lib.in (version_sort): New function.
4298 (version_test_numeric): Use version_sort.
4300 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4302 Use submenus in grub-mkconfig.
4304 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
4305 * util/grub-mkconfig_lib.in (grub_quote): New function.
4306 (gettext_printf): Use gettext and not gettext_quoted to fix several
4308 * util/grub.d/10_hurd.in: Use submenus.
4309 * util/grub.d/10_kfreebsd.in: Likewise.
4310 * util/grub.d/10_linux.in: Likewise.
4311 * util/grub.d/10_netbsd.in: Likewise.
4312 * util/grub.d/20_linux_xen.in: Likewise.
4313 * util/grub.d/30_os-prober.in: Likewise.
4314 * util/grub.d/10_illumos.in: Add missing quoting.
4315 * util/grub.d/10_windows.in: Likewise.
4317 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4319 Fix menu title instability bug.
4321 * grub-core/commands/menuentry.c (options): New option --id.
4322 (grub_normal_add_menu_entry): New argument id. All users updated.
4323 (grub_cmd_menuentry): Handle --id.
4324 (grub_menu_init): Accept unknown arguments.
4325 * grub-core/normal/main.c (features): Add feature_menuentry_id and
4326 feature_menuentry_options.
4327 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
4329 (get_entry_number): Match with id as well.
4330 * include/grub/menu.h (grub_menu_entry): New member id.
4331 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
4332 * util/grub.d/00_header.in: Define menuentry_id_option.
4333 * util/grub.d/10_hurd.in: Define id.
4334 * util/grub.d/10_illumos.in: Likewise.
4335 * util/grub.d/10_kfreebsd.in: Likewise.
4336 * util/grub.d/10_linux.in: Likewise.
4337 * util/grub.d/10_netbsd.in: Likewise.
4338 * util/grub.d/10_windows.in: Likewise.
4339 * util/grub.d/20_linux_xen.in: Likewise.
4340 * util/grub.d/30_os-prober.in: Likewise.
4342 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4344 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
4345 "scope" with "body".
4347 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4349 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
4350 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
4351 prot_size and prot_file_size.
4353 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4355 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
4356 All users updated. If easily=1 require raid-5/-6 to be full.
4357 (is_node_readable): Likewise.
4358 (scan_devices): Scan incomplete but readable LVs at the end.
4359 (grub_diskfilter_memberlist): Pull missing devices.
4360 (insert_array): Skip scanning until device is complete or scan is
4362 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
4364 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
4365 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
4367 2012-03-03 Matthew Garrett <mjg@redhat.com>
4368 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4370 Avoid EFI boot services when loading Linux.
4372 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
4373 avoid_efi_bootservices. All users updated.
4374 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
4375 argument avoid_efi_bootservices. All users updated.
4376 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
4377 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
4378 align, min_align, relocatable, prefered_address. All users updated.
4379 Allocate avoiding boot services if kernel is relocatable.
4380 (grub_cmd_linux): Check if kernel is relocatable.
4381 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
4382 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
4383 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
4384 avoid_efi_boot_services.
4385 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
4386 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
4387 (linux_kernel_params): Likewise.
4389 2012-03-03 Matthew Garrett <mjg@redhat.com>
4390 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4394 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
4396 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
4397 modes. Set gop_handle.
4398 (grub_video_gop_get_edid): New function.
4399 (grub_gop_get_preferred_mode): Likewise.
4400 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
4401 (grub_video_efi_gop_adapter): Set .get_edid.
4402 * include/grub/efi/edid.h: New file.
4403 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
4405 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4407 * util/grub-install.in: Load efivars unconditionally.
4409 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4411 * po/Rules-piglatin: Change suffix from .po-update-en to
4412 .po-update-en-piglatin.
4414 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4418 * po/piglatin.sed: New file.
4419 * po/en@piglatin.header: Likewise.
4420 * po/Rules-piglatin: Likewise.
4421 * po/README: Add en@piglatin to autogenerated languages.
4423 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4425 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
4427 * grub-core/commands/hdparm.c (options): Use "Display" rather than
4428 "Check" since we don't check anything.
4429 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
4431 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
4432 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
4433 (grub_md_sha512_real): Likewise.
4435 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4437 * grub-core/commands/gptsync.c: Fix typographic quoting.
4438 * grub-core/commands/ieee1275/suspend.c: Likewise.
4439 * grub-core/commands/parttool.c: Likewise.
4440 * grub-core/commands/search_wrap.c: Likewise.
4441 * grub-core/commands/videoinfo.c: Likewise.
4442 * grub-core/gfxmenu/gui_label.c: Likewise.
4443 * grub-core/hello/hello.c: Likewise.
4444 * grub-core/kern/emu/main.c: Likewise.
4445 * grub-core/net/net.c: Likewise.
4446 * grub-core/normal/menu.c: Likewise.
4447 * grub-core/normal/menu_text.c: Likewise.
4448 * grub-core/normal/misc.c: Likewise.
4449 * util/grub-editenv.c: Likewise.
4450 * util/grub-install.in: Likewise.
4451 * util/grub-kbdcomp.in: Likewise.
4452 * util/grub-mkconfig.in: Likewise.
4453 * util/grub-mknetdir.in: Likewise.
4454 * util/grub-mkrescue.in: Likewise.
4455 * util/grub-mkstandalone.in: Likewise.
4456 * util/grub-reboot.in: Likewise.
4457 * util/grub-set-default.in: Likewise.
4458 * util/grub-setup.c: Likewise.
4459 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4461 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4463 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
4464 * grub-core/commands/keystatus.c: Likewise.
4465 * grub-core/commands/loadenv.c: Likewise.
4466 * grub-core/commands/probe.c: Likewise.
4467 * grub-core/commands/regexp.c: Likewise.
4468 * grub-core/commands/true.c: Likewise.
4469 * grub-core/commands/videoinfo.c: Likewise.
4470 * grub-core/disk/cryptodisk.c: Likewise.
4471 * grub-core/disk/ldm.c: Likewise.
4472 * grub-core/disk/loopback.c: Likewise.
4473 * grub-core/disk/luks.c: Likewise.
4474 * grub-core/fs/zfs/zfsinfo.c: Likewise.
4475 * grub-core/kern/disk.c: Likewise.
4476 * grub-core/kern/emu/hostdisk.c: Likewise.
4478 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4480 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
4481 * util/grub-install.in: Add missing quote in the comment.
4483 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4485 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
4486 * grub-core/commands/lsmmap.c: Likewise.
4487 * grub-core/commands/minicmd.c: Likewise.
4488 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
4489 * grub-core/commands/regexp.c: Likewise.
4490 * grub-core/gdb/gdb.c: Likewise.
4491 * grub-core/term/gfxterm.c: Likewise.
4492 * util/grub-mkconfig.in: Likewise.
4493 * util/grub-mkfont.c: Likewise.
4494 * util/grub-mklayout.c: Likewise.
4495 * util/grub-mknetdir.in: Likewise.
4496 * util/grub-mkrescue.in: Likewise.
4497 * util/grub.d/30_os-prober.in: Likewise.
4499 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4501 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
4502 with "Direct color" and "Packed" with "Packed pixel".
4503 (grub_cmd_videoinfo): Simplify legend.
4505 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4507 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
4508 absolutely unclear error message.
4510 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4512 * util/grub-mkstandalone.in: Remove confusing leftover print.
4514 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4516 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
4518 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
4519 (GRUB_MOD_INIT): Likewise.
4520 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
4522 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
4524 * util/grub-install.in (usage): Likewise.
4525 Spell ID in whole letters.
4526 Add missing ending dot.
4528 * util/grub-reboot.in: Fix capitalisation.
4529 * util/grub-set-default.in: Likewise.
4531 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4533 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
4534 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
4535 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
4536 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
4537 Disable -Werror for -Wdeprecated-declarations.
4538 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
4539 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
4540 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
4541 (grub_util_get_grub_dev): Make luks handling dependent on
4542 HAVE_DEVICE_MAPPER and not __linux__.
4543 (get_win32_path): Fix format security.
4544 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
4545 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
4546 Don't try grub_find_zpool_from_dir.
4547 (grub_make_system_path_relative_to_its_root) [!__linux__]:
4548 #ifdef-out paresdir.
4550 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4552 * util/grub-pe2elf.c (usage): Add missing noreturn.
4553 (write_section_data): Rename name to shname to avoid shadowing.
4554 (write_symbol_table): Rename name to symname to avoid shadowing.
4555 Fix write_reloc_section call.
4557 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4559 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
4560 to ensure that it's after the last byte of .text.
4562 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4564 * util/ieee1275/ofpath.c (my_isdigit): New function.
4565 (trailing_digits): Use my_isdigit.
4566 (strip_trailing_digits): Likewise.
4568 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4570 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
4571 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
4573 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4575 * grub-core/kern/i386/pc/startup.S: Define __start.
4577 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4579 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
4580 strip already transforms he format.
4582 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4584 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
4586 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4588 * util/grub-install.in: Add missing gettext init.
4589 * util/grub-kbdcomp.in: Likewise.
4590 * util/grub-mkconfig.in: Likewise.
4591 * util/grub-mknetdir.in: Likewise.
4592 * util/grub-mkrescue.in: Likewise.
4593 * util/grub-mkstandalone.in: Likewise.
4594 * util/grub-reboot.in: Likewise.
4595 * util/grub-set-default.in: Likewise.
4596 * util/grub.d/00_header.in: Likewise.
4597 * util/grub.d/10_hurd.in: Likewise.
4598 * util/grub.d/10_windows.in: Likewise.
4599 * util/grub.d/30_os-prober.in: Likewise.
4600 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4602 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4604 * po/Rules-swiss: Fix header comment.
4606 2012-02-29 Andreas Vogel <anvoit>
4608 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
4609 resulted in leak of arguments.
4611 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4613 * grub-core/boot/i386/pc/startup_raw.S: Use separate
4614 reed_solomon_size const definition instead of computing it since
4615 Apple assembler doesn't support the later.
4617 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4619 * gentpl.py (kernel): Rewrite Apple part.
4621 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4623 * include/grub/kernel.h (FOR_MODULES): Check module magic.
4625 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4627 * util/grub-mkimagexx.c (locate_sections): Support non-standard
4629 (load_image): Likewise.
4631 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4633 * configure.ac: Fix a typo in previous commit.
4635 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4637 Don't add -Wl,-N on Apple platform.
4639 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
4640 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
4642 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4644 * grub-core/Makefile.core.def (lzma_decompress): Use
4645 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
4647 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4649 * grub-core/genmod.sh.in: Rewrite the Apple part.
4651 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4653 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
4656 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4658 * acinclude.m4 (grub_CHECK_PIC): New test.
4659 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
4661 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4663 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
4664 to avoid the warning.
4666 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4668 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
4669 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
4670 after. All users updated.
4672 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4674 Use the common size routine in hostfs so we can read disks as well.
4676 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
4677 (grub_util_get_fd_size): ... this. Return size in bytes.
4679 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
4680 grub_util_get_fd_size.
4682 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4684 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
4685 Add blocksize retrieval.
4687 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4689 * configure.ac: Restore CFLAGS after efiemu check.
4691 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4693 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
4696 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4698 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
4700 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4702 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
4703 (grub_cmd_halt): Likewise.
4705 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4707 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
4708 for local arithmetics.
4709 Break %sp init into 2 instructions.
4710 Add 0 byte at the end.
4712 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4714 * grub-core/disk/diskfilter.c (read_segment): Initialise err
4717 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4719 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
4722 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4724 * grub-core/disk/ldm.c (make_vg): Init part.name.
4725 (grub_ldm_detect): Silence spurious warning.
4726 (grub_util_is_ldm): Likewise.
4728 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4730 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
4731 sane value to avoid a spurious warning.
4733 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4735 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
4736 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
4738 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4740 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
4741 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
4743 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4745 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
4746 hardcoding the relevant info.
4748 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4750 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
4751 missing const qualifiers.
4752 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
4754 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4756 * util/getroot.c [__APPLE__]: Add missing includes.
4757 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
4759 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4761 * util/grub-mkimage.c (generate_image): Silence spurious warning.
4763 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4765 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
4768 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4770 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
4772 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4774 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
4775 and grub_file_close call.
4777 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4779 Add LZSS Mach-O support (needed for new xnu kernelcache).
4781 * grub-core/Makefile.core.def (xnu): Add file lzss.c
4782 * grub-core/loader/lzss.c: New file.
4783 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
4784 on Mach-O open failure.
4785 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
4786 Don't free cmdsXX in uncompressedXX is set.
4787 (grub_macho_file): Init new fields.
4788 New argument is_64bit. All users updated.
4789 Handle compressed. Error out if no suitable architecture is found.
4791 (grub_macho_open): New argument is_64bit. All users updated.
4792 * grub-core/loader/macho32.c: Add defines for new fields.
4793 * grub-core/loader/macho64.c: Likewise.
4794 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
4795 (grub_macho_parse): Handle compressed.
4796 Defer actual processing if compressed.
4797 (grub_macho_cmds_iterate): Decompress if compressed. New argument
4798 "filename". All users updated.
4799 (grub_macho_size): New argument "filename". All users updated.
4800 (grub_macho_get_entry_point): Likewise.
4801 (grub_macho_load): Handle compressed.
4802 * include/grub/macho.h (grub_macho_lzss_header): New struct.
4803 (GRUB_MACHO_LZSS_OFFSET): New define.
4804 (grub_decompress_lzss): New proto.
4805 * include/grub/machoload.h (grub_macho_file): New fields to handle
4807 (grub_macho_contains_macho64): Remove proto.
4808 (grub_macho_contains_macho32): Likewise.
4809 * util/grub.d/30_os-prober.in: Use kernel cache if available.
4811 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4813 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
4815 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4819 * Makefile.am (starfield_theme_files): New var.
4820 (starfield_DATA): Use starfield_theme_files.
4821 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
4822 Add bootcheck-related files.
4823 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
4824 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
4825 and font_char_metrics.txt.
4826 * grub-core/Makefile.core.def (kernel): Update extra_dist.
4827 (setjmp): Add lib/ia64/longjmp.S.
4828 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
4829 * po/POTFILES.in: Regenerate.
4830 * po/Rules-swiss: use DISTFILES.common.extra2 and not
4831 DISTFILES.common.extra1.
4832 * util/devicemap.c: Removed.
4833 * grub-core/lib/i386/relocator_backward.S: Likewise.
4834 * util/import_gcry.py: Remove unused files. Add extra_dist for
4837 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4839 * grub-core/gettext/gettext.c (grub_mofile_open): Call
4840 grub_gettext_delete_list before changing grub_gettext_max to avoid
4841 running out of array bounds.
4843 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4845 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
4846 grub_vga_text_init/grub_vga_text_fini.
4848 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4850 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
4852 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4854 * configure.ac: Bump to 2.00~beta0.
4856 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4858 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
4859 missing initialisation.
4861 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4863 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
4865 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4867 Support v2 xnu boot arguments.
4869 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
4870 New argument fsbfreq_out.
4871 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
4872 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
4874 * grub-core/loader/machoXX.c (grub_macho_load): New argument
4876 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
4877 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
4878 (grub_xnu_boot_params): Rename to ...
4879 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
4880 (grub_xnu_boot_params_v2): New struct.
4882 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4884 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
4885 zeroing of CRC field before computing CRC.
4887 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4889 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
4890 Change order of allocations to decrease fragmentation.
4892 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4894 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
4896 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
4898 Use write-combining MTRR to speed up video with buggy BIOSes.
4900 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
4901 (cpuid): New define.
4904 (mtrr_base): Likewise.
4905 (mtrr_mask): Likewise.
4906 (grub_vbe_enable_mtrr_entry): New function.
4907 (grub_vbe_enable_mtrr): Likewise.
4908 (grub_vbe_disable_mtrr): Likewise.
4909 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
4910 control off to BIOS.
4911 (grub_video_vbe_init): Fill mtrr.
4912 (grub_video_vbe_fini): Disable mtrr.
4913 (grub_video_vbe_get_info_and_fini): Likewise.
4914 (grub_video_vbe_setup): Enable mtrr.
4916 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
4918 * include/grub/partition.h (grub_partition_map): Change prototype of
4919 embed to take a maximum value for nsectors.
4920 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
4921 * include/grub/fs.h (grub_fs): Likewise.
4922 * grub-core/partmap/msdos.c (embed_signatures): New array.
4923 (pc_partition_map_embed): Check for and avoid sectors matching any
4924 of the signatures in embed_signatures, up to max_nsectors.
4925 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
4926 returned sector map to max_nsectors.
4927 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
4928 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
4929 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
4930 * util/grub-setup.c (setup): Allow for the embedding area being
4931 split into multiple blocklists. Tell dest_partmap->embed the
4932 maximum number of sectors we care about.
4934 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4936 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
4937 Specify blocklist_install and reserver_first_sector for all fs.
4938 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
4941 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4943 * util/grub-install.in: Clarify strings.
4944 Fix source dir check.
4946 2012-02-27 Richard Laager <rlaager@wiktel.com>
4948 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
4949 "zfs" and "fuse.zfs" as synonyms.
4951 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4953 * configure.ac: Put platform and target_cpu substitutions back since
4954 they are used for directories.
4956 2012-02-27 Richard Laager <rlaager@wiktel.com>
4957 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4959 * util/grub.d/10_linux.in: Add ZFS-related arguments.
4960 * util/grub.d/20_linux_xen.in: Likewise.
4962 2012-02-27 Richard Laager <rlaager@wiktel.com>
4964 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
4967 2012-02-27 Richard Laager <rlaager@wiktel.com>
4969 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
4972 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4974 Don't use insecure popen in getroot.
4976 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
4977 (exec_pipe): ... here.
4978 (find_root_devices_from_poolname): Use exec_pipe.
4980 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4982 Remove platform and target_cpu replacement.
4984 * configure.ac: Remove platform and target_cpu substitutions.
4985 * tests/util/grub-shell.in: Use modinfo.
4986 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
4989 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4991 Autodetect platform in grub-install but allow override.
4993 * util/grub-install.in: Autodetect platform. Support --target and
4994 --directory. Read platform from modinfo.sh.
4996 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4998 Support btrfs multi-volume probe.
5000 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
5001 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
5002 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
5003 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
5004 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
5005 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
5006 grub_find_root_devices_from_btrfs if on btrfs.
5008 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5010 Remove any awareness of *.c util files about target.
5012 * Makefile.util.def (grub-setup): Split to ...
5013 (grub-bios-setup): ... and this.
5014 (grub-sparc64-setup): ... and this.
5015 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
5016 * docs/man/grub-setup.h2m: Split into ...
5017 * docs/man/grub-sparc64-setup.h2m: ... this.
5018 * docs/man/grub-bios-setup.h2m: ... and this.
5019 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
5020 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
5021 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
5022 (grub_target_addr_t): Remove.
5023 (grub_target_size_t): Remove.
5024 (grub_target_ssize_t): Remove.
5025 * util/grub-install.in: Use new grub-*-setup.
5026 * util/grub-mkimagexx.c (Elf_Word): New define.
5027 (Elf_Half): Likewise.
5028 (Elf_Section): Likewise.
5029 (ELF_ST_TYPE): Likewise.
5030 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
5031 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
5033 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5035 Replace grub_target_addr with more appropriate types.
5037 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
5038 grub_target_addr with grub_addr.
5039 * grub-core/commands/iorw.c (grub_cmd_read): Replace
5040 grub_target_addr with grub_port.
5041 (grub_cmd_write): Likewise.
5042 * grub-core/commands/memrw.c (grub_cmd_read): Replace
5043 grub_target_addr with grub_addr.
5044 (grub_cmd_write): Likewise.
5045 * grub-core/video/efi_uga.c (find_line_len): Likewise.
5047 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5049 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
5050 const qualifier for vendor_guid.
5052 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5054 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
5056 (efiemu_memequal): Likewise.
5057 (find_variable): Likewise.
5059 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5061 Fix missing console prototype on qemu-mips.
5063 * include/grub/mips/qemu_mips/console.h: New file.
5065 2012-02-27 Matthew Garrett <mjg@redhat.com>
5066 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5068 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
5069 * include/grub/efi/efi.h: Likewise.
5070 * include/grub/efi/api.h: Add guid for EFI-specified variables.
5071 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
5072 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
5073 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
5074 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
5075 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
5077 2012-02-27 Matthew Garrett <mjg@redhat.com>
5079 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
5081 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5083 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
5086 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5088 * configure.ac: Remove inappropriate use of program_transform_name
5089 on grubdir and bootdir but allow explicit specification of those
5092 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5094 * util/grub-mknetdir.in (grub_prefix): Removed.
5095 (subdir): Use @bootdirname@ and @grubdirname@.
5097 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5099 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
5101 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5103 * po/POTFILES.in: Regenerated.
5105 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5107 Remove improper use of program_transform_name on pkglibrootdir.
5109 * configure.ac (pkglibrootdir): Removed.
5110 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
5111 * util/grub-mkimage.c: Likewise.
5113 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5115 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
5118 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5120 * util/grub-install.in: Use file identifier if no UUID is available
5121 or user explicitly prompted for it.
5123 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
5125 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
5126 (freebsd_get_zfs): New function.
5127 (grub_freebsd_boot): Pass zfs UUID.
5128 (grub_cmd_freebsd): Set zfs UUID.
5130 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5132 * conf/Makefile.common (platformdir): Base on pkglibdir and not
5135 2012-02-27 Mike Gilbert <floppym@gentoo.org>
5137 Add configure flag to control libzfs integration.
5139 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
5141 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5143 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
5145 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
5148 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5150 Remove grub_{modname}_init and grub_{modname}_fini. They should never
5151 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
5152 be used on non-modules.
5154 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
5155 Rename to grub_boot_init.
5156 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
5157 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
5158 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
5159 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
5160 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
5161 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
5162 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
5163 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
5165 (grub_machine_init): Remove empty inits.
5166 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
5168 (grub_machine_init): Remove empty inits.
5169 * grub-core/term/arc/console.c: Remove explicit proto.
5170 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
5171 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
5172 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5173 grub_at_keyboard_fini.
5174 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
5175 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
5176 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5178 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
5179 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
5180 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5182 * grub-core/term/ieee1275/console.c: Remove explicit proto.
5183 * grub-core/term/serial.c (GRUB_MOD_INIT)
5184 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
5185 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5187 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
5188 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
5189 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5191 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
5192 (GRUB_MOD_FINI): Likewise.
5193 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
5194 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
5195 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5196 grub_video_radeon_fuloong2e_fini.
5197 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
5198 [LOONGSON]: Rename to grub_video_sis315pro_init.
5199 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5200 grub_video_sis315pro_fini.
5201 * grub-core/video/sm712.c (GRUB_MOD_INIT)
5202 [LOONGSON]: Rename to grub_video_sm712_init.
5203 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5204 grub_video_sm712_fini.
5205 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
5206 (grub_at_keyboard_fini): Likewise.
5207 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
5208 Don't declare grub_{modname}_init.
5209 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
5210 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
5212 (grub_keylayouts_fini) [!EMU]: Likewise.
5213 * include/grub/serial.h (grub_serial_init) [!EMU]:
5215 (grub_serial_fini) [!EMU]: Likewise.
5216 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
5218 (grub_terminfo_fini) [!EMU]: Likewise.
5219 * include/grub/video.h (grub_font_init) [!EMU]:
5221 (grub_font_fini) [!EMU]: Likewise.
5222 (grub_gfxterm_init) [!EMU]: Likewise.
5223 (grub_gfxterm_fini) [!EMU]: Likewise.
5224 (grub_video_sm712_init) [!EMU]: Likewise.
5225 (grub_video_sm712_fini) [!EMU]: Likewise.
5226 (grub_video_sis315pro_init) [!EMU]: Likewise.
5227 (grub_video_sis315pro_fini) [!EMU]: Likewise.
5228 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
5229 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
5231 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5233 Make nand a prefix for nand devices.
5235 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
5237 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5239 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
5240 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
5242 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5244 * include/grub/env.h (grub_env_find): Remove prototype.
5245 * grub-core/kern/env.c (grub_env_find): Make static.
5246 (grub_env_set): Remove useless set.
5248 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5250 * grub-core/kern/i386/realmode.S: Remove useless align.
5252 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5254 * include/grub/dl.h (grub_dl_load_file): Don't export.
5256 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5258 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
5261 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5263 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
5265 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
5266 not reloading whole superblock but only the part which is really needed.
5267 Remove useless grub_errors.
5268 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
5271 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5273 Don't export grub_get_rtc.
5275 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
5276 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
5278 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5280 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
5282 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5284 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
5285 argument since it can be deduced from diskfilter. All users updated.
5287 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5291 * include/grub/list.h (grub_prio_list): Removed.
5292 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
5293 GRUB_COMMAND_PRIO_MASK.
5294 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
5295 GRUB_COMMAND_FLAG_ACTIVE.
5296 (grub_prio_list_insert): Removed.
5297 (grub_prio_list_remove): Likewise.
5298 (GRUB_AS_PRIO_LIST): Likewise.
5299 (GRUB_AS_PRIO_LIST_P): Likewise.
5300 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
5301 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
5302 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
5303 * grub-core/kern/command.c (grub_register_command_prio): Inline
5305 (grub_unregister_command): Likewise.
5307 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5309 Fix interrupt mixup from previous commit.
5311 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
5312 (grub_realidt): New var.
5313 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
5315 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
5317 (grub_relocator16_boot): Set grub_relocator16_idt.
5318 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
5319 (LOCAL(realidt)): ... this.
5320 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
5321 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
5322 (grub_realidt): New variable.
5324 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5326 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
5327 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
5328 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
5329 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
5331 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
5332 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
5333 * po/POTFILES.in: Regenerate.
5335 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5337 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
5340 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5342 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
5344 (add_length): Likewise.
5346 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5347 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
5349 GDB serial and backtrace support.
5351 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
5352 (prot_to_real): Likewise.
5353 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
5354 * grub-core/Makefile.core.def (backtrace): New module.
5356 * grub-core/gdb/cstub.c: New file.
5357 * grub-core/gdb/gdb.c: Likewise.
5358 * grub-core/gdb/i386/idt.c: Likewise.
5359 * grub-core/gdb/i386/machdep.S: Likewise.
5360 * grub-core/gdb/i386/signal.c: Likewise.
5361 * grub-core/lib/i386/backtrace.c: Likewise.
5362 * grub-core/lib/backtrace.c: Likewise.
5363 * include/grub/backtrace.h: Likewise.
5364 * include/grub/gdb.h: Likewise.
5365 * include/grub/i386/gdb.h: Likewise.
5367 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5369 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
5371 (add_length): Likewise.
5372 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
5373 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
5375 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
5376 __argp_get_display_len.
5378 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5380 $"..." support in scripts.
5382 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
5383 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
5384 * grub-core/script/yylex.l: Likewise.
5385 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
5388 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5390 * gentpl.py: Remove obsolete pkglib_DATA handling.
5392 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5394 Don't transform PACKAGE_TARNAME following a discussion on autoconf
5397 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
5398 * util/grub-kbdcomp.in: Likewise.
5399 * util/grub-mkconfig.in: Likewise.
5400 * util/grub-mkconfig_lib.in: Likewise.
5401 * util/grub-mknetdir.in: Likewise.
5402 * util/grub-mkrescue.in: Likewise.
5403 * util/grub-mkstandalone.in: Likewise.
5404 * util/grub-reboot.in: Likewise.
5405 * util/grub-set-default.in: Likewise.
5406 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5408 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5412 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
5413 * util/grub.d/00_header.in: Compute prefix in the only place it's still
5414 used for backward compatibility.
5416 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5418 Add new all_video module.
5420 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
5421 * grub-core/Makefile.core.def (all_video): New module.
5422 * grub-core/genmoddep.awk: Generate dependency of all_video from
5424 * grub-core/lib/fake_module.c: New file.
5425 * grub-core/normal/main.c (features): Add feature_all_video_module.
5426 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
5427 don't do explicit search again.
5428 insmod all_video in load_video if available.
5430 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5432 Another round of string clarification and adding TRANSLATORS comments.
5434 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5436 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
5438 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5440 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
5442 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
5443 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
5445 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5447 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
5448 trailing newline implicitly. All users updated.
5450 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5452 Implement serial on IEEE1275 and EFI.
5454 * docs/grub.texi (Platform-specific limitations): Fix the columen video
5455 on emu. Mention arc and emu as the only platforms without serial
5457 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
5459 * grub-core/term/efi/serial.c: New file.
5460 * grub-core/term/ieee1275/serial.c: Likewise.
5461 * grub-core/term/serial.c (grub_serial_find): Disable direct port
5462 specification if no ns8250 driver is available.
5463 (grub_cmd_serial): Likewise.
5464 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
5465 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
5466 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
5467 (grub_efi_parity_type_t): New type.
5468 (grub_efi_stop_bits_t): Likewise.
5469 (grub_efi_serial_io_interface): New struct.
5470 * include/grub/serial.h (grub_serial_port): Make 'broken' field
5471 available for all interfaces.
5472 Add EFI and IEEE1275 fields.
5473 (grub_ofserial_init): New proto.
5474 (grub_efiserial_init): Likeiwse.
5475 * util/grub.d/00_header.in: Don't check for the presence of serial
5478 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5480 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
5481 name as if it was an alias.
5483 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
5485 * grub-core/commands/lsacpi.c (options): Fix typo.
5487 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
5489 Convert grub-emu to argp.
5491 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
5493 * util/argp_common.c: Rename to ...
5494 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
5495 Add missing includes.
5496 * grub-core/kern/emu/main.c: Convert to argp.
5497 * po/POTFILES.in: Regenerate.
5498 * util/grub-install.in (usage): Make first letter lowcase in messages
5500 * util/grub-setup.c (options): Likewise.
5502 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5504 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
5505 Put back accidently commented-out code.
5507 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5509 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
5510 loop check using Brent algorithm.
5511 (grub_hfsplus_btree_search): Likewise.
5513 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5515 * util/grub-install.in: Fix usage of wrong device for PreP install.
5517 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5519 * conf/Makefile.common (CFLAGS_GNULIB): Add
5520 -Wno-unsafe-loop-optimizations.
5521 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
5523 * grub-core/commands/legacycfg.c: Add pragma to skip
5524 -Wunsafe-loop-optimizations.
5525 (check_password_md5_real): Fix loop counter type.
5526 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
5528 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
5529 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
5531 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
5532 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
5533 * grub-core/net/net.c (grub_net_route_address): Add safety loop
5535 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
5536 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
5537 avoid possible infinite loops.
5538 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
5539 and -Wunsafe-loop-optimizations.
5540 * grub-core/script/yylex.l: Likewise.
5541 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
5542 (print_glyphs): Avoid infinite loops.
5543 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
5545 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
5547 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
5548 to avoid infinite loop.
5549 (disp_acpi_rsdt_table): Likewise.
5551 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5553 * grub-core/font/font.c (grub_font_load): Add support for default
5554 path for fonts ($prefix/fonts).
5555 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
5556 for checking if string is a path.
5557 * grub-core/normal/main.c (features): Add feature_default_font_path.
5558 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
5559 * util/grub.d/00_header.in: Use default directory if possible.
5560 * util/grub-install.in: Install unicode.pf2.
5562 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5564 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
5565 * po/Rules-swiss: New file.
5566 * po/swiss.sed: Likewise.
5568 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
5570 * grub-core/fs/btrfs.c (find_device): Fix typos.
5571 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
5572 * util/grub-mkrelpath.c (argp_parser): Likewise.
5573 Reported by: Yuri Chornoivan.
5575 2012-02-23 Dalet Omega <daletomega@gmail.com>
5577 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
5578 for usual informative messages.
5580 2012-02-23 Dalet Omega <daletomega@gmail.com>
5584 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
5585 * conf/Makefile.common: Define starfielddir.
5586 * configure.ac: Configure starfield.
5587 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
5588 * themes/starfield/README: Likewise.
5589 * themes/starfield/blob_w.png: Likewise.
5590 * themes/starfield/boot_menu_c.png: Likewise.
5591 * themes/starfield/boot_menu_e.png: Likewise.
5592 * themes/starfield/boot_menu_n.png: Likewise.
5593 * themes/starfield/boot_menu_ne.png: Likewise.
5594 * themes/starfield/boot_menu_nw.png: Likewise.
5595 * themes/starfield/boot_menu_s.png: Likewise.
5596 * themes/starfield/boot_menu_se.png: Likewise.
5597 * themes/starfield/boot_menu_sw.png: Likewise.
5598 * themes/starfield/boot_menu_w.png: Likewise.
5599 * themes/starfield/slider_c.png: Likewise.
5600 * themes/starfield/slider_n.png: Likewise.
5601 * themes/starfield/slider_s.png: Likewise.
5602 * themes/starfield/src/blob_nw.xcf: Likewise.
5603 * themes/starfield/src/bootmenu/: Likewise.
5604 * themes/starfield/src/bootmenu/center.xcf: Likewise.
5605 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
5606 * themes/starfield/src/bootmenu/side.xcf: Likewise.
5607 * themes/starfield/src/slider_c.xcf: Likewise.
5608 * themes/starfield/src/slider_n.xcf: Likewise.
5609 * themes/starfield/src/slider_s.xcf: Likewise.
5610 * themes/starfield/src/terminalbox/: Likewise.
5611 * themes/starfield/src/terminalbox/center.xcf: Likewise.
5612 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
5613 * themes/starfield/src/terminalbox/side.xcf: Likewise.
5614 * themes/starfield/starfield.png: Likewise.
5615 * themes/starfield/terminal_box_c.png: Likewise.
5616 * themes/starfield/terminal_box_e.png: Likewise.
5617 * themes/starfield/terminal_box_n.png: Likewise.
5618 * themes/starfield/terminal_box_ne.png: Likewise.
5619 * themes/starfield/terminal_box_nw.png: Likewise.
5620 * themes/starfield/terminal_box_s.png: Likewise.
5621 * themes/starfield/terminal_box_se.png: Likewise.
5622 * themes/starfield/terminal_box_sw.png: Likewise.
5623 * themes/starfield/terminal_box_w.png: Likewise.
5624 * themes/starfield/theme.txt: Likewise.
5626 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
5628 * util/grub.d/00_header.in: Add missing export theme.
5630 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5632 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
5634 Reported by: Eren D.
5636 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5638 * conf/Makefile.common (grubdatadir): Removed.
5639 (Makefile.am): Move eveything grubdata to pkgdata.
5641 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5643 * grub-core/commands/acpihalt.c (get_sleep_type):
5644 Remove unused variable.
5646 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5648 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
5649 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
5650 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
5651 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
5652 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
5653 i18n with gettext no-op.
5654 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
5655 GRUB_ACPI_OPCODE_STRING_CONST.
5656 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
5657 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
5659 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5661 * po/POTFILES.in: Regenerate.
5663 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5665 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
5666 -Wno-error=missing-noreturn.
5668 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5670 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
5671 condition to avoid possibly infinite loops.
5672 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
5673 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
5675 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5677 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
5678 condition to avoid possibly infinite loops.
5680 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5682 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
5685 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5687 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
5689 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5691 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
5693 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5695 * util/bin2h.c (usage): Add missing attribute noreturn.
5697 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5699 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
5700 if the size isn't divisible by 512.
5702 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5704 Make list_push and list_remove functions rather than inline functions
5705 to decrease size and avoid aliasing violations.
5707 * include/grub/list.h (grub_list_push): Move to ...
5708 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
5709 * include/grub/list.h (grub_list_remove): Move to ...
5710 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
5712 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5714 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
5715 and -Wunused-result.
5717 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
5719 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
5720 Reported by: Seth Goldberg
5722 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
5724 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
5726 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
5728 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
5729 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
5731 * docs/grub.texi (Simple configuration): Document
5732 GRUB_CMDLINE_GNUMACH.
5734 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5736 * conf/Makefile.common (platform_SCRIPTS): New variable.
5737 (platform_PROGRAMS): Likewise.
5738 * gentpl.py: Mark *,module and *.image for install.
5739 * grub-core/gdb_grub.in: Add a notice of expected environment.
5740 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
5741 (gmodule.pl): Likewise.
5743 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5745 Replace grub_checkkey with grub_getkey_noblock.
5747 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
5748 (grub_getkey_noblock): ... this. All users updated.
5750 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5752 * grub-core/kern/emu/console.c: Move to ...
5753 * grub-core/term/emu/console.c: ...here.
5754 (grub_ncurses_getkey): Fix return value if no key is detected.
5756 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5758 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
5759 (grub_unit_test_fini): Likewise.
5760 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
5762 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5764 * include/grub/test.h (GRUB_UNIT_TEST)
5766 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5768 * grub-core/script/execute.c (grub_script_break): Clarify logic.
5769 Better error handling.
5770 (grub_script_return): Likewise.
5771 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
5773 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5775 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
5776 rimplicit redifinition.
5778 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5780 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
5783 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5785 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
5786 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
5789 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5791 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
5792 as GRUB_ERR_BUG. Don't malloc if no device is available.
5794 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5796 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
5797 Mark calling with invalid term as GRUB_ERR_BUG.
5799 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5801 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
5802 packets rather than raising an error.
5804 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5806 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
5809 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5811 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
5812 diagnostic to dprintf.
5813 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
5815 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5817 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
5820 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5822 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
5823 (grub_ntfs_iterate_dir): Likewise.
5825 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5827 Efiemu stylistic fixes and gettext.
5829 * grub-core/efiemu/i386/loadcore32.c
5830 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
5831 * grub-core/efiemu/i386/loadcore64.c
5832 (grub_arch_efiemu_relocate_symbols64): Likewise.
5833 * grub-core/efiemu/i386/pc/cfgtables.c
5834 (grub_machine_efiemu_init_tables): Likewise.
5835 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
5836 (grub_efiemu_loadcore_initXX): Add a filename argument.
5838 Improved error message.
5839 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
5840 Add a filename argument.
5842 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
5843 Reclassify double relocation as GRUB_ERR_BUG.
5845 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5847 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
5850 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5852 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
5855 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5857 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
5859 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5861 Improve string. Gettextize.
5863 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5865 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
5867 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
5869 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5871 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
5872 [GRUB_UTIL]: New function.
5873 (insert_array) [GRUB_UTIL]: Store partmaps.
5874 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
5876 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
5877 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
5878 (probe_abstraction): Print diskfilter and not raid.
5879 Reported by: Lennart Sorensen
5881 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5883 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
5884 * util/grub-mkimagexx.c (MASK3): New define.
5885 (add_value_to_slot_20b): Use MASK3.
5886 (add_value_to_slot_21): Likewise.
5887 (relocate_addresses): Fix format specification.
5888 (load_image): Explicitly init symtab_section.
5890 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5892 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
5893 (grub_util_biosdisk_get_grub_dev): Fix format specification.
5895 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5897 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
5899 Reported by: Lennart Sorensen
5901 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5903 * gentpl.py: Add missing license header.
5904 * docs/grub.texi: Update copyright year.
5906 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
5908 Source grub-mkconfig_lib from the build directory at build time.
5909 Suggested by: Vladimir Serbinenko.
5911 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
5912 * util/grub-install.in: Define pkgdatadir if not already set, and source
5913 grub-mkconfig_lib from there.
5914 * util/grub-kbdcomp.in: Likewise.
5915 * util/grub-mkconfig.in: Likewise.
5916 * util/grub-mknetdir.in: Likewise.
5917 * util/grub-mkrescue.in: Likewise.
5918 * util/grub-mkstandalone.in: Likewise.
5919 * util/grub-reboot.in: Likewise.
5920 * util/grub-set-default.in: Likewise.
5921 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5923 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5925 Increase warning level.
5927 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
5928 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
5929 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
5930 (TARGET_CFLAGS): Likewise.
5931 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
5932 * grub-core/Makefile.core.def (decompressor_xz): Add
5933 -Wno-unreachable-code.
5934 (normal): Add -Wno-redundant-decls.
5935 (xzio): Add -Wno-unreachable-code.
5936 (lzopio): Add -Wno-redundant-decls -Wno-error.
5937 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
5938 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
5939 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
5940 * grub-core/kern/dl.c: Add exception to -Wcast-align.
5941 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
5942 * grub-core/kern/i386/coreboot/init.c: Add exception to
5943 -Wsuggest-attribute=noreturn.
5944 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
5945 * grub-core/kern/ia64/dl_helper.c: Likewise.
5946 * grub-core/kern/mips/dl.c: Likewise.
5947 * grub-core/kern/sparc64/dl.c: Likewise.
5948 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
5949 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
5951 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
5952 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
5953 * grub-core/loader/mips/linux.c: Likewise.
5954 * grub-core/loader/multiboot_elfxx.c: Likewise.
5955 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
5956 * grub-core/video/sm712.c: Add exception to -Wcast-align.
5957 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
5958 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
5960 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
5961 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
5964 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5966 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
5969 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5971 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
5972 Avoid improper use of strings.
5973 (grub_cmd_legacy_initrdnounzip): Likewise.
5975 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5977 * include/grub/emu/misc.h (grub_util_warn): Add missing format
5979 (grub_util_info): Likewise.
5980 (grub_util_error): Likewise.
5982 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5984 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
5985 * util/grub-fstest.c (fstest): Likewise.
5987 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5989 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
5990 (grub_md_sha512_real): Likewise.
5991 (grub_util_get_geli_uuid): Likewise.
5992 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
5993 (grub_util_biosdisk_open): Fix format specification.
5994 Respect format security.
5995 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
5996 (xrealloc): Likewise.
5997 (xasprintf): Likewise.
5999 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6001 * util/import_gcry.py: Include grub/crypto.h in init.c.
6003 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6005 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
6006 (generate_image): Make prefix a const char *.
6007 Fix format specifications. Respect format security.
6008 Avoid void * arithmetics.
6010 (argp_parser): Remove unused variable. Respect format security.
6011 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
6012 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
6013 (count_funcs): Remove unused variable.
6014 (relocate_addresses): Fix format specification.
6015 Disable x86-64 with elf32. Remove unused variables.
6016 (add_fixup_entry): Avoid shadowing.
6017 (make_reloc_section): Fix format specification.
6019 (locate_sections): Fix format specifications.
6020 (load_image): Avoid shadowing.
6022 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6024 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
6025 Fix format specifications. Respect format security.
6026 Don't translate already translated grub_errmsg.
6027 (argp_parser): Remove unused variable
6029 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6031 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
6033 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6035 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
6036 (main): Likewise. Use xmalloc. Respect format security.
6038 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6040 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
6042 (argp_parser): Remove unused variable.
6044 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6046 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
6047 (add_pixel): Make static.
6048 (add_font): Likewise.
6049 (write_string_section): Make name and str a const char *.
6050 (write_be16_section): Make name a const char *.
6051 (print_glyphs): Make static.
6052 (write_font_ascii_bitmap): Likewise.
6053 (write_font_width_spec): Likewise.
6054 (write_font_pf2): Likewise.
6055 (argp_parser): Remove unused variable.
6056 Respect format security.
6057 (main): Avoid shadowing. Respect format security.
6059 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6061 * util/grub-editenv.c (argp_parser): Make static.
6062 (create_envblk_file): Use xmalloc.
6063 (open_envblk_file): Likewise.
6064 Resepect format security.
6065 (set_variables): Respect format security.
6067 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6069 * util/getroot.c (grub_find_device): Respect format security.
6070 (get_mdadm_uuid): Remove unused variable.
6071 (grub_util_pull_device): Dont call gettext on already translated
6073 (find_system_device): Remove unused variable.
6074 (grub_util_get_grub_dev): Likewise.
6075 (grub_make_system_path_relative_to_its_root): Respect format security.
6077 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6079 * util/grub-fstest.c (execute_command): Make first argument
6081 (read_file): Avoid shadowing.
6082 Reuse underlying error message if device open fails.
6083 (cmd_cmp): Respect format security.
6084 (root): Make const char *.
6085 (fstest): Remove args argument and use global copy.
6086 Respect format security.
6087 (argp_parser): Make static.
6088 (main): Make default_root const char *.
6090 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6092 * util/grub-mount.c (root): Make const char *.
6093 (execute_command): Make first argument a const char *.
6094 (fuse_init): Respect format security.
6095 (argp_parser): Make static. Remove unused variable.
6096 (main): Make default_root a const char *.
6097 Respect format security.
6099 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6101 * util/grub-probe.c (probe): Don't call gettext on already translated
6103 Remove unused variables.
6104 (argp_parser): Remove unused variable.
6106 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6108 * util/grub-script-check.c (argp_parser): Remove unused variable.
6109 (main): Rename read to curread to avoid shadowing.
6111 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6113 * util/misc.c (grub_util_write_image_at): Fix format specification.
6114 (grub_util_write_image): Likewise.
6115 (grub_script_execute_argument_to_string): Removed (unused).
6116 (grub_script_execute_menuentry): Likewise.
6117 (grub_putchar): Likewise.
6119 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6121 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
6122 (FUNCTION) [GRUB_UTIL]: Likewise.
6123 (VARIABLE) [GRUB_UTIL]: Likewise.
6125 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6127 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
6128 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
6130 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6132 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
6135 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6137 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
6138 (LzmaEnc_SaveState): Removed (unused).
6139 (LzmaEnc_RestoreState): Likewise.
6140 (LzmaEnc_InitPriceTables): Made static.
6141 (LzmaEnc_Construct): Likewise.
6142 (LzmaEnc_FreeLits): Likewise.
6143 (LzmaEnc_Destruct): Likewise.
6144 (LzmaEnc_Init): Likewise.
6145 (LzmaEnc_InitPrices): Likewise.
6146 (LzmaEnc_Finish): Likewise.
6147 (LzmaEnc_PrepareForLzma2): Removed (unused).
6148 (LzmaEnc_MemPrepare): Likewise.
6149 (LzmaEnc_GetNumAvailableBytes): Likewise.
6150 (LzmaEnc_GetCurBuf): Likewise.
6151 (LzmaEnc_CodeOneMemBlock): Likewise.
6153 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6155 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
6156 (grub_util_ldm_embed): Likewise.
6158 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6160 * util/grub-editenv.c (print_var): Rename name to varname to
6162 (main): Rename index to curindex to avoid shadowing.
6163 Make filename a const char *.
6165 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6167 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
6168 to arg_getline to avoid shadowing.
6170 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6172 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
6173 disk_ to avoid shadowing.
6175 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6177 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
6178 curindex to avoid shadowing.
6180 (MatchFinder_GetNumAvailableBytes): Make static.
6182 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6184 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
6187 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6189 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
6190 argument from encrypt to do_encrypt to avoid shadowing.
6192 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6194 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
6195 incorrect nesting of #if's.
6197 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6199 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
6200 checks which are always false on some platforms.
6201 (grub_cmd_lsacpi): Likewise.
6202 * grub-core/kern/misc.c (grub_strtoul): Likewise.
6203 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
6206 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6208 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
6209 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
6211 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6213 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
6214 re_dfa_t to avoid breaking alignment invariants.
6215 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
6216 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
6218 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6220 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
6221 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
6223 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6225 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
6228 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6230 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
6231 conserve alignment invariants.
6232 (grub_ehci_ehcc_read16): Likewise.
6233 (grub_ehci_oper_read32): Likewise.
6234 (grub_ehci_oper_write32): Likewise.
6235 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
6236 Conserve alignment invariants.
6238 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6240 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
6241 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
6244 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6246 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
6247 Remove unused variable.
6249 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6251 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
6254 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6256 * include/grub/net.h: Remove double declarations.
6258 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6260 Remove "payload" command in ia64 Linux loader since I couldn't
6261 find any evidence of it being used for anything.
6262 Replace "relocate" command with an environment variable
6264 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
6266 (ia64_boot_payload): Removed.
6267 (last_payload): Likewise.
6268 (RELOCATE_OFF): Likewise.
6269 (RELOCATE_ON): Likewise.
6270 (RELOCATE_FORCE): Likewise.
6271 (relocate): Likewise.
6272 (free_pages): Don't free payloads.
6273 (grub_load_elf64): Use common error messages.
6274 Use "linux_relocate" variable.
6275 Increase the space after boot_params.
6276 (grub_cmd_payload): Removed.
6277 (grub_cmd_relocate): Likewise.
6278 (grub_cmd_fpswa): Improve messages.
6279 (cmd_payload): Removed.
6280 (cmd_relocate): Likewise.
6281 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
6282 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
6284 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6286 Convert UHCI to DMA framework.
6288 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
6289 (grub_uhci_pci_iter): Fill new members
6290 (grub_alloc_td): Use P2V and V2P functions.
6291 (grub_free_queue): Likewise.
6292 (grub_alloc_qh): Likewise.
6293 (grub_uhci_setup_transfer): Likewise.
6294 (grub_uhci_check_transfer): Likewise.
6296 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6298 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
6299 Remove assignment in if while on it.
6301 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6303 * util/grub-mkstandalone.in: Fix modules directory.
6305 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6307 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
6309 (argp_parser): Accept "auto" as compression specification.
6311 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6313 Fix `help' with unloaded modules.
6315 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
6316 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
6317 (grub_dyncmd_dispatcher): Small stylistic fix.
6318 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
6319 explicit help is requested.
6321 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6323 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
6324 Explicitly init restart while on it.
6326 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6328 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
6331 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6333 * util/grub-mknetdir.in: Use . rather than source for POSIX
6336 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6338 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
6340 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6342 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
6345 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6347 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
6350 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6352 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
6354 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6356 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
6357 iteration of partitions.
6359 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6361 Improve gettext support. Stylistic fixes and error handling fixes while
6364 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6366 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
6367 part. Instead setup the correct stack in RM.
6368 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
6370 * include/grub/i386/relocator_private.h: New file.
6372 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6374 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
6376 * util/grub-fstest.c (options): Add missing DEVICE part.
6378 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6380 Clarify and unify messages.
6382 * grub-core/commands/hashsum.c (options): Unify messages.
6383 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
6384 literal-only message as translatable.
6385 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
6386 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
6387 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
6389 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
6390 key, not the key used to unlock. Clarify what it's used for.
6391 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
6392 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
6393 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
6394 * util/grub-editenv.c (options): Unify "verbose" message.
6395 * util/grub-fstest.c (read_file): Unify error message.
6396 (fstest): Add quotes around commands.
6397 (options): Unify "verbose" message.
6398 * util/grub-install.in: Add quotes around variable name.
6399 * util/grub-kbdcomp.in: Unify error message.
6400 * util/grub-mkfont.c (main): Likewise.
6401 * util/grub-mkrescue.in: Likewise.
6402 * util/grub-mklayout.c (options): Unify "verbose" message.
6403 * util/grub-mkstandalone.in: Unify help and verbose messages.
6404 * util/grub-mount.c (options): Unify "verbose" message.
6405 * util/grub-probe.c (options): Likewise.
6406 * util/grub-script-check.c (options): Likewise.
6407 * util/grub-setup.c (setup): Unify no-terminator message.
6408 (options): Use DEVICE and not DEV.
6409 Unify "verbose" message.
6410 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
6412 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6414 Improve and unify messages.
6416 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
6417 name. All users updated.
6418 Print filename in error.
6419 (read_device_map): Print filename in error.
6420 * util/getroot.c (grub_guess_root_devices): Print filename in error.
6421 (grub_util_get_os_disk): Likewise.
6422 (grub_util_biosdisk_get_grub_dev): Likewise.
6423 (grub_util_check_block_device): Likewise.
6424 (grub_util_check_char_device): Likewise.
6425 (grub_make_system_path_relative_to_its_root): Likewise.
6426 * util/grub-editenv.c (create_envblk_file): Likewise.
6427 (open_envblk_file): Likewise.
6428 (write_envblk): Likewise.
6429 * util/grub-fstest.c (cmd_cp): Likewise.
6430 (cmd_cat): Likewise.
6431 (cmd_cmp): Likewise.
6432 * util/grub-menulst2cfg.c (main): Likewise.
6433 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
6434 (write_font_width_spec): Likewise.
6435 (write_font_pf2): Likewise.
6436 * util/grub-mkimage.c (generate_image): New argument outname.
6438 Remove unreacheable message.
6439 (options): Unify messages.
6440 (help_filter): Likewise.
6441 * util/grub-mklayout.c (usage): Removed (unused).
6442 (main): Print filename in error.
6443 * util/grub-mkrescue.in: Fix wrong quoting.
6444 * util/grub-setup.c (setup): Print filename in error.
6445 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
6446 (check_sas): Likewise.
6447 * util/misc.c (grub_util_get_fp_size): Removed.
6448 (grub_util_get_image_size): Print filename in error.
6449 (grub_util_read_at): Removed.
6450 (grub_util_read_image): Print filename in error.
6451 (grub_util_load_image): Likewise.
6452 (grub_util_write_image_at): New argument filename. All users updated.
6453 Print filename in error.
6454 (grub_util_write_image): New argument filename. All users updated.
6455 Print filename in error.
6456 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
6457 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
6459 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6461 * grub-core/Makefile.core.def (pxechain): New module.
6462 * grub-core/loader/i386/pc/pxechainloader.c: New file.
6463 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
6465 (grub_pc_net_config_real): Use grub_pxe_get_cached.
6466 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
6468 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6470 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
6471 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
6472 * include/grub/err.h (grub_error_saved): New struct.
6473 (grub_errmsg): Make array size explicit.
6474 * include/grub/misc.h (grub_error_save): New function.
6475 (grub_error_load): Likewise.
6476 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
6477 (grub_error_push): Update `errno' member name.
6478 (grub_error_pop): Likewise
6479 * grub-core/net/tftp.c (tftp_data): New member save_err.
6480 (tftp_receive): Save error.
6481 (tftp_open): Restore error.
6483 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6485 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
6486 to real mode down to execute A20-related code in protected mode as
6489 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
6491 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
6492 NULL when the argument `level' has an unexpected value.
6494 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6496 Move platform-dependent files from $prefix to $prefix/$platform.
6498 * config.h.in (GRUB_TARGET_CPU): New definition.
6499 (GRUB_PLATFORM): Likewise.
6500 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
6501 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
6502 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
6503 * grub-core/kern/dl.c (grub_dl_load): Likewise.
6504 * grub-core/normal/autofs.c (read_fs_list): Likewise.
6505 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
6506 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
6507 * grub-core/normal/term.c (read_terminal_list): Likewise.
6508 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
6510 (grub_gettext_init_ext): Likewise.
6511 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
6513 * util/grub-install.in: Update directories.
6514 * util/grub-mknetdir.in: Likewise.
6515 * util/grub-mkrescue.in: Likewise.
6517 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6519 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
6520 grub_error framework. All users updated.
6522 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6524 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
6525 lists (by always binsearching), improve caching (cache strings
6526 used for binsearch, not only results), improve
6527 maintainability (by using more structured binary search) and correct
6530 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6532 * grub-core/script/execute.c (grub_script_return): Fix warning.
6534 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6536 * grub-core/script/execute.c (grub_script_return): Fix potential
6538 Reported by: Jim Meyering.
6540 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6542 * po/POTFILES.in: Regenerate.
6543 * util/grub-install.in: Gettextize the strings missed in first pass.
6545 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6547 * Makefile.util.def (grub-mkdevicemap): Removed.
6548 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
6549 * include/grub/util/deviceiter.h: Removed.
6550 * util/deviceiter.c: Likewise.
6551 * util/getroot.c (grub_util_get_os_disk): New function.
6552 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
6553 replacement for EFI.
6554 * util/grub-mkdevicemap.c: Removed.
6555 * util/grub-probe.c (probe): Handle PRINT_DISK.
6556 (argp_parser): Handle -t disk.
6558 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6560 * util/grub-mkfont.c: Migrate to argp.
6561 * util/grub-mklayout.c: Likewise.
6562 * util/grub-mkpasswd-pbkdf2.c: Likewise.
6563 * util/grub-mkrelpath.c: Likewise.
6564 * util/grub-probe.c: Likewise.
6565 * util/grub-script-check.c: Likewise.
6567 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6569 * util/grub-reboot.in: Add missing datarootdir.
6570 Add missing newline.
6571 * util/grub-set-default.in: Add missing datarootdir.
6572 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
6573 * util/grub-mkrescue.in: Likewise.
6575 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6577 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
6579 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6581 * util/grub-kbdcomp.in: Add decent help and gettextize.
6582 * docs/man/grub-kbdcomp.h2m: New file.
6584 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6586 Migrate grub-mkimage.c to argp.
6588 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
6589 (grub-setup): Likewise.
6590 * util/grub-setup.c (print_version): Move to ...
6591 * util/argp_common.c (print_version): ... here.
6592 * util/grub-setup.c (argp_program_version_hook): Move to ...
6593 * util/argp_common.c (argp_program_version_hook): ... here.
6594 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
6596 * util/grub-mkimage.c (main): Migrate to argp.
6598 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6600 * util/grub-mkrescue.in: Use same message as
6601 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
6602 for better translations.
6604 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6606 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
6607 options with generic grub-mkrescue.in with the goal of future
6610 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6612 * grub-core/kern/mm.c: Add missing include of i18n.h
6613 * grub-core/lib/relocator.c: Likewise.
6615 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6617 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
6619 (allocate_pages): Check return value.
6620 Replace fatal with error.
6621 (grub_linux_boot): Replace printf with dprintf.
6622 Check find_mmap_size return value.
6623 Replace fatal with error.
6624 Don't call grub_machine_fini.
6625 (grub_load_elf64): Replace printf with dprintf.
6626 (grub_cmd_linux): Likewise.
6627 (grub_cmd_initrd): Likewise.
6628 (grub_cmd_payload): Likewise.
6630 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6632 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
6634 * grub-core/video/radeon_fuloong2e.c
6635 (grub_video_radeon_fuloong2e_setup): Likewise.
6636 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
6637 * grub-core/video/video.c (grub_video_set_mode): Don't override
6638 standard out of memory message.
6640 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
6642 NetBSD disk wedge support.
6644 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
6645 [__NetBSD__]: Handle NetBSD disk wedges.
6646 * util/getroot.c (convert_system_partition_to_system_disk)
6647 [__NetBSD__]: Likewise.
6649 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
6651 * util/grub-mkconfig.in: Use umask rather than chmod to create
6652 grub.cfg.new to avoid insecure grub.cfg.
6654 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6656 * grub-core/commands/ls.c: Gettextize.
6657 * grub-core/commands/setpci.c: Likewise.
6658 * grub-core/commands/videotest.c: Likewise.
6659 * grub-core/disk/geli.c: Likewise.
6660 * grub-core/kern/mm.c: Likewise.
6661 * grub-core/lib/relocator.c: Likewise.
6662 * grub-core/loader/efi/appleloader.c: Likewise.
6663 * grub-core/loader/i386/xnu.c: Likewise.
6664 * grub-core/loader/ia64/efi/linux.c: Likewise.
6665 * grub-core/loader/xnu.c: Likewise.
6666 * grub-core/net/dns.c: Likewise.
6667 * grub-core/net/net.c: Likewise.
6668 * grub-core/script/lexer.c: Likewise.
6669 * grub-core/script/parser.y: Likewise.
6670 * grub-core/script/yylex.l: Likewise.
6671 * util/getroot.c: Likewise.
6672 * util/grub-setup.c: Likewise.
6674 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6676 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
6679 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6681 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
6683 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6685 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
6687 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
6688 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
6690 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6692 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
6693 * util/grub-install.in: Gettextize.
6694 * util/grub-mkconfig.in: Likewise.
6695 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
6697 (grub_warn): Gettextize.
6698 * util/grub-mknetdir.in: Gettextize.
6699 * util/grub-mkrescue.in: Likewise.
6700 * util/grub-mkstandalone.in: Likewise.
6701 * util/grub-reboot.in: Likewise.
6702 * util/grub-set-default.in: Likewise.
6703 * util/grub.d/00_header.in: Likewise.
6704 * util/grub.d/10_hurd.in: Likewise.
6705 * util/grub.d/10_kfreebsd.in: Likewise.
6706 * util/grub.d/10_linux.in: Likewise.
6707 * util/grub.d/10_netbsd.in: Likewise.
6708 * util/grub.d/10_windows.in: Likewise.
6709 * util/grub.d/20_linux_xen.in: Likewise.
6710 * util/grub.d/30_os-prober.in: Likewise.
6711 * po/POTFILES-shell.in: Regenerate.
6713 2012-02-03 Richard Laager <rlaager@wiktel.com>
6715 * util/grub-mkimage.c (main): Fix format-security warning.
6716 * util/grub-mkrelpath.c (main): Likewise.
6717 * util/grub-probe.c (main): Likewise.
6719 2012-02-03 Richard Laager <rlaager@wiktel.com>
6721 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
6723 Put back lost PRINT_DRIVE.
6725 2012-02-03 Richard Laager <rlaager@wiktel.com>
6727 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
6728 (grub_guess_root_devices): Replace strlen with sizeof.
6730 (find_root_devices_from_poolname): Remove unused variable.
6733 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6735 Support install on multi-device filesystems.
6737 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
6738 (grub_guess_root_devices): ...this. Return char **. All users updated.
6739 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
6741 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
6742 (find_root_devices_from_poolname): ... here.
6743 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
6745 (grub_guess_root_device): Rename to ...
6746 (grub_guess_root_devices): ... this. Return char **. All users updated.
6747 * util/grub-install.in: Handle multi-device filesystems.
6748 * util/grub-probe.c (probe). Make device_names a char **. Add delim
6749 argument. All users updated.
6750 Handle multi-device filesystems.
6751 Use 'delim' as separator.
6752 Remove device check to allow filesystems on file.
6753 (main): Support -0 argument. Handle multi-device.
6754 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
6755 Fix a cross-device check while on it.
6756 (arguments): Remove root_dev.
6757 (argp_parser): Remove -r.
6758 (main): Remove root_dev.
6760 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6762 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
6764 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6766 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
6768 Reported by: NODA, Kai <nodakai>.
6770 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6774 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
6776 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
6777 (grub_ehci_setup_qh): Likewise.
6778 (grub_ehci_find_qh): Likewise.
6779 (grub_ehci_transaction): Likewise.
6780 (grub_ehci_setup_transfer): Likewise.
6781 (grub_ehci_check_transfer): Likewise.
6782 (grub_ehci_portstatus): Likewise.
6783 (grub_ehci_detect_dev): Likewise.
6784 (grub_ehci_transfer_controller_data): New field td_last_phys.
6785 (grub_ehci_setup_transfer): Fill td_last_phys.
6786 (grub_ehci_check_transfer): Use td_last_phys.
6788 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
6790 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
6791 if no submenu is present.
6793 2012-02-01 Aleš Nesrsta <starous@volny.cz>
6797 * include/grub/usb.h (grub_usbms_protocol_t): New values
6798 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
6799 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
6800 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
6801 (grub_usbms_dev): Add subclass, protocol and intrpt.
6802 Remove in_maxsz and out_maxsz.
6803 (grub_usbms_reset): Rename to ...
6804 (grub_usbms_bo_reset): .. this.
6805 (grub_usbms_cbi_cmd): New function.
6806 (grub_usbms_cbi_reset): Likewise.
6807 (grub_usbms_reset): Likewise.
6808 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
6809 (grub_usbms_transfer): Rename to ...
6810 (grub_usbms_transfer_bo): ... this.
6811 (grub_usbms_transfer_cbi): Likewise.
6812 (grub_usbms_transfer): Likewise.
6814 2012-02-01 Aleš Nesrsta <starous@volny.cz>
6815 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6817 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
6818 the support for the CS5536 modification thereos and few bugfixes.
6820 * grub-core/Makefile.core.def (ehci): New module.
6821 * grub-core/bus/usb/ehci.c: New file.
6822 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
6823 port and hubaddr. All users updated.
6824 Save port and hubaddr into dev structure.
6825 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
6827 * include/grub/pci.h (grub_dma_phys2virt): New function.
6828 (grub_dma_virt2phys): Likewise.
6829 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
6831 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6833 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
6834 check as some mkfs implementations omit it.
6836 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6838 * docs/grub.texi (Unicode): Mention identifier and space limitations.
6840 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6842 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
6843 Add new member volname2.
6844 (grub_jfs_label): Use volname2 if available.
6846 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6848 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
6849 over last_mounted as seen in image generated by mkfs.nilfs2.
6850 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
6852 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6854 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
6855 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
6856 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
6858 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6860 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
6863 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6865 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
6866 subvolume name (by removing a bogus and useless check).
6868 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6870 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
6873 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6875 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
6876 (grub_scsi_read_capacity10): ... this.
6877 (grub_scsi_read_capacity16): New function.
6878 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
6880 Fix off-by-one error.
6881 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
6883 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
6884 (grub_scsi_read_capacity10): ... this.
6885 (grub_scsi_read_capacity_data): Rename to ...
6886 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
6887 (grub_scsi_read_capacity16): New struct.
6888 (grub_scsi_read_capacity16_data): Likewise.
6889 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
6890 grub_scsi_cmd_read_capacity10.
6891 New command grub_scsi_cmd_read_capacity16.
6893 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6897 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
6898 (grub_scsi_write16): Likewise.
6899 (grub_scsi_read): Use read16 when necessary.
6900 (grub_scsi_write): Likewise.
6901 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
6902 (grub_scsi_write16): Likewise.
6903 (grub_scsi_cmd_t): Add READ16 and WRITE16.
6905 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6907 SCSI write support (for usbms mainly).
6909 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
6911 (grub_scsi_write): Implement.
6912 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
6914 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6916 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
6919 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6921 * grub-core/lib/posix_wrap/string.h (memchr): New function.
6923 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6925 * po/POTFILES.in: Regenerate.
6927 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6929 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
6930 with grub_printf to avoid unnecessary fatal failure.
6932 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6934 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
6935 (INT_MAX): Likewise.
6936 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
6937 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
6938 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
6942 (strncpy): Likewise.
6944 (strncat): Likewise.
6945 (strcoll): Likewise.
6946 * include/grub/types.h (GRUB_SHRT_MAX): New define.
6947 (GRUB_INT_MAX): Likewise.
6949 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6951 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
6953 (optimize_utf8): Likewise.
6954 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
6956 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6958 * grub-core/boot/i386/pc/lnxboot.S: Use
6959 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
6960 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
6962 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
6964 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
6966 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6968 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
6969 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
6970 now to avoid double free.
6971 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
6973 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
6974 * util/grub-probe.c (escape_of_path): Always return a new copy.
6975 (print_full_name): Escape path.
6976 (probe): Don't call grub_util_devname_to_ofpath on NULL.
6977 Fix hints on abstractions.
6979 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6981 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
6982 Don't add "root" line if no compatibility hont is available.
6983 Suggested by: Seth Goldberg.
6985 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6987 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
6988 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
6989 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
6990 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
6992 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6994 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
6996 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6998 * util/grub-pe2elf.c (ehdr): Make static.
7000 (num_sections): Likewise.
7003 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7005 Eliminate ofpath limits and possible overflows.
7007 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
7008 (OF_PATH_MAX): Removed.
7009 (MAX_DISK_CAT): New const.
7010 (find_obppath): Use allocated rather than preallocated buffer.
7011 Return result. Argument of_path removed. All users updated.
7013 (xrealpath): New function.
7014 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
7015 Allocate rather than use preallocated buffer. All users updated.
7016 (__of_path_common): Use allocated rather than preallocatecd buffer.
7017 Return result. Argument of_path removed. All users updated.
7018 (vendor_is_ATA): Read only needed part form the file.
7019 (check_sas): Allocate depending on contents rather than fixed.
7020 (main) [STANDALONE]: Handle NULL result.
7022 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7024 * grub-core/normal/completion.c (iterate_dev): Close the disk.
7026 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7028 Cryptodisk write support.
7030 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
7031 (grub_cryptodisk_decrypt): Moved logic to ...
7032 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
7033 (grub_cryptodisk_write): Implement.
7034 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
7035 (grub_util_fd_write): ... this. Make global.
7036 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
7038 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7040 * include/grub/list.h (grub_list_remove): Don't crash if element is
7043 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7045 Rename ofconsole to console.
7047 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
7048 as sysnonym to console.
7049 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
7050 * grub-core/term/ieee1275/console.c: ... this. All users updated.
7051 Rename grub_ofconsole_ to grub_console_. All users updated
7052 (grub_console_term_output): Rename "ofconsole" to "console".
7053 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
7056 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7058 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
7060 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
7061 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
7062 GRUB_DISK_DEVICE_FILE_ID.
7064 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7066 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
7067 and improve performance.
7069 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7071 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
7072 missing ieee1275/ prefix on whole disk.
7074 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7076 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
7077 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
7079 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7081 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
7083 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7085 Merge common RAID and LVM logic to an abstract diskfilter.
7086 Add LDM support using the same framework.
7088 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
7089 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
7090 (libgrubmods): Remove grub-core/disk/raid.c and
7091 grub-core/partmap/gpt.c.
7092 * grub-core/Makefile.core.def (ldm): New module.
7093 (raid): Renamed to diskfilter. All users updated.
7094 * grub-core/disk/raid.c: Moved to ...
7095 * grub-core/disk/diskfilter.c: ... here.
7096 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
7098 (find_array): Renamed to ...
7099 (find_lv): ... this. Support multi-LV. Skip nameless LVs
7100 (grub_is_array_readable): Renamed to ...
7101 (grub_is_lv_readable): ... this. Support multinode hierarchy.
7102 (insert_array): New argument id.
7103 (is_node_readable): New function.
7104 (scan_device): Rename to ...
7105 (scan_disk): .. this. Restrict to one disk.
7106 (scan_devices): New function.
7107 (grub_diskfilter_iterate): Support multi-LV.
7108 Skip invisible and nameless LVs.
7109 (grub_diskfilter_memberlist): Support multi-LV.
7110 (grub_diskfilter_read_node): New function.
7111 (grub_raid_read): Most of logic moved to ...
7112 (read_segment): ... here
7113 (read_lv): New function.
7114 (grub_diskfilter_get_vg_by_uuid): New function.
7115 (grub_diskfilter_make_raid): Likewise.
7116 * grub-core/disk/ldm.c: New file.
7117 * grub-core/disk/lvm.c (vg_list): Removed.
7118 (lv_count): Likewise.
7119 (scan_depth): Likewise.
7120 (is_lv_readable): Likewise.
7121 (grub_lvm_getvalue): Advance pointer past the number.
7123 (do_lvm_scan): Refactored into ...
7124 (grub_lvm_detect): ... this. Support raid.
7125 (grub_lvm_iterate): Removed.
7126 (grub_lvm_memberlist): Likewise.
7127 (grub_lvm_open): Likewise.
7128 (grub_lvm_close): Likewise.
7129 (read_lv): Likewise.
7130 (read_node): Likewise.
7131 (is_node_readable): Likewise.
7132 (is_lv_readable): Likewise.
7133 (grub_lvm_read): Likewise.
7134 (grub_lvm_write): Likewise.
7135 (grub_lvm_dev): Use diskfilter
7136 (GRUB_MOD_INIT): Likewise.
7137 (GRUB_MOD_FINI): Likewise.
7138 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
7140 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
7141 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
7142 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
7143 grub_diskfilter_read_node.
7145 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
7146 grub_diskfilter_read_node.
7147 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
7148 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
7149 (grub_disk_dev_iterate): Move from here...
7150 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
7151 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
7153 (grub_hostdisk_find_partition_start): Likewise.
7154 (grub_hostdisk_os_dev_to_grub_drive): New function.
7155 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
7156 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
7157 * util/getroot.c (make_device_name): ... here.
7158 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
7160 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
7161 * grub-core/kern/emu/hostdisk.c
7162 (convert_system_partition_to_system_disk): Move to ...
7163 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
7164 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
7165 * util/getroot.c (device_is_wholedisk): ... here.
7166 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
7167 * util/getroot.c (find_system_device): ... here.
7168 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
7170 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
7171 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
7173 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
7175 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
7177 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
7178 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
7179 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
7181 * include/grub/raid.h: Renamed to ...
7182 * include/grub/diskfilter.h: ... this.
7183 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
7184 (GRUB_RAID_LAYOUT_*): Make into array.
7185 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
7186 (grub_diskfilter_vg): New struct.
7187 (grub_diskfilter_pv_id): Likewise.
7188 (grub_raid_member): Removed.
7189 (grub_raid_array): Likewise.
7190 (grub_diskfilter_pv): New struct.
7191 (grub_diskfilter_lv): Likewise.
7192 (grub_diskfilter_segment): Likewise.
7193 (grub_diskfilter_node): Likewise.
7194 (grub_diskfilter_get_vg_by_uuid): New proto.
7195 (grub_raid_register): Inline.
7196 (grub_diskfilter_unregister): Likewise.
7197 (grub_diskfilter_make_raid): New proto.
7198 (grub_diskfilter_vg_register): Likewise.
7199 (grub_diskfilter_read_node): Likewise.
7200 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
7201 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
7202 (grub_util_is_ldm): Likewise.
7203 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
7204 (grub_hostdisk_find_partition_start): Likewise.
7205 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
7206 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
7208 (grub_gpt_partition_map_iterate): New proto.
7209 * include/grub/lvm.h (grub_lvm_vg): Removed.
7210 (grub_lvm_pv): Likewise.
7211 (grub_lvm_lv): Likewise.
7212 (grub_lvm_segment): Likewise.
7213 (grub_lvm_node): Likewise.
7214 * util/getroot.c [...]
7215 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
7216 (probe_abstraction): Likewise.
7217 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
7218 (main): Remove dead logic.
7220 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
7222 Simplify root device discover and don't fail when trying to open
7225 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
7227 (get_diskname_from_path): Likewise.
7228 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
7231 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7233 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
7235 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7237 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
7240 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7242 * util/grub-install.in: Add missing \.
7243 Reported by: gentoofan
7245 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
7247 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
7248 (direct_read): Use correct compressed size.
7249 (grub_squash_read_data): Likewise.
7251 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
7253 * docs/grub.texi (Platform limitations): New section.
7254 (Platform-specific operations): Likewise.
7255 * docs/grub-dev.texi (Porting): Likewise.
7257 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7259 IEEE1275 disk write support.
7261 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
7263 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
7264 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
7265 and seek loginc to ...
7266 (grub_ofdisk_prepare): ... here.
7267 (grub_ofdisk_write): Implement.
7269 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7271 ARC disk write support.
7273 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
7274 (reopen): New argument writable. All users updated.
7275 Handle required access mode.
7276 (grub_arcdisk_write): Implement.
7277 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
7278 (grub_arc_firmware_vector): Make buffer to write a const buffer.
7280 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7282 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
7283 (read_sblock): Don't attempt to read superblocks outside the disk size.
7285 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7287 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
7288 first superblock to find the second one when possible.
7290 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7292 * util/grub-install.in: Fix an ARC bug.
7293 Print a warning if no platform-specific setup is available.
7295 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7297 Use static allocation rather than scratch pointer in reed_solomon.
7298 It decreases its size significantly and avoids a variable in .text.
7300 * grub-core/lib/reed_solomon.c (scratch): Removed.
7301 (chosenstat): New const or static array.
7307 (errvals): Likewise.
7309 (pol_evaluate): Replace x with log_x argument. All users updated.
7310 (syndroms): Removed.
7311 (gauss_solve): Use statically allocated arrays.
7312 (rs_recover): Likewise.
7313 Calculate syndroms directly.
7314 (decode_block): Use statically allocated arrays.
7315 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
7316 (main) [TEST]: Allow -DTEST -DSTANDALONE.
7318 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7320 Eliminate fixed limit on reed solomon decoder length.
7322 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
7323 rather than hardcoding the address.
7324 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
7325 no_reed_solomon_length.
7326 Move gate_a20 to no-reed-solomon part.
7327 Don't force a particular size of no reed-solomon part.
7328 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
7330 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
7331 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
7333 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7335 * grub-core/commands/wildcard.c (match_files): Handle filenames
7336 without explicit device.
7337 (wildcard_expand): Don't add explicit device if not already present.
7338 * tests/grub_script_echo1.in: Add a new expansion test.
7340 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7342 Replace single-linked with double-linked lists. It results in more
7343 compact and more efficient code.
7345 * grub-core/kern/list.c (grub_list_push): Moved from here ...
7346 * include/grub/list.h (grub_list_push): ... to here. Set prev.
7347 (grub_list_remove): Moved from here ...
7348 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
7349 (grub_prio_list_insert): Set prev.
7350 * include/grub/list.h (grub_list): Add prev. All users updated.
7352 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7354 Handle newer autotools. Add some missing quotes while on it.
7356 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
7357 (pkglib_DATA): Move grub-mkconfig_lib from here ...
7358 (pkgdata_DATA): ... here.
7359 * Makefile.util.def (update-grub_lib): Removed.
7360 * conf/Makefile.common (pkglib_DATA): Removed.
7361 (pkglib_SCRIPTS): Likewise.
7362 (pkgdata_DATA): New variable.
7363 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
7366 Remove unused variable while on it.
7367 * tests/util/grub-shell.in: Likewise.
7368 * util/grub-install.in: Likewise.
7369 * util/grub-mkconfig.in: Likewise.
7370 * util/grub-mknetdir.in: Likewise.
7371 * util/grub-mkrescue.in: Likewise.
7372 * util/grub-mkstandalone.in: Likewise.
7373 * util/grub.d/00_header.in: Likewise.
7374 * util/grub.d/10_hurd.in: Likewise.
7375 * util/grub.d/10_illumos.in: Likewise.
7376 * util/grub.d/10_kfreebsd.in: Likewise.
7377 * util/grub.d/10_linux.in: Likewise.
7378 * util/grub.d/10_netbsd.in: Likewise.
7379 * util/grub.d/10_windows.in: Likewise.
7380 * util/grub.d/20_linux_xen.in: Likewise.
7381 * util/grub.d/30_os-prober.in: Likewise.
7382 * util/update-grub_lib.in: Removed.
7384 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
7386 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
7387 a workaround for intel problem.
7389 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
7390 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
7391 2012-01-23 pfsmorigo
7393 * util/grub-install.in: Support dd'in into PreP partition.
7394 * util/grub-probe.c (probe): Support discovering partition type.
7395 (main): Support -t msdos_parttype.
7397 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
7399 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
7400 infinite recursion using counter.
7401 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
7402 init to skip it if the magic check fails.
7403 (dec_stream_header): Init s->crc32.
7405 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7406 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
7407 2012-01-22 Richard Laager <rlaager@wiktel.com>
7409 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
7411 (find_bestub): Determine correct size.
7412 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
7413 (scan_disk): Align the size down.
7414 Call check pool before find_bestub to have ashift.
7416 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7418 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
7419 dprintf in no-malloc zone.
7421 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
7423 * configure.ac: Add back in test for limits.h.
7425 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7427 Support 4K-sector NTFS.
7429 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
7430 (grub_ntfs_data): Remove blocksize.
7431 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
7432 Remove data argument. All users updated.
7434 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7436 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
7437 being in .text to avoid dprel references.
7438 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
7439 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
7440 (grub_arch_highmemsize): Likewise.
7441 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
7442 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
7443 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
7445 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7447 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
7449 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
7450 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
7452 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7454 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
7456 (grub_set_datetime_cmos): Likewise.
7458 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7460 Make XZ compression parameters dependent on target and not host CPU.
7462 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
7463 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
7465 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7467 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
7468 set but not used variable.
7470 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7472 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
7473 created when no uuid support is compiled into mkfs.reiser.
7475 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7477 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
7478 (utf8_to_macroman): Do the opposite.
7479 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
7481 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7483 * configure.ac: Refise build qemu_mips w/o unifont.
7485 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7487 Eliminate grub_min/grub_max prone to overflow usage.
7489 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
7490 (poll_nonroot_hub): Likewise.
7491 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
7492 (grub_affs_label): Likewise.
7493 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
7494 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
7495 (grub_hfs_label): Likewise.
7496 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
7497 * grub-core/fs/zfs/zfs.c (MIN): Remove.
7498 (zap_leaf_array_equal): Use grub_size. Remove MIN.
7499 (zap_leaf_array_get): Likewise.
7500 (dnode_get_path): Likewise.
7501 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
7502 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
7503 * grub-core/script/execute.c (grub_script_break): Likewise.
7504 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
7506 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
7507 * include/grub/misc.h (grub_min): Removed.
7508 (grub_max): Likewise.
7510 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7512 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
7515 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7517 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
7519 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7521 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
7523 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7525 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
7526 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
7528 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7530 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
7531 rather than a hack for grub_strncasemap.
7533 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7535 Support multiple initrds
7536 Note: part of this was accidently committed in r3739.
7538 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
7540 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
7541 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
7542 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7543 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7544 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7546 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7548 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
7549 disks with unknown size.
7550 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
7552 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7554 Remove defines pertaining to arbitrary limits not affecting GRUB
7557 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
7558 (EXT2_MAX_SYMLINKCNT): Likewise.
7559 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
7560 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
7561 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
7562 (GRUB_PXE_MAX_BLKSIZE): Likewise.
7563 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
7564 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
7565 (DN_MAX_OBJECT_SHIFT): Likewise.
7566 (DN_MAX_OFFSET_SHIFT): Likewise.
7567 (DN_MAX_OBJECT): Likewise.
7568 (DNODES_PER_LEVEL_SHIFT): Likewise.
7569 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
7570 (SPA_MAXBLOCKSIZE): Likewise.
7571 (SPA_BLOCKSIZES): Likewise.
7572 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
7573 (MZAP_MAX_BLKSZ): Likewise.
7575 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7577 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
7578 handle NULL appropriately.
7581 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7585 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
7587 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
7588 * configure.ac: Fix efiemu check.
7590 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7592 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
7594 Reported by: adamwill
7596 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
7598 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
7600 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7602 Fix handling of wide characters in gfxterm.
7604 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
7605 (clear_char): Likewise.
7606 (paint_char): Skip code == NULL chars.
7607 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
7609 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7611 * grub-core/normal/charset.c: Move comment to right place.
7613 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7615 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
7616 (GRUB_AFFS_FLAG_FFS): Put back where it was.
7617 (grub_affs_mount): Revert the correct version checking.
7619 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7621 * docs/grub.texi (Unicode): Mention several other unsupported features.
7623 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7625 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
7626 case statements as compile-time one.
7627 (direct_read): Prevent spurious warnings.
7628 (grub_squash_read_data): Likewise.
7630 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7632 Various squash4 fixes and LZO and XZ support.
7634 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
7635 Add xzembed source files.
7636 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
7637 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
7638 (grub_squash_inode): New subtype long_dir.
7639 (SQUASH_TYPE_LONG_DIR): New inode type.
7640 (COMPRESSION): New enum.
7641 (XZBUFSIZ): New const.
7642 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
7643 (read_chunk): Use data->decompress.
7644 (zlib_decompress): New function.
7645 (lzo_decompress): Likewise.
7646 (xz_decompress): Likewise.
7647 (squash_mount): Set new data fields.
7648 (grub_squash_iterate_dir): Handle long dir.
7649 (squash_unmount): Free xzdec and xzbuf.
7650 (grub_squash_open): Check ino type.
7651 (direct_read): Stylistic fixes. Use data->decompress.
7652 (grub_squash_read_data): Likewise.
7653 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
7654 (get_byte): Likewise.
7655 (grub_zlib_disk_read): Removed.
7656 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
7657 (GRUB_POSIX_BOOL_DEFINED): New define.
7658 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
7659 * grub-core/lib/xzembed/xz.h: Addmissing includes.
7660 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
7661 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
7663 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7665 Don't override more informative errors.
7667 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
7668 * grub-core/font/font.c (open_section): Likewise.
7669 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
7670 filename. Don't override errors.
7671 (grub_cmd_openbsd_ramdisk): Don't override errors.
7672 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
7673 (grub_cmd_initrd): Likewise.
7674 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
7675 (grub_cmd_initrd): Likewise.
7676 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
7677 (grub_cmd_linux): Likewise.
7678 (grub_cmd_initrd): Likewise.
7679 (grub_cmd_payload): Likewise.
7680 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7681 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
7682 (grub_cmd_module): Likewise.
7683 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7684 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7685 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
7686 (grub_cmd_xnu_mkext): Likewise.
7687 (grub_cmd_xnu_ramdisk): Likewise.
7688 (grub_xnu_check_os_bundle_required): Likewise.
7689 (grub_xnu_load_kext_from_dir): Likewise.
7690 (grub_cmd_xnu_kextdir): Likewise.
7691 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
7693 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7695 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
7696 as 1024 in block size field. Found on one of my test images.
7697 Small optimisation while on it.
7699 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7701 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
7702 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
7703 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
7704 performance fixes while on it.
7705 (grub_sfs_close): Fix memory leak while on it.
7706 (grub_sfs_label): Convert Latin1 to UTF-8.
7708 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7710 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
7711 space to avoid overflows.
7712 (grub_hfs_label): Convert from macroman to UTF-8.
7714 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7716 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
7718 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7720 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
7722 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7724 * unicode: Import Unicode 6.0 data.
7726 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7728 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
7731 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7733 Avoid cutting in the middle of UTF-8 character.
7735 * include/grub/charset.h (grub_getend): New function.
7736 * grub-core/script/function.c (grub_script_function_find): Use
7738 * grub-core/normal/completion.c (add_completion): Likewise.
7740 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7742 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
7743 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
7744 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
7745 (GRUB_UNICODE_TAG_END): Likewise.
7746 (GRUB_UNICODE_LAST_VALID): Likewise.
7748 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7750 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
7751 len and make it smaller. All users updated.
7752 * util/import_unicode.py: Put length and not end character.
7755 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7757 Make better Unicode-compliant and unify some UTF-8 code pathes.
7759 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
7761 (grub_is_valid_utf8): Use grub_utf8_process.
7762 Check resulting code range.
7763 (grub_utf8_to_ucs4): Use grub_utf8_process.
7764 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
7767 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7769 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
7771 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7773 * docs/grub.texi (Filesystems): Mention AFS.
7775 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7777 * docs/grub.texi (Filesystems): Clarify restrictions.
7778 (Regexp): Mention non-Unicode regexp behaviour.
7779 (Other): Mention non-Unicode matching behaviour.
7781 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7783 Make HFS implementation use MacRoman.
7785 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
7786 (macroman): New const array.
7787 (macroman_to_utf8): New function.
7788 (utf8_to_macroman): Likewise.
7789 (grub_hfs_find_dir): Use utf8_to_macroman.
7790 (grub_hfs_dir): Use macroman_to_utf8.
7791 Set case_insensitive.
7793 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7795 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
7797 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7799 Integrate hints into autogeneration scripts.
7801 * docs/grub.texi (Filesystems): Add a hostdisk example.
7802 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
7803 (grub-probe): Add ofpath.
7804 * gentpl.py: Remove group nosparc64.
7805 * grub-core/commands/search.c (cache_entry): New struct.
7807 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
7808 * grub-core/commands/search_wrap.c (options): Add platform-specific
7810 (grub_cmd_search): Handle platform-specific hints.
7811 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
7812 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
7813 (grub_util_biosdisk_data): Likewise.
7814 (grub_util_biosdisk_open): Set device_map.
7815 (read_device_map): Handle "" as indication of no map.
7817 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
7818 (grub_util_biosdisk_get_compatibility_hint): New function.
7819 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
7820 * include/grub/emu/hostdisk.h
7821 (grub_util_biosdisk_get_compatibility_hint): New proto.
7822 * util/grub-install.in: Don't call grub-mkdevicemap.
7823 Add platform-specific hint to load.cfg.
7824 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
7825 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
7826 hints. Set root preliminary to compatibility hint, not to OS name.
7827 * util/grub-probe.c (PRINT_*): Add hints.
7828 (print): Make static.
7829 (escape_of_path): New function.
7830 (guess_bios_drive): Likewise.
7831 (guess_efi_drive): Likewise.
7832 (guess_baremetal_drive): Likewise.
7833 (print_full_name): Likewise.
7834 (probe): Handle hints.
7836 * util/ieee1275/devicemap.c: Removed.
7837 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
7839 (grub_util_devname_to_ofpath): Return NULL on failure.
7841 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
7843 * util/getroot.c (grub_util_pull_device): Fix memory leak.
7845 * po/POTFILES.in: Regenerated.
7847 Allow purely long options
7849 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
7850 (SHORT_ARG_USAGE): Likewise.
7851 (grub_arg_show_help): Compare opt with help_options.
7852 (parse_option): Receive opt as argument. If makes big simplificatons.
7855 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7857 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
7858 Restructure to avoid warning.
7860 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7862 * util/grub-install.in: Account for possible escaped comma in device
7865 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7867 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
7870 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7872 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
7873 allocation and zero-setting.
7874 (grub_ieee1275_get_devname): Check that alias is complete.
7876 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7878 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
7881 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7883 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
7885 (grub_ofdisk_open): Check and discard ieee1275 prefix.
7886 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
7887 Add ieee1275 prefix.
7889 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7891 * docs/grub.texi (Filesystems): Update.
7893 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7895 Support odc, newc and bigendian cpio formats.
7897 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
7898 * grub-core/Makefile.core.def (newc): New module.
7900 (cpio_be): Likewise.
7901 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
7904 (head) [MODE_ODC]: Adapt for the format.
7905 (head) [MODE_NEWC]: Likewise.
7906 (head) [!MODE_*]: Write fields of interest as arrays.
7907 (MAGIC_USTAR): Removed.
7908 (read_number) [MODE_NEWC]: Change to hex.
7909 (read_number) [!MODE_*]: Parse binary arrays.
7910 (grub_cpio_find_file): Factor out the code for better structure and
7911 always use read_number.
7912 (grub_cpio_mount): Use MAGIC and MAGIC2.
7913 (grub_cpio_dir): Exit on first hook non-0 return.
7914 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
7915 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
7916 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
7917 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
7918 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
7919 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
7920 * grub-core/fs/newc.c: New file.
7921 * grub-core/fs/odc.c: Likewise.
7922 * grub-core/fs/cpio_be.c: Likewise.
7924 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7926 Fix handling of tar numbers occupying the whole field.
7928 * grub-core/fs/cpio.c (read_number): New function.
7929 (grub_cpio_find_file): Use read_number instead of strtoull.
7931 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7933 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
7934 occupying the whole field size.
7936 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
7938 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
7940 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7942 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
7944 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
7946 * grub-core/Makefile.core.def (lzma_decompress): Add missing
7949 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7951 * util/getroot.c (ESCAPED_PATH_MAX): New define.
7952 (mountinfo_entry): Increase the field size to take escaping into
7954 (find_root_device_from_libzfs): Add one byte to size of strings for
7957 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7959 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
7961 * util/grub-setup.c (setup): Likewise.
7963 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7965 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
7968 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
7970 * docs/grub.texi (Internationalisation): New section.
7972 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
7974 * docs/grub.texi (Loopback booting): New section.
7976 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
7978 * util/grub-mkstandalone.in: Fix minor typo errors.
7980 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
7982 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
7984 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
7985 net/icmp.c and net/icmp6.c.
7987 (priority_queue): Likewise.
7988 * grub-core/io/bufio.c: Rewritten.
7989 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
7990 TYPE_WITH_CONFIGFILE_OPTION.
7991 (legacy_commands): Add bootp and dhcp.
7992 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
7993 (grub_legacy_parse): Likewise.
7994 * grub-core/lib/priority_queue.c: New file.
7995 * grub-core/net/arp.c: Add missing license header.
7996 (arp_find_entry): Removed.
7997 (arp_find_entry): Likewise.
7998 (grub_net_arp_resolve): Rename to ...
7999 (grub_net_arp_send_request): ...this.
8000 (grub_net_arp_receive): New card argument.
8001 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
8002 Set router and DNS server.
8003 (grub_net_configure_by_dhcp_ack): Handle routing information.
8004 (grub_cmd_bootp): Set checksum.
8005 (grub_bootp_init): Remove net_dhcp.
8006 * grub-core/net/dns.c: New file.
8007 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
8009 (get_card_packet): Handle allocation.
8010 (grub_efinet_findcards): Set mtu.
8011 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
8012 (get_card_packet): Handle allocation.
8014 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
8015 (GRUB_MOD_INIT): Set mtu.
8016 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
8018 (get_card_packet): Handle allocation.
8019 (grub_ofnet_findcards): Set mtu.
8020 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
8022 (grub_net_recv_ethernet_packet): Handle IPv6.
8023 * grub-core/net/http.c: New file.
8024 * grub-core/net/icmp.c: Likewise.
8025 * grub-core/net/icmp6.c: Likewise.
8026 * grub-core/net/ip.c (ip6addr): New type.
8028 (reassemble): Likewise.
8029 (cmp): New function.
8030 (reassembles): New variable.
8031 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
8033 (send_fragmented): New function.
8034 (grub_net_send_ip_packet): Rename to ...
8035 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
8037 (grub_net_recv_ip_packets): Rename to ...
8038 (handle_dgram): ... this. Check checksum. Handle non-UDP.
8039 (free_rsm): New function.
8040 (free_old_fragments): Likewise.
8041 (grub_net_recv_ip4_packets): New function.
8042 (grub_net_send_ip6_packet): Likewise.
8043 (grub_net_send_ip_packet): Likewise.
8044 (grub_net_recv_ip6_packets): Likewise.
8045 (grub_net_recv_ip_packets): Likewise.
8046 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
8047 (LINK_LAYER_CACHE_SIZE): New const.
8048 (link_layer_find_entry): New function.
8049 (grub_net_link_layer_add_address): Likewise.
8050 (grub_net_link_layer_resolve_check): Likewise.
8051 (grub_net_link_layer_resolve): Likewise.
8052 (grub_net_ipv6_get_slaac): Likewise.
8053 (grub_net_ipv6_get_link_local): Likewise.
8054 (grub_cmd_ipv6_autoconf): Likewise.
8055 (parse_ip): Handle one number representation.
8056 (parse_ip6): New functoion.
8057 (match_net): Handle IPv6.
8058 (grub_net_resolve_address): Handle IPv6 and DNS.
8059 (grub_net_resolve_net_address): Handle IPv6.
8060 (route_cmp): New function.
8061 (grub_net_route_address): Find best route.
8062 (grub_net_addr_to_str): Handle IPv6.
8063 (grub_net_addr_cmp): New function.
8064 (grub_net_add_addr): Register local route.
8065 (print_net_address): Handle net address.
8066 (grub_net_poll_cards): Retransmit TCP.
8067 (grub_net_poll_cards_idle_real): Likewise.
8068 (have_ahead): New function.
8069 (grub_net_seek_real): Use underlying seek.
8070 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
8071 * grub-core/net/tcp.c: New file.
8072 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
8073 (cmp): New function.
8075 (tftp_receive): Handle unordered input.
8076 (destroy_pq): New function.
8077 (tftp_close): Close pq.
8078 * grub-core/net/udp.c: Put missing license header.
8079 (grub_net_udp_socket): New function.
8080 (udp_socket_register): Likewise.
8081 (grub_net_udp_close): Likewise.
8082 (grub_net_recv_udp_packet): Check checksum.
8083 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
8084 * include/grub/misc.h (grub_memchr): New function.
8085 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
8086 (grub_net_card_driver): Return buf in recv.
8087 (grub_net_slaac_mac_list): New struct.
8088 (grub_network_level_protocol_id): Add ipv6.
8089 (grub_net_network_level_addr): Likewise.
8090 (grub_net_network_level_net_addr): Likewise.
8091 (grub_net_app_protocol): Add seek.
8092 (grub_net_socket): Removed.
8093 (grub_net_sockets): Likewise.
8094 (grub_net_socket_register): Likewise.
8095 (grub_net_socket_unregister): Likewise.
8096 (FOR_NET_SOCKETS): Likewise.
8097 (grub_net_add_addr): Add const.
8098 (GRUB_NET_BOOTP_*): New enum.
8099 (grub_net_addr_cmp): New proto.
8100 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
8101 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
8102 (grub_net_hwaddr_to_str): NEw proto.
8103 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
8104 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
8105 (grub_dns_init): New proto.
8106 (grub_dns_fini): Likewise.
8107 (grub_net_tcp_retransmit): Likewise.
8108 (grub_net_link_layer_add_address): Likewise.
8109 (grub_net_link_layer_resolve_check): Likewise.
8110 (grub_net_link_layer_resolve): Likewise.
8111 (grub_net_dns_lookup): Likewise.
8112 (grub_net_add_dns_server): Likewise.
8113 (grub_net_remove_dns_server): Likewise.
8114 (GRUB_NET_TRIES): New const.
8115 (GRUB_NET_INTERVAL): Likewise.
8116 * include/grub/net/arp.h: Mostly rewritten.
8117 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
8118 * include/grub/net/ip.h: Mostly rewritten.
8119 * include/grub/net/netbuff.h: Indent.
8120 * include/grub/net/tcp.h: New file.
8121 * include/grub/net/udp.h: Mostly rewritten.
8122 * include/grub/priority_queue.h: New file.
8123 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
8124 (grub_swap_bytes64_compile_time): Likewise.
8125 (grub_cpu_to_be16_compile_time): Likewise.
8126 (grub_cpu_to_be32_compile_time): Likewise.
8127 (grub_cpu_to_be64_compile_time): Likewise.
8128 (grub_be_to_cpu64_compile_time): Likewise.
8130 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
8132 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
8133 UINT_TO_PTR with cast.
8135 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8137 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
8140 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8142 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
8145 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8147 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
8150 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8152 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
8153 Add missing const attribute.
8154 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
8156 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
8159 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8161 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
8163 (serpent_setkey): Likewise.
8164 (serpent_encrypt_internal): Likewise.
8165 (serpent_decrypt_internal): Likewise.
8166 (serpent_encrypt): Don't put an alignment-increasing cast.
8167 (serpent_decrypt): Likewise.
8168 (serpent_test): Likewise.
8170 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8172 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
8174 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8176 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
8178 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
8180 (PTR_TO_UINT64): Likewise.
8181 (PTR_TO_UINT32): Likewise.
8183 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8185 * util/grub-mkimage.c (generate_image): Decrease the higher limit
8187 * util/grub-setup.c (setup): Don't add redundancy past the higher load
8190 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8192 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
8193 text_width > available width a bit more gracefully.
8195 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8197 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
8198 current address calculation.
8200 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8202 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
8204 (encode_block): Likewise.
8206 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8208 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
8211 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8213 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
8214 non-RS part to avoid RS messing with GDT.
8215 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
8216 Increase to suit in realmode routines.
8218 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8220 * grub-core/kern/i386/realmode.S: Increase alignment.
8221 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
8223 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8225 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
8227 (syndroms): Compute 0 syndrom.
8228 (rs_recover): Use 0 syndrom.
8230 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8232 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
8234 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8236 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
8239 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8241 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
8243 (get_top_pad): Likewise.
8244 (get_right_pad): Likewise.
8245 (get_bottom_pad): Likewise.
8247 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8249 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
8251 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8253 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
8254 attribute as the structure isn't guaranteed to be properly aligned.
8255 (grub_efi_pci_device_path): Likewise.
8256 (grub_efi_pccard_device_path): Likewise.
8257 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
8258 specify the size of `memory_type'.
8259 (grub_efi_vendor_device_path): Likewise.
8260 (grub_efi_controller_device_path): Likewise.
8261 (grub_efi_acpi_device_path): Likewise.
8262 (grub_efi_expanded_acpi_device_path): Likewise.
8263 (grub_efi_atapi_device_path): Likewise.
8264 (grub_efi_scsi_device_path): Likewise.
8265 (grub_efi_fibre_channel_device_path): Likewise.
8266 (grub_efi_1394_device_path): Likewise.
8267 (grub_efi_usb_device_path): Likewise.
8268 (grub_efi_usb_class_device_path): Likewise.
8269 (grub_efi_i2o_device_path): Likewise.
8270 (grub_efi_mac_address_device_path): Likewise.
8271 (grub_efi_ipv4_device_path): Likewise.
8272 (grub_efi_ipv6_device_path): Likewise.
8273 (grub_efi_infiniband_device_path): Likewise.
8274 (grub_efi_uart_device_path): Likewise.
8275 (grub_efi_vendor_messaging_device_path): Likewise.
8276 (grub_efi_hard_drive_device_path): Likewise.
8277 (grub_efi_cdrom_device_path): Likewise.
8278 (grub_efi_vendor_media_device_path): Likewise.
8279 (grub_efi_file_path_device_path): Likewise.
8280 (grub_efi_protocol_device_path): Likewise.
8281 (grub_efi_piwg_device_path): Likewise.
8282 (grub_efi_bios_device_path): Likewise.
8284 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8286 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
8287 (grub_ucs4_to_utf8_alloc): Likewise.
8288 (grub_ucs4_to_utf8): Likewise.
8289 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
8290 (grub_ucs4_to_utf8_alloc): Likewise.
8292 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8294 AFFS never uses unicode.
8296 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
8297 (grub_latin1_to_utf8): New inline function.
8298 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
8300 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8302 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
8305 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8307 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
8308 (grub_squash_dirent_header): Likewise.
8309 (read_chunk): Don't double swap.
8310 (grub_squash_iterate_dir): Fix swap sizes.
8312 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8314 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
8316 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8318 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
8319 (grub_hfs_iterate_dir): Likewise.
8321 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8323 Fix video on platforms where unaligned access is forbidden.
8324 Make several optimisations while on it.
8326 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
8327 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8328 (grub_video_fbblit_replace_32bit_1bit): Likewise.
8329 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
8331 (grub_video_fbblit_replace_16bit_1bit):
8332 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8333 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8334 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
8335 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
8336 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
8337 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
8338 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
8339 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
8340 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
8341 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
8342 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
8343 (grub_video_fbblit_replace_index_RGB888): Likewise.
8344 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
8345 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
8346 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
8347 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
8348 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
8349 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8350 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
8352 (grub_video_fbblit_blend_XXX565_1bit):
8353 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8354 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
8355 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
8357 * grub-core/video/fb/video_fb.c (common_blitter)
8358 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
8359 (grub_video_fb_create_render_target_from_pointer)
8360 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
8361 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
8362 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
8364 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
8366 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8368 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
8369 HH22 and HM10 relocations.
8371 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8373 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
8375 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8377 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
8378 allocation succeeded.
8380 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8382 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
8383 argument a u8 pointer. All users updated.
8384 Handle unaligned buffers.
8386 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8388 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
8389 add_part to workaround compiler bug.
8391 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8393 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
8395 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8397 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
8398 Reserve alignment invariants.
8399 (grub_multiboot_load): Likewise.
8400 (retrieve_video_parameters): Likewise.
8401 (grub_multiboot_make_mbi): Likewise.
8403 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8405 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
8408 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8410 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
8411 (grub_pata_pio_write): Likewise.
8413 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8415 Add noreturn attributes and remove unreachable code.
8417 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
8419 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
8420 code. Mark as noreturn.
8421 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
8422 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
8423 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
8425 * grub-core/kern/main.c (grub_main): Mark as noreturn.
8426 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
8427 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
8428 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
8429 * include/grub/kernel.h (grub_main): Mark as noreturn.
8430 * include/grub/reader.h (grub_rescue_run): Likewise.
8432 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8434 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
8435 redundant declaration.
8437 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8439 * include/grub/net.h (grub_net_network_level_interfaces): Remove
8440 redundant declaration.
8441 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
8443 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8445 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
8446 to ensure alignment.
8447 (grub_hdparm_print_identify): Make argument uint16 * to ensure
8448 alignment. Ensure tmp alignment.
8449 (grub_cmd_hdparm): Ensure buf alignment.
8450 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
8451 to ensure alignment.
8452 (grub_ata_dumpinfo): Ensure text alignment.
8453 (grub_atapi_identify): Preserve alignment invariant.
8454 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
8456 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8458 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
8459 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
8460 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
8461 * include/grub/misc.h (grub_reboot)
8462 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
8463 (grub_halt) [__mips__]: Likewise.
8465 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8467 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
8468 Remove redundant declaration.
8469 (grub_mmap_get_post64): Likewise.
8470 (grub_mmap_get_upper): Likewise.
8471 (grub_mmap_get_lower): Likewise.
8473 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8475 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
8476 uint32_t * to ensure alignment.
8477 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
8479 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8481 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
8482 uint16_t * to ensure alignment.
8483 (sun_pc_partition_map_iterate): Make `block' a union to ensure
8486 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8488 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
8489 to ensure alignment.
8490 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
8492 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8494 * grub-core/fs/ntfs.c (u16at): Make into inline function.
8495 Handle unaligned pointers.
8498 (fixup): Use byte access instead of v16at.
8499 (find_attr): Fix imporper usage of v32at.
8500 (read_data): Likewise.
8501 (list_file): Handle byte-swapping and unaligned strings.
8502 (grub_ntfs_label): Likewise.
8504 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8506 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
8507 as it's not necessarily aligned.
8509 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8511 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
8512 redundant declaration.
8513 (grub_serial_init): Likewise.
8514 (grub_terminfo_init): Likewise.
8516 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8518 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
8520 (ZAP_HASH_IDX): Likewise.
8521 (ZAP_LEAF_HASH_SHIFT): Likewise.
8522 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
8523 (LEAF_HASH): Likewise.
8524 (ZAP_LEAF_NUMCHUNKS): Likewise.
8525 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
8526 alignment invariants. Return pointer. All users updated.
8527 (ZAP_LEAF_ENTRY): Make into inline function.
8530 (xor_out): Use grub_crypto_xor.
8531 (dnode_get_path): Use grub_get_unaligned.
8532 (nvlist_find_value): Likewise.
8533 (grub_zfs_nvlist_lookup_uint64): Likewise.
8534 (grub_zfs_nvlist_lookup_string): Likewise.
8535 (get_nvlist_size): Likewise.
8536 (grub_zfs_open): Likewise.
8537 (fill_fs_info): Likewise.
8538 (grub_zfs_dir): Likewise.
8539 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
8540 alignment invariants.
8541 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
8542 necessarily aligned.
8544 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8546 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
8548 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8550 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
8551 arithmetic to conserve alignment invariants.
8553 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8555 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
8556 redundant declaration.
8557 (grub_efiemu_mm_obtain_request): Likewise.
8558 (grub_efiemu_prepare): Likewise.
8560 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8562 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
8565 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8567 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
8568 case of aunaligned recptr.
8569 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
8571 (grub_hfsplus_btree_search): Handle unaligned index.
8573 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8575 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
8576 to get freetag and skip.
8578 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8580 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
8582 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
8583 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
8585 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8587 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
8588 name for checksum and fix allocation algorithm.
8590 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8592 * include/grub/types.h (grub_properly_aligned_t): New type.
8593 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
8594 (grub_get_unaligned16): Add explicit casts.
8595 (grub_get_unaligned32): Likewise.
8596 (grub_get_unaligned64): Likewise.
8597 (grub_set_unaligned16): New function.
8598 (grub_set_unaligned32): Likewise.
8600 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8602 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
8604 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8606 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
8607 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
8608 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
8610 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8612 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
8615 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8617 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
8618 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
8620 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8622 Unify and improve RAID and crypto xor.
8624 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
8625 changed to grub_crypto_xor
8626 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
8627 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
8628 Use bigger types when possible.
8630 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8632 * grub-core/disk/raid.c (scan_devices): Fix condition.
8634 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8636 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
8637 Make name a const ptr.
8639 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8641 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
8642 first argument a const pointer.
8643 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
8644 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
8646 (grub_children_iterate): Likewise.
8647 (grub_machine_mmap_iterate): Remove redundant declaration.
8649 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8651 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
8652 (grub_cmd_acpi) [!x86]: Disable EBDA.
8654 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8656 Enable UTF8 in gnulib regexp.
8658 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
8659 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
8660 (isupper): Use grub_isupper.
8661 (isascii): New inline function.
8662 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
8663 * grub-core/lib/posix_wrap/wctype.h: Likewise.
8664 * grub-core/normal/charset.c (grub_utf8_process): New function.
8665 (grub_utf8_to_utf16): Use grub_utf8_process.
8666 (grub_encode_utf8_character): New function.
8667 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
8668 * include/grub/charset.h (grub_utf8_process): New declaration.
8669 (grub_encode_utf8_character): Likewise.
8670 * include/grub/misc.h (grub_islower): New inline function.
8671 (grub_isupper): Likewise.
8672 (grub_strchrsub): Moved down to fix the definitions.
8674 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8676 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
8679 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8681 * include/grub/loader.h (grub_loader_register_preboot_hook):
8682 Use struct preboot * and not void * for handle. All users updated.
8683 (grub_loader_unregister_preboot_hook): Likewise.
8685 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
8687 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
8688 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
8689 UTF-16-BE. All users updated.
8690 (grub_hfsplus_cmp_catkey): Fix unicode handling.
8691 (grub_hfsplus_iterate_dir): Likewise.
8692 (grub_hfsplus_label): Likewise.
8694 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
8696 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
8698 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
8700 Add missing const qualifiers.
8702 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
8703 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
8704 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
8705 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
8706 (grub_lvm_check_flag): Likewise.
8707 * grub-core/efiemu/i386/coredetect.c
8708 (grub_efiemu_get_default_core_name): Likewise
8709 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
8710 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
8711 * grub-core/fs/ntfs.c (fixup): Likewise.
8712 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
8713 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
8714 (fzap_lookup): Likewise.
8715 (zap_lookup): Likewise.
8716 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
8717 * grub-core/lib/legacy_parse.c (check_option): Likewise.
8718 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
8719 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
8720 (grub_freebsd_add_meta_module): Likewise.
8721 (grub_cmd_freebsd_module): Likewise.
8722 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
8723 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
8724 (grub_xnu_writetree_get_size): Likewise.
8725 (grub_xnu_writetree_toheap_real): Likewise.
8726 (grub_xnu_find_key): Likewise.
8727 (grub_xnu_create_key): Likewise.
8728 (grub_xnu_create_value): Likewise.
8729 (grub_xnu_register_memory): Likewise.
8730 (grub_xnu_check_os_bundle_required): Likewise.
8731 (grub_xnu_scan_dir_for_kexts): Likewise.
8732 (grub_xnu_load_kext_from_dir): Likewise.
8733 * grub-core/normal/color.c (color_list): Likewise.
8734 * grub-core/normal/completion.c (current_word): Likewise.
8735 * grub-core/normal/menu_entry.c (insert_string): Likewise.
8736 * grub-core/term/serial.c (grub_serial_find): Likewise.
8737 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
8738 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
8740 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
8741 (grub_freebsd_add_meta_module): Likewise.
8742 * include/grub/lib/arg.h (grub_arg_option): Likewise.
8743 * include/grub/net.h (grub_net_card_driver): Likewise.
8744 (grub_net_card): Likewise.
8745 (grub_net_app_protocol): Likewise.
8746 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
8747 * include/grub/serial.h (grub_serial_find): Likewise.
8748 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
8749 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
8750 (grub_xnu_create_value): Likewise.
8751 (grub_xnu_find_key): Likewise.
8752 (grub_xnu_scan_dir_for_kexts): Likewise.
8753 (grub_xnu_load_kext_from_dir): Likewise.
8755 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
8756 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
8757 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
8759 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
8761 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
8763 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
8765 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
8767 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
8768 (read_device): Fix size calculation.
8770 2011-11-25 Robert Millan <rmh@gnu.org>
8772 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
8773 (find_root_device_from_libzfs): Add zpool output parser to be used
8774 as fallback when libzfs isn't available.
8776 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
8778 * po/Makefile.in.in: Add missing escape-continuation.
8780 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
8782 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
8784 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
8786 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
8788 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
8790 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
8792 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
8794 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
8796 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
8798 * grub-core/lib/adler32.c: Add missing license specification.
8799 * grub-core/lib/crc64.c: Likewise.
8800 * grub-core/loader/i386/pc/plan9.c: Likewise.
8801 * grub-core/partmap/plan.c: Likewise.
8803 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
8805 Add facility to debug GRUB with gdb under qemu.
8807 * grub-core/gdb_grub.in: New file.
8808 * grub-core/gmodule.pl.in: Likewise.
8809 * grub-core/Makefile.core.def (gmodule.pl): New script.
8810 (gdb_grub): Likewise.
8812 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8814 * util/grub-mount.c (argp_parser): Accept relative pathes.
8815 * util/grub-fstest.c (argp_parser): Likewise.
8817 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8821 * Makefile.util.def (libgrubmods): Add
8822 grub-core/partmap/plan.c.
8823 * docs/grub.texi: Notice Plan9 support.
8824 * grub-core/Makefile.core.def (plan9): New module.
8825 (part_plan): Likewise.
8826 * grub-core/loader/i386/pc/plan9.c: New file.
8827 * grub-core/partmap/plan.c: Likewise.
8828 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
8830 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
8831 * include/grub/mm.h (grub_extend_alloc): New inline function.
8833 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8835 Make Reed-Solomon faster by using power of generator representation of
8838 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
8839 (gf_double_t): Likewise.
8840 (gf_invert): Removed.
8841 (gf_powx): New array.
8842 (gf_powx_inv): Likewise.
8843 (scratch): Move higher.
8844 (gf_reduce): Removed.
8846 (gf_invert): Likewise.
8847 (init_inverts): Replaced with ...
8848 (init_powx): ...this. All users updated.
8849 (pol_evaluate): Replace multiplications with additions.
8850 (rs_encode): Likewise.
8851 (gauss_eliminate): Call gf_invert.
8852 (grub_reed_solomon_add_redundancy): Call init_powx.
8853 (grub_reed_solomon_recover): Call init_powx unconditionally.
8855 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8857 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
8859 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8861 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
8862 disk->partiton for safety.
8864 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8866 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
8868 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
8870 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8872 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
8874 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8876 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
8878 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8880 Fix spaces handling in proc/self/mountinfo.
8882 * util/getroot.c (unescape): New function.
8883 (grub_find_root_device_from_mountinfo): Use unescape.
8885 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8887 Support ZFS embedding.
8889 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
8890 (grub_zfs_fs): Register grub_zfs_embed.
8892 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8894 Fix MIPS compilation.
8896 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
8897 * include/grub/offsets.h: Rename decompressor fields from
8898 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
8899 * util/grub-mkimage.c (image_targets): Use new names.
8901 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8903 Defer multiboot device parsing until we're in compressed part.
8905 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
8906 bsd_part. setdevice has fallen into disuse.
8907 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
8908 (bsd_part): Likewise.
8909 (boot_dev): New variable.
8910 (multiboot_trampoline): Don't parse multiboot device.
8911 Pass multiboot device in %edx.
8912 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
8914 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
8916 * grub-core/kern/i386/pc/startup.S: Save edx.
8917 (grub_boot_drive): Removed.
8918 (grub_install_dos_part): Likewise.
8919 (grub_install_bsd_part): Likewise.
8920 (grub_boot_device): New variable.
8921 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
8922 (grub_install_bsd_part): Likewise.
8923 (grub_boot_drive): Likewise.
8924 (grub_boot_device): New variable.
8925 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
8927 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
8928 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
8929 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
8930 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
8931 * util/grub-install.in: Remove redundant condition.
8933 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8935 Fix bug introduced by previous commit.
8937 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
8939 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8941 Use decompressors framework on i386-pc. It increases core size
8942 by 46 bytes but improves compatibility and maintainability.
8944 * grub-core/Makefile.core.def (lzma_decompress): New image.
8945 (kernel): Add i386_pc_ldflags.
8946 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
8947 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
8948 to real_to_prot, prot_to_real and device info.
8949 * include/grub/offsets.h: Renamed decompressor offsets.
8950 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
8951 (image_target_desc): Remove raw_size and rename decompressor fields.
8952 (compress_kernel): Handle lzma.
8953 (generate_image): Handle decompressors on i386-pc.
8955 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8957 * configure.ac: Add -fno-asynchronous-unwind-tables.
8959 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8961 Move assembly code to C by using intwrap. It increases core size
8962 by 88 bytes but improves compatibility and maintainability.
8964 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
8965 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
8966 ... here. Translated to C.
8967 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
8968 * grub-core/term/i386/pc/console.c (grub_console_getkey):
8969 ... here. Translated to C.
8970 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
8971 * grub-core/term/i386/pc/console.c (grub_console_getxy):
8972 ... here. Translated to C.
8973 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
8974 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
8975 ... here. Translated to C.
8976 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
8977 * grub-core/term/i386/pc/console.c (grub_console_cls):
8978 ... here. Translated to C.
8979 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
8980 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
8981 ... here. Translated to C.
8982 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
8983 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
8985 * grub-core/term/i386/pc/console.c (int10_9): New function.
8986 (grub_console_putchar): Likewise.
8987 * include/grub/i386/pc/console.h: Removed the not anymore shared
8990 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8992 Move grub_chainloader_real_boot out of the kernel.
8994 * grub-core/Makefile.am: Remove machine/loader.h.
8995 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
8997 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
8999 (grub_relocator16_keep_a20_enabled): Likewise.
9000 (grub_relocator16_boot): Fill new variables.
9001 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
9002 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
9004 (grub_chainloader_unload): Likewise.
9005 (grub_chainloader_cmd): Likewise.
9006 * include/grub/i386/pc/loader.h: Removed.
9007 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
9008 and esi. All initialisers updated.
9010 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9011 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
9013 * Makefile.util.def (grub-mount): New util.
9014 * .bzrignore: Add grub-mount.
9015 * configure.ac: Check for fuse and enable grub-mount if available.
9016 * docs/man/grub-mount.h2m: New file.
9017 * util/grub-mount.c: Likewise.
9019 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9021 * grub-core/commands/efi/fixvideo.c: Gettextize.
9022 * grub-core/commands/hashsum.c: Likewise.
9023 * grub-core/commands/i386/cmostest.c: Likewise.
9024 * grub-core/commands/i386/pc/drivemap.c: Likewise.
9025 * grub-core/commands/i386/pc/lsapm.c: Likewise.
9026 * grub-core/commands/i386/pc/sendkey.c: Likewise.
9027 * grub-core/commands/lsmmap.c: Likewise.
9028 * grub-core/commands/menuentry.c: Likewise.
9029 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
9030 * grub-core/commands/setpci.c: Likewise.
9031 * grub-core/loader/i386/bsd.c: Likewise.
9032 * grub-core/loader/i386/linux.c: Likewise.
9033 * util/getroot.c: Likewise.
9034 * util/grub-editenv.c: Likewise.
9035 * util/grub-fstest.c: Likewise.
9036 * util/grub-mkfont.c: Likewise.
9037 * util/grub-mkimage.c: Likewise.
9038 * util/grub-mkpasswd-pbkdf2.c: Likewise.
9039 * util/grub-pe2elf.c: Likewise.
9040 * util/grub-probe.c: Likewise.
9041 * util/grub-setup.c: Likewise.
9042 * util/ieee1275/ofpath.c: Likewise.
9043 * util/misc.c: Likewise.
9044 * util/raid.c: Likewise.
9046 2011-11-11 Robert Millan <rmh@gnu.org>
9048 * util/getroot.c (grub_util_get_geom_abstraction): Remove
9049 __attribute__((unused)) from `os_dev', which *is* being used.
9051 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9053 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
9055 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
9056 GRUB_IA64_DL_GOT_ALIGN.
9057 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
9058 GRUB_IA64_DL_TRAMP_ALIGN.
9060 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9062 Replace grub_fatal with normal errors in i386 linux loader.
9064 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
9065 (allocate_pages): Check find_efi_mmap_size return value.
9066 (grub_e820_add_region): Return error.
9067 (grub_linux_boot): Check mmap return value.
9069 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9071 * grub-core/commands/acpihalt.c: Gettextized.
9072 * grub-core/commands/cacheinfo.c: Likewise.
9073 * grub-core/commands/cmp.c: Likewise.
9074 * grub-core/commands/efi/loadbios.c: Likewise.
9075 * grub-core/commands/gptsync.c: Likewise.
9076 * grub-core/commands/ieee1275/suspend.c: Likewise.
9077 * grub-core/commands/legacycfg.c: Likewise.
9078 * grub-core/commands/memrw.c: Likewise.
9079 * grub-core/commands/minicmd.c: Likewise.
9080 * grub-core/commands/parttool.c: Likewise.
9081 * grub-core/commands/time.c: Likewise.
9082 * grub-core/commands/videoinfo.c: Likewise.
9083 * grub-core/disk/geli.c: Likewise.
9084 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
9085 * grub-core/disk/luks.c: Likewise.
9086 * grub-core/disk/lvm.c: Likewise.
9087 * grub-core/font/font_cmd.c: Likewise.
9088 * grub-core/fs/zfs/zfscrypt.c: Likewise.
9089 * grub-core/fs/zfs/zfsinfo.c: Likewise.
9090 * grub-core/gfxmenu/view.c: Likewise.
9091 * grub-core/kern/emu/hostdisk.c: Likewise.
9092 * grub-core/kern/emu/main.c: Likewise.
9093 * grub-core/kern/emu/misc.c: Likewise.
9094 * grub-core/kern/emu/mm.c: Likewise.
9095 * grub-core/kern/mips/arc/init.c: Likewise.
9096 * grub-core/kern/mips/loongson/init.c: Likewise.
9097 * grub-core/kern/partition.c: Likewise.
9098 * grub-core/lib/i386/halt.c: Likewise.
9099 * grub-core/lib/mips/arc/reboot.c: Likewise.
9100 * grub-core/lib/mips/loongson/reboot.c: Likewise.
9101 * grub-core/loader/i386/pc/chainloader.c: Likewise.
9102 * grub-core/loader/i386/xnu.c: Likewise.
9103 * grub-core/loader/multiboot.c: Likewise.
9104 * grub-core/net/bootp.c: Likewise.
9105 * grub-core/net/net.c: Likewise.
9106 * grub-core/normal/term.c: Likewise.
9107 * grub-core/partmap/bsdlabel.c: Likewise.
9108 * grub-core/parttool/msdospart.c: Likewise.
9109 * grub-core/term/gfxterm.c: Likewise.
9110 * grub-core/term/terminfo.c: Likewise.
9111 * grub-core/video/i386/pc/vbe.c: Likewise.
9112 * util/grub-menulst2cfg.c: Likewise.
9113 * util/grub-mkdevicemap.c: Likewise.
9114 * util/grub-mklayout.c: Likewise.
9115 * util/grub-mkrelpath.c: Likewise.
9116 * util/grub-script-check.c: Likewise.
9117 * util/ieee1275/grub-ofpathname.c: Likewise.
9118 * util/resolve.c: Likewise.
9120 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9122 Support %1$d syntax.
9124 * tests/printf_unit_test.c: New file.
9125 * Makefile.util.def (printf_test): New test.
9126 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
9128 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9130 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
9133 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9135 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
9137 * grub-core/font/font.c (grub_font_load): Likewise.
9139 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9141 * util/grub-macho2img.c: Add comment concerning gettext.
9142 * grub-core/lib/legacy_parse.c: Likewise.
9144 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9146 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
9147 (grub_xvasprintf): Likewise.
9149 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9151 Add const keyword to grub_env_get and gettextize week days.
9153 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
9154 (grub_read_hook_datetime): Return const char *.
9155 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
9157 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
9159 (grub_get_weekday_name): Return const char *. Call gettext.
9160 * grub-core/script/argv.c (grub_script_argv_append): Receive const
9161 char * and len as the argument. All users updated.
9162 (grub_script_argv_split_append): Receive const char *.
9163 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
9164 * include/grub/env.h (grub_env_get): Likewise.
9165 (grub_env_read_hook_t): Return const char *.
9166 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
9167 (grub_script_argv_split_append): Likewise.
9169 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9171 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
9173 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9175 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
9176 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
9178 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9180 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
9183 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9185 Fix mips compilation.
9187 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
9189 (hashes): Use in embed decoder as well (for sizes).
9190 (dec_stream_header): Fix embed decompressor logic.
9191 (dec_stream_footer): Likewise.
9193 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9195 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
9196 an error and not a fatal on unrecognised relocation types.
9198 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9200 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
9201 Issue error rather than printf on unknown arguments.
9203 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9205 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
9208 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9210 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
9213 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9215 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
9216 leftover debug printf.
9218 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9220 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
9222 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9224 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
9227 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9229 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
9231 2011-11-10 Shea Levy <slevy@tieronedesign.com>
9233 Allow all modules to perform serial IO
9235 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
9236 * include/grub/serial.h (grub_serial_port_configure): New inline
9238 (grub_serial_port_fetch): Likewise.
9239 (grub_serial_port_put): Likewise.
9240 (grub_serial_port_fini): Likewise.
9241 (grub_serial_find): New proto.
9243 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9245 Put symlink at the end of the node and fix a potential
9248 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
9249 Make symlink into an array.
9250 (set_rockridge): Set have_symlink and alloc_dirents.
9251 (grub_iso9660_read_symlink): Use new layout.
9252 (grub_iso9660_iterate_dir): Fix memory corruption.
9254 (grub_iso9660_dir): Set have_symlink.
9255 (grub_iso9660_open): Likewise.
9257 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9259 Remove local keyword.
9261 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
9262 (version_test_gt): Likewise.
9263 (version_find_latest): Likewise.
9264 (gettext_printf): Likewise.
9265 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
9267 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9269 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
9271 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9273 Fix ZFS memory and resource leaks.
9275 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
9278 (fill_vdev_info): New parameter inserted. All users updated.
9279 (check_pool_label): Likewise.
9280 (scan_disk): Likewise.
9281 (scan_devices): Close non-inserted disks.
9282 (fzap_iterate): Free l.
9283 (unmount_device): Free children descripto memory.
9285 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9287 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
9288 argument (access out of bounds).
9290 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9292 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
9295 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9297 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
9300 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9302 Fix several memory leaks.
9304 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
9305 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
9306 (grub_cpio_dir): Likewise.
9307 * grub-core/fs/fat.c (grub_fat_label): Likewise.
9308 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
9309 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
9310 (grub_romfs_label): Likewise.
9311 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
9312 (squash_unmount): New function.
9313 (grub_squash_dir): Fix memory leak.
9314 (grub_squash_open): Likewise.
9315 (grub_squash_read): Likewise.
9316 (grub_squash_mtime): Likewise.
9317 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
9318 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
9319 * util/grub-fstest.c (fstest): Likewise.
9321 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9323 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
9324 avoid accessing beyond the array.
9326 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9328 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
9330 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9334 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
9335 (GRUB_AFFS_FLAG_FFS): Removed.
9336 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
9337 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
9338 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
9339 (grub_fshelp_node): Make block 32-bit.
9340 Add block_cache and last_block_cache.
9341 (grub_affs_read_block): Fill and use block cache.
9342 (grub_affs_read_file): Removed.
9343 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
9345 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
9347 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
9349 (grub_affs_close): Free block cache.
9350 (grub_affs_read): Use grub_fshelp_read_file directly.
9352 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9354 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
9357 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9359 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
9361 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
9364 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9366 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
9368 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
9369 byteswap when needed.
9371 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9373 Fix FreeBSD compilation.
9375 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
9376 to avoid circular dependency.
9377 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
9378 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
9379 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
9381 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9383 Fix ZFS crypto error types.
9385 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
9386 (grub_gcm_decrypt): Likewise.
9387 (grub_zfs_load_key_real): Fix error code type. Handle possible error
9390 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9394 * Makefile.util.def (10_illumos): New script.
9395 * configure.ac: Set COND_HOST_ILLUMOS.
9396 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
9397 Support Illumos calls.
9398 (find_partition_start) [__sun__]: Likewise.
9399 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
9400 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
9401 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
9402 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
9404 * util/grub-probe.c (probe) [__sun__]: Do character check.
9405 * util/grub.d/10_illumos.in: New file.
9407 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9409 Support escaped commas in hostdisk.
9411 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
9412 (find_grub_drive): Use unescape_cmp.
9413 (make_device_name): Escape commas.
9415 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9417 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
9419 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9421 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
9424 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9426 Support trampoline jumps on powerpc.
9428 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
9430 (grub_dl_load_segments): Set mod->sz.
9431 (grub_dl_flush_cache): Flush whole space occupied by module, not just
9433 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
9435 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
9437 (trampoline): New struct.
9438 (trampoline_template): New const.
9439 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
9440 * include/grub/dl.h (grub_dl): Add sz element.
9441 [__powerpc__]: Follow __ia64__.
9442 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
9443 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
9444 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
9445 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
9447 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9451 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
9452 * grub-core/Makefile.core.def (zfscrypt): New module.
9453 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
9454 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
9455 it. All users updated.
9456 (grub_zfs_decrypt): New var.
9457 (grub_zfs_load_key): Likewise.
9458 (zio_checksum_functions): Add SHA256+MAC.
9459 (zio_checksum_verify): Handle incomplete comparison due to MAC.
9460 (zio_read): Handle encrypted blocks.
9461 (zap_verify): Remove incorrect check.
9462 (fzap_iterate): Handle non-standard fzap.
9463 (zap_iterate): Likewise.
9464 (zap_iterate_u64): New function.
9465 (dnode_get_fullpath): Load keys.
9466 * grub-core/fs/zfs/zfscrypt.c: New file.
9467 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
9468 (grub_crypto_ecb_encrypt): Make input const.
9469 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
9470 (grub_crypto_ecb_encrypt): Make input const.
9471 (GRUB_CIPHER_AES): New macro.
9472 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
9473 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
9474 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
9475 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
9476 prefix. All users updated.
9477 (grub_zfs_add_key): New proto.
9478 (grub_zfs_decrypt): Likewise.
9479 (grub_zfs_load_key): Likewise.
9480 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
9481 * util/grub-fstest.c (options): Add -K option.
9482 (argp_parser): Likewise.
9484 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9486 Support zle compression on ZFS.
9488 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
9489 (decomp_table): Add zle.
9490 * include/grub/zfs/zio.h (zio_compress): Add zle.
9492 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9494 Support BtrFS embedding.
9496 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
9497 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
9498 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
9499 * util/grub-setup.c (setup): Use fs embedding if available.
9500 Add additional sanity check.
9502 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9504 * util/grub-install.in: Fix condition for config_opt.
9506 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9508 Support third redundancy strip on raidz3.
9510 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
9511 Return error on singularity. All users updated.
9512 (read_device): Don't stop on 3rd failure on raidz3.
9514 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9516 Support case-insensitive ZFS subvolumes.
9518 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
9520 (zap_hash): Likewise.
9521 (name_cmp): New function.
9522 (zap_leaf_array_equal): New parameter case_insensitive.
9524 (zap_leaf_lookup): Likewise.
9525 (fzap_lookup): Likewise.
9526 (zap_lookup): Likewise.
9527 (dnode_get_path): New parameter case_insensitive. Retrieve case
9528 sensitiviness of a volume. All users updated.
9529 (dnode_get_fullpath): New parameter case_insensitive.
9531 (grub_zfs_dir): Set info.case_insensitiveness.
9533 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9535 Support second redundancy strip on raidz(2,3).
9537 * grub-core/fs/zfs/zfs.c (powx): New array.
9538 (powx_inv): Likewise.
9540 (xor_out): New function.
9542 (recovery): Likewise.
9543 (read_device): Use second redundancy strip.
9545 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9547 Use a power of generator representation of GF(256) multiplication group
9548 to save space time and complexity.
9550 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
9551 (raid6_table2): Likewise.
9553 (powx_inv): Likewise.
9555 (grub_raid_block_mul): Replace with ...
9556 (grub_raid_block_mulx): ...this.
9557 (grub_raid6_init_table): Rewritten.
9558 (grub_raid6_recover): Use power of generator representation.
9560 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9562 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
9563 for the right device.
9565 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9567 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
9568 expected by grub-mkimage and it's more clear since there is no implicit
9571 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9573 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
9575 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
9577 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
9579 * util/grub-mkrescue.in: Fix handling xorriso option.
9581 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9583 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
9586 2011-11-03 crocket <crockabiscuit@gmail.com>
9588 * util/grub.d/10_linux.in: Add Slackware initrd naming.
9590 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9592 XZ CRC64 and SHA256 support.
9594 * Makefile.util.def (libgrubmods): Add crc64.c.
9595 * grub-core/Makefile.core.def (crc64): New module.
9596 * grub-core/lib/crc64.c: New file.
9597 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
9598 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
9600 (MAX_HASH_SIZE): New define.
9601 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
9602 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
9603 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
9604 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
9605 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
9606 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
9607 Handle non-crc32 hashes.
9608 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
9609 (dec_stream_header): Handle non-crc32 hashes.
9610 (dec_stream_footer): Likewise.
9611 (dec_block_header): Likewise.
9612 (dec_main): Likewise.
9613 (xz_dec_init): Likewise.
9614 (xz_dec_reset): Likewise.
9615 (xz_dec_end): Likewise.
9616 * util/import_gcry.py: Add CRC64 line.
9618 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9620 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
9623 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9625 Make reiserfs label retrieval similar to other *_label functions.
9627 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
9628 (REISERFS_MAX_LABEL_LENGTH): Removed.
9629 (REISERFS_LABEL_OFFSET): Likewise.
9630 (grub_reiserfs_label): Rewritten.
9632 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9634 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
9637 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9639 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
9641 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
9643 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
9644 drive failure on both raidz and raidz2.
9646 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
9648 Fix RAIDZ(2) for >= 5 devices.
9650 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
9651 asize argument. All users updated.
9653 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9657 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
9658 (fill_vdev_info_real): Set ashift.
9659 (read_device): Rewrite RAIDZ part based on reverse engineering.
9661 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9663 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
9664 don't report potentially unavialiable fields in debug output.
9665 (find_path): Fix double-free and memory leak.
9667 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9671 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
9672 (grub_ufs_fs): Always set .label.
9674 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9678 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
9679 (grub_ufs_data): New field log2_blksz.
9680 (grub_ufs_read_file): Use shifts.
9681 (grub_ufs_mount): Check block size and logarithm it.
9683 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9685 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
9688 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9690 Handle symlinks and long names on tar and cpio.
9692 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
9693 (ATTR_FILE): Likewise.
9694 (ATTR_DIR): Likewise.
9695 (ATTR_LNK): Likewise.
9696 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
9697 (grub_cpio_find_file): Fill mode, handle linkname field as well as
9699 (grub_cpio_mount): Zero-fill data.
9700 (handle_symlink): New function.
9701 (grub_cpio_dir): Handle symlinks.
9702 (grub_cpio_open): Likewise.
9703 (grub_cpio_close) [MODE_USTAR]: Free linkname.
9705 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9707 Fix iso9660 filename limitations and fix memory leaks.
9709 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
9710 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
9712 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9714 Fix JFS file name length limitations.
9716 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
9717 (grub_jfs_diropen): Fix maximum filename length.
9718 (grub_jfs_getent): Fix filename length.
9719 (grub_jfs_lookup_symlink): Fix size checks.
9721 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9723 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
9726 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9728 Leverage BFS implementation to read AFS.
9730 * Makefile.util.def (libgrubmods): Add afs.c.
9731 * grub-core/Makefile.core.def (afs): New module
9732 * grub-core/fs/afs.c: New file.
9733 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
9735 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9737 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
9739 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9741 * grub-core/fs/bfs.c: Run indent.
9743 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9745 BFS implementation based on the specification.
9747 * grub-core/fs/bfs.c: New file.
9748 * Makefile.util.def (libgrubmods): Add bfs.c.
9749 * grub-core/Makefile.core.def (bfs): New module.
9751 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9753 * util/grub-fstest.c (cmd_cp): Clarify error message.
9754 (cmd_cmp): Likewise.
9756 2011-10-30 Yves Blusseau <blusseau@zetam.org>
9758 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
9761 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
9763 Remove afs and befs because of copyright problem.
9765 * grub-core/fs/afs.c: Removed.
9766 * grub-core/fs/afs_be.c: Removed.
9767 * grub-core/fs/befs.c: Removed.
9768 * grub-core/fs/befs_be.c: Removed.
9769 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
9770 * grub-core/Makefile.core.def (afs): Removed.
9773 (befs_be): Likewise.
9775 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9777 Prefer rockridge over Joliet.
9779 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
9781 (set_rockridge): ... here.
9782 (grub_iso9660_mount): Check rockridge on the primary label when
9783 discovering. Ignore Joliet if Rockridge is present.
9785 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9787 Use shifts in nilfs2.
9789 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
9790 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
9791 (grub_nilfs2_palloc_entries_per_group): Replace with ...
9792 (grub_nilfs2_log_palloc_entries_per_group): ... this.
9793 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
9794 (grub_nilfs2_entries_per_block): Replaced with ...
9795 (grub_nilfs2_log_entries_per_block_log): ... this.
9796 (grub_nilfs2_blocks_per_group): Replaced with ...
9797 (grub_nilfs2_blocks_per_group_log): ... this.
9798 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
9799 (grub_nilfs2_blocks_per_desc_block_log): ... this.
9800 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
9801 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
9802 (grub_nilfs2_palloc_entry_offset): Replaced ...
9803 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
9804 (grub_nilfs2_dat_translate): Use shifts.
9805 (grub_nilfs2_read_inode): Likewise.
9806 (GRUB_MOD_INIT): Ensure that logs are correct.
9808 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9810 Use shifts in minix filesystem.
9812 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
9813 (GRUB_MINIX_ZONE2SECT): Likewise.
9814 (grub_minix_data): Replace block_size with log_block_size.
9815 (grub_minix_read_file): Use shifts.
9816 (grub_minix_mount): Check block size and take a logarithm.
9818 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9820 Use shifts in squash4.
9822 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
9823 (squash_mount): Check block size and take logarithm.
9824 (direct_read): Use shifts.
9826 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9828 Correct befs block counting logic.
9830 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
9831 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
9832 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
9833 (grub_afs_read_inode): Use block_shift.
9834 (RANGE_SHIFT): New definition.
9835 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
9836 unexpected conditions, use shifts and appropriate types.
9837 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
9839 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9841 * grub-core/disk/raid.c (scan_devices): Check partition.
9842 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
9844 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
9846 Support BFS (befs) UUID.
9848 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
9849 (grub_afs_small_data_element_header): New struct.
9850 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
9851 (grub_afs_read_attribute) [MODE_BFS]: New function.
9852 (grub_afs_iterate_dir): Allocate for complete inode.
9853 (grub_afs_mount): Likewise.
9854 (grub_afs_uuid) [MODE_BFS]: New function.
9855 (grub_afs_fs) [MODE_BFS]: Add .uuid.
9857 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
9859 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
9860 (zfs_unmount): Fix memory leak.
9862 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9864 Support NTFS reparse points.
9866 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
9867 (symlink_descriptor): New struct.
9868 (grub_ntfs_read_symlink): New function.
9869 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
9870 (grub_ntfs_open): Likewise.
9872 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9874 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
9876 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9878 fstest xnu_uuid subcommand.
9880 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
9881 grub-core/commands/xnu_uuid.c.
9882 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
9883 (fstest): Handle xnu_uuid.
9884 (options): Document xnu_uuid.
9885 (argp_parser): Parse xnu_uuid.
9887 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9889 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
9890 -l argument. Add newline at the end if printing.
9891 (GRUB_MOD_INIT): Document -l.
9893 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9895 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
9897 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9899 ZFS multi-device and version 33 support.
9901 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
9902 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
9903 (grub_zfs_data): Add multidev-ice-related fields.
9904 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
9905 (dva_get_offset): Make dva const.
9906 (zfs_fetch_nvlist): New function.
9907 (fill_vdev_info_real): Likewise.
9908 (fill_vdev_info): Likewise.
9909 (check_pool_label): Likewise.
9910 (scan_disk): Likewise.
9911 (scan_devices): Likewise.
9912 (read_device): Likewise.
9913 (read_dva): Likewise.
9914 (zio_read_gang): Use read_dva.
9915 (zio_read_data): Likewise.
9916 (zap_leaf_lookup): Add missing endian conversion.
9917 (zap_verify): Add missing endian conversion. All users updated.
9918 (fzap_lookup): Likewise.
9919 (fzap_iterate): Likewise.
9920 (dnode_get_path): Handle SA bonus.
9921 (nvlist_find_value): Make input const. All users updated.
9922 (unmount_device): New function.
9923 (zfs_unmount): Use unmount_device.
9924 (zfs_mount): Use scan_disk.
9925 (zfs_mtime): New function.
9926 (grub_zfs_open): Handle system attributes.
9927 (fill_fs_info): Likewise.
9928 (grub_zfs_dir): Likewise.
9929 (grub_zfs_fs): Add mtime.
9930 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
9931 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
9932 (SA_MTIME_OFFSET): Likewise.
9933 (SA_SYMLINK_OFFSET): Likewise.
9934 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
9935 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
9936 (fstest): Support zfsinfo.
9937 (argp_parser): Likewise.
9939 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9941 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
9944 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9948 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
9949 sharing the same block. Iterate over correct number of indices.
9950 (dnode_get_path): Handle symlinks correctly.
9952 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9954 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
9956 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9960 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
9961 (grub_hfsplus_btree_search): Fix types.
9962 (grub_hfsplus_label): Implement.
9964 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9966 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
9968 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9970 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
9972 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9974 Fix symlink handling on iso9660.
9976 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
9978 (grub_iso9660_susp_iterate): Accept zero-size iterate.
9979 (grub_iso9660_read_symlink): Moved most of code ...
9980 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
9982 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9984 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
9985 Use union to avoid breaking strict-aliasing rules.
9987 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9989 Support multi-extent iso files.
9991 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
9993 (grub_fshelp_node): Revamp. All users updated.
9995 (read_node): New function.
9996 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
9998 (grub_iso9660_mount): Don't attempt to read sua when there is none.
9999 (get_node_size): New function.
10000 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
10002 Fix memory leak on . and ..
10003 (grub_iso9660_read): Use read_node.
10004 (grub_iso9660_close): Free node.
10006 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10008 Fix tar 4G limit and handle paths containing dot.
10010 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
10011 (canonicalize): New function.
10012 (grub_cpio_find_file): Use canonicalize. Store offs in
10014 (grub_cpio_dir): Use grub_disk_addr_t.
10015 (grub_cpio_open): Likewise.
10017 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10019 Fix handling of uncompressed blocks on squashfs and break 4G limit.
10021 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
10023 (grub_squash_inode): Add long_file and block_size.
10024 (grub_squash_cache_inode): New struct.
10025 (grub_squash_dirent): Make types into enum.
10026 (SQUASH_TYPE_LONG_REGULAR): New type.
10027 (grub_squash_frag_desc): Add field size.
10028 (SQUASH_BLOCK_FLAGS): New enum.
10029 (grub_squash_data): Use grub_squash_cache_inode.
10030 (grub_fshelp_node): Make ino_chunk 64-bit.
10031 (read_chunk): Minor argument change. All users updated.
10032 (squash_mount): Use correct le_to_cpu.
10033 (grub_squash_open): Handle LONG_REGULAR.
10034 (direct_read): New function.
10035 (grub_squash_read_data): Handle blocks correctly.
10037 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10039 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
10041 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10043 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
10045 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10047 Fix 2G limit on ZFS.
10049 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
10051 (uberblock_verify): Likewise.
10052 (dmu_read): Likewise.
10053 (grub_zfs_read): Likewise. Remove invalid cast.
10055 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10057 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
10058 (grub_jfs_blkno): Fix incorrect shift.
10059 (grub_jfs_read_file): Use more appropriate types.
10061 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10063 Support triple indirect on minix2 and minix3.
10065 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
10066 Declare triple_indir_zone.
10067 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
10070 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10074 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
10075 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
10076 Rename ctime to mtime. All users updated.
10077 (grub_minix_get_file_block): Fix types and double indirect computations.
10079 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10081 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
10082 if no label is found.
10083 (grub_fat_iterate_dir): Fix file size type.
10084 (grub_fat_iterate_dir): Likewise.
10086 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10088 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
10090 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
10091 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
10093 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10095 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
10097 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10099 * util/import_gcry.py: Accept space between # and include.
10101 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10103 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
10105 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10107 Fine grainely disable warnings on lexer. Remove Wno-error on it.
10109 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
10110 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
10112 * grub-core/script/yylex.l: Add fine-grained #pragma.
10114 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10116 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
10117 New inline function.
10118 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
10120 (memset) [GRUB_UTIL]: Likewise.
10121 (memcmp) [GRUB_UTIL]: Likewise.
10123 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10125 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
10126 inline function rather than a define.
10128 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10130 * util/grub-setup.c: Add missing include.
10132 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10134 * util/ieee1275/grub-ofpathname.c: Add missing include.
10136 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10138 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
10139 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
10142 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10144 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
10147 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10149 * util/grub-install.in: Add datarootdir as per automake manual
10151 * util/grub-mknetdir.in: Likewise.
10153 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10155 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
10157 * util/grub.d/10_kfreebsd.in: Likewise.
10158 * util/grub.d/10_linux.in: Likewise.
10159 * util/grub.d/10_netbsd.in: Likewise.
10160 * util/grub.d/10_windows.in: Likewise.
10161 * util/grub.d/20_linux_xen.in: Likewise.
10163 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
10165 Remove redundant grub_kernel_image_size.
10167 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
10169 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
10170 the small code. It moves it only by few bytes but simplifies the code.
10171 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
10173 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
10174 (grub_kernel_image_size): Removed.
10175 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
10176 (grub_kernel_image_size): Removed.
10177 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
10178 compiled with Apple toolchain.
10179 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
10180 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
10181 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
10182 (grub_total_module_size): Likewise.
10183 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
10185 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
10186 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
10187 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
10188 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
10189 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
10190 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
10191 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
10192 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
10194 (grub_total_module_size): Removed.
10195 * util/grub-mkimage.c (image_target_desc): Remove image_size.
10196 (image_targets): Likewise.
10197 Set .compressed_size to no field on sparc.
10198 (generate_image): Remove kernel_image_size handling.
10200 2011-10-19 Szymon Janc <szymon@janc.net.pl>
10202 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
10203 NULL pointer dereference.
10205 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10207 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
10208 done with a dedicated section.
10210 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
10211 Ensure the correct position of boot_path.
10212 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
10213 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
10215 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
10216 * include/grub/boot.h: Removed. All references removed.
10217 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
10219 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
10221 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10223 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
10226 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10228 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
10230 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10232 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
10233 Don't add the bogus brackets.
10235 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10239 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
10240 * grub-core/Makefile.core.def (exfat): New module.
10241 * grub-core/fs/exfat.c: New file.
10242 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
10243 (GRUB_FAT_ATTR_*): Make into an enum.
10244 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
10245 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
10246 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
10247 (GRUB_FAT_MAXFILE): Removed.
10248 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
10249 (grub_current_fat_bpb_t): New type.
10250 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
10251 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
10252 (grub_fat_dir_node_t): New type.
10253 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
10254 (fat_log2) [MODE_EXFAT]: Removed.
10255 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
10256 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
10257 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
10258 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
10259 (grub_fat_label) [MODE_EXFAT]: New function.
10260 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
10261 reserved_first_sector to 0.
10263 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10265 Move grub_reboot out of the kernel.
10267 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
10268 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
10269 * grub-core/lib/efi/reboot.c: ... here.
10270 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
10271 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
10272 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
10273 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
10274 * grub-core/lib/i386/reboot_trampoline.S: ... here.
10275 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
10276 * grub-core/lib/ieee1275/reboot.c: ... here.
10277 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
10278 * grub-core/lib/mips/arc/reboot.c: ... here.
10279 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
10280 * grub-core/lib/mips/loongson/reboot.c: ...here.
10281 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
10282 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
10283 * include/grub/emu/misc.h (grub_reboot): New function declaration.
10284 * include/grub/i386/reboot.h: New file.
10285 * include/grub/mips/loongson/ec.h: Fix includes.
10286 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
10287 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
10288 * grub-core/lib/i386/reboot.c: New file.
10290 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
10292 Make grub_prefix into module to fix the arbitrary limit and save
10295 * grub-core/kern/emu/main.c (grub_prefix): Removed.
10296 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
10297 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
10298 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
10299 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
10300 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
10301 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
10302 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
10303 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
10304 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
10305 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
10306 * include/grub/ia64/efi/kernel.h: Removed.
10307 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
10308 (grub_prefix): Removed.
10309 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
10310 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
10311 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
10312 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
10313 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
10314 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
10315 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
10316 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
10317 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
10318 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
10319 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
10320 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
10321 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
10322 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
10323 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
10324 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
10325 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
10326 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
10327 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
10328 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
10329 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
10330 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
10331 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
10332 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
10333 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
10334 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
10335 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
10336 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
10337 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
10339 * util/grub-mkimage.c (image_target_desc): Removed prefix and
10341 (image_targets): Likewise.
10342 (generate_image): Put prefix as a module.
10344 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10346 Replace grub_module_iterate with FOR_MODULES.
10348 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
10349 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
10350 (grub_efi_modules_addr): ...this.
10351 * grub-core/kern/efi/init.c (grub_modbase): New variable.
10352 (grub_efi_init): Set grub_modbase.
10353 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
10354 (grub_modbase): New variable.
10355 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
10356 (grub_modbase): New variable.
10357 (grub_machine_init): Set grub_modbase.
10358 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
10359 (grub_modbase): New variable.
10360 (grub_machine_init): Set grub_modbase.
10361 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
10362 (grub_modbase): New variable.
10363 (grub_machine_init): Set grub_modbase.
10364 * grub-core/kern/main.c (grub_module_iterate): Remove.
10365 (grub_modules_get_end): Use grub_modbase.
10366 (grub_load_modules): Use FOR_MODULES.
10367 (grub_load_config): Likewise.
10368 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
10369 (grub_modbase): New variable.
10370 (grub_machine_init): Set grub_modbase.
10371 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
10372 (grub_modbase): New variable.
10373 (grub_machine_init): Set grub_modbase.
10374 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
10376 (grub_modbase): New variable.
10377 (grub_machine_init): Set grub_modbase.
10378 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
10379 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
10380 (grub_module_iterate): Likewise.
10381 (grub_modbase): New variable declaration.
10382 (FOR_MODULES): New macro.
10384 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10386 * configure.ac: Check for __ctzdi2 and __ctzsi2.
10387 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
10389 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10391 Fix few obvious type discrepancies.
10393 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
10394 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
10395 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
10397 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
10398 and connected types.
10399 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
10401 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
10402 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
10403 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
10404 and connected types.
10406 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10408 Fix python 3.x incompatibilities.
10410 * gentpl.py: Put brackets around print strings.
10411 * util/import_gcry.py: Open explicitly as utf-8.
10412 Use in instead of has_key.
10414 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10416 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
10417 (GRUB_XFS_INO_AGBITS): Make into inline function.
10418 (GRUB_XFS_INO_INOINAG): Likewise.
10419 (GRUB_XFS_INO_AG): Likewise.
10420 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
10421 (GRUB_XFS_EXTENT_OFFSET): Likewise.
10422 (GRUB_XFS_EXTENT_BLOCK): Likewise.
10423 (GRUB_XFS_EXTENT_SIZE): Likewise.
10424 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
10425 (GRUB_XFS_NEXT_DIRENT): Likewise.
10426 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
10427 (grub_xfs_read_file): Fix offset type.
10429 2011-10-15 Robert Millan <rmh@gnu.org>
10431 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
10433 2011-10-15 Robert Millan <rmh@gnu.org>
10435 Fix build problem on FreeBSD and GNU/kFreeBSD.
10437 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
10439 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10441 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
10443 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
10445 (grub_hfsplus_btree_recoffset): Likewise.
10446 (grub_hfsplus_btree_recptr): Likewise.
10447 (grub_hfsplus_find_block): Likewise.
10448 (grub_hfsplus_btree_search): Likewise.
10449 (grub_hfsplus_read_block): Likewise.
10450 (grub_hfsplus_read_file): Likewise.
10451 (grub_hfsplus_mount): Likewise.
10452 (grub_hfsplus_btree_iterate_node): Likewise.
10453 (grub_hfsplus_btree_search): Likewise.
10454 (grub_hfsplus_iterate_dir): Likewise.
10455 (grub_hfsplus_read): A small code simplification.
10457 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10459 * grub-core/kern/emu/hostdisk.c
10460 (convert_system_partition_to_system_disk): Don't assume that children
10461 of mapper nodes are mapper nodes.
10463 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10465 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
10466 * include/grub/misc.h (grub_isxdigit): New function.
10467 * grub-core/video/colors.c (my_isxdigit): Removed. All users
10468 switched to grub_isxdigit.
10469 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
10470 number starting with a letter.
10472 2011-10-09 Robert Millan <rmh@gnu.org>
10474 LVM support for FreeBSD and GNU/kFreeBSD.
10476 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
10478 (LVM_DEV_MAPPER_STRING): Move from here ...
10479 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
10480 * util/getroot.c: Include `<grub/util/lvm.h>'.
10481 (grub_util_get_dev_abstraction): Enable
10482 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
10483 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
10484 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
10485 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
10487 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
10489 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
10490 when LVM abstraction is required for ${GRUB_DEVICE}.
10492 2011-10-06 Szymon Janc <szymon@janc.net.pl>
10494 Add support for LZO compression in GRUB:
10495 - import of minilzo library,
10496 - LZO decompression for btrfs,
10497 - lzop files decompression.
10499 * grub-core/io/lzopio.c: New file.
10500 * grub-core/lib/adler32.c: Likewise.
10501 * grub-core/lib/minilzo/lzoconf.h: Likewise.
10502 * grub-core/lib/minilzo/lzodefs.h: Likewise.
10503 * grub-core/lib/minilzo/minilzo.c: Likewise.
10504 * grub-core/lib/minilzo/minilzo.h: Likewise.
10505 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
10506 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
10507 grub-core/lib/minilzo/minilzo.c to common.
10508 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
10509 cflags in cppflags.
10510 * grub-core/Makefile.core.def (btrfs): Likewise.
10511 * grub-core/Makefile.core.def (lzopio): New module.
10512 (adler32): Likewise.
10513 * grub-core/fs/btrfs.c: Include minilzo.h.
10514 (GRUB_BTRFS_COMPRESSION_LZO): New define.
10515 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
10516 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
10517 (grub_btrfs_lzo_decompress): New function.
10518 (grub_btrfs_extent_read): Add support for LZO compression type.
10519 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
10520 (GRUB_USHRT_MAX): Likewise.
10521 (GRUB_UINT_MAX): Likewise.
10522 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
10523 (UINT_MAX): Likewise.
10524 (CHAR_BIT): Likewise.
10525 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
10526 grub-core/lib/posix_wrap/limits.h
10527 (UCHAR_MAX): Likewise.
10528 * include/grub/file.h (grub_file_filter_id): New compression filter
10529 GRUB_FILE_FILTER_LZOPIO.
10530 * include/grub/file.h (grub_file_filter_id): Set
10531 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
10532 * include/grub/types.h (grub_get_unaligned16): New function.
10533 (grub_get_unaligned32): Likewise.
10534 (grub_get_unaligned64): Likewise.
10535 * util/import_gcry.py (cryptolist): Add adler32.
10537 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
10539 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
10540 in perspective decreases the complexity of build system and fixes
10541 compilation right now.
10543 2011-10-01 Ales Nesrsta <starous@volny.cz>
10545 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
10546 (fixed problem related to using UHCI with coreboot).
10548 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
10550 * gentpl.py: Use Autogen macros so that the output template file
10551 (Makefile.tpl) size is reduced.
10553 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
10555 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
10558 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10560 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
10561 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
10563 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10565 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
10568 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10570 Remove extra declaration of sleep for mingw32.
10572 * util/misc.c (sleep) [__MINGW32__]: Removed.
10573 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
10575 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
10577 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
10579 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
10581 (NETBSD_BTINFO_BOOTWEDGE): New definition.
10582 (grub_netbsd_btinfo_bootwedge): New struct.
10583 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
10585 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
10587 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
10589 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
10592 2011-09-28 Andreas Born <futur.andy@googlemail.com>
10594 Fix incorrect identifiers in bash-completion.
10596 * util/bash-completion.d/grub-completion.bash.in
10597 (_grub_mkpasswd-pbkdf2): Rename to ...
10598 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
10599 (_grub_script-check): Rename to ...
10600 (_grub_script_check): ... this. All users updated.
10602 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
10604 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
10605 Return 0 if disk isn't biosdisk.
10607 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
10609 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
10611 * Makefile.util.def (grub-fstest): Likewise.
10613 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
10615 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
10616 Get sector size from disk label.
10618 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
10620 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
10621 */README* as well as README*.
10622 Reported by: Axel Beckert.
10624 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10626 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
10627 case of less than 256 MiB of RAM.
10629 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10631 * grub-core/commands/wildcard.c (make_regex): Handle @.
10633 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10635 * util/grub-install.in: Move cryptodisk logic to appropriate place.
10637 2011-08-21 Szymon Janc <szymon@janc.net.pl>
10639 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
10640 AC_LANG_CONFTEST macros.
10642 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10644 Add grub-fstest option to uncompress data for commands.
10646 * util/grub-fstest.c (uncompress): New var.
10647 (options): New option -u.
10649 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10651 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
10652 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
10654 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10656 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
10657 file type was not recognized correctly (not gzip or corrupted).
10659 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10661 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
10662 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
10664 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10666 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
10668 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
10669 video_radeon_fuloong2e.
10670 * grub-core/video/radeon_fuloong2e.c: New file.
10671 * include/grub/video.h (grub_video_id_t): Add new ID
10672 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
10674 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10676 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
10678 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
10679 that PRID matches the detected subplatform and reset the subplatform
10682 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10684 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
10686 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10688 Fix PCI iterating on functions >= 4.
10690 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
10691 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
10693 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
10694 (grub_pci_read): Fix bitmask.
10695 (grub_pci_read_word): Likewise.
10696 (grub_pci_read_byte): Likewise.
10697 (grub_pci_write): Likewise.
10698 (grub_pci_write_word): Likewise.
10699 (grub_pci_write_byte): Likewise.
10701 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10703 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
10704 can still be specified in TARGET_CFLAGS)
10706 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10708 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
10710 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
10711 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
10712 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
10713 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
10714 (FULOONG): Rename to ...
10715 (FULOONG2F): ... this. All users updated.
10716 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
10717 (machtype_fuloong2f_str): ... this.
10718 (machtype_fuloong2e_str): New string.
10719 Check for machtype_fuloong2e_str.
10720 * grub-core/loader/mips/linux.c (loongson_machtypes)
10721 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
10722 * grub-core/term/serial.c (loongson_defserial)
10723 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
10724 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
10725 loongson_defserial.
10726 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
10728 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
10729 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
10730 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
10731 to IMAGE_FULOONG2F_FLASH. All users updated.
10732 (image_targets): Rename images.
10733 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
10735 2011-08-19 Szymon Janc <szymon@janc.net.pl>
10737 Make enable of disk cache statistics code configurable.
10739 * configure.ac: --enable-cache-stats added.
10740 * config.h.in (DISK_CACHE_STATS): New define.
10741 * grub-core/Makefile.core.def (cacheinfo): New command.
10742 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
10743 * grub-core/commands/cacheinfo.c: New file.
10744 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
10745 moved to cacheinfo.c.
10746 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
10748 * include/grub/disk.h: Likewise.
10750 2011-08-19 Szymon Janc <szymon@janc.net.pl>
10752 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
10753 * grub-core/Makefile.am: Likewise.
10755 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10757 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
10760 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10762 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
10764 (grub_jfs_lookup_symlink): Use correct starting inode.
10766 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10768 * util/grub-setup.c (main): Add missing gcry initialisation.
10770 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10772 Don't accept text modes on EFI when booting Linux.
10774 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
10775 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
10777 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
10778 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
10780 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
10781 use of "/path/.." as in grub-install for EFI as well as handling
10782 symlinks correctly.
10783 Fixes Debian bug #637768.
10785 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
10787 * util/grub-probe.c: Remove duplicate #include.
10789 2011-08-10 Robert Millan <rmh@gnu.org>
10791 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
10793 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
10795 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
10796 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
10798 2011-08-03 Robert Millan <rmh@gnu.org>
10800 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
10801 la_array as packed.
10802 Reported by: Zachary Bedell
10804 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
10806 * configure.ac: The Loongson port requires grub-mkfont due to its
10807 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
10810 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
10812 * util/grub-install.in: Don't source grub-mkconfig_lib until after
10813 processing arguments (otherwise help2man fails when GRUB has not yet
10816 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10818 New script grub-mkstandalone.
10820 * Makefile.util.def (grub-mkstandalone): New script.
10821 * docs/man/grub-mkstandalone.h2m: New file.
10822 * util/grub-mkstandalone.in: Likewise.
10824 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10826 Support ATA disks with 4K sectors.
10828 * include/grub/ata.h (grub_ata): New member log_sector_size.
10829 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
10830 (grub_ata_identify): Read sector size.
10831 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
10833 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10835 * util/grub-install.in: Don't use uhci outside of x86.
10837 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10839 * util/grub-mkrescue.in: Add missing quotes.
10841 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10843 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
10846 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10848 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
10850 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10852 * include/grub/video.h: add missing EXPORT_FUND on
10853 grub_video_edid_checksum and grub_video_edid_preferred_mode.
10855 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10857 * include/grub/mips/kernel.h: Fix define conflict.
10859 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10861 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
10864 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
10866 Preferred resolution detection for VBE.
10868 * grub-core/video/video.c (grub_video_edid_checksum): New function.
10869 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
10870 the Flat Panel extension, in line with the X.org VESA driver.
10871 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
10873 (grub_vbe_bios_get_ddc_capabilities): Likewise.
10874 (grub_vbe_bios_read_edid): Likewise.
10875 (grub_vbe_get_preferred_mode): Likewise.
10876 (grub_video_vbe_setup): When the mode is "auto", try to get the
10877 preferred mode from VBE, and use the largest mode that is no larger
10878 than the preferred mode (some BIOSes expose a preferred mode that is
10879 not in their mode list!). If this fails, fall back to 640x480 as a
10880 safe conservative choice.
10881 (grub_video_vbe_get_edid): New function.
10882 (grub_video_vbe_adapter): Add get_edid.
10883 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
10884 (struct grub_video_adapter): Add get_edid.
10885 (grub_video_edid_checksum): Add prototype.
10886 (grub_video_edid_preferred_mode): Likewise.
10887 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
10890 * grub-core/commands/videoinfo.c (print_edid): New function.
10891 (grub_cmd_videoinfo): Print EDID if available.
10893 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
10894 is more appropriate on a wider range of platforms than 640x480.
10895 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
10898 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10900 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
10902 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10904 * po/POTFILES.in: Regenerate.
10906 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10908 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
10909 incorrect memory usage.
10911 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10913 * util/grub-install.in: Source grub-mkconfig_lib.
10915 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
10917 Remove getroot.c from core on emu platform.
10919 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
10921 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
10923 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
10924 * util/getroot.c (get_win32_path): ... here.
10925 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
10926 * util/getroot.c (fini_libzfs): ... here.
10927 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
10928 * util/getroot.c (grub_get_libzfs_handle): ... here.
10929 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
10931 * util/getroot.c (grub_find_zpool_from_dir): ... here.
10932 * grub-core/kern/emu/misc.c
10933 (grub_make_system_path_relative_to_its_root): Moved from here...
10934 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
10935 * grub-core/kern/emu/getroot.c: Moved from here ...
10936 * util/getroot.c: ... here. All users updated.
10937 * grub-core/kern/emu/raid.c: Moved from here ...
10938 * util/raid.c: ... here. All users updated.
10940 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
10942 * po/POTFILES.in: Regenerate.
10944 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
10946 Fix compilation on GNU/Linux.
10948 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
10950 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
10951 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
10952 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
10954 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
10955 2011-07-07 Michael Gorven <michael@gorven.za.net>
10956 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
10958 LUKS and GELI support.
10960 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
10961 grub-core/disk/luks.c, grub-core/disk/geli.c,
10962 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
10963 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
10964 grub-core/lib/arg.c.
10965 (libgrubmods.a): Remove gcrypts cflags and cppflags.
10966 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
10967 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
10968 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
10969 (grub-bin2h): Add libgcry.a.
10970 (grub-mkimage): Likewise.
10971 (grub-mkrelpath): Likewise.
10972 (grub-script-check): Likewise.
10973 (grub-editenv): Likewise.
10974 (grub-mkpasswd-pbkdf2): Likewise.
10975 (grub-pe2elf): Likewise.
10976 (grub-fstest): Likewise.
10977 (grub-mkfont): Likewise.
10978 (grub-mkdevicemap): Likewise.
10979 (grub-probe): Likewise.
10980 (grub-ofpath): Likewise.
10981 (grub-mklayout): Likewise.
10982 (example_unit_test): Likewise.
10983 (grub-menulst2cfg): Likewise.
10984 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
10985 * grub-core/Makefile.core.def (cryptodisk): New module.
10988 * grub-core/disk/AFSplitter.c: New file.
10989 * grub-core/disk/cryptodisk.c: Likewise.
10990 * grub-core/disk/geli.c: Likewise.
10991 * grub-core/disk/luks.c: Likewise.
10992 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
10994 (grub_util_get_dm_abstraction): New function.
10995 (grub_util_follow_gpart_up): Likewise.
10996 (grub_util_get_geom_abstraction): Likewise.
10997 (grub_util_get_dev_abstraction): Use new functions.
10998 (grub_util_pull_device): Pull GELI and LUKS.
10999 (grub_util_get_grub_dev): Handle LUKS and GELI.
11000 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
11001 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
11002 (follow_geom_up): Removed.
11003 (grub_util_fd_seek): New function.
11004 (open_device): Use grub_util_fd_seek.
11005 (nread): Rename to ..
11006 (grub_util_fd_read): ... this. All users updated.
11007 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
11008 (grub_crypto_cbc_decrypt): Likewise.
11009 (grub_crypto_hmac_write): Likewise.
11010 (grub_crypto_hmac_buffer): Likewise.
11011 (grub_password_get): Extend to util.
11012 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
11013 New member modname.
11014 (gcry_md_spec) [GRUB_UTIL]: Likewise.
11015 * include/grub/cryptodisk.h: New file.
11016 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
11017 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
11019 (grub_util_follow_gpart_up): New proto.
11020 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
11021 (grub_util_fd_read): Likewise.
11022 (grub_cryptodisk_cheat_mount): Likewise.
11023 (grub_util_cryptodisk_print_uuid): Likewise.
11024 (grub_util_get_fd_sectors): Likewise.
11025 * util/grub-fstest.c (mount_crypt): New var.
11026 (fstest): Mount crypto if requested.
11027 (options): New option -C.
11028 (argp_parser): Parse -C.
11029 (main): Init and fini gcry.
11030 * util/grub-install.in: Support cryptodisk install.
11031 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
11032 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
11034 (prepare_grub_to_access_device): Likewise.
11035 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
11036 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
11037 (probe_cryptodisk_uuid): New function.
11038 (probe_abstraction): Likewise.
11039 (probe): Use new functions.
11040 * util/import_gcry.py: Create Makefile.utilgcry.def.
11041 Add modname member.
11043 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
11045 Lazy device scanning.
11047 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
11048 (grub-setup): Remove util/raid.c.
11049 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
11050 * grub-core/disk/lvm.c (scan_depth): New variable.
11051 (grub_lvm_iterate): Rescan if necessary.
11052 (find_lv): New function based on grub_lvm_open.
11053 (grub_lvm_open): Use find_lv. Rescan on error.
11054 (is_node_readable): New function.
11055 (is_lv_readable): Likewise.
11056 (grub_lvm_scan_device): Skip already found disks.
11057 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
11058 Stop if searched device is found and readable.
11059 * grub-core/disk/raid.c (inscnt): New variable.
11060 (scan_depth): Likewise.
11061 (scan_devices): New function based on grub_raid_register. Abort if
11062 looked for device is found.
11063 (grub_raid_iterate): Rescan if needed.
11064 (find_array): NEw function based on -grub_raid_open.
11065 (grub_raid_open): Use find_array and rescan.
11066 (insert_array): Set became_readable_at.
11067 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
11068 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
11070 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
11071 (grub_util_pull_device): New function.
11072 (grub_util_get_grub_dev): Call grub_util_pull_device.
11073 * util/raid.c: Moved to ..
11074 * grub-core/kern/emu/raid.c: ... here.
11075 (grub_util_raid_getmembers): New parameter "bootable".
11076 All users updated. Support 1.x.
11077 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
11079 * include/grub/disk.h (grub_disk_pull_t): New enum.
11080 (grub_disk_dev): Change iterate prototype.
11082 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
11084 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
11085 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
11086 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
11087 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
11089 * include/grub/util/raid.h: Removed.
11091 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
11093 * po/POTFILES.in: Regenerate.
11095 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
11097 Unify sparc init with other ieee1275.
11099 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
11100 instead of kern/sparc64/ieee1275/init.c.
11101 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
11102 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
11103 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
11104 grub/machine/kernel.h.
11105 (grub_ieee1275_original_stack) [__sparc__]: New variable.
11106 (grub_claim_heap) [__sparc__]: Use sparc version.
11107 (grub_machine_init): Moved args parsing to
11108 (grub_parse_cmdline): ...this.
11109 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
11110 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
11112 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
11114 Move BOOTP to separate file.
11116 * grub-core/Makefile.core.def (net): Add net/bootp.c.
11117 * grub-core/net/net.c: Move all BOOTP functions to
11118 * grub-core/net/bootp.c: ... here.
11120 Use frame interface on PXE.
11122 * grub-core/Makefile.core.def (pxecmd): Removed.
11123 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
11124 * grub-core/commands/i386/pc/pxecmd.c: Removed.
11125 * grub-core/i386/pc/pxe.c: Moved from here ...
11126 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
11127 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
11128 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
11130 EFI network support.
11132 * grub-core/Makefile.core.def (efinet): New module.
11133 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
11135 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
11137 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
11138 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
11139 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
11140 * grub-core/net/drivers/efi/efinet.c: New file.
11141 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
11142 (grub_efi_net_config): New extern var.
11144 Various cleanups and bugfixes.
11146 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
11148 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
11149 disk declared as partition.
11150 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
11152 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
11153 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
11154 (grub_debug_zalloc): Likewise.
11155 (grub_debug_realloc): Likewise.
11156 (grub_debug_memalign): Likewise.
11157 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
11158 Check that target is IPv4.
11159 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
11160 local-mac-address as fallback.
11161 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
11163 * grub-core/net/ip.c (ipchksum): Rename to ...
11164 (grub_net_ip_chksum): ... this. All users updated.
11165 (grub_net_recv_ip_packets): Special handling for DHCP.
11166 * util/grub-mkimage.c (generate_image): Zero-out aout header.
11168 Unify prefix handling
11170 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
11171 (grub_machine_get_bootlocation): ... this.
11172 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
11173 (grub_machine_get_bootlocation): ... this.
11174 (grub_prefix): New variable.
11176 (root_dev): New variable.
11178 (main): Use new variables.
11179 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
11181 (grub_machine_get_bootlocation): ... this.
11182 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
11183 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
11184 (grub_machine_get_bootlocation): ... this.
11185 (grub_machine_set_prefix): Removed.
11186 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
11187 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
11189 (grub_machine_get_bootlocation): ... this.
11190 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
11191 (grub_set_prefix_and_root): ... this. All users updated.
11192 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
11194 (grub_machine_get_bootlocation): ... this.
11195 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
11196 (grub_machine_get_bootlocation): New proto.
11197 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
11199 Less intrusive and more reliable seek on network implementation.
11201 * grub-core/kern/file.c (grub_file_net_seek): Removed.
11202 (grub_file_seek): Don't call grub_file_net_seek.
11203 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
11204 (grub_net_fs_read_real): .. this.
11205 (grub_net_seek_real): Use net->offset.
11206 (grub_net_fs_read): Seek if necessary.
11208 Unify IEEE1275 netwotk config with the other platforms.
11210 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
11212 (grub_machine_get_bootlocation): Support network.
11213 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
11214 Support type and device parsing.
11215 (grub_ieee1275_get_device_type): New function.
11216 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
11218 (grub_ieee1275_net_config_real): ... this.
11219 (grub_ofnet_probecards): Removed.
11220 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
11221 * include/grub/ieee1275/ofnet.h: Removed.
11222 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
11224 (grub_ieee1275_get_device_type): New function.
11226 Unify network device closing across platforms and make more robust.
11228 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
11230 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
11232 * grub-core/net/net.c (grub_net_network_level_interface_register):
11234 (grub_net_card_unregister): Close all interfaces.
11235 (receive_packets): Don't poll if no iterfaces are registered.
11237 (grub_net_fini_hw): New function.
11238 (grub_net_restore_hw): Likewise.
11239 (fini_hnd): New variable.
11240 (GRUB_MOD_INIT): Register preboot hook.
11241 (GRUB_MOD_FINI): Run and unregister preboot hook.
11243 Poll network cards when idle.
11245 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
11246 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
11247 * grub-core/net/net.c (receive_packets): Save last poll time.
11248 (grub_net_poll_cards_idle_real): New function.
11249 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
11250 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
11251 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
11253 Rename ofnet interfaces.
11255 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
11256 (grub_ofnet_findcards): Use ofnet_%s names.
11258 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
11260 Cleanup socket opening.
11262 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
11263 (grub_net_fs_close): Likewise.
11264 (grub_net_fs_read_real): Use eof member.
11265 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
11266 (+grub_net_udp_close): New inline function.
11268 * include/grub/net/tftp.h: Moved to the top of ...
11269 * grub-core/net/tftp.c: ... here.
11270 * include/grub/net/ip.h: Moved mostly to the top of ...
11271 * grub-core/net/ip.c: ... here.
11272 * include/grub/net/ethernet.h: Moved mostly to the top of ...
11273 * grub-core/net/ethernet.c: ... here.
11275 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
11277 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
11280 * include/grub/net/ip.h (ipv4_ini): Removed.
11281 (ipv4_fini): Likewise.
11283 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
11284 (grub_net_send_ip_packets): Likewise.
11286 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11288 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
11289 grub_read_cmos prototype.
11291 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11293 VGA text support in qemu-mips
11295 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
11296 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
11297 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
11299 * grub-core/kern/i386/qemu/init.c: Renamed to ...
11300 * grub-core/kern/vga_init.c: ... this.
11301 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
11302 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
11303 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
11305 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
11306 GRUB_MACHINE_PCI_IO_BASE.
11308 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11310 MIPS qemu flash support.
11312 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
11314 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
11315 (grub_machine_init): Probe memory if its size isn't known.
11316 * util/grub-mkimage.c (image_targets): Add flash targets.
11317 (generate_image): Handle flash targets.
11319 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11321 MIPS qemu at_keyboard support.
11323 * gentpl.py (videoinkernel): Add qemu-mips.
11324 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
11325 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
11326 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
11328 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
11329 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
11330 * grub-core/term/serial.c (grub_serial_register)
11331 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
11333 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11335 CMOS support on sparc.
11337 * gentpl.py (cmos): Add powerpc and sparc.
11338 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
11340 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
11341 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
11342 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
11343 grub_set_datetime_cmos.
11344 * grub-core/lib/ieee1275/cmos.c: New file.
11345 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
11346 (find_rtc): Set no_ieee1275_rtc on error.
11347 (grub_get_datetime): Call grub_get_datetime_cmos on error.
11348 (grub_set_datetime): Call grub_set_datetime_cmos on error.
11349 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
11350 fail. Move value to argument. All users updated
11351 (grub_cmos_write): Likewise.
11352 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
11353 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
11354 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
11355 grub_get_datetime_cmos and grub_set_datetime_cmos.
11357 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
11359 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
11360 sourcing grub-mkconfig_lib.
11361 * util/update-grub_lib.in: Likewise.
11362 * util/grub.d/00_header.in: Likewise.
11363 * util/grub.d/10_hurd.in: Likewise.
11364 * util/grub.d/10_kfreebsd.in: Likewise.
11365 * util/grub.d/10_linux.in: Likewise.
11366 * util/grub.d/10_netbsd.in: Likewise.
11367 * util/grub.d/10_windows.in: Likewise.
11368 * util/grub.d/20_linux_xen.in: Likewise.
11369 * util/grub.d/30_os-prober.in: Likewise.
11371 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
11373 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
11374 default_bg_color rather than black.
11375 (grub_gfxterm_fullscreen): Likewise.
11376 (grub_gfxterm_background_color_cmd): Save new background color in
11379 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11381 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
11383 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11385 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
11388 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11390 Chainloading on coreboot support.
11392 * grub-core/Makefile.core.def (chain): Add coreboot.
11393 * grub-core/loader/i386/coreboot/chainloader.c: New file.
11395 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11397 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
11400 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11402 Implement time command.
11404 * grub-core/Makefile.core.def (time): New module.
11405 * grub-core/commands/time.c: New file.
11406 * grub-core/script/parser.y: Remove "time" keyword.
11407 * grub-core/script/yylex.l: Likewise.
11409 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11411 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
11413 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11415 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
11416 when handling leftovers.
11418 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11420 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
11421 so that help2man doesn't fail.
11423 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11425 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
11426 type in pointers on sparc64.
11427 (get_card_packet): Likewise.
11429 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
11431 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
11433 (grub_cmd_videoinfo): Fetch current video mode.
11435 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11437 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
11438 because of underlying system restrictions.
11440 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11442 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
11445 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11447 Coreboot video support.
11449 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
11451 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
11452 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
11454 * grub-core/kern/i386/int.S: ... here.
11455 * grub-core/video/i386/pc/vbe.c: Updated includes.
11456 * grub-core/video/i386/pc/vga.c: Likewise.
11457 * include/grub/i386/coreboot/memory.h
11458 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
11459 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
11460 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
11461 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
11462 Disable interrupts.
11463 * include/grub/i386/pc/vga.h: Removed. All users updated.
11465 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11467 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
11468 definitions for dprintf.
11469 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
11471 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11473 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
11475 (get_card_packet): Likewise.
11477 2011-06-26 Yves Blusseau <blusseau@zetam.org>
11479 Display the path of the file when file is not found
11481 * grub-core/fs/fat.c: Display the filename when file is not found.
11482 * grub-core/fs/fshelp.c: Likewise.
11483 * grub-core/fs/hfs.c: Likewise.
11484 * grub-core/fs/jfs.c: Likewise.
11485 * grub-core/fs/minix.c: Likewise.
11486 * grub-core/fs/ufs.c: Likewise.
11487 * grub-core/fs/btrfs.c: Likewise.
11488 * grub-core/commands/i386/pc/play.c: Likewise.
11490 2011-06-26 Szymon Janc <szymon@janc.net.pl>
11492 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
11493 pointer checks before calling grub_free().
11494 * grub-core/commands/wildcard.c (match_devices): Likewise.
11495 * grub-core/commands/wildcard.c (match_files): Likewise.
11496 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
11497 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
11498 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
11499 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
11500 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
11501 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
11502 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
11503 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
11504 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
11506 2011-06-25 Patrick <p55@mailinator.com>
11508 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
11510 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
11512 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
11513 (grub_pxe_send): Likewise.
11514 (GRUB_MOD_INIT): Fix types.
11516 2011-06-24 Szymon Janc <szymon@janc.net.pl>
11518 * grub-core/io/xzio.c: Fix code style issues
11520 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11521 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
11523 Network infrastructure.
11524 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
11526 * include/grub/net/arp.h: New file.
11527 * include/grub/net/device.h: Likewise.
11528 * include/grub/net/ethernet.h: Likewise.
11529 * include/grub/net/ip.h: Likewise.
11530 * include/grub/net/netbuff.h: Likewise.
11531 * include/grub/net/tftp.h: Likewise.
11532 * include/grub/net/udp.h: Likewise.
11533 * include/grub/ieee1275/ofnet.h: Likewise.
11534 * include/grub/emu/export.h: Likewise.
11535 * include/grub/net.h: Likewise.
11536 * grub-core/net/arp.c: Likewise.
11537 * grub-core/net/ethernet.c: Likewise.
11538 * grub-core/net/ip.c: Likewise.
11539 * grub-core/net/udp.c: Likewise.
11540 * grub-core/net/tftp.c: Likewise.
11541 * grub-core/net/netbuff.c: Likewise.
11542 * grub-core/net/net.c: Likewise.
11543 * grub-core/net/drivers/emu/emunet.c: Likewise.
11544 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
11545 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
11547 * grub-core/Makefile.core.def (net): New module.
11550 (emunet): Likewise.
11551 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
11553 * grub-core/kern/device.c (grub_net_open) : New variable.
11554 (grub_device_open): Handle network device.
11555 (grub_device_close): Likewise.
11556 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
11557 (grub_grubnet_fini): Likewise.
11558 (grub_file_seek): Seek in network device.
11559 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
11560 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
11562 (grub_machine_fini): Call grub_grubnet_fini.
11563 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
11565 (grub_ieee1275_get_aliasdevname): New function.
11566 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
11567 Add unofficial Solaris network info.
11568 (grub_multiboot_make_mbi): Likewise.
11569 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
11570 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
11571 * include/grub/device.h (grub_fs): Removed.
11572 * include/grub/err.h (grub_err_t): Add network-related values.
11573 * include/grub/i386/pc/pxe.h: Removed bootp parts.
11574 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
11575 (grub_ieee1275_get_aliasdevname): New proto.
11576 * include/grub/net.h: Rewritten.
11578 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11580 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
11583 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11585 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
11586 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
11587 it truncates the output.
11588 Reported by: Ximin Luo.
11590 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11592 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
11594 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11596 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
11597 partmap before abstraction.
11599 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
11601 * util/grub-mkconfig_lib.in: Add missing quotes.
11603 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11605 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
11606 old method if mountinfo would return /dev/root and /dev/root doesn't
11609 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11613 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
11614 (decomp_table): Add zlib entries.
11615 (zio_read): USe 8 bits for compression function rather than 3.
11616 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
11618 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11620 * grub-core/disk/ahci.c: Add missing license statements.
11621 * grub-core/fs/romfs.c: Likewise.
11622 * grub-core/lib/ia64/setjmp.S: Likewise.
11623 * grub-core/loader/i386/pc/freedos.c: Likewise.
11624 * grub-core/loader/ia64/efi/linux.c: Likewise.
11625 * grub-core/video/colors.c: Likewise.
11626 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
11628 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11632 * grub-core/Makefile.core.def (ata_pthru): Removed.
11633 (ahci): New module.
11635 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
11637 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
11639 (grub_hdparm_do_check_powermode_cmd): Likewise.
11640 (grub_hdparm_do_smart_cmd): Likewise.
11641 (grub_hdparm_set_val_cmd): Likewise.
11642 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
11643 * grub-core/disk/ahci.c: New file.
11644 * grub-core/disk/ata.c: Factor out the low-level part into ...
11645 * grub-core/disk/pata.c: ... here.
11646 * grub-core/disk/ata_pthru.c: Contents moved to ...
11647 * grub-core/disk/pata.c: ... here.
11648 * grub-core/disk/scsi.c (grub_scsi_names): New array.
11649 (grub_scsi_iterate): Use grub_scsi_names.
11650 (grub_scsi_open): Likewise.
11651 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
11652 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
11653 (grub_ata_regs_t): New struct.
11654 (grub_disk_ata_pass_through_parms): Likewise.
11655 (grub_ata_device): Renamed to ...
11656 (grub_ata): ... this.
11657 (grub_ata_dev): New struct.
11658 Removed all low-level inline functions.
11659 * include/grub/scsi.h: Add PATA and AHCI subsystems.
11660 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
11661 iterate hooks and open. All users updated.
11662 * util/grub-install.in: Handle AHCI disk module.
11664 2011-06-23 Szymon Janc <szymon@janc.net.pl>
11666 Add support for DRI and RSTn markers in JPEG files.
11668 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
11669 (JPEG_MARKER_RST0): Likewise.
11670 (JPEG_MARKER_RST1): Likewise.
11671 (JPEG_MARKER_RST2): Likewise.
11672 (JPEG_MARKER_RST3): Likewise.
11673 (JPEG_MARKER_RST4): Likewise.
11674 (JPEG_MARKER_RST5): Likewise.
11675 (JPEG_MARKER_RST6): Likewise.
11676 (JPEG_MARKER_RST7): Likewise.
11677 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
11678 (grub_jpeg_decode_dri): New function.
11679 (grub_jpeg_decode_sos): Move image data related part into
11680 grub_jpeg_decode_data function.
11681 (grub_jpeg_decode_data): New function.
11682 (grub_jpeg_reset): New function.
11683 (grub_jpeg_decode_jpeg): Handle new markers.
11685 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11687 * util/ieee1275/ofpath.c (check_sas): Close fd.
11688 (main): Free of_path.
11689 Reported by: David Volgyes <dvolgyes>.
11691 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11693 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
11694 Reported by: David Volgyes <dvolgyes>.
11696 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11698 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
11700 Reported by: David Volgyes <dvolgyes>.
11702 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11704 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
11706 Reported by: David Volgyes <dvolgyes>.
11708 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11710 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
11711 Prevent memory leak.
11713 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11715 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
11716 (main): Close file.
11717 Reported by: David Volgyes <dvolgyes>.
11719 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11721 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
11722 to continue if allocation is failed.
11724 Reported by: David Volgyes <dvolgyes>.
11726 2011-06-23 David Volgyes <dvolgyes>
11728 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
11731 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11733 Fix spurious warning.
11735 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
11736 (acorn_partition_map_find): Use .bin member.
11738 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11740 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
11741 /dev/root as a valid device.
11743 2011-06-23 Jim Meyering <meyering@redhat.com>
11745 Avoid NULL deref in grub_device_open.
11747 * grub-core/kern/device.c (grub_device_open): Don't dereference
11748 a NULL pointer upon failed grub_env_get.
11750 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11752 Support non-512B sectors and agglomerate reads.
11754 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
11755 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
11756 (disk_io_guid): Removed.
11757 (make_devices): Locate solely by BlockIO.
11758 (grub_efidisk_open): Fill log_sector_size and total_sectors.
11759 (grub_efidisk_read): Use read_blocks.
11760 (grub_efidisk_write): Use write_blocks.
11761 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
11763 (get_safe_sectors): Handle non-512B sectors.
11764 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
11766 (grub_biosdisk_write): Handle non-512B sectors.
11767 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
11768 (grub_scsi_read): Remove special non-512B block handling (now handled
11770 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
11771 and do sanity checks.
11772 (grub_disk_adjust_range): Handle non-512B sectors.
11773 (transform_sector): New function.
11774 (grub_disk_read_small): Likewise.
11775 (grub_disk_read): Rewritten.
11776 (grub_disk_write): Handle non-512B sectors.
11777 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
11779 (open_device): Use log_sector_size.
11780 (grub_util_biosdisk_read): Likewise.
11781 (grub_util_biosdisk_write): Likewise.
11782 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
11784 (pc_partition_map_embed): Likewise.
11785 * include/grub/disk.h (grub_disk): New field log_sector_size.
11786 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
11787 (GRUB_DISK_CACHE_BITS): Increased to 6.
11788 * util/grub-fstest.c (fstest): New command testload.
11789 (argp_parser): Likewise.
11791 2011-06-16 Robert Millan <rmh@gnu.org>
11793 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
11794 `ata' driver on kernel of FreeBSD 9.
11796 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
11797 (get_ataraid_disk_name): New functions.
11798 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
11799 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
11800 get_ataraid_disk_name() and get_ada_disk_name().
11802 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
11804 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
11807 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
11809 * docs/grub.texi (Obtaining and Building GRUB): Substitute
11810 `ftp.gnu.org' for `alpha.gnu.org'.
11812 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
11814 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
11815 partitions under /dev/disk/by-id/.
11817 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
11819 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
11820 after ten consecutive open failures. Scanning all the way up to
11821 10000 is excessive and can cause serious performance problems in
11822 some configurations.
11823 Fixes Ubuntu bug #787461.
11825 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
11827 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
11830 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
11831 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
11833 Don't stat devices unless we have to.
11835 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
11836 dir == /dev/mapper.
11837 (grub_guess_root_device): Use already known os_dev if possible.
11838 * grub-core/kern/emu/hostdisk.c
11839 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
11840 if device is known to be a dm one.
11842 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
11844 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
11845 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
11846 Reported by: Pawel Tecza.
11848 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
11850 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
11851 (lsefisystab): Likewise.
11853 (lsefimmap): Likewise.
11854 (hdparm): Enable on qemu-mips.
11855 (setjmp): Add ia64 nodist.
11856 (serial): Simplify tags.
11858 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11860 * Makefile.util.def (grub-ofpathname): Install manual page.
11862 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11864 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
11866 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11868 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
11870 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11872 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
11875 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11877 Use full 64-bit division.
11879 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
11880 (grub_divmod64): ... this.
11881 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
11884 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11886 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
11889 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11891 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
11892 to avoid accidents when debugging with 'sh -x'.
11893 * grub-core/gensyminfo.sh.in: Likewise.
11894 * tests/example_scripted_test.in: Likewise.
11895 * tests/grub_cmd_regexp.in: Likewise.
11896 * tests/grub_script_blanklines.in: Likewise.
11897 * tests/grub_script_dollar.in: Likewise.
11898 * tests/grub_script_expansion.in: Likewise.
11899 * tests/grub_script_final_semicolon.in: Likewise.
11900 * tests/partmap_test.in: Likewise.
11901 * tests/util/grub-shell-tester.in: Likewise.
11902 * tests/util/grub-shell.in: Likewise.
11904 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11906 Move gfxmenu color handling to video, so that gfxterm can use it
11909 * grub-core/gfxmenu/named_colors.c: Move to ...
11910 * grub-core/video/colors.c: ... here. Rename
11911 grub_gui_get_named_color to grub_video_get_named_color.
11912 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
11913 * grub-core/video/colors.c (my_isxdigit): ... here.
11914 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
11916 * grub-core/video/colors.c (parse_hex_color_component): ... here.
11917 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
11919 * grub-core/video/colors.c (grub_video_parse_color): ... here.
11921 * include/grub/gui.h (grub_gui_color_t): Move to ...
11922 * include/grub/video.h (grub_video_rgba_color_t): ... here.
11923 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
11924 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
11925 * include/grub/gui.h (grub_gui_map_color): Move to ...
11926 * include/grub/video.h (grub_video_map_rgba_color): ... here.
11927 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
11929 * include/grub/video.h (grub_video_get_named_color): ... here.
11930 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
11931 * include/grub/video.h (grub_video_parse_color): ... here.
11933 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
11935 (gfxmenu): Remove gfxmenu/named_colors.c.
11936 (video) [videomodules]: Add video/colors.c.
11938 Add a background_color command.
11940 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
11942 (GRUB_MOD_INIT): Register background_color command.
11943 (GRUB_MOD_FINI): Unregister background_color command.
11944 (redraw_screen_rect): Allow blend/replace of text layer to be
11945 controlled independently from whether there is a background bitmap.
11946 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
11949 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11951 Patch BPB in ntldr and chainloader --bpb.
11953 * grub-core/fs/fat.c: Include grub/fat.h.
11954 (grub_fat_bpb): Moved to ...
11955 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
11956 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
11958 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
11960 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
11962 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
11964 (grub_chainloader_cmd): Patch BPB if --bpb is given.
11965 (GRUB_MOD_INIT): Show --bpb.
11966 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
11967 * grub-core/normal/main.c (features): New variable.
11968 (GRUB_MOD_INIT): Set feature_* variables.
11969 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
11971 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
11973 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11975 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
11978 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11980 FreeDOS direct loading support.
11982 * docs/grub.texi (Supported OS): Add FreeDOS.
11983 * grub-core/Makefile.core.def (freedos): New module.
11984 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
11986 (grub_relocator16_boot): Handle %ebx.
11987 * grub-core/lib/i386/relocator16.S: Likewise.
11988 * grub-core/loader/i386/pc/freedos.c: New file.
11990 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11992 Long Linux command line support.
11994 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
11995 (maximal_cmdline_size): New variable.
11996 (allocate_pages): Use maximal_cmdline_size.
11997 (grub_cmd_linux): Set and use maximal_cmdline_size.
11998 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
11999 (allocate_pages): Use maximal_cmdline_size.
12000 (grub_cmd_linux): Set and use maximal_cmdline_size.
12001 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
12002 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
12005 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12006 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12008 Improve devmapper support
12010 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
12011 (grub_util_is_lvm): New function.
12012 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
12013 than lvm if not dmraid.
12014 Handle mapped md nodes.
12015 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
12016 (grub_util_device_is_mapped): ... this. Make always available. All users
12018 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
12019 (convert_system_partition_to_system_disk): Handle lvm, mpath and
12021 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
12023 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12025 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
12027 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
12028 * grub-core/modinfo.sh.in: New file.
12029 * grub-core/Makefile.core.def (modinfo.sh): New script.
12030 * util/grub-mknetdir.in: Use modinfo.sh.
12031 * util/grub-mkrescue.in: Likewise.
12033 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12035 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
12036 Fix potential usage of Elf32 instead of Elf64 when compiling on
12037 32-bit architecture. Add endianness macros while on it.
12039 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12041 Use mipsel- rather than mips- in directories involving mipsel ports to
12042 allow both endiannesses coexist.
12044 * configure.ac: proparate target_cpu=mipsel rather than resetting to
12045 mips. All conditions adjusted.
12046 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
12048 * util/grub-install.in: Adjust conditions to take renaming into account.
12049 * util/grub-mkimage.c (image_targets): Likewise. New target
12050 mips-qemu_mips-elf for bigendian mips.
12052 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12054 Avoid unnecessary copying on MIPS.
12056 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
12057 early if src == dest.
12058 * util/grub-mkimage.c (generate_image): Arange for src == dest if
12059 compression is none.
12061 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12063 Reduce memory footprint on SGI by putting modules before the kernel
12064 as opposed to after.
12066 * grub-core/Makefile.core.def (kernel): Increase linking address.
12067 (none_decompress): Likewise.
12068 (xz_decompress): Likewise.
12069 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
12071 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
12073 (grub_arch_modules_addr): New function.
12074 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
12075 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
12076 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
12078 * grub-core/kern/mips/startup.S (total_size): Rename to ...
12079 (grub_total_modules_size): ... this. Make global.
12080 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
12081 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
12083 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
12084 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
12085 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
12086 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
12087 * util/grub-mkimage.c (image_target_desc): New flag
12088 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
12089 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
12090 (generate_image): Handle images with modules before kernel.
12092 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12094 Prevent potential loss of memory map by overwrite on qemu-mips.
12096 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
12097 Save ram size in $s4.
12098 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
12099 All users changed to grub_arch_memsize.
12100 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
12102 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
12103 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
12104 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
12107 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12109 * .bzrignore: Remove grub-dumpbios.
12111 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12113 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
12114 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
12115 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
12116 existing options which append).
12117 * docs/grub.texi (Simple configuration): Document new options.
12118 Reported by: Ian Jackson. Fixes Debian bug #617538.
12120 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12122 * util/grub-fstest.c (cmd_cat): New function.
12123 (fstest): Handle CMD_CAT.
12124 (options): Add cat.
12125 (argp_parser): Handle cat.
12127 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12129 * Makefile.util.def (grub-bin2h): Don't install.
12130 * docs/man/grub-bin2h.h2m: Remove.
12132 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12134 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
12137 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12139 Reenable qemu-mips port.
12141 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
12142 Fix small arc bug while on it.
12143 * gentpl.py: Handle qemu_mips.
12144 * grub-core/Makefile.am: Likewise.
12145 * grub-core/Makefile.core.def: Likewise.
12146 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
12147 inappropriate includes.
12148 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
12149 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
12150 * grub-core/kern/main.c (grub_modules_get_end)
12151 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
12152 * grub-core/kern/mips/qemu-mips: Moved to ..
12153 * grub-core/kern/mips/qemu_mips: ... this.
12154 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
12155 (grub_machine_init): Call terminfo_init and serial_init.
12156 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
12157 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
12159 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
12161 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
12162 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
12163 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
12164 * include/grub/mips/qemu_mips/cmos.h: New file.
12165 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
12166 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
12168 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
12169 Use correct mips-style address.
12170 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
12171 (GRUB_TICKS_PER_SECOND): Removed.
12172 (grub_get_rtc): Likewise.
12173 (grub_cpu_idle): Likewise.
12174 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
12176 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
12177 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
12178 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
12179 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
12180 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
12181 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
12182 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
12183 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
12185 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12189 * Makefile.util.def (libgrubmods.a): Add dvh.c.
12190 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
12192 * configure.ac: New target mips-arc.
12193 * gentpl.py: Likewise.
12194 * grub-core/Makefile.am: Likewise.
12195 * grub-core/Makefile.core.def: Likewise.
12196 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
12197 (none_decompress): Likewise.
12198 (lsdev): New module.
12199 (datetime): Use lib/arc/datetime.c on ARC.
12200 (part_dvh): New module.
12201 * grub-core/commands/arc/lsdev.c: New file.
12202 * grub-core/disk/arc/arcdisk.c: Likewise.
12203 * grub-core/kern/mips/arc/init.c: Likewise.
12204 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
12206 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
12208 (grub_arch_dl_relocate_symbols): Likewise.
12209 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
12210 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
12211 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
12213 * grub-core/lib/arc/datetime.c: New file.
12214 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
12215 pci.h on non-loongson.
12216 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
12217 (grub_linux_boot): Set unused registers to 0.
12218 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
12219 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
12220 * grub-core/mmap/mips/uppermem.c: ...here.
12221 * grub-core/partmap/dvh.c: New file.
12222 * grub-core/term/arc/console.c: Likewise.
12223 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
12224 (grub_terminfo_set_current): Add terminal "arc".
12225 (grub_terminfo_readkey): Support ARC sequences.
12226 * include/grub/arc/arc.h: New file.
12227 * include/grub/arc/console.h: Likewise.
12228 * include/grub/disk.h (grub_disk_dev_id): Add
12229 GRUB_DISK_DEVICE_ARCDISK_ID.
12230 * include/grub/mips/arc/kernel.h: New file.
12231 * include/grub/mips/arc/memory.h: Likewise.
12232 * include/grub/mips/arc/time.h: Likewise.
12233 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
12234 * include/grub/mips/kernel.h (grub_halt): ... here.
12235 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
12237 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
12238 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
12239 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
12240 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
12242 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
12244 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
12245 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
12246 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
12247 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
12248 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
12249 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
12250 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
12251 (grub_phys_addr_t): Moved from here ...
12252 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
12253 (grub_vtop): Moved from here ...
12254 * include/grub/mips/memory.h (grub_vtop): ... here.
12255 (grub_map_memory): Moved from here ...
12256 * include/grub/mips/memory.h (grub_map_memory): ... here.
12257 (grub_unmap_memory): Moved from here ...
12258 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
12259 (grub_machine_mmap_iterate): Moved from here ...
12260 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
12261 (grub_mmap_get_lower): Moved from here ...
12262 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
12263 (grub_mmap_get_upper): Moved from here ...
12264 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
12265 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
12267 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
12268 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
12270 * include/grub/mips/time.h (grub_get_rtc): ... here.
12271 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
12273 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
12274 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
12276 * include/grub/mips/time.h (grub_cpu_idle): ... here.
12277 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
12279 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
12280 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
12281 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
12282 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
12283 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
12284 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
12285 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
12286 (GRUB_MACHINE_LINK_ADDR): Likewise.
12287 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
12289 * util/grub-install.in: Run dvhtool on ARC.
12290 * util/grub-mkimage.c (image_targets): Add mips-arc.
12291 (generate_image): Handle ECOFF output for mips-arc.
12293 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12295 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
12298 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12300 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
12301 after enabling port.
12303 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12305 Skip incorrect USB devices.
12307 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
12309 * include/grub/usb.h (grub_usb_err_t): New enum value
12310 GRUB_USB_ERR_BADDEVICE.
12312 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12314 Fuloong video init support.
12316 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
12318 (grub_vga_read_arx): New function.
12319 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
12321 (framebuffer): New members io, mmioptr and mmiobase.
12322 (read_sis_cmd): New function.
12323 (write_sis_cmd): Likewise.
12324 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
12325 rather than 640x400.
12326 * grub-core/video/sis315_init.c: New file.
12328 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12330 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
12332 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
12333 to grub_dl_register_symbol.
12335 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12337 Fix compilation errors.
12339 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
12340 potentially unused.
12341 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
12342 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
12343 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
12344 to loongson machines.
12346 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12348 Several FS mtime support.
12350 * grub-core/fs/affs.c (grub_affs_time): New struct.
12351 (grub_affs_file): New field mtime.
12352 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
12353 type. Removed 'size'. New field 'di'. All users updated.
12354 (grub_affs_mount): Simplify checsum checking.
12355 (grub_affs_iterate_dir): New helper grub_affs_create_node.
12356 (grub_affs_dir): Handle mtime.
12357 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
12358 (grub_cpio_dir): Likewise.
12359 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
12360 (grub_hfs_filerec): New field mtime.
12361 (grub_hfs_dir): Handle mtime.
12362 (grub_hfs_mtime): New function.
12363 (grub_hfs_fs): Register grub_hfs_mtime.
12364 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
12365 (grub_iso9660_dir): New field mtime.
12366 (grub_fshelp_node): New field dirent.
12367 (iso9660_to_unixtime): New function.
12368 (iso9660_to_unixtime2): Likewise.
12369 (grub_iso9660_read_symlink): Use node->dirent.
12370 (grub_iso9660_iterate_dir): Likewise.
12371 (grub_iso9660_dir): Set mtime.
12372 (grub_iso9660_mtime): New function.
12373 (grub_iso9660_fs): Register grub_iso9660_mtime.
12374 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
12375 (grub_jfs_inode): New fields atime, ctime and mtime.
12376 (grub_jfs_dir): Set mtime.
12377 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
12378 * grub-core/fs/ntfs.c (list_file): Set mtime.
12379 (grub_ntfs_dir): Likewise.
12380 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
12381 (grub_reiserfs_iterate_dir): Set mtime.
12382 (grub_reiserfs_dir): Likewise.
12383 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
12384 (grub_fshelp_node): Likewise.
12385 (grub_sfs_iterate_dir): Set mtime.
12386 (grub_sfs_dir): Likewise.
12387 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
12388 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
12389 (grub_xfs_inode): New fields atime, mtime, ctime.
12390 (grub_xfs_dir): Set mtime.
12391 * include/grub/datetime.h (grub_datetime2unixtime): New function.
12392 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
12393 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
12395 Support UDF symlinks.
12397 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
12398 (grub_ufs_read_symlink): New function. All users updated.
12400 Check amiga partmap checksum.
12402 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
12403 (grub_amiga_partition): Likewise.
12404 (amiga_partition_map_checksum): New function.
12405 (amiga_partition_map_iterate): Check checksum.
12407 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12411 * Makefile.util.def (libgrubmods.a): Add romfs.
12412 * grub-core/Makefile.core.def (romfs): New module.
12413 * grub-core/fs/romfs.c: New file.
12415 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12417 Squashfs v4 support.
12419 * Makefile.util.def (libgrubmods.a): Add squash4.
12420 * grub-core/Makefile.core.def (squash4): New module.
12421 * grub-core/fs/squash4.c: New file.
12422 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
12423 disk_input_start, disk_input.
12424 (get_byte): Handle disk_input.
12425 (grub_zlib_disk_read): New function.
12426 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
12428 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12429 2011-05-15 Feiran Zheng <famcool@gmail.com>
12431 * Makefile.util.def (libgrubmods.a): Add minix3.
12432 * grub-core/Makefile.core.def (minix3): New module.
12433 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
12434 (GRUB_MINIX_BSIZE): Removed.
12435 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
12436 (grub_minix_ino_t): New type.
12437 (grub_minix_le_to_cpu_ino): New macro.
12438 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
12439 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
12440 (grub_minix_data): New field block_size.
12441 (grub_minix_read_file): Handle 64-bit correctly.
12442 * grub-core/fs/minix3.c: New file.
12444 2011-05-15 Tristan Gingold <gingold@free.fr>
12445 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
12446 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12450 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
12451 * configure.ac: Add ia64-efi target.
12452 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
12453 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
12454 * gentpl.py: Add ia64_efi platform.
12455 Rename x86_efi to efi and Add ia64-efi. All users updated.
12456 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
12457 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
12458 Remove kern/generic/rtc_get_time_ms.c on EFI.
12459 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
12460 kern/ia64/dl_helper.c on ia64-efi.
12461 Add kern/emu/cache.c on emu.
12462 (linux): Use on loader/ia64/efi/linux.c on ia64.
12463 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
12464 whether symbol is a function.
12465 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
12466 (grub_symbol): New field 'isfunc'.
12467 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
12468 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
12469 (grub_dl_load_segments): Place all sections into the same region.
12470 [__ia64__]: Create trampolines and got.
12471 [GRUB_MACHINE_EMU]: Call mprotect.
12472 (grub_dl_resolve_symbols): Resolve symbol type as well.
12473 [__ia64__]: Create function descriptors.
12474 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
12475 (grub_rtc_get_time_ms): ... this. Expressions simplified.
12476 (grub_get_rtc): New function.
12477 * grub-core/kern/emu/cache.c [__ia64__]: New file.
12478 * grub-core/kern/emu/cache.S: Renamed to ...
12479 * grub-core/kern/emu/cache_s.S: ... this.
12480 [__ia64__]: Add a nop.
12481 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
12482 [__ia64__]: New function.
12483 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
12484 * grub-core/kern/ia64/dl.c: New file.
12485 * grub-core/kern/ia64/dl_helper.c: Likewise.
12486 * grub-core/kern/ia64/efi/init.c: New file.
12487 * grub-core/kern/ia64/efi/startup.S: Likewise.
12488 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
12489 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
12490 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
12491 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
12492 * grub-core/loader/ia64/efi/linux.c: New file.
12493 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
12494 (GRUB_MOD_DEP): Likewise.
12495 (grub_dl) [__ia64__]: New fields got and tramp.
12496 (grub_dl): New field 'base'.
12497 (grub_dl_register_symbol): New argument isfunc. All users updated.
12498 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
12499 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
12500 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
12501 (grub_ia64_dl_get_tramp_got_size): New proto.
12502 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
12503 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
12504 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
12505 * include/grub/efi/api.h: Skip call wrappers on ia64.
12506 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
12507 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
12508 * include/grub/elf.h (ELF_ST_INFO): New definition.
12509 * include/grub/ia64/efi/kernel.h: New file.
12510 * include/grub/ia64/efi/memory.h: Likewise.
12511 * include/grub/ia64/efi/time.h: Likewise.
12512 * include/grub/ia64/kernel.h: Likewise.
12513 * include/grub/ia64/setjmp.h: Likewise (from glibc).
12514 * include/grub/ia64/time.h: New file.
12515 * include/grub/ia64/types.h: Likewise.
12516 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
12517 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
12519 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
12520 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
12521 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
12522 * util/grub-mkimage.c (image_target_desc): New field pe_target.
12524 (EFI64_HEADER_SIZE): New definition. All users updated.
12525 (image_targets): Add ia64-efi.
12526 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
12527 jumpers_addr. All users updated.
12528 Create function descriptors.
12529 (count_funcs): New function.
12530 (unaligned_uint32): New struct.
12531 (MASK20): New definition.
12532 (MASK19): Likewise.
12533 (MASKF21): Likewise.
12534 (add_value_to_slot_20b): New function.
12535 (add_value_to_slot_21_real): Likewise.
12536 (add_value_to_slot_21): Likewise.
12537 (ia64_kernel_trampoline): New struct.
12538 (nopm): New variable.
12540 (make_trampoline): New function.
12541 (relocate_addresses): Handle ia64.
12542 (make_reloc_section): Likewise.
12543 (load_image): Likewise.
12545 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12547 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
12548 warning. Move variables before code while on it.
12550 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12554 * configure.ac: Rename yeeloong platform to loongson. All users updated.
12555 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
12556 * grub-core/boot/mips/loongson/fuloong.S: New file.
12557 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
12558 Explicitly init CS5536.
12559 [FULOONG]: Don't use serial until CS5536 is available.
12560 Set GPIO based on dumps.
12561 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
12562 [FULOONG]: Handle GPIO and memory controller differences.
12563 Parse machine type in $a2.
12564 * grub-core/boot/mips/startup_raw.S: Determine and save the
12566 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
12567 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
12568 init on architecture type.
12569 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
12570 SIS315E. Don't init at_keyboard on fuloong.
12571 (grub_halt): Support Fuloong.
12572 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
12573 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
12574 (loongson_machtypes): New array.
12575 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
12577 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
12578 config. All users updated. Handle CS5536 serial.
12579 * grub-core/term/serial.c (grub_serial_register): Conditionalise
12580 default port on machine type. Register serial as inactive.
12581 * grub-core/video/sis315pro.c: New file.
12582 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
12584 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
12585 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
12586 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
12587 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
12588 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
12589 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
12591 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
12592 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
12594 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
12595 (grub_arch_machine): New extern var.
12596 * include/grub/mips/loongson/serial.h
12597 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
12598 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
12599 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
12600 (GRUB_MACHINE_SERIAL_PORT0): ... this.
12601 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
12602 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
12603 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
12604 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
12605 * include/grub/term.h (grub_term_register_input_inactive): New inline
12607 (grub_term_register_output_inactive): Likewise.
12608 * include/grub/video.h (grub_video_driver_id): New value
12609 GRUB_VIDEO_DRIVER_SIS315PRO.
12610 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
12611 New field "names". All users updated.
12612 New field value IMAGE_FULOONG_FLASH.
12613 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
12615 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
12617 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
12618 and add some clarification.
12620 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12622 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
12623 platforms if kernel is compressed.
12625 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12627 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
12628 unused modules since currently referrence counter isn't reliable and
12629 there isn't much memory to recover there anyway.
12631 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12633 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
12634 rather than resetting it to allow modules to reference themselves
12637 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12639 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
12640 counter on dependencies since grub_dl_unref already handles this.
12642 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12644 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
12645 on error if not already done.
12647 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12649 Fix few potential memory misusage.
12651 * grub-core/font/font.c (load_font_index): Don't free char_index to
12653 (grub_font_load): Zero-fill font at alloc for safety.
12654 Close file on error.
12655 (free_font): Free bmp_idx.
12657 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12659 * docs/grub.texi (Installation): Fix several outdated claims.
12661 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12663 Handle module_license on windows.
12665 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
12667 (insert_string): Make argument const char * instead of char *.
12668 (write_section_data): Handle long section names.
12669 Handle module_license.
12671 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12673 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
12674 handle class-free menuentries.
12675 (grub_normal_add_menu_entry): Add a check to be sure.
12677 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12679 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
12682 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12684 * configure.ac: Bump version to 1.99.
12686 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12688 Give ATA device a bit more time on first try in order to allow disks
12691 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
12692 if dev->present is 1. Reset dev->present on failure.
12693 (grub_ata_device_initialize): Set dev->present to 1.
12694 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
12695 (grub_ata_device): New member 'present'.
12697 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12699 * util/grub-mkimage.c (generate_image): Update hash.
12701 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12703 Flush caches on DMA memory.
12705 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
12706 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
12707 (grub_dma_free): Likewise.
12708 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
12710 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12712 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
12713 to avoid asm treating ld and sd as macros.
12715 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12717 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
12720 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12722 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
12723 grub_decompress_core since later would fail if grub_decompress_core
12726 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12728 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
12729 R_MIPS_JALR since it's used by newer compiler.
12731 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
12733 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
12735 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12737 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
12738 file_path to 0 for surety.
12739 (grub_chainloader_boot): Set exit_data to NULL.
12740 Unset the loader once done.
12741 (grub_cmd_chainloader): Fix confusing error message if file is empty.
12743 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12745 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
12746 unknown key into a dprintf.
12748 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12750 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
12751 on first non-existant partition.
12753 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12755 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
12757 Reported by: Mark Korenberg.
12759 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12761 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
12764 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12766 * util/grub-mkimage.c (main): Explicitely flush and sync the output
12767 before closing to ensure that it will be readable by grub-setup.
12769 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12771 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
12772 (devpath_1): Use MAKE_PIWG_PATH.
12773 (devpath_2): Likewise.
12774 (devpath_3): Likewise.
12775 (devpath_4): Likewise.
12776 (devpath_5): Likewise.
12777 (devpath_6): Likewise.
12779 The appleldr.mod was checked that to be binary identical to previous
12782 2011-05-05 Zach <mikezackles>
12784 Support 2010 Macbooks.
12786 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
12787 (devs): Add devpath_6.
12789 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12791 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
12792 /dev/random. /dev/urandom is good enough for our purposes (salting).
12794 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12796 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
12798 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12800 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
12803 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12805 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
12806 and not 0 on failure.
12808 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
12810 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
12811 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
12812 disk; otherwise grub_fs_probe will not fall back to the next
12814 (grub_pxefs_open): Likewise, for consistency.
12815 Reported and tested by: Ezekiel Grave.
12817 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
12819 * tests/partmap_test.in: Don't hardcode path to parted.
12820 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
12822 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
12824 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
12825 of `ls' to find out which devices are available.
12827 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12829 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
12830 than source address for efi mmap buffer.
12832 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12834 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
12835 wrong action on non-detecting the magic.
12837 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12839 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
12840 already supplied by another part of the module (fixes compilation on
12843 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12845 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
12846 match the one used by mdadm.
12848 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
12850 * po/README: Add instructions for creating po/LINGUAS.
12852 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
12854 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
12857 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
12858 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
12859 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
12860 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
12861 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
12862 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
12863 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
12864 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
12865 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
12866 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
12867 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
12868 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
12869 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
12870 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
12871 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
12872 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
12873 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
12874 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
12875 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
12876 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
12877 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
12878 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
12880 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
12882 * grub-core/kern/emu/getroot.c
12883 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
12884 test that was incorrectly reintroduced in r3214.
12885 Reported by: Ian Dall. Fixes Savannah bug #33133.
12887 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
12889 Fix stack pointer handling in 16-bit relocator.
12891 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
12892 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
12893 Fixes Ubuntu bug #683904.
12895 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
12897 * configure.ac: Bump version to 1.99~rc2.
12899 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
12901 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
12902 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
12903 * grub-core/lib/x86_64/setjmp.S: Likewise.
12904 * grub-core/lib/mips/setjmp.S: Likewise.
12905 * grub-core/lib/powerpc/setjmp.S: Likewise.
12906 * grub-core/lib/sparc64/setjmp.S: Likewise.
12908 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
12910 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
12911 * grub-core/lib/efi/datetime.c: Likewise.
12913 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12915 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
12917 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
12918 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
12919 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
12921 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12923 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
12925 (grub_gfxterm_term_init): Likewise.
12927 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12929 Take into account the decorations the computing menu entry width.
12931 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
12932 (grub_gfxmenu_create_box): Register get_border_width.
12933 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
12935 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
12938 2011-04-18 Endres Puschner <code@e7p.de>
12940 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
12941 Don't skip first class.
12943 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12945 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
12947 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
12949 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12951 Complete 64-bit division support.
12953 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
12954 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
12955 * include/grub/misc.h (grub_divmod64): Rename to ...
12956 (grub_divmod64_full): ... this.
12957 (grub_divmod64): New inline function.
12959 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12961 * util/grub-mkimage.c (generate_image): Add forgotten comma.
12963 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12965 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
12966 performing the necessary test.
12968 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
12970 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
12971 (kfreebsd.elf): Likewise.
12972 (pc-chainloader.elf): Likewise.
12973 (ntldr.elf): Likewise.
12975 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
12977 Identify RAID by its UUID rather than (guessed) name.
12979 * grub-core/disk/raid.c (ascii2hex): New function.
12980 (grub_raid_open): Accept mduuid/%s specification.
12981 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
12982 (get_mdadm_uuid): ... this.
12983 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
12985 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
12987 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
12990 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
12992 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
12994 * util/grub.d/20_linux_xen.in: Likewise.
12996 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
12998 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
12999 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
13001 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
13002 Build a list of relevant visible mounts using the mnt_id and
13003 parent_mnt_id fields, and then scan that list at the end.
13005 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
13007 * docs/grub.texi (normal): New section.
13008 (normal_exit): New section.
13009 (Embedded configuration): Add reference to normal.
13010 (GRUB only offers a rescue shell): Likewise.
13011 * docs/grub-dev.texi (Error Handling): Fix typo.
13013 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
13015 * NEWS: Drop obsolete entry about probe-only btrfs support.
13017 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
13019 * util/import_gcry.py: Fix typo.
13021 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13023 * NEWS: Add btrfs support.
13025 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13026 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
13028 BtrFS support. Written by me (Vladimir) with important bugfixes and
13029 even more important testing by Colin.
13031 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
13032 * grub-core/Makefile.core.def (btrfs): Add crc.c.
13033 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
13034 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
13035 mem_input_off and mem_input. All users updated to accept in-RAM input.
13036 (gzio_seek): New function.
13037 (test_zlib_header): Likewise.
13038 (grub_gzio_read): Likewise.
13039 (grub_zlib_decompress): Likewise.
13040 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
13041 Accept partial and non-virtual mounts.
13042 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
13043 avoid receiving /dev/dm-X as device.
13044 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
13045 Handle bind and partial mounts.
13046 * grub-core/lib/crc.c: New file.
13047 * include/grub/deflate.h: Likewise.
13048 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
13050 * include/grub/lib/crc.h: New file.
13052 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13054 Implement automatic module license checking according to new GNU
13057 * grub-core/kern/dl.c (grub_dl_check_license): New function.
13058 (grub_dl_load_core): Use grub_dl_check_license.
13059 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
13060 (GRUB_MOD_LICENSE): Likewise.
13061 (GRUB_MOD_DUAL_LICENSE): Likewise.
13062 All modules updated.
13064 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
13066 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
13067 reserved_first_sector to 1. btrfs reserves plenty of space for boot
13069 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
13071 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13073 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
13075 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13077 * util/grub-fstest.c (read_file): Report GRUB error if file opening
13080 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13082 * grub-core/kern/file.c (grub_file_open): Don't take into account the
13083 parenthesis in the middle of the filename.
13085 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13087 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
13088 rather than trying to put initrd way too high.
13089 Reported by: Ryan Lortie <desrt@desrt.ca>
13091 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13093 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
13094 improperly removed string.
13096 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13098 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
13100 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
13101 (open_device) Likewise.
13102 (grub_util_biosdisk_close): Likewise.
13103 Reported by: Mark Korenberg.
13105 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
13107 * util/grub-mkconfig_lib.in: Add missing quotes.
13109 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
13111 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
13114 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13116 Dynamically count the number of lines for the lower banner.
13118 * grub-core/normal/menu_entry.c (per_term_screen): New member
13120 (print_down): Use num_entries.
13121 (update_screen): Likewise.
13122 (grub_menu_entry_run): Set num_entries.
13123 * grub-core/normal/menu_text.c (menu_viewer_data): New member
13125 (grub_print_message_indented): Move real part to ...
13126 (grub_print_message_indented_real): ... here. Additional argument
13128 (draw_border): Additional argument num_entries.
13129 (print_message): Additional argument dry_run.
13130 (print_entries): Receive menu viewer data.
13131 (grub_menu_init_page): New argment num_entries.
13132 (menu_text_set_chosen_entry): Use num_entries.
13133 (grub_menu_try_text): Likewise.
13134 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
13136 (grub_ucs4_count_lines): New function.
13137 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
13138 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
13139 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
13140 (grub_term_border_height): Likewise.
13141 (grub_term_num_entries): Likewise.
13143 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13145 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
13146 Remove now unused string.
13148 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
13150 * docs/grub-dev.texi (Finding your way around): Update for 1.99
13152 (Getting started): GRUB is developed in Bazaar now, not Subversion.
13154 (Comment): Fix typo.
13155 (Getting started): General copy-editing.
13156 (Typical Development Experience): Likewise.
13157 (Error Handling): Likewise.
13158 (Video API): Likewise.
13160 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
13162 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
13165 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13167 * util/grub-mkimage.c (main): Handle special naming of yeeloong
13170 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
13172 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
13173 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
13176 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13178 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
13179 grub_strcpy since the lines aren't necessarily 0-terminated.
13181 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13183 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
13186 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13188 * grub-core/commands/probe.c (options): Argument to set isn't optional.
13189 (GRUB_MOD_INIT): DEVICE isn't optional.
13191 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13193 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
13194 word on new line if it's too long anyway. Fixes a hang.
13196 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13198 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
13200 * util/grub-setup.c (main): Reuse md device name if available.
13201 * util/raid.c (grub_util_raid_getmembers): Receive device name and
13202 not GRUB name as argument.
13203 Based on patch by: Florian Wagner <fwagner>.
13205 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13207 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
13208 Place mbi on low memory for better compatibility.
13210 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13212 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
13214 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13215 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
13217 * autogen.sh: Ensure that collate and ctype locale is C.
13218 * conf/Makefile.common: Likewise.
13220 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13222 * grub-core/normal/menu.c: Add missing include.
13224 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13226 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
13228 2011-04-08 Martin Zuther <mzuther@mzuther.de>
13230 * util/grub-mkconfig.in: Ignore emacsen backup.
13232 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13234 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
13236 (grub_util_biosdisk_close): Likewise.
13238 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13240 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
13241 const attribute and use grub_isdigit.
13243 2011-04-06 Andrey <dev_null@ukr.net>
13245 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
13248 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13250 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
13251 useful grub_dprintf's.
13253 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13255 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
13257 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13259 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
13261 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13263 Output errors if theme loading failed.
13265 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
13266 grub_gfxterm_fullscreen on error paths to ...
13267 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
13268 theme loading error.
13270 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13272 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
13273 space for older compilers.
13274 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
13276 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13278 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
13279 and report them as not RAID members since they are useless for GRUB.
13280 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
13282 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13284 Increase LVM implementation robustness in order not to crash on
13285 configurations like pvmove. Previously code assumed that in some places
13286 only lvs or only pvs are used whereas it seems that they are used
13289 * grub-core/disk/lvm.c (read_node): New function.
13290 (read_lv): Use read_node.
13291 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
13292 Match volumes only at the end when all lvs are found. Take both
13293 pvs (first) and lvs (second) into account.
13294 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
13295 mirror_* into node_*. All users updated.
13296 (grub_lvm_stripe): Merge this ...
13297 (grub_lvm_mirror): ... and this ...
13298 (grub_lvm_node): ... into this. All users updated.
13300 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13302 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
13303 of function to allow further scanning for LVMs.
13305 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13307 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
13308 on failed seek as it breaks open fd reusage.
13310 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13312 * util/grub-install.in: Add a recommendation to use --recheck before
13315 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13317 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
13320 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13322 GRUB developper manual based on existing Internals section and
13323 contributions by the various authors with active copyright assignment.
13325 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
13326 * docs/font_char_metrics.png: New file.
13327 * docs/font_char_metrics.txt: Likewise.
13328 * docs/grub-dev.texi: Likewise.
13329 * docs/grub.texi (Internals): Move from here ...
13330 * docs/grub-dev.texi: ... here.
13332 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13334 Store the loopback device as data on loopback grub_disk structures,
13335 rather than the file it points to. This fixes use of freed memory
13336 if an existing loopback device is replaced.
13338 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
13339 disk->data, not dev->file.
13340 (grub_loopback_read): Adjust file assignment to match.
13341 Fixes Ubuntu bug #742967.
13343 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13345 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
13346 when replacing an existing device.
13348 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
13350 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
13351 memory corruptions.
13353 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
13355 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
13356 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
13357 (grub_jfs_read_inode): Likewise.
13358 (grub_jfs_opendir): Likewise. Remove now useless casts.
13359 (grub_jfs_getent): Likewise.
13360 Make ino a grub_uint32_t rather than int.
13361 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
13362 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
13363 division and module with bit operations.
13364 (grub_jfs_find_file): Make ino a grub_uint32_t.
13365 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
13367 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13369 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
13370 warning. (This was in fact always initialised before use, but GCC
13371 wasn't smart enough to prove that.)
13372 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13374 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
13376 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
13378 (efi_wrap_1): Likewise.
13379 (efi_wrap_2): Likewise.
13380 (efi_wrap_3): Likewise.
13381 (efi_wrap_4): Likewise.
13382 (efi_wrap_5): Likewise.
13383 (efi_wrap_6): Likewise.
13384 (efi_wrap_10): Likewise.
13385 Based on information by: Red Hat/Peter Jones.
13387 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
13389 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
13390 set-but-not-used variable.
13392 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
13394 * docs/grub.texi (Simple configuration): Be more explicit about
13395 GRUB_DEFAULT, and add an example.
13396 Reported by: Leslie Rhorer.
13398 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13400 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
13403 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
13405 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
13406 * util/grub.d/20_linux_xen.in: Likewise.
13408 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13410 * util/grub.d/10_linux.in: Try alternative config filenames where
13411 we parse config file.
13412 * util/grub.d/20_linux_xen.in: Likewise.
13414 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
13416 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
13417 * util/grub.d/20_linux_xen.in: Likewise.
13419 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13421 * grub-core/disk/raid.c (insert_array): Add few potentially
13422 useful grub_util_info.
13423 (grub_raid_register): Likewise.
13425 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13427 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
13428 Preserve partition number in mdadm code path.
13430 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13432 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
13433 few potentially useful grub_util_info.
13435 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13437 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
13439 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13441 * docs/grub.texi (default): Use @example rather than nested
13442 itemized lists to avoid breaking gendocs.
13444 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13446 * docs/grub.texi (Future): Update.
13448 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13450 * docs/grub.texi (Environment): New chapter.
13451 (Changes from GRUB Legacy): Link to "Environment block" section for
13452 details of limitations.
13453 (Simple configuration): Likewise. Link to documentation of gfxmode
13454 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
13456 (Shell-like scripting): Note that normal variables are stored in the
13458 (gettext): Link to documentation of lang and locale_dir.
13459 (list_env): New section.
13460 (load_env): New section.
13461 (save_env): New section.
13463 (Reporting bugs): Fix typo.
13465 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13467 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
13470 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13472 * grub-core/term/at_keyboard.c (set_scancodes)
13473 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
13475 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13477 * docs/grub.texi (Menu-specific commands): Remove some semantics
13478 that were true in GRUB Legacy but not in GRUB 2.
13479 (submenu): New section.
13480 (false): New section.
13481 (read): New section.
13482 (true): New section.
13484 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13486 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
13488 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13490 * docs/grub.texi (Simple configuration): Explain some of the
13491 current limitations of grub-mkconfig.
13492 Reported by: Leslie Rhorer.
13494 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13496 Old macs search for boot.efi rather than for bootia32.efi.
13498 * util/grub-install.in: Copy bootia32.efi to boot.efi.
13499 * util/grub-mkrescue.in: Likewise.
13500 Suggested by: Peter Jones.
13502 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13504 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
13506 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13508 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
13509 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
13510 (grub_lvm_mirror): New struct.
13511 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
13512 (grub_lvm_iterate): Iterate only visible volumes.
13513 (grub_lvm_read): Factor out to ..
13514 (read_lv): ... this. Support mirrors.
13515 (grub_lvm_read): New wrapper function.
13516 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
13517 stripped or mirrored.
13519 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13521 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
13523 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13525 * docs/grub.texi (loopback): New section.
13527 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13529 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
13532 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13534 * docs/grub.texi (BIOS installation): New section, partly based on
13535 previous text in other sections.
13536 (Installing GRUB using grub-install): Replace BIOS discussion with a
13538 (Images): Likewise.
13540 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13542 * grub-core/kern/emu/hostdisk.c (find_partition_start)
13543 [HAVE_DIOCGDINFO]: Add safety checks.
13545 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13547 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
13548 per default compiled in kernel and prior to 8.0 isn't shipped at all.
13550 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13552 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
13553 real_sb->size is zero (e.g. RAID-0), get the disk size from
13554 real_sb->data_size instead.
13555 Fixes Ubuntu bug #743136.
13557 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13559 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
13560 printf clauses for printing size and start.
13562 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13564 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
13565 Reported and tested by: Timothy Nikkel.
13567 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13569 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
13570 (dirty_region_add_real): ... this.
13571 (dirty_region_add): Don't discard margin refresh when performing
13574 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13576 * grub-core/lib/relocator.c (allocate_regstart)
13577 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
13578 terminals are capabple of malloc-free operation.
13579 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
13580 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
13582 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
13584 * util/grub-setup.c: Copy the partition table zone if floppy support
13585 is disabled, even if no partition table is found.
13587 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
13588 during POST if an invalid partition table is contained in the PBR
13589 of the active partition when GRUB is installed to a partition.
13591 2011-03-28 Colin Watson <cjwatson@debian.org>
13593 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
13596 2011-03-28 Colin Watson <cjwatson@debian.org>
13598 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
13599 to be specific about what kind of RAID device we're scanning for.
13601 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
13603 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
13604 return freed string.
13606 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13608 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
13610 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13612 Use libgeom on FreeBSD to detect partitions.
13614 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
13615 (grub-mkrelpath): Likewise.
13616 (grub-script-check): Likewise.
13617 (grub-editenv): Likewise.
13618 (grub-mkpasswd-pbkdf2): Likewise.
13619 (grub-fstest): Likewise.
13620 (grub-mkfont): Likewise.
13621 (grub-mkdevicemap): Likewise.
13622 (grub-probe): Likewise.
13623 (grub-setup): Likewise.
13624 (grub-ofpathname): Likewise.
13625 (grub-mklayout): Likewise.
13626 (example_unit_test): Likewise.
13627 (grub-menulst2cfg): Likewise.
13628 * grub-core/Makefile.core.def (grub-emu): Likewise.
13629 (grub-emu-lite): Likewise.
13630 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
13631 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
13632 define HAVE_DIOCGDINFO.
13633 (follow_geom_up) [FreeBSD]: New function.
13634 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
13635 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
13636 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
13637 unconditionally of HAVE_DIOCGDINFO.
13639 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13641 Fix FreeBSD compilation problem.
13643 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
13644 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
13646 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
13648 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
13649 Switch back to page zero before loading a kernel, since some kernel
13650 drivers expect that.
13651 Thanks to: Felix Kuehling.
13653 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13655 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
13656 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
13657 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
13659 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13661 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
13662 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
13664 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13666 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
13667 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
13668 malloc is disabled.
13670 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13672 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
13673 for modules headers when counting the needed allocation size.
13675 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13677 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
13678 if no ASCII character is found to prevent crash.
13680 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
13682 * grub-core/video/bitmap.c (match_extension): Ignore case.
13684 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13686 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
13688 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13690 * grub-core/script/parser.y: Declare "time" as valid argument.
13692 2011-03-23 Peter Jones <pjones@redhat.com>
13694 Fix incorrect assert failure reporting.
13696 * grub-core/tests/example_functional_test.c (example_test): Add
13698 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
13699 (failure_start): ...this. Check that malloc succeeded.
13700 Don't call xvasprintf. Return failure struct.
13701 (failure_append_vtext): New function.
13702 (failure_append_text): Likewise.
13703 (add_failure): Likewise.
13704 (grub_test_assert_helper): Likewise.
13705 * include/grub/test.h (grub_test_assert_helper): New declaration.
13706 (grub_test_assert): Macro rewritten.
13708 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13710 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
13712 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13714 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
13716 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13718 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
13719 into GRUB-style one.
13721 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13723 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
13724 error and not grub_errno.
13725 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
13727 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13729 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
13730 GRUB_USB_SPEED_NONE in case of failure and not the error code.
13732 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13734 * grub-core/efiemu/i386/pc/cfgtables.c
13735 (grub_machine_efiemu_init_tables): Make declaration a prototype.
13736 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
13737 (grub_xnu_unlock): Likewise.
13738 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
13740 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13742 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
13743 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
13744 * grub-core/commands/hashsum.c (aliases): Likewise.
13745 * grub-core/commands/setpci.c (pci_registers): Likewise.
13746 * grub-core/disk/usbms.c (attach_hook): Likewise.
13747 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
13748 (zio_checksum_table): Likewise.
13749 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
13750 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
13751 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
13752 * grub-core/lib/relocator.c (leftovers): Likewise.
13753 (extra_blocks): Likewise.
13754 * grub-core/loader/i386/bsd.c (relocator): Likewise.
13755 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
13756 (modules_last): Likewise.
13757 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
13758 (devices): Likewise.
13759 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
13760 (modules_last): Likewise.
13761 * grub-core/normal/auth.c (users): Likewise.
13762 * grub-core/normal/context.c (initial_menu): Likewise.
13763 (current_menu): Likewise.
13764 * grub-core/normal/crypto.c (crypto_specs): Likewise.
13765 * grub-core/term/serial.c (grub_serial_ports): Likewise.
13766 (grub_serial_terminfo_input_template): Likewise.
13767 (grub_serial_terminfo_output_template): Likewise.
13768 (grub_serial_terminfo_input): Likewise.
13769 (grub_serial_terminfo_output): Likewise.
13770 (registered): Likewise.
13771 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
13773 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13775 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
13776 grub_video_mode_type_t.
13777 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
13778 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
13779 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
13781 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13783 * util/grub-install.in: Correct the x86-64 name as x86_64.
13785 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
13787 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
13788 initial chunk read from the kernel always includes GRUB's multiboot
13789 header, which is now outside the first sector.
13791 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
13793 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
13794 cached mmap_size, so that this works correctly when called multiple
13796 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
13798 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
13800 * docs/grub.texi (Simple configuration): Tidy up formatting.
13802 2011-03-07 Szymon Janc <szymon@janc.net.pl>
13804 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
13805 Set-but-not-used variable removed.
13807 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13809 Workaround yet another IEEE1275 bug.
13811 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
13812 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
13813 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
13814 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
13816 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
13817 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
13819 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13821 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
13824 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
13826 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
13827 empty, since in that case we can only generate either nothing or a
13828 syntactically invalid configuration file.
13829 Reported by: Michal Suchanek. Fixes Debian bug #612898.
13831 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
13833 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
13834 (Making a GRUB bootable CD-ROM): Likewise.
13835 (Invoking grub-mkrescue): New section.
13836 Reported by: Yann Dirson. Fixes Debian bug #612585.
13838 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
13840 * util/grub-install.in: Remove unnecessary brackets from tr
13842 * util/grub.d/10_hurd.in: Likewise.
13843 * util/grub.d/10_kfreebsd.in: Likewise.
13844 * util/grub.d/10_linux.in: Likewise.
13845 * util/grub.d/20_linux_xen.in: Likewise.
13846 Reported by: Jamie Heilman. Fixes Debian bug #612564.
13848 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
13850 * include/grub/file.h (not_easly_seekable): Rename to ...
13851 (not_easily_seekable): ... this. Update all users.
13853 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
13855 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
13858 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13860 * util/grub-mkimage.c (generate_image): Refuse to create the images
13861 bigger than the actual flash (512K) in Loongson machines. 512K is also
13862 the biggest chip supported by them.
13864 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13866 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
13868 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
13870 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
13871 super_offset field.
13873 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13875 * util/grub-install.in: Ignore install device on platforms
13876 where it doesn't make sense. Always use UUIDs except on pc, efi and
13878 Reported by: Daniel Kahn Gillmor.
13880 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13882 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
13884 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13886 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
13887 (iterate_real): Don't rely on partition being non-NULL.
13889 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13891 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
13892 supported platforms. Put a compile time assert for this rather than
13893 generate a warning with 32-bit shift.
13895 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13897 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
13898 logical expression more readable.
13900 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13902 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
13903 even if some elements have a name.
13904 Reported by: Alexander GQ Gerasiov.
13906 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
13908 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
13909 path unreadable if `grub-probe -t abstraction' fails, for example if
13910 memberlist fails on an LVM volume group.
13911 Reported by: Darius Jahandarie.
13913 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
13915 * docs/grub.texi (Simple configuration): Document
13916 GRUB_PRELOAD_MODULES.
13918 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
13920 * .bzrignore: Remove nonexistent grub-pbkdf2.
13922 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
13924 * configure.ac: Bump version to 1.99~rc1.
13926 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
13928 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
13931 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13933 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
13936 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13938 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
13940 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
13942 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
13945 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
13947 Fix compilation on cygwin.
13949 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
13950 -R .drectve on cygwin.
13951 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
13952 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
13953 (COND_CYGWIN): New condition.
13954 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
13955 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
13956 not @TARGET_OBJ2ELF@.
13957 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
13958 type to determine whether aux is to be used.
13960 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13962 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
13963 realpath'ed device string.
13964 Handle floppy (somewhat).
13965 Issue error in unknown case rather than garbage.
13966 Reported by: Axel Beckert.
13968 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13970 * util/grub.d/00_header.in (load_video): Handle the case when no video
13972 Thanks to: Axel Beckert.
13974 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13976 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
13977 variable. Fixes problem on big endian platforms.
13979 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13981 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
13982 It doesn't work well there.
13984 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13986 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
13988 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
13989 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
13992 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13994 Use alias->path rather than buggy "canon".
13996 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
13997 (ofdisk_hash_add): New argument curcan. All users updated.
13999 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
14001 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
14003 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14005 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
14006 loadmask before doing any calculations. Use correct type for offset.
14007 (grub_linux_load64): Likewise.
14009 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
14011 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
14013 (console_grub_equivalences_unshift): Likewise.
14014 Reported by: Daniel Dehennin.
14016 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14018 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
14019 (set_env_limn_ro): Likewise.
14020 (GRUB_MOD_INIT): Likewise.
14021 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
14022 ARRAY_SIZE while on it.
14023 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
14024 * grub-core/normal/context.c (grub_env_export): Move from here ...
14025 * grub-core/kern/env.c (grub_env_export): ... here.
14026 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
14028 * grub-core/kern/main.c (grub_main): Export root and prefix.
14029 * include/grub/env.h (grub_env_export): Export.
14030 Reported by: Seth Goldberg.
14032 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14034 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
14035 Take into account space used by ELF sections and multiboot palette.
14036 Reported by: Grégoire Sutre.
14038 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14042 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14044 Pass more appropriate video id to Linux.
14046 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
14047 grub_video_get_driver_id and variable gfxpayloadforcelfb to
14049 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
14050 shift params->lfb_size.
14051 * include/grub/i386/linux.h: Make an enume out of have_vga values.
14053 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14055 * util/grub-menulst2cfg.c: Add missing include of misc.h.
14057 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14059 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
14060 separator and pass bootpath/devid even if only one of them is available.
14061 Reported by: Seth Goldberg.
14063 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14065 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
14066 implementations bug on them.
14068 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
14070 (filter_memory_map): Likewise.
14072 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14074 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
14075 Reported by: nebuchadnezzar.
14077 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14079 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
14080 Reported by: nebuchadnezzar.
14082 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14084 Submenu default support.
14086 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
14087 auto_boot. All users updated.
14089 Handle chosen and default with submenus.
14090 (grub_menu_execute_with_fallback): Declared static.
14091 Don't notify failure if autobooted. Upper level does it.
14092 (menuentry_eq): New function.
14093 (get_entry_number): Use menuentry_eq.
14094 (show_menu): New parameter "autobooted". All users updated.
14095 (grub_show_menu): Likewise.
14096 * include/grub/normal.h (grub_show_menu): Likewise.
14097 * include/grub/menu.h (grub_menu_execute_entry): Removed.
14098 (grub_menu_execute_with_fallback): Likewise.
14100 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14102 * util/grub-mklayout.c (usage): Update help text.
14104 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14106 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
14108 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14110 * util/grub-menulst2cfg.c (main): Trim the line.
14112 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14114 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
14115 (grub_machine_init): Don't check amount of low memory as reportedly
14116 INT 12h can be broken and if low memory is too low we wouldn't have
14117 gotten into grub_machine_init anyway.
14119 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14121 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
14122 (grub_machine_mmap_iterate): Take low memory into account
14124 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14126 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
14128 Reported by: TiCPU.
14130 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14132 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
14135 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
14137 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
14138 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
14140 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
14142 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
14143 openbsd and netbsd types being in part_bsd module.
14145 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14147 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
14148 (_FILE_OFFSET_BITS): Likewise.
14149 Reported by: Seth Goldberg.
14151 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
14153 * configure.ac: Check for libdevmapper header.
14155 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14157 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
14159 (fzap_lookup): Likewise.
14160 (dnode_get): Likewise.
14161 (make_mdn): Likewise.
14162 (zfs_mount): Likewise.
14163 (fzap_iterate): Use temporary pointer to avoid aliasing.
14164 (grub_zfs_read): Likewise.
14165 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
14166 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
14167 pointers to avoid aliasing.
14168 (grub_cmd_xnu_kernel64): Likewise.
14169 (grub_xnu_load_driver): Likewise.
14171 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14173 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
14175 (grub_cmd_terminal_output): Likewise.
14176 Reported and tested by: Grégoire Sutre.
14178 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14180 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
14182 Reported and tested by: Grégoire Sutre.
14184 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14186 * configure.ac: Do CPU substitution even if it's specified explicitly.
14187 Reported and tested by: Alain Greppin.
14189 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14191 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
14192 Reported and tested by: Alain Greppin.
14194 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14196 Satisfy some bison versions need for inttypes.h.
14198 * grub-core/lib/posix_wrap/inttypes.h: New file.
14199 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
14200 (int16_t): Likewise.
14201 (int32_t): Likewise.
14202 (int64_t): Likewise.
14203 Reported and tested by: Alain Greppin.
14205 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14207 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
14208 Silence spurious warning.
14209 Reported and tested by: Alain Greppin.
14211 2011-01-07 Szymon Janc <szymon@janc.net.pl>
14213 * docs/grub.texi (Support automatic decompression): Update with xz
14214 decompression support.
14216 2011-01-07 Szymon Janc <szymon@janc.net.pl>
14218 Improve loaders' kernel command line handling.
14220 * grub-core/lib/cmdline.c: New file.
14221 * include/grub/lib/cmdline.h: Likewise.
14222 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
14223 grub_create_loader_cmdline to create kernel command line.
14224 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14225 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
14226 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
14227 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
14228 (linux): Add lib/cmdline.c on common.
14230 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14232 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
14233 inopos might be unaligned.
14235 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14237 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
14238 endian transformations.
14239 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14240 Based on report by: Doug Nazar.
14242 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
14244 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
14245 array->members[i].start_sector.
14246 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
14248 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14250 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
14251 Reported and tested by: Grégoire Sutre.
14253 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
14255 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
14256 avoid causing test failures by clearing the screen.
14258 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
14260 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
14261 Fix prefix check to handle the case where dir ends with a slash
14262 (most significantly, "/" itself).
14263 Reported by: Michael Vogt.
14265 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14267 Run terminfo_cls on initing terminfo output to clear the screen and
14268 move the cursor to (0,0).
14270 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
14271 Call grub_terminfo_output_init.
14272 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
14273 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
14274 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
14276 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14278 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
14281 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14283 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
14286 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14288 The E820 type 5 is BADRAM, not EXEC_CODE.
14290 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
14291 (GRUB_E820_BADRAM): New define.
14292 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
14293 into reserved. Propagate BADRAM.
14294 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
14295 (GRUB_E820_BADRAM): New define.
14297 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14299 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
14300 Ignore the memory post-4G.
14301 (grub_relocator_firmware_alloc_region): Additional debug statement.
14303 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14305 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
14307 Reported by: David Pravec.
14309 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14311 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
14314 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14316 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
14318 (grub_reed_solomon_recover): Likewise.
14320 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14322 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
14324 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14326 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
14329 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
14331 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
14332 descriptions of extract_legacy_entries_source and
14333 extract_legacy_entries_configfile.
14334 Reported by: Seung Soo, Ha.
14336 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
14338 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
14339 on devices that do not implement function 0.
14341 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
14343 * grub-core/fs/hfsplus.c: Make parent unsigned.
14344 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
14346 (grub_hfsplus_cmp_extkey): Likewise
14348 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
14350 * util/grub-install.in: Correctly use bootloader_id and not
14351 GRUB_DISTRIBUTOR on efibootmgr line.
14353 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
14355 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
14357 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
14359 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
14360 Xen and reorder menu item wording to make it clearer that this entry
14361 will launch Xen. Print separate messages when loading Xen and
14364 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14366 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
14367 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
14368 loop in case of incorrect amiga partmap.
14370 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14372 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
14373 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
14376 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14378 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
14380 Reported by: crocket
14382 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14384 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
14386 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
14388 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14390 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
14392 (grub_cmd_xnu_kextdir): Likewise.
14393 (grub_cmd_xnu_splash): Likewise.
14395 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14397 Avoid using Reed-Solomon with 0 redundancy.
14399 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
14400 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
14402 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
14403 (grub_reed_solomon_recover): Likewise.
14405 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14407 Don't use disk subsystem in freebsd_boot.
14409 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
14410 (freebsd_biosdev): Likewise.
14411 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
14412 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
14414 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14416 Handling of files of unknown size is currently limited. They can't be
14417 used e.g. for initrd or modules. Moreover gzip handling of not
14418 easily seekable files is buggy. Disable unknown file size for now. May
14419 be inefficient but works.
14421 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
14422 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
14424 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
14426 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
14429 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
14431 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
14433 2010-12-25 Shea Levy <shlevy>
14435 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
14437 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14439 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
14440 Windows Server 2008.
14441 Reported by: Devin Giddings.
14443 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14445 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
14446 writing an error message because of async power management.
14447 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
14448 (grub_reboot): Likewise.
14450 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
14452 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
14453 keep unit tests from failing when they shouldn't.
14455 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14457 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
14458 previous patch increased the size of the RS code by 20 bytes (at
14459 least with gcc-4.4), so increase this by 20 bytes to match.
14460 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
14462 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14464 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
14465 scratch area. Make sure to initialise chosen in standalone mode as
14466 well as non-standalone.
14467 Reported by: Robert Hooker and Andy Whitcroft.
14468 Tested by: Andy Whitcroft.
14470 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14472 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
14473 constructing a new unescaped string and passing it to grub_xputs in
14474 one go, rather than passing characters to grub_printf one at a time.
14476 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14478 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
14479 initialising utf16.
14481 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14483 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
14484 comment. Add an extra layer of quotation, requiring the output of
14485 this function to be used in a printf format string.
14486 (gettext_printf): New function.
14487 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
14488 Extract translatable strings from here-documents and use a temporary
14489 variable instead, so that xgettext can find them.
14490 * util/grub.d/10_kfreebsd.in: Likewise.
14491 * util/grub.d/10_linux.in: Likewise.
14492 * util/grub.d/20_linux_xen.in: Likewise.
14494 * po/grub.d.sed: New file.
14495 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
14496 arguments. Set c-format flags on all strings extracted from
14497 util/grub.d/ (xgettext refuses to include these itself for strings
14498 it extracted from a shell file, but these really are c-format).
14500 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
14502 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
14503 Avoid next pointing to nowhere.
14505 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14507 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
14508 rather than assuming than rootblock is exactly in the middle.
14509 (grub_affs_label): Likewise.
14511 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14513 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
14514 reserved_first_sector to 0.
14515 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
14516 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
14517 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
14519 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14521 Fix handling of UTF-16 UDF labels.
14523 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
14524 (read_string): .. here.
14525 (grub_udf_label): Use read_string.
14527 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
14529 * grub-core/normal/menu_entry.c (run): Execute commands from menu
14530 editor under argument scope.
14531 Reported by: Jordan Uggla
14533 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14535 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
14537 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
14539 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
14540 line, and other keys scroll an entire page (previous handling was
14541 for \r and \n to scroll a page and other keys to scroll two lines).
14543 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14545 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
14546 Set ptrdest to correct get_physical_target_address rather than
14547 incorrect get_virtual_current_address.
14549 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
14551 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
14552 correct cat to grub_uint8_t * rather than grub_uint32_t *.
14554 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
14556 * .bzrignore: Ignore grub-core/rs_decoder.S.
14558 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
14560 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
14561 .mo/.mo.gz opening sequence to ...
14562 (grub_mofile_open_lang): ... here.
14563 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
14564 * util/grub.d/00_header.in (grub_lang): Include country part of
14566 Reported by: Mario Limonciello.
14568 2010-12-09 Robert Millan <rmh@gnu.org>
14570 * NEWS: Document addition of ZFS support.
14572 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
14574 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
14575 rather than `/ 2', as the latter requires -Wa,--divide which would
14576 require bumping our minimum binutils version.
14578 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
14580 * util/grub-script-check.c (main): Print script line number on
14583 2010-12-01 Robert Millan <rmh@gnu.org>
14585 * grub-core/fs/zfs/zfs.c: New file.
14586 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
14587 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
14588 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
14589 * grub-core/fs/zfs/zfsinfo.c: Likewise.
14591 * include/grub/zfs/dmu.h: Likewise.
14592 * include/grub/zfs/dmu_objset.h: Likewise.
14593 * include/grub/zfs/dnode.h: Likewise.
14594 * include/grub/zfs/dsl_dataset.h: Likewise.
14595 * include/grub/zfs/dsl_dir.h: Likewise.
14596 * include/grub/zfs/sa_impl.h: Likewise.
14597 * include/grub/zfs/spa.h: Likewise.
14598 * include/grub/zfs/uberblock_impl.h: Likewise.
14599 * include/grub/zfs/vdev_impl.h: Likewise.
14600 * include/grub/zfs/zap_impl.h: Likewise.
14601 * include/grub/zfs/zap_leaf.h: Likewise.
14602 * include/grub/zfs/zfs.h: Likewise.
14603 * include/grub/zfs/zfs_acl.h: Likewise.
14604 * include/grub/zfs/zfs_znode.h: Likewise.
14605 * include/grub/zfs/zil.h: Likewise.
14606 * include/grub/zfs/zio.h: Likewise.
14607 * include/grub/zfs/zio_checksum.h: Likewise.
14609 * Makefile.util.def: Build ZFS into libgrubmods.
14610 * grub-core/Makefile.core.def: Build zfs.mod.
14612 2010-11-30 Szymon Janc <szymon@janc.net.pl>
14614 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
14616 * grub-core/commands/wildcard.c (match_files): Likewise.
14618 2010-11-30 Robert Millan <rmh@gnu.org>
14620 * grub-core/loader/i386/bsd.c
14621 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
14622 whether kernel is loaded using grub_loader_is_loaded(), rather
14623 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
14624 certain error conditions.
14626 2010-11-30 Robert Millan <rmh@gnu.org>
14628 * grub-core/commands/echo.c: Include `<grub/term.h>'.
14629 (grub_cmd_echo): Call grub_refresh() after printing a message.
14631 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
14633 Avoid using tricks for initialising endian variables.
14635 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
14637 (GRUB_MOD_INIT): Don't byte-swap.
14638 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
14639 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
14640 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
14641 (grub_swap_bytes32_compile_time): Likewise.
14642 (grub_cpu_to_le32_compile_time): Likewise.
14643 (grub_cpu_to_le16_compile_time): Likewise.
14645 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
14647 * util/grub-setup.c (setup): Stop recommending --force. People who
14648 understand the dangers of blocklists are able to find this option
14649 anyway and the ones who don't shouldn't use it anyway.
14651 2010-11-26 Robert Millan <rmh@gnu.org>
14653 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
14656 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
14658 Fix LVM-on-RAID probing.
14660 * util/grub-probe.c (probe): Remember which disk was detected as
14661 RAID (perhaps an LVM physical volume). Use that disk's raidname
14662 rather than that of the top-level disk.
14664 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
14666 Fix cmdline argument quotes for setparams command of menuentry
14669 * grub-core/commands/menuentry.c (setparams_prefix): Use single
14670 quotes for arguments.
14671 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
14672 grub_strchrsub function instead.
14674 * include/grub/misc.h (grub_strchrsub): New function.
14676 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14678 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
14679 effort by skipping "." and ".." entries up-front.
14680 Suggested by: Michael Lazarev.
14682 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14684 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
14685 ldflags to ldadd, to fix link line ordering.
14686 (none_decompress): Likewise.
14688 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14690 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
14692 (grub-emu-lite): Remove kern/emu/cache.S.
14694 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14696 * util/deviceiter.c (compare_devices): If the by-id link for a
14697 device couldn't be resolved, fall back to sorting by the by-id link
14698 rather than segfaulting.
14699 Reported and tested by: Daniel Mierswa.
14701 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14703 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
14704 ldflags, to fix link line ordering.
14706 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14708 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
14709 linkers are picky about this.
14711 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14713 * grub-core/Makefile.am (command.lst): Adjust sed expression
14714 ordering so that extended and priority commands aren't treated as
14717 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14719 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
14720 Remove byte-swapping function calls, which are not valid in
14721 structure initialisers.
14722 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
14724 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
14725 grub_gpt_partition_type_bios_boot.
14727 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14729 Fix test program build on GNU/kFreeBSD.
14731 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
14732 $(LIBNVPAIR)' library dependencies.
14734 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14736 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
14738 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14740 * util/grub-install.in: Remove excessive quoting that broke
14741 installations to RAID devices.
14743 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14745 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
14746 bootloader version instead of 0.
14748 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14750 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
14753 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14755 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
14756 retrieve the metadat sector if size isn't known.
14757 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14759 2010-11-18 Robert Millan <rmh@gnu.org>
14761 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
14762 with grub_memcmp().
14764 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
14766 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
14768 Reported by: Jordan Uggla.
14770 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
14772 Make better UTF compliant.
14774 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
14775 sequences as incorrect.
14776 (grub_is_valid_utf8): Likewise.
14777 (grub_utf8_to_ucs4): Likewise.
14778 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
14779 (grub_ucs4_to_utf8_alloc): Likewise.
14780 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
14782 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
14784 Make legacy_source behave like source.
14786 * grub-core/commands/legacycfg.c (legacy_file): Don't call
14788 (grub_cmd_legacy_source): Call grub_show_menu if needed.
14790 2010-11-16 Colin Watson <cjwatson@debian.org>
14792 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
14793 (-Wunused implies -Wunused-parameter, but not vice versa).
14795 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
14797 * configure.ac: Make error messages less confusing by testing for
14798 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
14799 accepted, but produces a diagnostic if something else is wrong).
14801 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
14803 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
14804 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
14806 (grub_keyboard_controller_init)
14807 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
14808 read the initial state since controller isn't inited yet.
14810 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
14812 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
14813 allocate_regbeg may need to create new chunk header.
14815 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14817 Fix quoting in legacy parser.
14819 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
14821 (grub_legacy_parse): Likewise.
14822 Reported by: Jordan Uggla.
14823 Tested by: Jordan Uggla.
14825 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14827 Don't add -lgcc on i386 and x86_64.
14829 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
14830 * conf/Makefile.common (LDADD_KERNEL): Likewise.
14831 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
14833 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14835 * configure.ac: Add -Wno-trampolines when supported.
14837 2010-11-14 Modestas Vainius <modax@debian.org>
14839 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
14842 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
14844 Add generic logical block size support for UDF.
14846 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
14847 (GRUB_UDF_BLKSZ): Removed.
14848 (struct grub_udf_data): New field "lbshift" to hold the logical block
14849 size of the file system in log2 format. All users updated.
14850 (sblocklist): Change type to unsigned.
14851 (grub_udf_mount): Change type of "sblklist" to unsigned.
14852 Move AVDP search before VRS recognition, because the latter requires
14853 knowledge of the logical block size, which is detected during the
14855 Detect and validate logical block size during AVDP search, adding
14856 support for block sizes 512, 1024 and 4096.
14857 Make VRS recognition independent of block size.
14859 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
14861 Properly handle deleted files on UDF.
14863 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
14864 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
14867 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
14869 Support reading files larger than 2 GiB.
14871 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
14872 "offset" to grub_off_t.
14873 (grub_udf_read_file): Likewise for parameter "pos".
14875 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14877 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
14879 (Simple configuration): Refer to Changes from GRUB Legacy about
14880 save_env availability.
14882 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14884 * util/grub-install.in: Ignore empty partition table detection
14885 instead of trying to include part_ module.
14887 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14889 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
14890 LVM on RAID support.
14892 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14894 Properly define WORDS_BIGENDIAN in wrapped environments.
14896 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
14898 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
14900 Reported by: Manoel Rebelo Abranches.
14901 Tested by: Manoel Rebelo Abranches.
14903 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14905 * util/grub-mkconfig.in: Fix quoting.
14907 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14909 Support big ext2 files.
14911 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
14912 (grub_ext2_read_block): Support triple indirect blocks.
14913 (grub_ext2_read_file): Use 64-bit types and read size_high.
14914 (grub_ext2_open): Read size_high.
14915 Reported by: Ximin Luo.
14916 Tested by: Manoel Rebelo Abranches.
14918 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14920 * util/grub-install.in: Handle filenames containing spaces.
14921 Reported by: Jordan Uggla.
14922 Tested by: Jordan Uggla.
14924 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14926 * util/grub-mkconfig.in (grub_script_check): New variable.
14927 Use grub_script_check instead of grub-script-check.
14928 Reported by: Barry Jackson.
14930 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14932 * docs/grub.texi (menu): Correct the order.
14933 Reported by: D. Hugh Redelmeier.
14935 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14937 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
14940 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
14942 * include/grub/elfload.h (grub_elf32_size): New parameter.
14944 Return maximum segments alignment.
14945 (grub_elf64_size): Likewise.
14946 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
14947 Return maximum segments alignment.
14948 (grub_elf64_size): Likewise.
14949 * grub-core/loader/powerpc/ieee1275/linux.c:
14950 (grub_linux_claimmap_iterate): New function. Uses the
14951 "available" property in the "memory" node for memory allocation
14952 for kernel in the PowerPC loader.
14953 (grub_linux_load32): Correctly find linux entry point offset.
14954 (grub_linux_load64): Likewise.
14956 2010-11-07 Robert Millan <rmh@gnu.org>
14958 On mips-yeeloong, build with -march=loongson2f when this flag is
14959 available (GCC >= 4.4).
14960 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
14962 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
14963 or otherwise add -march=mips3.
14965 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
14967 Suppress shell expansion on echo '*' and echo "*" like cases.
14968 Reported by: Jordan Uggla.
14970 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
14971 string arguments before shell expansion.
14972 * tests/grub_cmd_echo.in: New testcases.
14974 2010-11-07 Robert Millan <rmh@gnu.org>
14976 * conf/mips-qemu-mips.rmk: Remove stale file from previous
14979 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
14981 * grub-core/kern/emu/hostdisk.c
14982 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
14984 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14986 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
14987 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
14988 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
14990 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14992 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
14994 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14996 * util/grub-install.in: Replace useless recomendation to pass
14997 --modules with a recomendation to report a bug.
14999 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15001 Properly register serial terminfo.
15002 Reported by: Jordan Uggla
15004 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
15006 (grub_serial_terminfo_output_template): Likewise.
15007 (grub_cmd_serial): Register "serial" with terminfo.
15008 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
15009 grub_serial_terminfo_output.
15011 2010-11-05 Robert Millan <rmh@gnu.org>
15013 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
15016 2010-11-05 Robert Millan <rmh@gnu.org>
15018 On Yeeloong, pass machine type information to Linux.
15020 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
15021 (LOONGSON_MACHTYPE): New macro, set to
15022 "machtype=lemote-yeeloong-2f-8.9inches".
15023 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
15024 additional argument to Linux.
15026 2010-11-04 Robert Millan <rmh@gnu.org>
15028 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
15029 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
15030 (its SATA disks are detected as slaveless IDE master drives on
15032 Reported by Carsten Aulbert.
15034 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
15036 * util/bin2h.c (main): Fix spelling error in generated output.
15038 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
15040 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
15042 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15044 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
15045 vga= option is supplied.
15047 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15049 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
15050 * util/grub.d/10_kfreebsd.in: Likewise.
15051 * util/grub.d/10_linux.in: Likewise.
15052 * util/grub.d/20_linux_xen.in: Likewise.
15054 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15056 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
15057 argument as an argument to no-argument option.
15059 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15061 * util/grub.d/10_linux.in: Add missing load_video with explicit
15062 GRUB_GFXPAYLOAD_LINUX.
15064 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15066 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
15068 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15070 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
15071 elements with invlid index.
15072 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
15073 * grub-core/disk/raid.c (insert_array): Automatically reallocate
15075 * include/grub/raid.h (grub_raid_member): New struct.
15076 (grub_raid_array): Transform devices and start_sector into usage of
15077 grub_raid_member. All users updated
15078 (allocated_devs): New member.
15080 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15082 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
15085 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
15087 NetBSD build fix for getline function conflict from gnulib.
15089 * Makefile.util.def (libgrubkern.a): New library for grub kernel
15090 components that depend on gnulib headers.
15091 (libgrubmods.a): Renamed from earlier libgrub.a.
15092 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
15094 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15096 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
15097 install rather than creating a broken install.
15099 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15101 * util/grub-setup.c (argp): Remove misleading example of installing to
15104 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15106 * util/grub-setup.c (setup): Clarify the error message.
15108 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15110 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
15112 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
15114 * grub-core/kern/emu/misc.c
15115 (grub_make_system_path_relative_to_its_root)
15116 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
15118 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
15120 * grub-core/kern/emu/misc.c
15121 (grub_make_system_path_relative_to_its_root): Revert r2882.
15123 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
15125 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
15126 useless field head. All users updated.
15127 (free_subchunk): Correct handling of IN_REGION subchunk.
15129 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
15131 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
15132 (Supported kernels): Likewise.
15134 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
15136 Make mktemp invocations portable.
15138 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
15139 exit if mktemp fails.
15140 * tests/grub_script_blockarg.in: Likewise.
15141 * tests/partmap_test.in: Likewise.
15142 * tests/util/grub-shell-tester.in: Likewise.
15143 * tests/util/grub-shell.in: Likewise.
15144 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
15145 * Makefile.am: Likewise, and chain shell commands with `&&'
15147 * util/grub-mkrescue.in: Use the same explicit template as above, and
15148 exit if mktemp fails.
15150 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
15152 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
15153 Linux kernel, reported by Dennis Schridde.
15155 2010-10-17 Szymon Janc <szymon@janc.net.pl>
15157 * grub-core/normal/auth.c (grub_auth_check_authentication):
15158 Set-but-not-used variable removed.
15160 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15162 * docs/grub.texi (GNU/Linux): Document APM unavailability with
15163 32-bit linux protocol.
15165 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15167 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
15168 cursor shape for sanity.
15170 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15172 * docs/grub.texi (Installation): Document buggy BIOS install.
15174 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15176 * docs/grub.texi (Installation): Indent.
15178 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15180 * util/grub-setup.c (setup): New parameter allow_floppy.
15181 (arguments): New member allow_floppy.
15182 (argp_parser): Handle --allow-floppy.
15183 (main): Pass allow_floppy.
15184 * util/grub-install.in: New option --allow-floppy passed though to
15187 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15189 * util/grub-install.in: Handle partitionless disks.
15191 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15193 * util/grub-setup.c (setup): Don't clean blocklists before readability
15196 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15198 * docs/grub.texi (Installation): Document embedding zone. Remove
15199 obsolete grub-install example.
15201 2010-10-16 Szymon Janc <szymon@janc.net.pl>
15203 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
15204 Set-but-not-used variable ifdef'ed.
15205 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
15206 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
15208 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
15209 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
15210 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
15211 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
15212 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
15213 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
15214 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
15215 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
15216 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
15217 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
15218 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
15221 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15223 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
15224 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
15227 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15229 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
15230 synonym to _S5_. Needed for some DSDTs.
15232 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15234 Userspace ACPI parser debugging.
15236 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
15237 headers and add relevant defines. Don't include standard headers.
15238 (main) [GRUB_DSDT_TEST]: New function.
15239 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
15240 Don't declare functions.
15242 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15244 Remove dead grub_efi_mm_fini.
15246 * grub-core/kern/efi/mm.c (allocated_page): Removed.
15247 (ALLOCATED_PAGES_SIZE): Likewise.
15248 (MAX_ALLOCATED_PAGES): Likewise.
15249 (allocated_pages): Likewise.
15250 (grub_efi_allocate_pages): Don't record allocated pages.
15251 (grub_efi_free_pages): Likewise.
15252 (grub_efi_mm_init): Likewise.
15253 (grub_efi_mm_fini): Removed.
15255 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15257 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
15258 (grub_efi_mm_init): Take into account the memory map size increase.
15260 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15262 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
15263 (serial_hw_put): Wait based on real time rather than port reads. Don't
15265 * include/grub/serial.h (grub_serial_port): New field broken.
15267 2010-10-16 Robert Millan <rmh@gnu.org>
15269 * grub-core/kern/emu/misc.c
15270 (grub_make_system_path_relative_to_its_root): Fix premature return
15271 when processing non-root ZFS filesystems.
15272 Reported by Sergio Talens-Oliag.
15274 2010-10-15 Robert Millan <rmh@gnu.org>
15276 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
15277 guarantee compressed ones are processed first.
15279 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15281 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
15282 grub_efiemu_autocore.
15284 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15286 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
15288 (grub_console_getkey): Use correct jae opcode rather than ja.
15290 2010-10-12 Robert Millan <rmh@gnu.org>
15292 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
15293 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
15294 variable. All references updated.
15296 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
15298 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
15300 Correctly distinguish mdraid flavours.
15302 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
15303 (insert_array): New argument raid.
15304 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
15305 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
15306 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
15308 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
15310 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
15311 handling of special keys.
15313 2010-10-02 Aleš Nesrsta <starous@volny.cz>
15315 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
15316 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
15318 2010-10-02 Aleš Nesrsta <starous@volny.cz>
15320 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
15321 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
15323 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
15324 Use right endpoint when querying descriptor.
15326 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
15328 Clear out 0x80 color bit on EFI.
15330 Reported by: decoder and meta tech.
15332 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
15333 (grub_console_setcolorstate): Clear out 0x80 bit.
15334 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
15335 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
15336 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
15338 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
15340 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
15343 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15345 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
15346 mo_file after freeing.
15348 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15350 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
15352 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15354 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
15357 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15359 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
15362 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15364 Put terminfo into core on ieee1275 and yeeloong (needed for console).
15366 * gentpl.py: New groups terminfoinkernel and terminfomodule.
15367 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
15368 and terminfo.h when needed.
15369 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
15370 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
15371 (terminfo): Enable only on terminfokernel.
15372 (extcmd): Likewise.
15373 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
15374 * include/grub/lib/arg.h: Likewise.
15375 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
15376 incorrect usage of ->.
15378 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15380 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
15381 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
15383 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15385 Fix coreboot compilation.
15387 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
15388 Take VBE info into account even if only text is supported.
15389 (fill_vbe_info): Take into account the case when only VGA text
15391 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
15392 on coreboot, multiboot and qemu.
15394 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15396 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
15398 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
15400 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15402 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
15405 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15407 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
15408 if they were BSD-style.
15410 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15412 * grub-core/boot/i386/pc/lnxboot.S: Replace
15413 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
15414 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
15416 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15418 Write embedding zone using Reed-Solomon.
15420 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
15421 * grub-core/Makefile.am (rs_decoder.S): New target.
15422 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
15423 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
15424 (multiboot): Move to RS part.
15425 (post_reed_solomon): New label.
15426 (grub_boot_drive): Move to non-RS part since it's modified in memory
15428 Include rs_decoder.S.
15429 * grub-core/lib/reed_solomon.c: New file.
15430 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
15432 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
15433 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
15434 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
15435 * include/grub/partition.h (grub_partition_map): Change prototype of
15436 embed to allow returning additional sectors.
15437 * include/grub/reed_solomon.h: New file.
15438 * util/grub-setup.c (setup): Handle Reed-Solomon.
15440 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
15442 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
15443 i386 and x86-64 definedness tests.
15445 2010-09-27 Yves Blusseau <blusseau@zetam.org>
15447 Fix generation of kernel_syms.lst
15449 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
15452 2010-09-26 Robert Millan <rmh@gnu.org>
15454 Support degraded ZFS arrays in "grub-probe -t device" resolution.
15456 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
15457 the pool is an array of devices, iterate through it and return the
15458 first device that passes a stat() test (instead of blindly returning
15461 2010-09-26 Robert Millan <rmh@gnu.org>
15463 Build fixes for GNU/kFreeBSD.
15465 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
15466 to programs that require ZFS conversion.
15467 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
15468 kernels that don't have FLOPPY_MAJOR.
15470 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
15472 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
15474 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
15476 Fix grub-emu build.
15478 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
15479 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
15480 mdraid09 and mdraid1x.
15482 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
15484 Re-enable grub-extras.
15486 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
15487 avoid confusing Automake. Run autogen only twice, once for the top
15488 level and once for grub-core. Add Makefile.util.def and
15489 Makefile.core.def from extra modules to the appropriate autogen
15490 invocations. If Makefile.common exists in an extra module, include
15491 it in both Makefile.util.am and grub-core/Makefile.core.am;
15492 similarly, include any Makefile.util.common file in Makefile.util.am
15493 and any Makefile.core.common file in grub-core/Makefile.core.am.
15494 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
15495 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
15496 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
15497 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
15499 * gentpl.py (gvar_add): Turn GVARS into a set.
15500 (global_variable_initializers): Sort global variables on output.
15501 (vars_init): New function.
15502 (first_time): Likewise.
15503 (library): Ensure that non-global variable initialisations are
15504 emitted before the first time we emit code for a library block.
15505 Append to variables rather than setting them. Only emit
15506 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
15507 each conditional path.
15508 (program): installdir() emits an Autogen macro, so must be passed to
15509 var_add rather than gvar_add.
15511 (script): Likewise.
15512 (rules): New function, centralising handling for different target
15513 types. Set up Guile association lists for first_time and vars_init,
15514 and send most output to a diversion so that variable initialisations
15515 can be emitted first.
15516 (module_rules): Use new rules function.
15517 (kernel_rules): Likewise.
15518 (image_rules): Likewise.
15519 (library_rules): Likewise.
15520 (program_rules): Likewise.
15521 (script_rules): Likewise.
15522 (data_rules): Likewise.
15524 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
15526 * .bzrignore: Add contrib and grub-core/contrib. Remove
15527 grub-core/Makefile.gcry.am.
15529 2010-09-24 Yves Blusseau <blusseau@zetam.org>
15531 * grub-core/lib/LzFind.c: Add missing include.
15532 * grub-core/lib/LzmaEnc.c: Likewise.
15533 * grub-core/script/lexer.c: Likewise.
15534 * grub-core/script/yylex.l: Likewise.
15535 * util/grub-macho2img.c: Likewise.
15536 * util/grub-menulst2cfg.c: Likewise.
15537 * util/grub-mklayout.c: Likewise.
15538 * util/grub-mkpasswd-pbkdf2.c
15539 * util/grub-mkrelpath.c: Likewise.
15540 * util/resolve.c: Likewise.
15542 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
15544 * Makefile.util.def (example_unit_test): Add
15545 grub-core/gnulib/libgnu.a.
15547 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
15549 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
15551 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
15553 Support xz compression on yeeloong.
15555 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
15556 * configure.ac: Check for LZMA.
15557 * grub-core/Makefile.core.def (xz_decompress): New target.
15558 (none_decompress): Likewise.
15559 * grub-core/boot/decompressor/minilib.c: New file.
15560 * grub-core/boot/decompressor/none.c: Likewise.
15561 * grub-core/boot/decompressor/xz.c: Likewise.
15562 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
15563 * grub-core/kern/mips/cache_flush.S: Likewise.
15564 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
15565 * grub-core/kern/mips/startup.S: Move first stage to ...
15566 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
15568 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
15569 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
15570 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
15571 Allocate statically.
15572 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
15573 Allocate statically or use scratch. Don't check CRC32.
15574 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
15575 Allocate statically. Don't check CRC32.
15576 * include/grub/decompressor.h: New file.
15577 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
15579 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
15580 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
15581 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
15582 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
15583 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
15584 * util/grub-mkimage.c (grub_compression_t): New type.
15585 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
15586 (image_target_desc): New field default_compression.
15587 (image_targets): Adjust yeeloong targets.
15588 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
15589 (compress_kernel): New parameter comp.
15590 (generate_image): Likewise. Handle new compression case.
15591 (options): New option --compression
15593 (main): Handle new option.
15595 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
15597 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
15599 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
15601 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
15602 typo in __i386__ conditional.
15604 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
15606 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
15609 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
15611 Implement EFI and ACPI multiboot2 extensions.
15613 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
15614 new tags as supported.
15615 (acpiv2_size): New function.
15616 (grub_multiboot_get_mbi_size): Take new tags into account.
15617 (grub_multiboot_make_mbi): Add new tags.
15618 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
15620 2010-09-21 Aleš Nesrsta <starous@volny.cz>
15622 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
15623 Added missing configuration of USB device.
15625 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15627 * grub-core/normal/menu_entry.c (run): Make sure we always return
15630 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15632 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
15633 NumberOfPages is UINT64 according to the UEFI specification, not
15634 UINTN. Fix printf format.
15636 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15638 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
15639 `err' to grub_usb_err_t.
15640 Reported and tested by: KESHAV P.R.
15642 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15644 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
15645 tpart non-const, so that we can assign to it. (Since this is a
15646 typedef, the constness refers to the pointer rather than what it
15649 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15651 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
15652 $(top_srcdir)/grub-core/gnulib as well as
15653 $(top_builddir)/grub-core/gnulib.
15654 Reported by: KESHAV P.R.
15656 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15658 * util/grub-install.in: Fix the bootloader ID option to be
15659 consistently --bootloader-id, not --bootloader_id.
15660 Reported by: KESHAV P.R.
15662 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15664 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
15665 check hash checksum." consistently translatable.
15667 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15669 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
15672 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15674 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
15675 (GRUB_MOD_INIT): Register sha1sum command.
15676 (GRUB_MOD_FINI): Unregister sha1sum command.
15678 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15680 Keep boot and grub directory names in sync with utils scripts
15682 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
15683 * config.h.in: Add previous macros.
15684 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
15685 * util/grub-install.in: Use $bootdir and $grubdir variables.
15687 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15689 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
15690 convert partition names to disk names if the new `convert' parameter
15692 (grub_util_biosdisk_get_grub_dev): If opening the disk device
15693 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
15694 disk in its own right. This can happen with Xen disk images.
15696 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15698 * util/grub-editenv.c: Update strings to avoid warnings when generating
15700 * util/grub-setup.c: Likewise.
15702 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
15704 * configure.ac: Change version to 1.99~beta0.
15706 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
15708 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
15710 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
15712 * include/multiboot.h: Resynced with specification.
15713 * include/multiboot2.h: Likewise.
15715 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15717 Fix po directory handling.
15719 * configure.ac: Create po/Makefile.in rather than po/Makefile.
15720 * grub-core/gnulib/Makefile.am: Import gettext module.
15721 * m4/gnulib-cache.m4: Likewise.
15722 * m4/gnulib-comp.m4: Likewise.
15723 * m4/gettext.m4: New file, from gnulib.
15724 * m4/glibc2.m4: Likewise.
15725 * m4/iconv.m4: Likewise.
15726 * m4/intdiv0.m4: Likewise.
15727 * m4/intl.m4: Likewise.
15728 * m4/intldir.m4: Likewise.
15729 * m4/intlmacosx.m4: Likewise.
15730 * m4/intmax.m4: Likewise.
15731 * m4/inttypes-pri.m4: Likewise.
15732 * m4/lcmessage.m4: Likewise.
15733 * m4/lib-ld.m4: Likewise.
15734 * m4/lib-link.m4: Likewise.
15735 * m4/lib-prefix.m4: Likewise.
15736 * m4/lock.m4: Likewise.
15737 * m4/nls.m4: Likewise.
15738 * m4/po.m4: Likewise.
15739 * m4/printf-posix.m4: Likewise.
15740 * m4/progtest.m4: Likewise.
15741 * m4/threadlib.m4: Likewise.
15742 * m4/uintmax_t.m4: Likewise.
15743 * m4/visibility.m4: Likewise.
15744 * po/Makefile.am: Remove.
15745 * po/Makefile.in.in: New file, from gettext.
15746 ($(DOMAIN).pot-update): Support POTFILES-shell.
15747 * po/Makevars: New file.
15748 * po/POTFILES-shell: Rename to ...
15749 * po/POTFILES-shell.in: ... this. Update.
15750 * po/POTFILES: Rename to ...
15751 * po/POTFILES.in: ... this. Update.
15752 * po/Rules-quot: New file, from gettext.
15753 * po/boldquot.sed: Likewise.
15754 * po/en@boldquot.header: Likewise.
15755 * po/en@quot.header: Likewise.
15756 * po/insert-header.sin: Likewise.
15757 * po/quot.sed: Likewise.
15758 * po/remove-potcdate.sin: Likewise.
15760 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15762 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
15764 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15766 * util/grub.d/20_linux_xen.in: Use submenus.
15768 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15772 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
15773 parameter submenu. All users updated.
15774 * grub-core/normal/main.c (free_menu): Rename to ...
15775 (grub_normal_free_menu): ... this. Made global.
15776 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
15778 * grub-core/normal/menu_entry.c (screen): New field submenu.
15779 (make_screen): Set submenu.
15780 (run): Open new context if requested.
15781 * include/grub/menu.h (grub_menu_entry): New field submenu.
15782 * include/grub/normal.h (grub_normal_free_menu): New proto.
15784 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15786 Menu entries extractor.
15788 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
15790 (GRUB_MOD_INIT): Register new variants.
15791 (GRUB_MOD_FINI): Unregister new variants.
15792 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
15793 into grub_cmd_legacy_source.
15794 (grub_cmd_legacy_source): Implement extractor variants.
15795 (GRUB_MOD_INIT): Register new variants.
15796 (GRUB_MOD_FINI): Unregister new variants.
15797 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
15799 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
15800 search as an extractor.
15801 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
15802 test as an extractor.
15803 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
15805 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
15806 (grub_env_new_context): New function.
15807 (grub_env_context_open): Likewise.
15808 (grub_env_extractor_open): Likewise.
15809 (grub_env_extractor_close): Likewise.
15810 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
15811 grub_extractor_level.
15812 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
15813 * include/grub/env.h (grub_env_extractor_open): New proto.
15814 (grub_env_extractor_close): Likewise.
15815 * include/grub/normal.h (grub_extractor_level): New external variable.
15817 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15819 Make cutmem accept a region specification.
15820 Suggested by: Samuel Thibault
15822 * grub-core/mmap/mmap.c (parsemem): New function.
15823 (grub_cmd_cutmem): Handle new arguments.
15825 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15827 New command cutmem.
15829 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
15830 (GRUB_MOD_INIT): Register new command.
15831 (GRUB_MOD_FINI): Unregister new command.
15833 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15835 Support some annoying BSD and Minix subpartitions.
15837 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
15838 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
15839 Properly handle concatenation.
15840 * grub-core/kern/device.c (grub_device_iterate): Likewise.
15841 * grub-core/normal/completion.c (iterate_partition): Likewise.
15842 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
15843 contain partition. All users updated.
15844 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
15846 (grub_openbsdlabel_partition_map): Likewise.
15847 (bsdlabel_partition_map_iterate): Rename to ..
15848 (iterate_real): ... this. New arguments sector, freebsd and pmap.
15849 (bsdlabel_partition_map_iterate): New function.
15850 (netopenbsdlabel_partition_map_iterate): Likewise.
15851 (netbsdlabel_partition_map_iterate): Likewise.
15852 (openbsdlabel_partition_map_iterate): Likewise.
15853 (GRUB_MOD_INIT): Register new partmaps.
15854 (GRUB_MOD_FINI): Unregister new partmaps.
15855 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
15856 (grub_partition_msdos_iterate): ... this. All users updated.
15857 Don't support embedding other than in a minix partition.
15858 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
15860 * include/grub/partition.h (grub_partition): New field msdostype.
15861 * util/grub-install.in: Handle openbsd and netbsd types being in
15864 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15866 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
15868 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
15869 * grub-core/Makefile.core.def (mdraid): Renamed to ...
15870 (mdraid09): ... this.
15871 (mdraid1x): New module.
15872 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
15873 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
15875 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15877 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
15880 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15882 * grub-core/commands/efi/lsefimmap.c: Correct header.
15885 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15887 * util/grub-editenv.c (argp_parser): Don't pass translated strings
15888 as printf format strings; the translations might contain '%' which
15889 could cause a crash.
15891 * util/grub-fstest.c (argp_parser): Likewise.
15892 * util/grub-setup.c (argp_parser): Likewise.
15895 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15897 Use argp in grub-fstest.
15899 * util/grub-fstest.c: Don't include getopt.h.
15901 (root): New variable.
15902 (args_count): Likewise.
15904 (num_disks): Likewise.
15905 (images): Likewise.
15907 (debug_str): Likewise.
15909 (options): Transformed to argp.
15911 (main): Split argument parsing into ...
15912 (argp_parser): ... this. Changed to argp format.
15913 (argp): New variable.
15914 (main): Use argp_parse.
15916 2010-09-20 Tristan Gingold <gingold@free.fr>
15917 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
15918 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15920 * grub-core/commands/efi/lsefimmap.c: New file.
15921 * grub-core/Makefile.core.def (lsefimmap): New module.
15922 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
15924 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15926 Pause the execution (10s max) if any errors are displayed so the user
15927 has a chance to see them.
15929 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
15930 (grub_print_error): Increment grub_err_printed_errors.
15931 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
15932 execution if any errors were displayed.
15933 (show_menu): Remove old code for pause.
15934 * grub-core/normal/menu_entry.c (run): Likewise.
15935 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
15937 (grub_normal_get_char_counter): Likewise.
15938 * include/grub/err.h (grub_err_printed_errors): New external variable.
15939 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
15941 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15943 Support multiboot VBE info.
15945 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
15946 Take VBE info into account.
15947 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
15948 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
15949 Call fill_vbe_info when appropriate.
15950 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
15951 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
15953 (grub_multiboot_get_mbi_size): Take new tags into account.
15954 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
15955 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
15956 Call fill_vbe_tag when appropriate.
15957 (grub_multiboot_make_mbi): Properly align tags.
15958 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
15960 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
15962 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
15964 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15966 Suport manual terminal geometry specification.
15968 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
15969 Save state in grub_ofconsole_terminfo_output.
15970 (grub_ofconsole_term): Use grub_terminfo_getwh.
15971 (grub_ofconsole_getwh): Removed.
15972 * grub-core/term/serial.c (grub_serial_getwh): Removed.
15973 (grub_serial_term): Use grub_terminfo_getwh.
15974 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
15975 (options): New struct.
15976 (OPTION_*): New enum.
15977 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
15978 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
15980 (grub_terminfo_getwh): New proto.
15981 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
15983 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15985 Handle legacy "terminal" command.
15987 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
15989 (legacy_commands): Add terminal and title.
15990 (grub_legacy_parse): Handle terminal. Simplify title handling.
15992 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15994 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
15995 parameters overflow.
15997 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15999 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
16002 * docs/grub.texi (Shell-like scripting): Document `!'.
16003 (Network): Simplify using new i386-pc-pxe format. Mention
16008 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16010 * Makefile.am (SUBDIRS): Restore "."; it's important to force
16011 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
16014 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16016 * grub-core/commands/efi/lsefisystab.c: Correct header.
16017 * grub-core/commands/efi/lssal.c: Likewise.
16018 * grub-core/commands/testload.c: Likewise.
16020 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16022 * util/grub-mkrescue.in: Add explicit root argument to --set to
16023 prevent the UUID being interpreted as an argument to --set (matches
16024 previous change to prepare_grub_to_access_device).
16026 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16028 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
16029 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
16030 the verbosity of later #ifs.
16031 (find_partition_start): Define this function on FreeBSD too.
16032 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
16034 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
16037 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16039 * util/grub-editenv.c: Use argp instead of getopt.
16041 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16043 * util/grub-setup.c: Use argp instead of getopt.
16045 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16047 Use gnulib-tool to create gnulib source files.
16049 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
16050 grub-core/gnulib directories
16051 * .bzignore: Add **/.deps and autogenerated gnulib files
16052 * configure.ac: Assign auxiliary directory to build-aux, add invocation
16053 of gnulib macros, add grub-core/gnulib/Makefile
16054 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
16055 include m4 directory to aclocal.
16056 * Makefile.util.def: Remove direct compilation of gnulib source files
16057 and use the new grub-core/gnulib/libgnu.a.
16058 * build-aux/config.rpath: move config.rpath from top directory to
16060 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
16062 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
16063 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
16064 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
16066 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
16069 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16071 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
16072 grub-core/genmod.sh and grub-core/gensyminfo.sh
16074 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
16076 Add a test for echo command options.
16078 * tests/grub_cmd_echo.in: New test.
16079 * Makefile.util.def: Rules for new test.
16081 2010-09-20 Szymon Janc <szymon@janc.net.pl>
16083 Remove crc.mod and move crc command to hashsum.mod.
16084 Remove lib/crc.c - users updated to use gcrypt implementation.
16086 * grub-core/commands/crc.c: Removed.
16087 * grub-core/Makefile.core.def (crc): Module removed.
16088 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
16089 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
16090 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
16091 * grub-core/lib/crc.c: Removed.
16092 * include/grub/lib/crc.h: Removed.
16093 * Makefile.util.def (crc): Remove lib/crc.c
16094 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
16095 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
16096 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
16097 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
16098 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
16099 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
16101 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16103 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
16105 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16107 Split config.h for util and core.
16109 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
16110 (ADDR32): Likewise.
16111 (DATA32): Likewise.
16112 (BSS_START_SYMBOL): Likewise.
16113 (END_SYMBOL): Likewise.
16114 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
16115 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
16116 * config.h.in: New file.
16117 * configure.ac: Use config-util.h as config define file.
16118 Rename MACHINE into GRUB_MACHINE. All users updated.
16119 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
16121 (NESTED_FUNC_ATTR): Likewise.
16122 Substitue new variables.
16123 (COND_HAVE_ASM_USCORE): New conditional.
16124 * grub-core/Makefile.am (ASM_PREFIX): New variable.
16125 (kernel_syms.lst): Use ASM_PREFIX.
16126 * grub-core/kern/emu/console.c: Include config-util.h.
16127 * grub-core/kern/emu/misc.c: Likewise.
16128 * grub-core/kern/emu/mm.c: Likewise.
16129 * include/grub/emu/misc.h: Likewise.
16130 * include/grub/libgcc.h: Likewise.
16132 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16134 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
16136 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
16137 Fix GRUB_TERM_KEY_* constants usage.
16138 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
16140 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16142 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
16144 * grub-core/bus/usb/uhci.c: Remove empty define.
16145 (grub_uhci_check_transfer): Add missing cast.
16146 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
16148 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
16150 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
16152 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16154 * grub-core/Makefile.core.def (legacycfg): Add
16155 lib/i386/pc/vesa_modes_table.c on emu.
16157 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
16159 Reduce number of temporary files generated by build system.
16161 * grub-core/gencmdlist.sh: Removed.
16162 * grub-core/genfslist.sh: Removed.
16163 * grub-core/genhandlerlist.sh: Removed.
16164 * grub-core/genmodsrc.sh: Removed.
16165 * grub-core/genpartmaplist.sh: Removed.
16166 * grub-core/genparttoollist.sh: Removed.
16167 * grub-core/gentermiinallist.sh: Removed.
16168 * grub-core/genvideolist.sh: Removed.
16170 * grub-core/genmod.sh.in: New file.
16171 * grub-core/gensyminfo.sh.in: New file.
16173 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
16174 * conf/Makefile.extra-dist: Update with new files.
16175 * gentpl.py: Remove rules related to unnecessary temporary files.
16176 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
16178 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
16180 * grub-core/bus/usb/uhci.c: Remove empty #define.
16181 * grub-core/genmoddep.awk: Updated with new syminfo format.
16182 * util/bash-completion.d/Makefile.am: Add config.log to
16185 2010-09-19 Yves Blusseau <blusseau@zetam.org>
16187 * Makefile.util.def: Add forgotten $(LIBINTL) library.
16189 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
16191 * util/grub-mkconfig.in: Check the config script for syntax errors
16194 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
16195 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16197 * Makefile.util.def (grub-install): Use util/grub-install.in on all
16199 * util/grub-install.in: Add EFI and IEEE1275 support.
16200 * util/i386/efi/grub-install.in: Removed.
16201 * util/ieee1275/grub-install.in: Likewise.
16203 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16205 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
16206 (grub_cmd_cmosclean): Likewise.
16207 (GRUB_MOD_INIT): Register command cmosclean.
16208 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
16209 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
16211 2010-09-18 Carles Pina i Estany <carles@pina.cat>
16212 2010-09-18 Aleš Nesrsta <starous@volny.cz>
16213 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16215 Add keyboard layouts support.
16217 * Makefile.util.def (grub-mklayout): New file.
16218 (grub-kbdcomp): New script.
16219 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
16220 Add keyboard_layouts.h.
16221 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
16222 commands/boot.c on yeeloong.
16223 (keylayouts): New module.
16224 * grub-core/bus/usb/ohci.c
16225 * grub-core/bus/usb/uhci.c
16226 * grub-core/bus/usb/usbhub.c (rescan): New variable.
16227 (grub_usb_add_hub): Poll interrupt pipe for device handling.
16228 (attach_root_port): Likewise.
16229 (poll_nonroot_hub): Likewise.
16230 (grub_usb_poll_devices): Likewise.
16231 (detach_device): Close transfer.
16232 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
16234 (grub_usb_bulk_setup_readwrite): Likewise.
16235 (grub_usb_bulk_finish_readwrite): Likewise.
16236 * grub-core/commands/keylayouts.c: New file.
16237 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
16238 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
16240 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
16241 support scancode 2.
16242 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
16243 * include/grub/keyboard_layouts.h: New file.
16244 * util/grub-mklayout.c: New file.
16245 * util/grub-kbdcomp.in: Likewise.
16247 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16249 Unify memory types.
16251 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
16252 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
16254 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
16255 (grub_upper_mem): Likewise.
16256 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
16257 * include/grub/memory.h (grub_memory_type_t): New enum.
16260 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16262 * grub-core/Makefile.core.def (lsapm): New module.
16263 * grub-core/commands/i386/pc/lsapm.c: New file.
16264 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
16265 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
16267 * include/grub/i386/pc/apm.h: New file.
16268 * include/multiboot.h (multiboot_apm_info): New struct.
16270 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16272 GRUB-legacy configuration file support.
16274 * Makefile.util.def (grub-menulst2cfg): New util.
16275 * docs/man/grub-menulst2cfg.h2m: New file.
16276 * grub-core/Makefile.core.def (legacycfg): New module.
16277 * grub-core/commands/legacycfg.c: New file.
16278 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
16279 (grub_normal_add_menu_entry): ... this.
16280 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
16281 (grub_normal_set_password): ...this.
16282 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
16283 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
16284 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
16285 * grub-core/lib/legacy_parse.c: New file.
16286 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
16287 * include/grub/i386/pc/vesa_modes_table.h: New file.
16288 * include/grub/legacy_parse.h: Likewise.
16289 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
16290 * util/grub-menulst2cfg.c: New file.
16292 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
16294 * grub-core/kern/emu/hostdisk.c
16295 (convert_system_partition_to_system_disk): Initialise node.
16297 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
16299 * grub-core/kern/emu/hostdisk.c
16300 (convert_system_partition_to_system_disk): Fix devmapper memory pool
16302 Reported and based on patch by: Modestas Vainius.
16304 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
16306 Fix DM-RAID probing with recent versions of device-mapper udev
16309 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
16310 canonicalise device paths under /dev/mapper/.
16311 (convert_system_partition_to_system_disk): Compare the
16312 uncanonicalised path to /dev/mapper/ rather than the canonicalised
16313 path, since device nodes under /dev/mapper/ are often symlinks.
16315 2010-09-17 Yves Blusseau <blusseau@zetam.org>
16317 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
16319 2010-09-16 Yves Blusseau <blusseau@zetam.org>
16321 * configure.ac: Avoid some annoying error messages if freetype-config
16322 program is not found.
16324 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16326 Support RAID on virtio devices, and others.
16328 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
16330 [__MINGW32__] (grub_find_device): ... this.
16331 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
16332 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
16333 reasonable default if dir is NULL.
16334 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
16336 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
16337 (grub_guess_root_device): Update callers.
16338 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
16340 * util/raid.c (grub_util_getdiskname): Remove.
16341 (grub_util_raid_getmembers): Use grub_find_device rather than
16342 grub_util_getdiskname.
16344 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16346 * docs/grub.texi (serial): Remove obsolete comment about GRUB
16347 needing to be compiled with serial support.
16348 (ls): Indicate that multiple files are accepted.
16349 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
16350 indicate that multiple files are accepted.
16352 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16354 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
16355 libgrub_a_init.c, and util/bash-completion.d/grub.
16357 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16359 * util/grub-setup.c (setup): Fix incorrect container semantics.
16361 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16363 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
16365 Reported by: J. Nick Terry
16367 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16369 Move embedding routines to partmap sources files.
16371 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
16372 [GRUB_UTIL]: New variable.
16373 (gpt_partition_map_iterate): Set part.parent.
16374 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
16375 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
16376 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
16378 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
16379 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
16380 (grub_partition_map) [GRUB_UTIL]: New field embed.
16381 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
16382 (setup): Use ->embed.
16384 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16386 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
16388 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
16389 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
16391 2010-09-15 Yves Blusseau <blusseau@zetam.org>
16393 Add function to get completions from usage.
16395 * util/bash-completion.d/grub-completion.bash.in: Add function to get
16396 completions from usage. Use LC_ALL=C to get options properly.
16398 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16400 * grub-core/gnulib/basename-lgpl.c: Imported.
16401 * grub-core/gnulib/basename.c: Likewise.
16402 * grub-core/gnulib/dirname-lgpl.c: Likewise.
16403 * grub-core/gnulib/dirname.c: Likewise.
16404 * grub-core/gnulib/dirname.h: Likewise.
16405 * grub-core/gnulib/stripslash.c: Likewise.
16407 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16409 * grub-core/gnulib/error.c: Resynced.
16410 * grub-core/gnulib/getopt.c: Likewise.
16411 * grub-core/gnulib/getopt_int.h: Likewise.
16412 * grub-core/gnulib/regex.h: Likewise.
16413 * grub-core/gnulib/regex_internal.c: Likewise.
16414 * grub-core/gnulib/regex_internal.h: Likewise.
16416 2010-09-15 Szymon Janc <szymon@janc.net.pl>
16418 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
16419 CRC calculations and validity checks.
16420 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
16423 2010-09-15 Szymon Janc <szymon@janc.net.pl>
16425 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
16427 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16429 Fix incorrect echo options handling.
16430 Reported by: Yves Blusseau.
16432 * include/grub/command.h (grub_command_flags_t): New flags
16433 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
16434 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
16435 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
16437 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16439 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
16441 (GRUB_COMMAND_FLAG_MENU): Likewise.
16442 (GRUB_COMMAND_FLAG_BOTH): Likewise.
16443 (GRUB_COMMAND_FLAG_TITLE): Removed.
16444 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
16445 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
16446 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
16447 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
16448 (grub_command_flags_t): New enum. All users updated.
16450 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
16452 Fix solaris compilation.
16454 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
16455 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
16456 (grub-emu-list): Likewise.
16458 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16460 Remove deprecated root command.
16462 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
16465 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16467 * util/i386/pc/grub-setup.c: Merge this ...
16468 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
16469 * util/grub-setup.c: ... into this.
16470 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
16473 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16475 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
16478 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16480 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
16483 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16485 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
16486 explicit root argument to set to prevent UUID to be interpreted as
16489 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16491 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
16493 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16495 Don't export grub_gate_a20.
16497 * grub-core/kern/i386/pc/init.c: Remove leftovers.
16498 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
16500 (grub_gate_a20): ... this. All users updated.
16501 * include/grub/i386/pc/init.h: Removed. All users updated.
16503 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16505 Create euro.pf2 which supports most European languages.
16507 * Makefile.am (grubdata_DATA): Add euro.pf2.
16508 (euro.pf2): New target.
16509 (CLEANFILES): Add euro.pf2.
16511 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16513 * configure.ac: Disable emu-usb by default to prevent inadvertent
16516 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16518 Disable usbserial on grub-emu since our libusb code isn't good enough
16521 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
16522 (usbserial_pl2303): Likewise.
16523 (usbserial_ftdi): Likewise.
16525 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16527 * include/grub/disk.h (grub_disk): Remove has_partitions.
16529 * disk/loopback.c (grub_loopback): Remove has_partitions.
16531 (options): Remove partitions. All users updated.
16532 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
16533 * util/i386/pc/grub-setup.c (setup): copy partition table only when
16534 actual partition table is found.
16536 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16538 Remove readability checks (too many false negatives).
16540 * util/grub-install.in: Remove readability checks.
16541 * util/grub-mkconfig.in: Likewise.
16542 * util/grub.d/10_hurd.in: Likewise.
16543 * util/grub.d/10_kfreebsd.in: Likewise.
16544 * util/grub.d/10_linux.in: Likewise.
16545 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
16548 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16550 Enable acpi shutdown on all ACPI platforms.
16552 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
16553 on coreboo, multiboot and EFI.
16554 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
16555 (grub_acpi_halt): Likewise.
16556 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
16557 (grub_cmd_halt): Don't call grub_acpi_halt directly.
16558 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
16559 * grub-core/lib/i386/halt.c (grub_halt)
16560 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
16562 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16564 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
16567 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16569 * grub-core/video/efi_gop.c: Fix over-80-chars line.
16570 * grub-core/video/efi_uga.c: Likewise.
16572 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16574 Filter devaliases and never open same device twice.
16576 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
16577 (last_ihandle): Likewise.
16578 (ofdisk_hash_ent): New member shortest.
16579 (ofdisk_hash_add): Add canonical path too.
16580 (scan): New function.
16581 (grub_ofdisk_iterate): Iterate over hashed entries.
16582 (compute_dev_path): Don't add :0.
16583 (grub_ofdisk_open): Don't really open the disk.
16584 (grub_ofdisk_close): Avoid closing unrelated disk.
16585 (grub_ofdisk_read): Implement reopen logic.
16586 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
16588 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
16591 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16595 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
16596 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
16597 right address. Add sparc64_ieee1275_ldflags.
16598 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
16599 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
16600 to grub_host_to_target_addr
16601 (load_image): Likewise.
16603 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16605 * grub-core/normal/completion.c (complete_file): Handle device
16607 Fix based on patch by Doug Nazar.
16609 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16611 grub-mknetdir script.
16613 * Makefile.util.def (grub-mknetdir): New module.
16614 * tests/util/grub-shell.in: Support boot=net
16615 * util/grub-mknetdir.in: New file.
16617 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16619 videoinfo on non-vbe.
16621 * grub-core/Makefile.core.def (vbeinfo): Removed.
16622 (vbetest): Removed.
16623 (videoinfo): New module.
16624 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
16625 * grub-core/commands/i386/pc/vbetest.c: Removed.
16626 * grub-core/commands/videoinfo.c: New file.
16627 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
16629 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
16631 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
16632 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
16633 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
16634 mode_number. New parameter mode. All users updated.
16635 (grub_video_gop_iterate): New function.
16636 (grub_video_efi_gop): New member iterate.
16637 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
16638 (grub_vbe_set_video_mode): Remove setting useless fields.
16639 (vbe2videoinfo): New function.
16640 (grub_video_vbe_iterate): Likewise.
16641 (grub_video_vbe_setup): Use vbe2videoinfo.
16642 (grub_video_vbe_print_adapter_specific_info): New function.
16643 (grub_video_vbe_adapter): New fields iterate and
16644 print_adapter_specific_info.
16645 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
16647 (grub_video_mode_info): New field mode_number.
16648 (grub_video_adapter): New fields iterate and
16649 print_adapter_specific_info.
16651 2010-09-13 Tristan Gingold <gingold@free.fr>
16652 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
16653 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16655 * grub-core/commands/efi/lsefisystab.c: New file.
16656 * grub-core/commands/efi/lssal.c: Likewise.
16657 * grub-core/Makefile.core.def (lsacpi): New module.
16658 (lsefisystab): Likewise.
16659 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
16660 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
16661 (grub_efi_sal_system_table): New struct.
16662 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
16663 (grub_efi_sal_system_table_memory_descriptor): Likewise.
16664 (grub_efi_sal_system_table_platform_features): Likewise.
16665 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
16666 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
16667 (grub_efi_sal_system_table_ap_wakeup): Likewise.
16668 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
16670 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16672 Support explicit user claim that a device is BIOS-visible.
16674 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
16675 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
16676 * grub-core/kern/emu/hostdisk.c
16677 (convert_system_partition_to_system_disk): Support mdX.
16678 (find_system_device): New parameter add. All users updated.
16679 (grub_util_biosdisk_is_present): New function.
16680 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
16683 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16685 Search hints support.
16687 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
16690 2010-09-13 Yves Blusseau <blusseau@zetam.org>
16692 Bash completion script for util commands
16694 * Makefile.am: Add util/bash-completion.d directory
16695 * configure.ac: Likewise.
16696 * util/bash-completion.d/Makefile.am: New file.
16697 * util/bash-completion.d/grub-completion.bash.in: Likewise.
16699 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16701 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
16702 (print_backlog): set backlog_ucs4 and backlog_glyphs.
16703 Reported by: Yves Blusseau.
16705 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16707 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
16708 partition size and offset.
16710 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16712 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
16714 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16716 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
16718 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16720 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
16721 (grub_xvasprintf): Likewise.
16723 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16725 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
16727 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16729 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
16730 args ending with NULL.
16732 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16734 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
16737 2010-09-11 Szymon Janc <szymon@janc.net.pl>
16739 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
16741 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16743 Shutdown using ACPI.
16745 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
16746 * grub-core/commands/acpihalt.c: New file.
16747 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
16748 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
16749 (grub_acpi_halt): New proto.
16750 (GRUB_ACPI_SLP_EN): New const.
16751 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
16752 (GRUB_ACPI_OPCODE_*): New enum.
16753 (GRUB_ACPI_EXTOPCODE_*): Likewise.
16755 2010-09-11 Tristan Gingold <gingold@free.fr>
16756 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
16757 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16759 * commands/lsacpi.c: New file.
16760 * grub-core/Makefile.core.def (lsacpi): New module.
16761 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
16762 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
16763 (grub_acpi_madt_entry_header): New struct.
16764 (grub_acpi_madt): Likewise.
16765 (grub_acpi_madt_entry_interrupt_override): Likewise.
16766 (grub_acpi_madt_entry_sapic): Likewise.
16767 (grub_acpi_madt_entry_lsapic): Likewise.
16768 (grub_acpi_madt_entry_platform_int_source): Likewise.
16769 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
16770 (PRIuGRUB_UINT32_T): Likewise.
16771 (PRIxGRUB_UINT64_T): Likewise.
16773 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16775 Implement loading palette on ieee1275_fb.
16777 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
16778 (have_setcolors): Likewise.
16779 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
16780 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
16781 (grub_video_ieee1275_set_palette): Implement.
16783 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16784 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
16786 * util/grub-install.in (grub_partition): New variable.
16787 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
16788 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
16789 Fixes a bug reported by Yves Blusseau.
16791 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16795 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
16796 =grub_cpu_flush_cache on all mips and not only yeeloong.
16797 * configure.ac (COND_mips): New conditional.
16798 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
16800 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
16801 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
16802 [GRUB_LINKER_HAVE_INIT]: New function.
16803 (grub_emu_post_init): Likewise.
16804 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
16805 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
16806 * include/grub/cache.h (_mips): Include mips/cache.h.
16807 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
16808 LVM and RAID prototypes.
16809 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
16810 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
16813 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
16815 * util/grub-install.in: Don't try to verify core.img until after
16816 running grub-mkimage to create it.
16818 2010-09-10 Robert Millan <rmh@gnu.org>
16820 * util/grub.d/10_hurd.in: Add misc readability checks.
16821 * util/grub.d/10_kfreebsd.in: Likewise.
16822 * util/grub.d/10_linux.in: Likewise.
16824 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
16826 * util/grub-install.in: ${imgext} won't be defined here until the
16827 install branch is merged. For the meantime, only verify core.img on
16828 i386-pc and sparc64-ieee1275 platforms.
16830 2010-09-10 Robert Millan <rmh@gnu.org>
16832 Solaris support in grub_find_zpool_from_dir(). Thanks
16833 Seth Goldberg for referring to getextmntent() facility.
16835 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
16837 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
16839 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
16840 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
16841 method for finding zpool name.
16843 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
16845 grub-fstest needs the host and hostfs modules while other utilities
16846 actively require those modules to be absent, so grub-fstest needs
16847 its own initialisation and finalisation code.
16849 * Makefile.am (grub_fstest.pp): New target.
16850 (grub_fstest_init.lst): Likewise.
16851 (grub_fstest_init.c): Likewise.
16852 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
16854 2010-09-10 Robert Millan <rmh@gnu.org>
16856 * configure.ac: Check for `struct statfs.f_fstypename' and
16857 `struct statfs.f_mntfromname'.
16859 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
16860 kFreeBSD-specific code.
16862 2010-09-10 Robert Millan <rmh@gnu.org>
16864 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
16865 on ZFS. Now non-main filesystems are supported as / too.
16867 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
16869 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
16870 and grub-core/disk/host.c to ...
16871 (grub-fstest): ... here. Having the host disk implementation
16872 present confuses grub-probe and other utility programs.
16874 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
16875 when writing to a file, not when writing to stdout.
16877 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
16879 * tests/partmap_test.in: New test for partitions.
16880 * Makefile.util.def: Rules for new test.
16882 2010-09-09 Robert Millan <rmh@gnu.org>
16884 * util/grub-probe.c (probe): Fix a pair of unhandled error
16887 2010-09-09 Robert Millan <rmh@gnu.org>
16889 Basic Btrfs support (detection and UUID).
16891 * grub-core/fs/btrfs.c: New file.
16892 * Makefile.util.def (library): Register btrfs.c.
16893 * grub-core/Makefile.core.def: Likewise.
16895 2010-09-08 Robert Millan <rmh@gnu.org>
16897 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
16898 with (optional) parameters to specify device and relative path.
16899 * util/grub-install.in: Use is_path_readable_by_grub() to
16900 verify readability of a few critical files.
16901 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
16902 verify readability of grub.cfg.new.
16904 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
16906 Split minix.mod into minix.mod and minix2.mod.
16908 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
16909 * grub-core/Makefile.core.def (minix2): New module.
16910 * grub-core/fs/minix.c: Use definitions instead of runtime version
16912 * grub-core/fs/minix2.c: New file.
16914 2010-09-08 Yves Blusseau <blusseau@zetam.org>
16916 Add new --boot-directory option to replace --root-directory
16918 * util/grub-install.in: Add new --boot-directory option
16919 * util/grub-reboot.in: Likewise.
16920 * util/grub-set-default.in: Likewise.
16922 2010-09-08 Yves Blusseau <blusseau@zetam.org>
16924 * util/grub-mkconfig.in: Use new variable.
16926 2010-09-08 Yves Blusseau <blusseau@zetam.org>
16928 * configure.ac: Define some useful variables.
16930 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
16932 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
16933 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
16934 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
16935 Use terminfo and don't use cursor-on/cursor-off unless it's known
16937 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
16938 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
16940 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
16942 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
16943 starts with "(,", fill the drive containing the loaded image in
16944 between those two characters, but expect that a full partition
16945 specification including partition map names will follow.
16947 2010-09-08 Robert Millan <rmh@gnu.org>
16949 * configure.ac: Remove `--enable-grub-fstest' option.
16950 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
16952 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
16953 `grub-fstest' instead of `grub-probe' for readability verification.
16954 * util/grub-probe.c (probe): Remove readability verification kludge.
16956 2010-09-08 Robert Millan <rmh@gnu.org>
16958 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
16959 initializing `GRUB_FS'.
16961 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
16963 Not command (!) support to GRUB script.
16965 * tests/grub_script_not.in: New test.
16966 * Makefile.util.def: Rules for new test.
16968 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
16969 ! command as a special case.
16970 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
16972 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
16974 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
16977 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
16979 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
16981 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
16983 * docs/grub.texi (Shell-like scripting): Documentation for break,
16984 continue, shift and return commands.
16986 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
16988 Rename CD-ROM to cd on BIOS.
16990 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
16992 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
16994 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16996 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
16997 * util/grub-probe.c (main): Likewise.
16998 * util/i386/pc/grub-setup.c (main): Likewise.
16999 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
17000 Reported and debugged by: alexxy
17002 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17004 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
17007 2010-09-05 Jo Shields <directhex@apebox.org>
17009 * util/grub.d/30_os-prober.in: Add missing classes.
17011 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17013 * docs/grub.texi (Theme file format): Document new position format.
17015 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17017 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
17018 a table. Use @code instead of @verbatim.
17020 2010-09-05 Colin D Bennett <colin@gibibit.com>
17022 Gfxmenu documentation.
17024 * docs/grub.texi (Theme file format): New chapter.
17026 2010-09-05 Szymon Janc <szymon@janc.net.pl>
17028 * grub-core/Makefile.core.def (xzio): New module.
17029 * grub-core/io/xzio.c: New file.
17030 * grub-core/lib/xzembed/xz.h: New file (from xembed).
17031 * grub-core/lib/xzembed/xz_config.h: Likewise.
17032 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
17033 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
17034 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
17035 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
17036 * grub-core/lib/xzembed/xz_private.h: Likewise.
17037 * grub-core/lib/xzembed/xz_stream.h: Likewise.
17038 * include/grub/file.h (grub_file_filter_id): New compression filter
17039 GRUB_FILE_FILTER_XZIO.
17041 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17043 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
17044 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
17047 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17049 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
17050 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
17052 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17054 Uncompressed checksum support.
17056 * grub-core/commands/hashsum.c (options): Add option --uncompress.
17057 (check_list): New parameter uncompress.
17058 (grub_cmd_hashsum): Handle --uncompress.
17060 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17062 Reintroduce testload.
17064 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
17066 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
17067 (GRUB_MOD_INIT): New function.
17068 (GRUB_MOD_FINI): Likewise.
17069 * grub-core/Makefile.core.def (testload): New module.
17071 2010-09-05 Szymon Janc <szymon@janc.net.pl>
17073 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
17074 (uint8_t): New type.
17075 (uint16_t): Likewise.
17076 (uint32_t): Likewise.
17077 (uint64_t): Likewise.
17079 2010-09-05 Szymon Janc <szymon@janc.net.pl>
17081 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
17083 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17085 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
17087 (grub_gzfile_open): Removed. All users updated.
17088 (GRUB_MOD_INIT): New function.
17089 (GRUB_MOD_FINI): Likewise.
17090 * grub-core/kern/file.c (grub_file_filters_all): New variable.
17091 (grub_file_filters_enabled): Likewise.
17092 (grub_file_open): Handle filters.
17093 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
17094 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
17095 * include/grub/file.h (grub_file_filter_id_t): New type.
17096 (grub_file_filter_t): Likewise.
17097 (grub_file_filters_all): New extern variable.
17098 (grub_file_filters_enabled): Likewise.
17099 (grub_file_filter_register): New inline function.
17100 (grub_file_filter_unregister): Likewise.
17101 (grub_file_filter_disable): Likewise.
17102 (grub_file_filter_disable_compression): Likewise.
17103 * include/grub/gzio.h: Removed.
17105 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17107 Filename expansion support for wildcards in GRUB script.
17109 * tests/grub_script_expansion.in: New test.
17110 * Makefile.util.def: Rule for new test.
17112 * grub-core/commands/wildcard.c: New file, implements filename
17113 expansion support for GRUB script.
17114 * grub-core/Makefile.core.def: Rule update for regexp.mod.
17115 * grub-core/script/argv.c: Cosmetic changes.
17116 * grub-core/script/execute.c (grub_script_arglist_to_argv):
17117 Refactored to perform wildcard expansion on arguments.
17118 * include/grub/script_sh.h (grub_script_wildcard_translator): New
17121 * tests/util/grub-shell.in: Fix quoting for read input.
17123 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17125 Support for updating environment variables with matched substrings
17128 * tests/grub_cmd_regexp.in: New test.
17129 * Makefile.util.def: Rule for new test.
17131 * grub-core/commands/regexp.c: New option -s to update environment
17132 variables with regexp matches.
17134 2010-09-04 Szymon Janc <szymon@janc.net.pl>
17136 * include/grub/file.h (grub_file): New member not_easly_seekable.
17137 (grub_file_seekable): New inline function.
17138 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
17140 (grub_gzio_open): Set not_easly_seekable.
17141 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
17142 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
17144 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17146 Support for options to appear multiple times on cmdline.
17148 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
17149 * grub-core/commands/extcmd.c: Support for repeatable option.
17150 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
17151 repeatable option support.
17153 Refactor menuentry into a regular command.
17155 * grub-core/commands/menuentry.c: New file, menuentry command
17157 * grub-core/Makefile.core.def: Rule update for normal.mod.
17158 * grub-core/normal/main.c: Moved menuentry creation to
17159 grub-core/commands/menuentry.c.
17160 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
17161 (grub_menu_execute_entry_real): Removed.
17162 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
17164 (grub_script_execute_menuentry): Removed.
17165 * grub-core/script/parser.y (menuentry): Removed.
17166 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
17167 * grub-core/script/yylex.l (menuentry): Removed.
17168 * include/grub/menu.h (grub_menu_init): New prototype.
17169 (grub_menu_fini): New prototype.
17170 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
17171 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
17172 (grub_script_execute_sourcecode): New prototype.
17174 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17176 "return" command for GRUB script functions.
17178 * tests/grub_script_return.in: New test.
17179 * Makefile.util.def: Rules for new test.
17181 * grub-core/script/execute.c (grub_script_return): New function.
17182 * grub-core/script/main.c: Register/unregister return commaond.
17183 * include/grub/script_sh.h (grub_script_return): New prototype.
17185 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17187 "setparams" command to update positional parameters.
17189 * tests/grub_script_setparams.in: New test.
17190 * Makefile.util.def: Rules for new test.
17192 * grub-core/script/argv.c (grub_script_argv_make): New function.
17193 * grub-core/script/execute.c (replace_scope): New function.
17194 (grub_script_setparams): New function.
17195 * grub-core/script/lexer.c: Remove unused variables.
17196 * grub-core/script/main.c: Register/unregister setparams command.
17197 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
17198 (grub_script_setparams): New prototype.
17200 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17202 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
17205 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17207 Support for passing block of commands as an argument to extcmds.
17209 * Makefile.util.def: Rules for new test.
17210 * tests/grub_script_blockarg.in: New test.
17211 * grub-core/tests/test_blockarg.c: New file, block argument
17212 command used in the test.
17214 * include/grub/extcmd.h (grub_extcmd_context): New struct.
17215 (grub_register_extcmd_prio): New function prototype.
17216 (grub_extcmd_dispatcher): New function prototype.
17217 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
17219 * include/grub/script_sh.h (struct grub_script): New members
17220 `children', `next_siblings' and `refcnt' for block arguments and
17221 reference counting.
17222 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
17223 (grub_script_arg): New member `script' for block argument.
17224 (grub_script_argv): New member `script' for block argument.
17225 (grub_parser_param): New member `scripts' for block argument.
17226 (grub_script_mem_free): New extern function prototype.
17227 (grub_script_ref): New function prototype.
17228 (grub_script_unref): New function prototype.
17230 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
17231 extcmd form to support block arguments.
17232 * grub-core/script/argv.c: Block arguments support.
17233 * grub-core/script/execute.c: Likewise.
17234 * grub-core/script/lexer.c: Likewise.
17235 * grub-core/script/main.c: Likewise.
17236 * grub-core/script/script.c: Likewise.
17237 * grub-core/script/parser.y: Likewise. New `block' and `block0'
17240 * grub-core/commands/acpi.c: Update extcmd implementations with
17241 grub_extcmd_context_t.
17242 * grub-core/commands/cat.c: Likewise.
17243 * grub-core/commands/echo.c: Likewise.
17244 * grub-core/commands/extcmd.c: Likewise.
17245 * grub-core/commands/hashsum.c: Likewise.
17246 * grub-core/commands/hdparm.c: Likewise.
17247 * grub-core/commands/help.c: Likewise.
17248 * grub-core/commands/hexdump.c: Likewise.
17249 * grub-core/commands/i386/cpuid.c: Likewise.
17250 * grub-core/commands/i386/pc/drivemap.c: Likewise.
17251 * grub-core/commands/i386/pc/halt.c: Likewise.
17252 * grub-core/commands/i386/pc/sendkey.c: Likewise.
17253 * grub-core/commands/iorw.c: Likewise.
17254 * grub-core/commands/keystatus.c: Likewise.
17255 * grub-core/commands/loadenv.c: Likewise.
17256 * grub-core/commands/ls.c: Likewise.
17257 * grub-core/commands/lspci.c: Likewise.
17258 * grub-core/commands/memrw.c: Likewise.
17259 * grub-core/commands/probe.c: Likewise.
17260 * grub-core/commands/search_wrap.c: Likewise.
17261 * grub-core/commands/setpci.c: Likewise.
17262 * grub-core/commands/sleep.c: Likewise.
17263 * grub-core/disk/loopback.c: Likewise.
17264 * grub-core/hello/hello.c: Likewise.
17265 * grub-core/loader/i386/bsd.c: Likewise.
17266 * grub-core/loader/xnu.c: Likewise.
17267 * grub-core/term/gfxterm.c: Likewise.
17268 * grub-core/term/serial.c: Likewise.
17269 * grub-core/tests/lib/functional_test.c: Likewise.
17271 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17273 Multi-line quoted strings support.
17275 * grub-core/script/lexer.c (append_newline): Removed.
17276 (grub_script_lexer_yywrap): Refactored.
17277 (grub_script_lexer_init): Refactored.
17278 * grub-core/script/yylex.l (yywrap): New function.
17279 (grub_lexer_resplit): New function.
17280 (grub_lexer_unput): New function.
17281 * include/grub/script_sh.h (grub_lexer_param): New members, unput
17283 * tests/grub_script_echo1.in: Added few more testcases.
17285 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
17287 * grub-core/kern/misc.c: Don't add abort alias in utils.
17288 Reported by: echoline.
17290 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
17292 Add missing files into "make dist" tarball for other platforms.
17294 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
17295 * conf/Makefile.common (dist_noinst_DATA): New variable.
17296 * conf/Makefile.extra-dist: Added missing make dist files.
17297 * grub-core/Makefile.core.def: Likewise.
17299 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
17301 Compress grub_prefix.
17303 * grub-core/boot/i386/pc/lnxboot.S: Use
17304 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
17305 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
17306 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
17307 GRUB_MACHINE_PREFIX_END. All users updated.
17308 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
17309 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
17311 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17312 * util/grub-mkimage.c (image_target_desc): Change data_end to
17313 prefix_end. All users updated.
17315 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
17317 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
17319 (grub_openbsd_boot): Likewise.
17320 (grub_netbsd_boot): Likewise.
17321 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
17322 (grub_xnu_boot): Likewise.
17324 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17326 * configure.ac: Clean LIBS variable after tests.
17328 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17330 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
17332 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17334 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
17335 echo if libdevmapper will be used.
17337 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
17339 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
17340 constant for the same file.
17342 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17344 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
17346 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17348 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
17351 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17353 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
17354 required by the boot protocol.
17356 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
17357 ebp and edi members.
17358 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
17359 state.ebp and state.edi.
17360 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
17361 %ebp and %edi according to grub_relocator32_ebp and
17362 grub_relocator32_edi respectively.
17363 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
17366 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17368 Add i386-pc-pxe image target.
17370 * util/grub-mkimage.c (image_target_desc): New enum value
17372 (image_targets): New target i386-pc-pxe.
17373 (generate_image): Handle i386-pc-pxe image.
17375 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17379 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
17380 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
17382 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
17383 (grub_pxe_pxenv): Correct type.
17385 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17387 * NEWS: Document most of the important changes since 1.98.
17389 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17391 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
17392 generated manual page) a little.
17394 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17396 * docs/grub.texi: Add myself as an author.
17398 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
17400 * Makefile.util.def (libgrub.a): Add missing sunpc.
17401 Reported by: Seth Goldberg.
17403 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17405 Interrupt wrapping and code simplifications.
17407 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
17408 x86_noieee1275 which are functionaly equivalent in this case.
17409 (grub-install): Make source on each platform explicit. Enable on
17411 * gentpl.py (x86_efi_pc): Removed group.
17412 (x86_noefi): Likewise.
17413 (i386_noefi): Likewise.
17414 (x86_noieee1275): Likewise.
17415 (i386_noieee1275): Likewise.
17416 (i386_noefi_noieee1275): Likewise.
17417 (i386_pc_qemu_coreboot): Likewise.
17418 (i386_coreboot_multiboot): Likewise.
17419 (i386_pc_coreboot_multiboot_qemu): Likewise.
17420 (x86_noefi_mips): Likewise.
17421 (noieee1275): Likewise.
17422 (ieee1275_mips): Likewise.
17423 (noemu_noieee1275): Likewise.
17426 (videoinkernel): Likewise.
17427 (videomodules): Likewise.
17428 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
17429 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
17430 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
17431 include/grub/loader.h, include/grub/msdos_partition.h,
17432 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
17433 include/grub/machine/console.h, include/grub/machine/vga.h,
17434 include/grub/machine/vbe.h, include/grub/machine/init.h,
17435 include/grub/machine/kernel.h, include/grub/cpu/time.h,
17436 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
17437 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
17438 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
17439 * grub-core/Makefile.core.def (kernel): Explicit the source for
17440 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
17441 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
17442 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
17443 Use videoinkernel tag.
17444 (usb): Enable on all usb.
17445 (usbserial_common): Likewise.
17446 (usbserial_pl2303): Likewise.
17447 (usbserial_ftdi): Likewise.
17448 (uhci): Enable on all x86.
17449 (ohci): Enable on all pci.
17450 (cmostest): Enable on all CMOS.
17451 (acpi): Include commands/acpi.c on all platforms.
17452 (halt): Add relevant lib/*/halt.c.
17453 (hdparm): Enable on all pci.
17455 (usbtest): Enable on all usb.
17456 (ata): Enable on all pci.
17457 (ata_pthru): Likewise.
17458 (usbms): Enable on all usb.
17459 (usb_keyboard): Likewise.
17460 (font): Use tag videomodules.
17462 (datetime): Use tag cmos. Enable on all noemu.
17463 (mmap): Use tags common and x86.
17464 (gfxterm): Use tag videomodules.
17465 (bitmap): Likewise.
17466 (bitmap_scale): Likewise.
17467 (video_fb): Likewise.
17469 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
17470 adjust padding accordingly. All users updated.
17471 (grub_ohci_transaction): Fix bad format specification.
17472 (GRUB_MOD_INIT): Add asserts for struct size.
17473 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
17474 (grub_alloc_td): Likewise.
17475 (grub_free_queue): Likewise.
17476 (grub_uhci_transfer): Likewise.
17477 (grub_uhci_transaction): Fix bad format specification.
17478 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
17479 (grub_usb_bulk_readwrite): Likewise.
17480 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
17481 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
17483 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
17485 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
17486 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
17487 Transformed into C.
17488 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
17489 Moved from here ...
17490 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
17491 ... here. Transformed into C. Made static.
17492 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
17493 Moved from here ...
17494 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
17495 ... here. Transformed into C. Made static.
17496 * grub-core/kern/i386/pc/startup.S
17497 (grub_biosdisk_check_int13_extensions): Moved from here ...
17498 * grub-core/disk/i386/pc/biosdisk.c
17499 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
17501 * grub-core/kern/i386/pc/startup.S
17502 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
17503 * grub-core/disk/i386/pc/biosdisk.c
17504 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
17505 Transformed into C. Made static.
17506 * grub-core/kern/i386/pc/startup.S
17507 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
17508 * grub-core/disk/i386/pc/biosdisk.c
17509 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
17510 Transformed into C. Made static.
17511 * grub-core/kern/i386/pc/startup.S
17512 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
17513 * grub-core/disk/i386/pc/biosdisk.c
17514 (grub_biosdisk_get_diskinfo_standard): ... here.
17515 Transformed into C. Made static.
17516 * grub-core/kern/i386/pc/startup.S
17517 (grub_biosdisk_get_num_floppies): Moved from here ...
17518 * grub-core/disk/i386/pc/biosdisk.c
17519 (grub_biosdisk_get_num_floppies): ... here.
17520 Transformed into C. Made static.
17521 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
17523 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
17524 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
17525 Transformed into C. Made static.
17526 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
17527 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
17528 Transformed into C. Made static.
17529 * grub-core/kern/i386/ieee1275/init.c: Removed.
17530 * grub-core/kern/i386/misc.S: Likewise.
17531 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
17532 Splitted from here ...
17533 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
17534 Transformed into C. Made static. All users updated.
17535 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
17536 Transformed into C. Made static. All users updated.
17537 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
17539 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
17540 Transformed into C. Made static. All users updated.
17541 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
17543 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
17544 Transformed into C. Made static. All users updated.
17545 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
17546 Removed (replaced by C version).
17547 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
17549 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
17550 Transformed into C. Made static.
17551 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
17553 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
17554 ... here. Transformed into C.
17555 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
17557 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
17558 ... here. Transformed into C.
17559 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
17561 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
17562 ... here. Transformed into C. Made static.
17563 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
17565 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
17566 ... here. Transformed into C.
17567 * grub-core/kern/i386/pc/startup.S
17568 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
17569 * grub-core/video/i386/pc/vbe.c
17570 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
17571 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
17573 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
17574 ... here. Transformed into C.
17575 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
17577 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
17578 ... here. Transformed into C.
17579 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
17581 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
17582 ... here. Transformed into C.
17583 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
17585 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
17586 ... here. Transformed into C.
17587 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
17589 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
17590 ... here. Transformed into C. Made static.
17591 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
17593 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
17594 ... here. Transformed into C. Made static.
17595 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
17597 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
17598 ... here. Transformed into C. Made static.
17599 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
17600 pxe_rm_entry as third argument.
17601 (grub_bios_interrupt): New function.
17602 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
17603 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
17604 of calling grub_stop.
17605 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
17606 * grub-core/lib/efi/halt.c (grub_halt): ...here.
17607 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
17608 * grub-core/lib/emu/halt.c (grub_halt): ... here.
17609 * grub-core/lib/i386/halt.c: Moved from here ...
17610 * grub-core/lib/i386/halt.c: ... here.
17611 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
17612 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
17613 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
17615 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
17616 * include/grub/i386/coreboot/init.h: Removed.
17617 * include/grub/i386/multiboot/init.h: Likewise.
17618 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
17619 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
17620 * include/grub/i386/pc/int.h: New file.
17621 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
17622 (grub_pxe_scan): Removed.
17623 (grub_pxe_call): Update prototype.
17624 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
17626 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
17627 * include/grub/i386/qemu/init.h: Removed.
17628 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
17630 (grub_halt): Likewise.
17631 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
17632 (grub_reboot): Likewise.
17633 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
17634 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
17635 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
17637 2010-08-30 Robert Millan <rmh@gnu.org>
17639 * NEWS: Document addition of ZFS support in `grub-install' and
17642 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
17644 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
17647 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17649 Remove leftover embedding of font objects.
17651 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
17652 * util/grub-install.in (font): Removed.
17653 * util/grub-mkimage.c (generate_image): Remove font support. All users
17656 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17658 Remove leftover embedding of font objects.
17660 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
17661 * util/grub-install.in (font): Removed.
17662 * util/grub-mkimage.c (generate_image): Remove font support. All users
17665 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17667 * docs/grub.texi (Network): Fix reference to pxe_blksize.
17668 Reported by: Ian Turner
17670 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17672 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
17673 timeout to avoid indefinite boot stalling.
17675 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17677 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
17678 (grub_env_write_color_highlight): Likewise.
17680 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17682 * grub-core/normal/term.c (print_more): Return to normal and not
17683 to standard state after printing "---MORE---".
17685 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17687 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
17688 Mask out the bit 0x80 since it has other meaning that specifiing color.
17690 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17692 New relocator. Allows for more kernel support and more straightforward
17695 * Makefile.am (BOOTTARGET): New variable.
17696 (QEMU32): Likewise.
17697 (linux.init.x86_64): New target.
17698 (linux.init.i386): Likewise.
17699 (multiboot.elf): Likewise.
17700 (kfreebsd.elf): Likewise.
17701 (kfreebsd.aout): Likewise.
17702 (pc-chainloader.elf): Likewise.
17703 (pc-chainloader.bin): Likewise.
17704 (ntldr.elf): Likewise.
17705 (ntldr.bin): Likewise.
17706 (multiboot2.elf): Likewise.
17707 (kfreebsd.init.x86_64): Likewise.
17708 (kfreebsd.init.i386): Likewise.
17709 (knetbsd.init.i386): Likewise.
17710 (kopenbsd.init.i386): Likewise.
17711 (knetbsd.init.x86_64): Likewise.
17712 (kopenbsd.init.x86_64): Likewise.
17713 (linux-initramfs.i386): Likewise.
17714 (linux-initramfs.x86_64): Likewise.
17715 (kfreebsd-mfsroot.i386.img): Likewise.
17716 (knetbsd.image.i386): Likewise.
17717 (kopenbsd.image.i386): Likewise.
17718 (kopenbsd.image.x86_64): Likewise.
17719 (knetbsd.miniroot-image.i386.img): Likewise.
17720 (kfreebsd-mfsroot.x86_64.img): Likewise.
17721 (knetbsd.image.x86_64): Likewise.
17722 (knetbsd.miniroot-image.x86_64.img): Likewise.
17723 (kfreebsd-mfsroot.i386.gz): Likewise.
17724 (bootcheck-kfreebsd-i386): Likewise.
17725 (kfreebsd-mfsroot.x86_64.gz): Likewise.
17726 (bootcheck-kfreebsd-x86_64): Likewise.
17727 (knetbsd.miniroot-image.i386.gz): Likewise.
17728 (bootcheck-knetbsd-i386): Likewise.
17729 (bootcheck-kopenbsd-i386): Likewise.
17730 (bootcheck-kopenbsd-x86_64): Likewise.
17731 (knetbsd.miniroot-image.x86_64.gz): Likewise.
17732 (bootcheck-knetbsd-x86_64): Likewise.
17733 (bootcheck-linux-i386): Likewise.
17734 (bootcheck-linux-x86_64): Likewise.
17735 (bootcheck-linux16-i386): Likewise.
17736 (bootcheck-linux16-x86_64): Likewise.
17737 (bootcheck-multiboot): Likewise.
17738 (bootcheck-multiboot2): Likewise.
17739 (bootcheck-kfreebsd-aout): Likewise.
17740 (bootcheck-pc-chainloader): Likewise.
17741 (bootcheck-ntldr): Likewise.
17742 (CLEANFILES): Add new targets.
17743 (BOOTCHECKS): New variable.
17744 (.PHONY): Add bootchecks.
17745 (SUCCESSFUL_BOOT_STRING): New variable.
17746 (BOOTCHECK_TIMEOUT): Likewise.
17747 (bootcheck): New target
17748 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
17749 * configure.ac: Correct efiemu excuse.
17750 * docs/grub.texi (Supported kernels): New chapter.
17751 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
17752 include/grub/mm_private.h. Simplify inclusion of
17753 include/grub/boot.h, include/grub/loader.h
17754 and include/grub/msdos_partition.h
17755 (KERNEL_HEADER_FILES) [i386_coreboot]:
17756 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
17757 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
17758 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
17759 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
17760 include/grub/machine/loader.h.
17761 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
17762 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
17764 (pci.mod): Enable on i386-multiboot.
17765 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
17766 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
17768 (relocator.mod): Rewritten.
17769 (aout.mod): Enable on all x86.
17770 (bsd.mod): Likewise.
17771 (ntldr.mod): New module.
17772 (linux.mod): Use loader/i386/linux.c on all x86.
17773 (xnu.mod): Enable on all x86.
17774 (vga_text.mod): disable on EFI and QEMU.
17775 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
17776 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
17777 * grub-core/efiemu/loadcore.c: Likewise.
17778 * grub-core/efiemu/main.c: Likewise.
17779 (grub_efiemu_exit_boot_services): Removed.
17780 (grub_efiemu_finish_boot_services): Likewise.
17781 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
17783 * grub-core/efiemu/i386/nocfgtables.c: New file.
17784 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
17785 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
17786 (grub_efi_finish_boot_services): Moved from here ...
17787 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
17788 Fille finish memory map and related data.
17789 (finish_mmap_buf): New variable.
17790 (grub_efi_uintn_t finish_mmap_size): Likewise.
17791 (grub_efi_uintn_t finish_key): Likewise.
17792 (grub_efi_uintn_t finish_desc_size): Likewise.
17793 (grub_efi_uint32_t finish_desc_version): Likewise.
17794 (grub_efi_is_finished): Likewise.
17795 (grub_efi_get_memory_map): Use saved memory map if EFI is already
17797 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
17798 (grub_elf64_phdr_iterate): Likewise.
17799 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
17800 (grub_os_area_size): Likewise.
17801 (grub_machine_init): Don't reserve os area.
17802 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
17803 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17804 * grub-core/kern/i386/loader.S: Removed.
17805 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
17806 (grub_os_area_size): Likewise.
17807 (grub_machine_init): Don't reserve os area.
17808 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
17809 Don't call grub_dl_unload_all.
17810 Don't include loader.S.
17811 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
17812 Declare the memory after _end as available.
17813 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
17814 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
17815 (GRUB_MM_ALLOC_MAGIC): Moved from here...
17816 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
17817 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
17818 * include/grub/mm_private.h (grub_mm_header): ... here.
17819 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
17820 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
17821 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
17822 (grub_mm_region): ..here. Removed addr. Added pre_size.
17824 * grub-core/kern/mm.c (base): Renamed to ...
17825 (grub_mm_base): ... this. Made global.
17826 (grub_real_malloc): Alloc from end of region.
17827 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
17828 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
17829 * grub-core/kern/powerpc/cache_flush.S: ... here.
17830 * grub-core/lib/efi/relocator.c: New file.
17831 * grub-core/lib/i386/relocator.c: Rewritten.
17832 * grub-core/lib/i386/relocator16.S: New file.
17833 * grub-core/lib/i386/relocator32.S: Likewise.
17834 * grub-core/lib/i386/relocator64.S: Likewise.
17835 * grub-core/lib/i386/relocator_asm.S: Rewritten.
17836 * grub-core/lib/i386/relocator_common.S: New file.
17837 * grub-core/lib/ieee1275/relocator.c: Likewise.
17838 * grub-core/lib/mips/relocator.c: Rewritten.
17839 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
17840 stylistic adjustments.
17841 * grub-core/lib/powerpc/relocator.c: New file.
17842 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
17843 * grub-core/lib/relocator.c: Rewritten.
17844 * grub-core/lib/x86_64/relocator_asm.S: New file.
17845 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
17846 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
17847 (bsd_tag): New struct.
17848 (tags): New variable.
17849 (tags_last): Likewise.
17850 (netbsd_module): New struct.
17851 (netbsd_mods): New variable.
17852 (netbsd_mods_last): Likewise.
17853 (openbsd_opts): New parameter "serial".
17854 (OPENBSD_SERIAL_ARG): New definition.
17855 (netbsd_opts): New parameter "serial".
17856 (NETBSD_SERIAL_ARG): New definition.
17857 (grub_freebsd_add_meta): Reorganised into ...
17858 (grub_bsd_add_meta): ...this. All users updated.
17859 (grub_freebsd_add_mmap): Reorganised into ...
17860 (generate_e820_mmap): ...this...
17861 (grub_bsd_add_mmap): ...and this. All users updated.
17862 (grub_freebsd_list_modules): Use tags.
17863 (grub_netbsd_add_meta_module): New function.
17864 (grub_netbsd_list_modules): Likewise.
17865 (grub_freebsd_boot): Use relocator and finish EFI.
17866 (grub_openbsd_boot): Likewise.
17867 (grub_netbsd_setup_video): New function.
17868 (grub_netbsd_add_modules): Likewise.
17869 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
17871 (grub_bsd_unload): Unload tags.
17872 (grub_bsd_load_aout): Use relocator.
17873 (grub_bsd_elf32_size_hook): New function.
17874 (grub_bsd_elf32_hook): Use relocator.
17875 (grub_bsd_elf64_size_hook): New function.
17876 (grub_bsd_elf64_hook): Use relocator.
17877 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
17878 (grub_bsd_load): Zero-out openbsd_ramdisk.
17879 (grub_bsd_load): Use relocator.
17880 (grub_cmd_openbsd): Support serial.
17881 (grub_cmd_netbsd): Support modules.
17882 (grub_cmd_freebsd_module): Use relocator.
17883 (grub_netbsd_module_load): New function.
17884 (grub_cmd_netbsd_module): Likewise.
17885 (grub_cmd_openbsd_ramdisk): Likewise.
17886 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
17888 (GRUB_MOD_FINI): Unregister new commands.
17889 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
17890 (grub_freebsd_load_elfmodule_obj): Use relocator.
17891 (grub_freebsd_load_elfmodule): Likewise.
17892 (grub_freebsd_load_elf_meta): Likewise.
17893 (grub_netbsd_load_elf_meta): New function.
17894 (grub_openbsd_find_ramdisk): Likewise.
17895 * grub-core/loader/i386/bsd_helper.S: Removed.
17896 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
17897 * grub-core/loader/i386/bsd_trampoline.S: Removed.
17898 * grub-core/loader/i386/efi/linux.c: Likewise.
17899 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
17900 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
17901 (DEFAULT_VIDEO_MODE): Likewise.
17902 (real_mode_target): New variable.
17903 (prot_mode_target): Likewise.
17904 (initrd_mem_target): Likewise.
17905 (relocator): Likewise.
17906 (efi_mmap_buf): Likewise.
17907 (efi_mmap_size): Likewise.
17908 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
17909 (free_pages): Use relocator.
17910 (allocate_pages): Account for efi_mmap and use relocator. Return error.
17911 (grub_linux_setup_video): Return error.
17912 (grub_linux_trampoline_start): Removed.
17913 (grub_linux_trampoline_end): Likewise.
17914 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
17915 andd video parameters depending on firmware.
17916 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
17917 [GRUB_MACHINE_EFI]: Pass EFI parameters.
17918 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
17919 (grub_cmd_initrd): Use relocator.
17920 * grub-core/loader/i386/linux_trampoline.S: Removed.
17921 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
17922 (elf_sec_entsize): Likewise.
17923 (elf_sec_shstrndx): Likewise.
17924 (elf_sections): Likewise.
17925 (grub_multiboot_load): Use relocator.
17926 (grub_multiboot_get_mbi_size): Account for sections.
17927 (grub_multiboot_make_mbi): Use relocator and support sections.
17928 (grub_multiboot_add_elfsyms): New function.
17929 (grub_multiboot_free_mbi): Free sections.
17930 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
17931 (grub_linux_real_target): Likewise.
17932 (grub_linux_real_chunk): Likewise.
17933 (grub_linux16_prot_size): Likewise.
17934 (grub_linux16_boot): Use relocator.
17935 (grub_linux_unload): Unload relocator.
17936 (grub_cmd_linux): Use relocator.
17937 (grub_cmd_initrd): Likewise.
17938 * grub-core/loader/i386/pc/ntldr.c: New file.
17939 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
17940 Don't try to guess CPU frequency.
17941 (grub_xnu_set_video): Stretch bitmap.
17942 (grub_xnu_boot): Use relocator.
17943 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
17944 (grub_linux_unload): Free relocator.
17945 (grub_linux_load32): Use relocator.
17946 (grub_linux_load64): Likewise.
17947 (grub_cmd_initrd): Likewise.
17948 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
17949 (grub_multiboot_unload): Unload relocator.
17950 (grub_cmd_multiboot): Use relocator.
17951 (grub_cmd_module): Likewise.
17952 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
17953 Use relocator and support sections.
17954 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
17955 (elf_sec_entsize): Likewise.
17956 (elf_sec_shstrndx): Likewise.
17957 (elf_sections): Likewise.
17958 (grub_multiboot_load): Use relocator.
17959 (grub_multiboot_get_mbi_size): Account for sections.
17960 (grub_multiboot_make_mbi): Use relocator and support sections.
17961 (grub_multiboot_add_elfsyms): New function.
17962 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
17963 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
17964 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
17965 Prototype changed. All users updated.
17966 (grub_xnu_align_heap): Simplified.
17967 (grub_xnu_writetree_toheap): Likewise.
17968 (grub_xnu_unload): Unload relocator.
17969 (grub_cmd_xnu_kernel): Use relocator.
17970 (grub_cmd_xnu_kernel64): Likewise.
17971 (grub_xnu_register_memory): Simplified.
17972 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
17973 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
17975 (grub_console_checkkey): Likewise.
17976 (grub_console_getkey): Likewise.
17977 (grub_console_getwh): Likewise.
17978 (grub_console_getxy): Likewise.
17979 (grub_console_gotoxy): Likewise.
17980 (grub_console_cls): Likewise.
17981 (grub_console_setcolorstate): Likewise.
17982 (grub_console_setcursor): Likewise.
17983 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
17984 * grub-core/tests/boot/kbsd.init-i386.S: New file.
17985 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
17986 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
17987 * grub-core/tests/boot/kernel-8086.S: Likewise.
17988 * grub-core/tests/boot/kernel-i386.S: Likewise.
17989 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
17990 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
17991 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
17992 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
17993 * grub-core/tests/boot/knetbsd.cfg: Likewise.
17994 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
17995 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
17996 * grub-core/tests/boot/linux.cfg: Likewise.
17997 * grub-core/tests/boot/linux.init-i386.S: Likewise.
17998 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
17999 * grub-core/tests/boot/linux16.cfg: Likewise.
18000 * grub-core/tests/boot/multiboot.cfg: Likewise.
18001 * grub-core/tests/boot/multiboot2.cfg: Likewise.
18002 * grub-core/tests/boot/ntldr.cfg: Likewise.
18003 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
18004 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
18005 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
18007 * include/grub/dl.h (grub_dl_unload_all): Removed.
18008 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
18009 (grub_efi_finish_boot_services): Change prototype.
18010 (grub_efi_is_finished): New variable.
18011 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
18013 (grub_efiemu_finish_boot_services): Removed.
18014 (grub_machine_efiemu_init_tables): New prototype.
18015 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
18016 (grub_elf64_phdr_iterate): Likewise.
18017 * include/grub/i386/bsd.h: Include relocator.h.
18018 (freebsd_tag_header): New struct.
18019 (grub_openbsd_bios_mmap): Removed.
18020 (grub_unix_real_boot): Removed.
18021 (grub_freebsd_load_elfmodule32): Changed prototype.
18022 (grub_freebsd_load_elfmodule_obj64): Likewise.
18023 (grub_freebsd_load_elf_meta32): Likewise.
18024 (grub_freebsd_load_elf_meta64): Likewise.
18025 (grub_freebsd_add_meta): Removed.
18026 (grub_netbsd_load_elf_meta32): New prototype.
18027 (grub_netbsd_load_elf_meta64): Likewise.
18028 (grub_bsd_add_meta): Likewise.
18029 (grub_openbsd_ramdisk_descriptor): New struct.
18030 (grub_openbsd_find_ramdisk32): New prototype.
18031 (grub_openbsd_find_ramdisk64): Likewise.
18032 * include/grub/i386/coreboot/loader.h: Removed.
18033 * include/grub/i386/efi/loader.h: Likewise.
18034 * include/grub/i386/ieee1275/loader.h: Likewise.
18035 * include/grub/i386/linux.h (linux_kernel_header): Change void *
18037 * include/grub/i386/loader.h: Removed.
18038 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
18040 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
18041 (grub_phys_addr_t): New type.
18042 (grub_vtop): New inline function.
18043 (grub_map_memory): Likewise.
18044 (grub_unmap_memory): Likewise.
18045 * include/grub/i386/multiboot/loader.h: Removed.
18046 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
18047 (NETBSD_BTINFO_CONSOLE): New definition.
18048 (NETBSD_BTINFO_SYMTAB): Likewise.
18049 (NETBSD_BTINFO_MODULES): Likewise.
18050 (NETBSD_BTINFO_FRAMEBUF): Likewise.
18051 (grub_netbsd_bootinfo): New struct.
18052 (grub_netbsd_btinfo_common): Use explicit bitsize.
18053 (grub_netbsd_btinfo_mmap_entry): Removed.
18054 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
18055 (grub_netbsd_btinfo_bootdisk): New struct.
18056 (grub_netbsd_btinfo_symtab): Likewise.
18057 (grub_netbsd_btinfo_serial): Likewise.
18058 (grub_netbsd_btinfo_modules): Likewise.
18059 (grub_netbsd_btinfo_framebuf): Likewise.
18060 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
18061 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
18063 (grub_openbsd_bootargs): Use explicit bitsize.
18064 (grub_openbsd_bootarg_console): New struct.
18065 (GRUB_OPENBSD_COM_MAJOR): New definition.
18066 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
18067 * include/grub/i386/pc/efiemu.h: Removed.
18068 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
18069 * include/grub/i386/qemu/loader.h: Removed.
18070 * include/grub/i386/relocator.h: Rewritten.
18071 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
18072 * include/grub/mips/memory.h: New file.
18073 * include/grub/mips/multiboot.h: Rewritten.
18074 * include/grub/mips/relocator.h: Rewritten.
18075 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
18076 (grub_vtop): New function.
18077 (grub_map_memory): Likewise.
18078 (grub_unmap_memory): Likewise.
18079 * include/grub/misc.h (ALIGN_DOWN): New definition.
18080 * include/grub/mm.h (grub_mm_check_real): New proto.
18081 (GRUB_MM_CHECK): New definition.
18082 * include/grub/mm_private.h: New file.
18083 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
18084 (grub_multiboot_get_mbi_size): Removed.
18085 (grub_multiboot_make_mbi): Change prottype.
18086 (grub_multiboot_set_accepts_video): New proto.
18087 (grub_multiboot_add_elfsyms): Likewise.
18088 (grub_multiboot_payload_eip): New variable.
18089 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
18091 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
18093 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
18094 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
18095 * include/grub/powerpc/ieee1275/loader.h: Removed.
18096 * include/grub/powerpc/memory.h: New file.
18097 * include/grub/powerpc/relocator.h: Likewise.
18098 * include/grub/relocator.h: Likewise.
18099 * include/grub/relocator_private.h: Likewise.
18100 * include/grub/sparc64/ieee1275/loader.h: Removed.
18101 * include/grub/x86_64/memory.h: New file.
18102 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
18103 (grub_xnu_heap_malloc): Likewise.
18104 (grub_xnu_heap_real_start): Removed.
18105 (grub_xnu_heap_start): Likewise.
18106 (grub_xnu_relocator): New variable.
18107 (grub_xnu_heap_target_start): Likewise.
18108 * tests/util/grub-shell.in: Support non-pc.
18109 * util/grub-mkimage.c (image_targets): Fix multiboot target.
18111 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18113 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
18115 (grub_bidi_logical_to_visual): Check that malloc succeded.
18116 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
18118 (grub_xputs_normal): Likewise.
18120 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18122 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
18125 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18127 * grub-core/efiemu/runtime/efiemu.sh: Removed.
18129 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18131 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
18133 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18135 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
18138 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
18140 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
18142 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18144 * grub-core/normal/term.c (print_more): Fix a memory leak.
18145 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
18146 (grub_xputs_normal): Likewise.
18148 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18150 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
18151 the begining of the string
18153 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18155 * grub-core/script/script.c (grub_script_parse): Free parsed on
18158 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18160 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
18163 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18165 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
18168 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18170 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
18171 (scroll_up): Fix a memory leak.
18173 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18175 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
18178 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
18180 Handle USB pendrives exposed as floppies.
18182 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
18184 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
18185 Check for partitions on all devices.
18187 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
18189 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
18190 (readkey): Likewise.
18192 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
18194 Multiple variable names support to "export" command.
18196 * normal/context.c (grub_cmd_export): "export" command supports
18197 multiple variable names.
18199 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
18201 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
18202 --target=drive output to Mach device name.
18204 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
18206 New Automake based build system for GRUB.
18208 * ABOUT-NLS: New file.
18209 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
18210 in Makefile.util.def file.
18211 * Makefile.util.def: New file. Autogen build definitions file for
18213 * conf/Makefile.common: New file. Common variables for GRUB host
18214 utils and target modules.
18215 * conf/Makefile.extra-dist: New file. Extra files for make dist.
18216 * docs/Makefile.am: New file. Automake file for docs.
18217 * gentpl.py: New file. Python script to generate Autogen
18219 * grub-core/Makefile.am: New file. GRUB target modules' rules
18220 that doesn't fit in Makefile.core.def file.
18221 * grub-core/Makefile.core.def: New file. Autogen build
18222 definitions file for GRUB target modules.
18223 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
18224 specific setjmp.S file.
18225 * po/Makefile.am: New file.
18227 * .bzrignore: New ignores.
18228 * INSTALL: New requirements, without Ruby.
18229 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
18230 * autogen.sh: Updated to invoke autogen as necessary.
18231 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
18232 and defines for Automake conditionals.
18233 * geninit.sh: Refactoring.
18235 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
18237 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
18240 * include/grub/test.h: Fix functional test modules' naming.
18241 * grub-core/tests/example_functional_test.c: Fix test module name.
18243 * util/misc.c: Hosted versions' of grub functions for libgrub.a
18244 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
18245 * util/grub-editenv.c: Likewise.
18246 * util/grub-fstest.c: Likewise.
18247 * util/grub-mkdevicemap.c: Likewise.
18248 * util/grub-mkfont.c: Likewise.
18249 * util/grub-mkimage.c: Likewise.
18250 * util/grub-mkpasswd-pbkdf2.c: Likewise.
18251 * util/grub-probe.c: Likewise.
18252 * util/grub-script-check.c: Likewise.
18253 * util/i386/pc/grub-setup.c: Likewise.
18254 * util/sparc64/ieee1275/grub-setup.c: Likewise.
18256 * tests/util/grub-shell.in: Fix override directory path.
18257 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
18258 * util/import_gcry.py: Create Makefile.gcry.def file instead.
18260 * util/lvm.c: Update #includes.
18261 * util/raid.c: Likewise.
18262 * util/resolve.c: Likewise.
18263 * grub-core/bus/emu/pci.c: Likewise.
18264 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
18265 * grub-core/lib/posix_wrap/string.h: Likewise.
18266 * grub-core/kern/emu/main.c: Likewise.
18268 * grub-core/gensymlist.sh: New file. Script for generating kernel
18270 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
18272 * grub-core/gentrigtables.c: Fix unused variable warnings.
18274 * Makefile.in: Removed.
18275 * conf/any-emu.rmk: Removed.
18276 * conf/common.rmk: Removed.
18277 * conf/i386-coreboot.rmk: Removed.
18278 * conf/i386-efi.rmk: Removed.
18279 * conf/i386-ieee1275.rmk: Removed.
18280 * conf/i386-multiboot.rmk: Removed.
18281 * conf/i386-pc.rmk: Removed.
18282 * conf/i386-qemu.rmk: Removed.
18283 * conf/i386.rmk: Removed.
18284 * conf/mips-yeeloong.rmk: Removed.
18285 * conf/mips.rmk: Removed.
18286 * conf/powerpc-ieee1275.rmk: Removed.
18287 * conf/sparc64-ieee1275.rmk: Removed.
18288 * conf/tests.rmk: Removed.
18289 * conf/x86-efi.rmk: Removed.
18290 * conf/x86_64-efi.rmk: Removed.
18291 * gendistlist.sh: Removed.
18292 * geninitheader.sh: Removed.
18293 * genkernsyms.sh.in: Removed.
18294 * genmk.rb: Removed.
18295 * gensymlist.sh.in: Removed.
18296 * mkinstalldirs: Removed.
18298 * grub-core/boot: ... to here.
18300 * grub-core/bus: ... to here.
18301 * commands: Moved ...
18302 * grub-core/commands: ... to here.
18304 * grub-core/disk: ... to here.
18305 * efiemu: Moved ...
18306 * grub-core/efiemu: ... to here.
18308 * grub-core/font: ... to here.
18310 * grub-core/fs: ... to here.
18311 * gencmdlist.sh: Moved ...
18312 * grub-core/gencmdlist.sh: ... to here.
18313 * genemuinit.sh: Moved ...
18314 * grub-core/genemuinit.sh: ... to here.
18315 * genemuinitheader.sh: Moved ...
18316 * grub-core/genemuinitheader.sh: ... to here.
18317 * genfslist.sh: Moved ...
18318 * grub-core/genfslist.sh: ... to here.
18319 * genhandlerlist.sh: Moved ...
18320 * grub-core/genhandlerlist.sh: ... to here.
18321 * genmoddep.awk: Moved ...
18322 * grub-core/genmoddep.awk: ... to here.
18323 * genmodsrc.sh: Moved ...
18324 * grub-core/genmodsrc.sh: ... to here.
18325 * genpartmaplist.sh: Moved ...
18326 * grub-core/genpartmaplist.sh: ... to here.
18327 * genparttoollist.sh: Moved ...
18328 * grub-core/genparttoollist.sh: ... to here.
18329 * genterminallist.sh: Moved ...
18330 * grub-core/genterminallist.sh: ... to here.
18331 * gentrigtables.c: Moved ...
18332 * grub-core/gentrigtables.c: ... to here.
18333 * genvideolist.sh: Moved ...
18334 * grub-core/genvideolist.sh: ... to here.
18335 * gettext: Moved ...
18336 * grub-core/gettext: ... to here.
18337 * gfxmenu: Moved ...
18338 * grub-core/gfxmenu: ... to here.
18339 * gnulib: Moved ...
18340 * grub-core/gnulib: ... to here.
18342 * grub-core/hello: ... to here.
18344 * grub-core/hook: ... to here.
18346 * grub-core/io: ... to here.
18348 * grub-core/kern: ... to here.
18350 * grub-core/lib: ... to here.
18351 * loader: Moved ...
18352 * grub-core/loader: ... to here.
18354 * grub-core/mmap: ... to here.
18355 * normal: Moved ...
18356 * grub-core/normal: ... to here.
18357 * partmap: Moved ...
18358 * grub-core/partmap: ... to here.
18359 * parttool: Moved ...
18360 * grub-core/parttool: ... to here.
18361 * script: Moved ...
18362 * grub-core/script: ... to here.
18364 * grub-core/term: ... to here
18365 * tests/example_functional_test.c: Moved ...
18366 * grub-core/tests/example_functional_test.c: ... to here.
18367 * tests/lib/functional_test.c: Moved ...
18368 * grub-core/tests/lib/functional_test.c: ... to here.
18369 * tests/lib/test.c: Moved ...
18370 * grub-core/tests/lib/test.c: ... to here.
18372 * grub-core/video: ... to here.
18374 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
18376 Replace --enable-grub-emu-modules with grub-emu-lite.
18378 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
18381 * include/grub/emu/misc.h (grub_emu_init): New prototype.
18382 * kern/emu/full.c: New file. For grub-emu specific initialization.
18383 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
18384 * kern/emu/main.c: Call initialization function grub_emu_init.
18386 * Makefile.in: Include grub-emu-lite in install.
18387 * commands/parttool.c: Use grub_no_autoload to differentiate
18388 between grub-emu and grub-emu-lite.
18389 * include/grub/misc.h: New variable grub_no_autoload.
18391 * conf/any-emu.rmk: New rules for grub-emu-lite.
18392 * configure.ac: Remove --enable-grub-emu-modules.
18393 * genmk.rb: Cleanup unnecessary rules.
18394 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
18396 * normal/main.c: Don't load list files on grub-emu-lite.
18397 * util/misc.c (grub_arch_sync_caches): Removed.
18399 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
18401 * kern/mips/startup.S (grub_prefix): Update comment to refer to
18402 grub-mkimage rather than grub-mkelfimage.
18403 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
18405 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
18407 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
18408 a key after CapsLock or NumLock. It's just a qemu bug.
18410 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
18412 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
18413 needed by libusb wrapper.
18415 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
18417 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
18419 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
18421 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
18422 --nounzip is passed.
18424 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
18426 USB hotunplugging and USB serial support.
18428 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
18429 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
18430 (grub_uhci_transfer): Respect timeout and set *actual.
18431 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
18432 non-standard length.
18433 (grub_usb_device_attach): Autoload modules.
18434 (GRUB_MOD_INIT): Set grub_term_poll_usb.
18435 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
18436 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
18438 (grub_usb_add_hub): Fill nports and children.
18439 (attach_root_port): Receive hub instead of controller.
18440 All users updated. Fill hub->devices.
18441 (grub_usb_root_hub): Allocate hub->devices.
18442 (detach_device): New function.
18443 (poll_nonroot_hub): Fill children and detach devices.
18444 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
18445 actual arguments. All users updated.
18446 (grub_usb_bulk_read_extended): New function.
18447 * bus/usb/serial/common.c: New file.
18448 * bus/usb/serial/ftdi.c: Likewise.
18449 * bus/usb/serial/pl2303.c: Likewise.
18450 * commands/terminal.c (handle_command): Support wildcard.
18451 * commands/usbtest.c: Output "Unknown" instead of empty string.
18452 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
18453 (usbserial_common_mod_SOURCES): New variable.
18454 (usbserial_common_mod_CFLAGS): Likewise.
18455 (usbserial_common_mod_LDFLAGS): Likewise.
18456 (pkglib_MODULES): Add usbserial_pl2303.mod.
18457 (usbserial_pl2303_mod_SOURCES): New variable.
18458 (usbserial_pl2303_mod_CFLAGS): Likewise.
18459 (usbserial_pl2303_mod_LDFLAGS): Likewise.
18460 (pkglib_MODULES): Add usbserial_ftdi.mod.
18461 (usbserial_ftdi_mod_SOURCES): New variable.
18462 (usbserial_ftdi_mod_CFLAGS): Likewise.
18463 (usbserial_ftdi_mod_LDFLAGS): Likewise.
18464 (pkglib_MODULES): Add serial.mod.
18465 (serial_mod_SOURCES): New variable.
18466 (serial_mod_CFLAGS): Likewise.
18467 (serial_mod_LDFLAGS): Likewise.
18468 * conf/i386-pc.rmk: Likewise.
18469 * conf/mips-yeeloong.rmk: Likewise.
18470 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
18471 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
18472 * disk/usbms.c (first_available_slot): New variable.
18473 (grub_usbms_attach): Don't reuse free slots due to potential cache
18475 * include/grub/serial.h: Moved to ..
18476 * include/grub/ns8250.h: ...this.
18477 * include/grub/serial.h: New file.
18478 * include/grub/term.h (grub_term_poll_usb): New variable.
18479 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
18480 readkey. All users updated.
18481 (grub_terminfo_output_state): Pass term to put.
18482 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
18483 (grub_usb_controller_dev): Add timeout and actual arguments to
18484 transfer. All users updated.
18485 (grub_usb_interface): New field detach_data.
18486 (grub_usb_device): New fields children and nports.
18487 (grub_usb_ep_type_t): New type.
18488 (grub_usb_get_ep_type): New function.
18489 (grub_usb_bulk_read_extended): Likewise.
18490 * include/grub/usbdesc.h (grub_usb_desc): New type.
18491 * include/grub/usbserial.h: New file.
18492 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
18493 * kern/term.c (grub_term_poll_usb): New variable.
18494 (grub_getkey): Call grub_term_poll_usb if set.
18495 (grub_checkkey): Likewise.
18496 (grub_getkeystatus): Likewise.
18497 * term/serial.c: Moved controller-specific parts to ...
18498 * term/ns8250.c: ... here.
18499 * term/serial.c: Mostly rewritten.
18500 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
18503 2010-08-20 Robert Millan <rmh@gnu.org>
18505 Make kFreeBSD code more generic to support ext2fs as root, ufs as
18506 a separate module and maybe other interesting combinations.
18508 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
18509 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
18510 (kfreebsd_entry): Add generic filesystem module load routine.
18511 Map GRUB `ext2' to kFreeBSD `ext2fs'.
18513 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
18515 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
18516 "numcenter" (I misunderstood the purpose of this entry).
18517 * docs/grub.texi (sendkey): Likewise.
18519 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
18521 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
18522 status flag options; simply omitting the option is equivalent and
18523 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
18524 (keysym_table): Rename "num5numlock" to "numlock".
18525 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
18526 can uniformly say that only the last of multiple `sendkey'
18527 invocations has any effect.
18528 * docs/grub.texi (sendkey): New section.
18530 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
18532 * commands/i386/pc/sendkey.c (options): Fix three typos.
18534 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18536 Implement sendkey support.
18538 * commands/i386/pc/sendkey.c: New file.
18539 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
18540 (sendkey_mod_SOURCES): New variable.
18541 (sendkey_mod_CFLAGS): Likewise.
18542 (sendkey_mod_LDFLAGS): Likewise.
18544 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
18546 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
18547 fix warnings from Autoconf.
18549 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
18551 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
18552 to avoid false positives with some assemblers that output things
18553 like "someprefix_func" as part of their output.
18555 2010-08-15 Robert Millan <rmh@gnu.org>
18557 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
18559 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
18560 grub_get_libzfs_handle() errors.
18562 2010-08-14 Robert Millan <rmh@gnu.org>
18564 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
18565 filesystem is not ZFS.
18567 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18569 Fix for misspelled color names defaulting to black/black (bug
18570 reported by Doug Nazar)
18572 * include/grub/normal.h (grub_parse_color_name_pair): Add return
18573 status to prototype.
18574 * normal/color.c (grub_parse_color_name_pair): Return failure
18576 (grub_env_write_color_normal): Ignore bad color names.
18577 (grub_env_write_color_highlight): Likewise.
18578 * normal/main.c (GRUB_MOD_INIT): Set default color names.
18580 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18582 "shift" command support to GRUB script.
18584 * include/grub/script_sh.h (grub_script_shift): New prototype.
18585 * script/execute.c (grub_script_shift): New function.
18586 * script/main.c (grub_script_init): Register shift command.
18587 (grub_script_fini): Unregister shift command.
18588 * util/grub-script-check.c (grub_script_cmd_shift): New function.
18590 * tests/grub_script_shift.in: New testcase.
18591 * conf/tests.rmk: Rules for new testcase.
18593 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18595 "continue" command support to GRUB script.
18597 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
18598 (grub_script_break): Continue support.
18599 * script/main.c (grub_script_init): Register continue command.
18600 (grub_script_fini): Unregister continue command.
18602 * tests/grub_script_continue.in: New testcase.
18603 * conf/tests.rmk: Rules for new testcase.
18605 2010-08-12 BVK Chaitanya <bvk@dbook>
18607 "break" command support to GRUB script.
18609 * conf/common.rmk: Rule updates to grub-script-check.
18610 * include/grub/misc.h (grub_min): New function.
18611 * include/grub/script_sh.h (grub_script_init): New prototype.
18612 (grub_script_fini): New prototype.
18613 (grub_script_break): New prototype.
18614 * script/main.c (grub_script_init): New function.
18615 (grub_script_fini): New function.
18616 * script/execute.c (grub_script_break): New function.
18617 * normal/main.c: Calls to grub_script_{init,fini}.
18618 * util/grub-script-check.c (grub_script_break): New function.
18620 * tests/grub_script_break.in: New testcase.
18621 * conf/tests.rmk: Rules for new test case.
18623 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18625 Function parameters support to GRUB script.
18627 * script/yylex.l (VARIABLE): Regular expression update.
18628 * script/function.c (grub_script_function_call): Moved ...
18629 * script/execute.c (grub_script_function_call): ... to here.
18630 (grub_script_execute_arglist_to_argv): Removed.
18631 (grub_script_arglist_to_argv): New function.
18632 * script/argv.c: New file.
18633 (grub_script_argv_free): New function.
18634 (grub_script_argv_next): Likewise.
18635 (grub_script_argv_append): Likewise.
18636 (grub_script_argv_split_append): Likewise.
18637 * include/grub/script_sh.h (grub_script_argv): New struct.
18638 (grub_script_argv_free): New function.
18639 (grub_script_argv_next): Likewise.
18640 (grub_script_argv_append): Likewise.
18641 (grub_script_argv_split_append): Likewise.
18643 * conf/common.rmk (normal.mod): New source script/argv.c.
18645 * tests/grub_script_echo1.in: More tests.
18646 * tests/grub_script_vars1.in: Likewise.
18647 * tests/grub_script_functions.in: New test case.
18648 * conf/tests.rmk: Rules for new testcase.
18650 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18652 Remove grub_script_cmdblock struct.
18654 * include/grub/script_sh.h: Remove grub_script_cmdblock.
18655 * script/parser.y: Likewise.
18656 * script/execute.c: Rename cmdblock suffix to cmdlist.
18657 * script/script.c: Likewise.
18658 * util/grub-script-check.c: Likewise.
18660 2010-08-11 Yves Blusseau <blusseau@zetam.org>
18662 * .bzrignore: add grub-macho2img
18664 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
18666 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
18668 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
18670 Remove the dump of sm712 initialisation sequence.
18672 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
18673 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
18674 (GRUB_VGA_IO_MISC_WRITE): Likewise.
18675 (GRUB_VGA_CR_*): Added many registers.
18676 (GRUB_VGA_SR_*): Likewise.
18677 (GRUB_VGA_GR_*): Likewise.
18678 (grub_vga_write_arx): New function.
18679 (grub_video_hw_config): New struct.
18680 (grub_vga_set_geometry): New function.
18681 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
18682 GRUB_PCI_CLASS_SUBCLASS_VGA.
18683 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
18684 * video/sm712.c (grub_sm712_write_reg): New function
18685 (grub_sm712_read_reg): Likewise.
18686 (grub_sm712_sr_write): Likewise.
18687 (grub_sm712_gr_write): Likewise.
18688 (grub_sm712_cr_write): Likewise.
18689 (grub_sm712_write_arx): Likewise.
18690 (grub_sm712_cr_shadow_write): Likewise.
18691 (grub_sm712_write_dda_lookup): Likewise.
18692 (grub_video_sm712_setup): Initialise the video rather then
18693 blindly replay the dump.
18694 (main) [TEST]: Add a routine to be able to compile as standalone for
18696 * video/sm712_init.c (sm712_init): Removed.
18697 (sm712_sr_seq1): New array.
18698 (sm712_sr_seq2): Likewise.
18700 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
18702 * include/grub/vga.h: Add missing grub/pci.h include.
18704 2010-08-10 Yves Blusseau <blusseau@zetam.org>
18706 * util/grub-macho2img.c (main): fix typo
18708 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
18710 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
18711 (grub_vga_gr_read): Likewise.
18712 (grub_vga_cr_write): Likewise.
18713 (grub_vga_cr_read): Likewise.
18714 (grub_vga_sr_write): Likewise.
18715 (grub_vga_sr_read): Likewise.
18716 (grub_vga_palette_read): Likewise.
18717 (grub_vga_palette_write): Likewise.
18718 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
18719 (grub_sm712_sr_read): New function.
18720 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
18721 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
18723 2010-08-09 Robert Millan <rmh@gnu.org>
18725 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
18726 out unused variables on non-ZFS build.
18728 2010-08-08 Robert Millan <rmh@gnu.org>
18730 Fix path generation for sub-filesystems in ZFS.
18732 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
18735 2010-08-08 Robert Millan <rmh@gnu.org>
18737 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
18739 2010-08-08 Robert Millan <rmh@gnu.org>
18741 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
18742 exist, issue a proper error message (rely on `ls' for translated
18745 2010-08-08 Robert Millan <rmh@gnu.org>
18747 Fix grub-probe invocation.
18749 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
18751 2010-08-04 Robert Millan <rmh@gnu.org>
18753 * configure.ac: Remove checks for getfsstat() and getmntany().
18754 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
18755 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
18756 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
18757 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
18758 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
18760 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
18761 via find_mount_point_from_dir() and getfsstat() / getmntany().
18763 2010-08-04 Robert Millan <rmh@gnu.org>
18765 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
18766 (grub_find_zpool_from_mount_point): Merge into ...
18767 (grub_find_zpool_from_dir): ... this.
18768 * kern/emu/misc.c: Likewise.
18771 (grub_make_system_path_relative_to_its_root): Replace
18772 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
18773 with grub_find_zpool_from_dir().
18774 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
18776 2010-08-04 Robert Millan <rmh@gnu.org>
18778 Support OpenSolaris in ZFS device resolution.
18780 * configure.ac: Check for getmntany().
18781 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
18782 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
18785 2010-08-03 Robert Millan <rmh@gnu.org>
18787 Fix grub-emu build.
18789 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
18790 * include/grub/emu/misc.h: ... here.
18792 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
18793 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
18795 * util/misc.c: Remove `<grub/util/libzfs.h>'.
18796 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
18797 (grub_get_libzfs_handle): Move to ...
18798 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
18799 (grub_get_libzfs_handle): ... here.
18801 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
18803 * script/execute.c (grub_script_execute_cmdline): Check for NULL
18804 as command name case.
18806 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
18808 * disk/raid.c (insert_array): Select unique numbers for named arrays
18809 as well, for use as keys in the disk cache.
18811 2010-08-01 Robert Millan <rmh@gnu.org>
18813 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
18814 kFreeBSD device name, except on ZFS where the filesystem label is
18816 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
18817 `/boot/zfs/zpool.cache'.
18818 Set mountfrom kernel variable using ${kfreebsd_device}.
18820 2010-08-01 Robert Millan <rmh@gnu.org>
18822 Make it even harder to use uninitialized `libzfs_handle' (and
18823 make the interface a bit simpler).
18825 * include/grub/util/misc.h (grub_util_init_libzfs)
18826 (libzfs_handle): Remove.
18827 (grub_get_libzfs_handle): New prototype.
18829 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
18831 (grub_util_init_libzfs): Remove.
18832 (grub_get_libzfs_handle): New function.
18834 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
18835 grub_get_libzfs_handle() to obtain a libzfs handle instead of
18836 accessing `libzfs_handle' directly.
18838 2010-08-01 Robert Millan <rmh@gnu.org>
18840 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
18841 (grub_find_zpool_from_mount_point): New function prototypes.
18843 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
18844 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
18846 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
18847 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
18848 `static' attribute.
18850 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
18851 finding zpool from mount point into ...
18852 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
18854 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
18855 requested path is part of a ZFS pool, use
18856 grub_find_zpool_from_mount_point() to detect its filesystem name,
18857 and generate a path with `/fsname@path' syntax.
18859 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18861 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
18862 (void) rather than () so that this is a proper prototype.
18864 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
18866 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
18868 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
18870 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
18871 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
18873 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18875 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
18877 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18879 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
18881 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18883 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
18884 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
18885 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
18886 disable gfxpayload.
18887 (Shell-like scripting): Add real content.
18888 (Serial terminal): Suggest `terminal_input serial; terminal_output
18889 serial' rather than putting the two commands on separate lines,
18890 since console input will be inoperative after the first command.
18891 (menuentry): Document --class, --users, and --hotkey options.
18892 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
18893 Vladimir Serbinenko).
18895 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
18896 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18898 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
18900 2010-08-01 Robert Millan <rmh@gnu.org>
18902 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
18903 (grub_find_zpool_from_mount_point): New function prototypes.
18905 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
18906 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
18908 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
18909 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
18910 `static' attribute.
18912 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
18913 finding zpool from mount point into ...
18914 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
18916 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
18917 requested path is part of a ZFS pool, use
18918 grub_find_zpool_from_mount_point() to detect its filesystem name,
18919 and generate a path with `/fsname@path' syntax.
18921 2010-08-01 Robert Millan <rmh@gnu.org>
18923 Prevent accidental use of uninitialized libzfs_handle.
18925 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
18926 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
18927 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
18929 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18931 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
18932 util/grub.d/10_linux.in). Fixes Debian bug #591093.
18934 2010-08-01 Robert Millan <rmh@gnu.org>
18936 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
18938 2010-07-31 Robert Millan <rmh@gnu.org>
18940 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
18942 2010-07-31 Robert Millan <rmh@gnu.org>
18944 * kern/emu/misc.c: Add missing license header.
18946 2010-07-31 Robert Millan <rmh@gnu.org>
18948 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
18950 * include/grub/util/libnvpair.h: Include `<config.h>'.
18951 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
18952 declaring libnvpair prototypes ourselves.
18953 * include/grub/util/libzfs.h: Include `<config.h>'.
18954 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
18955 declaring libzfs prototypes ourselves.
18957 (libzfs_handle): Moved to ...
18958 * include/grub/util/misc.h (libzfs_handle): ... here.
18959 Include `<grub/util/libzfs.h>'.
18961 2010-07-30 Robert Millan <rmh@gnu.org>
18963 * include/grub/emu/misc.h: Add missing license header.
18965 2010-07-30 Robert Millan <rmh@gnu.org>
18967 Enable `grub-probe -t device' resolution on ZFS.
18969 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
18970 * include/grub/util/libnvpair.h: New file.
18971 * include/grub/util/libzfs.h: New file.
18973 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
18974 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
18975 `<grub/util/libnvpair.h>'.
18976 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
18978 (find_mount_point_from_dir): New static function.
18979 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
18981 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
18982 find_root_device_from_libzfs() before ressorting to find_root_device().
18984 * include/grub/util/misc.h (grub_util_init_libzfs): New function
18986 * util/misc.c: Include `<grub/util/libzfs.h>'.
18987 (grub_util_init_libzfs): New function.
18988 [HAVE_LIBZFS] (libzfs_handle): New global variable.
18989 [HAVE_LIBZFS] (fini_libzfs): New static function.
18990 (grub_util_init_libzfs): New function.
18991 * util/grub-probe.c (main): Call grub_util_init_libzfs().
18993 2010-07-30 Robert Millan <rmh@gnu.org>
18995 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
18996 (xmalloc, xrealloc, xstrdup, xasprintf): Add
18997 `warn_unused_result' attribute.
18998 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
18999 (grub_xasprintf, grub_xvasprintf): Likewise.
19000 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
19002 2010-07-29 Robert Millan <rmh@gnu.org>
19004 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
19005 (probe): Handle `PRINT_FS_LABEL'.
19006 (main): Handle `-t fs_label'.
19008 2010-07-29 Robert Millan <rmh@gnu.org>
19010 * configure.ac: Remove grub-mkisofs checks.
19012 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
19014 * util/ieee1275/grub-install.in: Don't use empty grub_device.
19015 Reported by: Lennart Sorensen.
19017 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19019 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
19020 prior to terminal_input/terminal_output separation. It's been over 1.5
19021 years and those versions weren't widely deployed.
19023 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
19025 * disk/raid.c (insert_array): Don't count named arrays when looking
19026 for unused array numbers.
19027 Reported and tested by: Michael Guntsche.
19029 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19031 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
19032 implementation of this so that grub-emu links again, with a note
19033 that this should support hotplugging in the future.
19035 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19037 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
19039 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19041 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
19043 (grub_loopback_close): Remove empty function.
19044 (grub_loopback_dev): Remove close method.
19046 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19048 Disable EFI cursor when the EFI console becomes inactive.
19050 * term/efi/console.c (grub_efi_console_init): New function.
19051 (grub_efi_console_fini): New function.
19052 (grub_console_term_output): Register init and fini methods.
19054 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19056 * tests/util/grub-shell-tester.in: Remove bashism and declare as
19059 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19061 * disk/loopback.c (grub_loopback): Replace filename with file.
19062 (delete_loopback): Handle new semantics.
19063 (grub_cmd_loopback): Likewise.
19064 (grub_loopback_iterate): Likewise.
19065 (grub_loopback_close): Likewise.
19067 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19069 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
19071 Reported by: Tito Keitel.
19073 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19075 * docs/grub.texi (Naming convention): Document new naming convention.
19077 2010-07-20 Vadim Solomin <vadic052@gmail.com>
19078 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19080 Generate device.map in something closer to the old ordering.
19082 * util/deviceiter.c (struct device): New declaration.
19083 (compare_file_names): Rename to ...
19084 (compare_devices): ... this. Sort by kernel name in preference to
19085 the stable by-id name, but keep the latter as a fallback comparison.
19086 Update header comment.
19087 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
19088 of `struct device' rather than of plain file names.
19090 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
19092 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
19095 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19097 * commands/acpi.c (setup_common_tables): Use sizeof instead of
19099 (setv1table): Likewise.
19101 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19103 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
19104 removing the homehost if present.
19105 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
19106 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
19107 removing the homehost if present.
19108 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
19110 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
19112 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
19113 parameter. Set its pointer target to 0.
19114 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
19115 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
19116 `data_offset' value from the superblock for 1.x metadata.
19117 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
19118 data on the device.
19119 (insert_array): Record the start sector of data on the device.
19120 (grub_raid_register): Pass start_sector parameters to
19121 grub_raid_list->detect and insert_array.
19122 * include/grub/raid.h (struct grub_raid_array): Add start_sector
19124 (struct grub_raid): Add start_sector parameter to `detect'.
19126 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
19127 __attribute__ ((packed)), leaving a comment.
19128 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
19129 (grub_mdraid_detect_09): ... here and ...
19130 (grub_mdraid_detect_1x): ... here.
19132 2010-07-20 Peter Henn <peter.henn@web.de>
19134 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
19135 chunk size and disk size, which are already given as sector counts
19136 as distinct from the 0.90 units. Fetch the correct device number
19137 from the role table instead of using the table index.
19139 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
19141 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
19142 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
19143 (WriteMostly1): New macro.
19144 Set array->name to NULL for metadata format 0.90. Add support for
19145 metadata 1.x. Fix some comments.
19146 * disk/raid.c (): Add support for name based RAID arrays. Fix a
19148 * util/getroot.c (grub_util_get_grub_dev): Add support for
19149 /dev/md/name style devices.
19151 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19153 * .bzrignore: Ignore 20_linux_xen.
19155 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
19157 * util/import_unicode.py: Remove unnecessary imports.
19159 2010-07-17 Aleš Nesrsta <starous@volny.cz>
19161 Hotplugging and USB hub support.
19163 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
19164 (grub_ohci): Likewise.
19165 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
19166 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
19167 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
19168 (GRUB_OHCI_CTRL_EDS): Likewise.
19169 (GRUB_OHCI_BULK_EDS): Likewise.
19170 (GRUB_OHCI_TDS): Likewise.
19171 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
19172 (grub_ohci_ed_phys2virt): New function.
19173 (grub_ohci_virt_to_phys): Likewise.
19174 (grub_ohci_td_phys2virt): Likewise.
19175 (grub_ohci_td_virt2phys): Likewise.
19176 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
19178 (grub_ohci_find_ed): New function.
19179 (grub_ohci_alloc_td): Likewise.
19180 (grub_ohci_free_td): Likewise.
19181 (grub_ohci_free_tds): Likewise.
19182 (grub_ohci_transfer): Use previously allocated memory.
19183 (grub_ohci_portstatus): Reset status changed bit.
19184 (grub_ohci_detect_dev): Supply status changed.
19185 (grub_ohci_fini_hw): Free memory.
19186 (grub_ohci_restore_hw): Reallocate memory.
19187 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
19188 Reset status change.
19189 (grub_uhci_detect_dev): Supply status_change.
19190 * bus/usb/usb.c (attach_hooks): New var.
19191 (grub_usb_device_attach): New function.
19192 (grub_usb_register_attach_hook_class): Likewise.
19193 (grub_usb_unregister_attach_hook_class): Likewise.
19194 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
19195 (grub_usb_add_hub): Reset connection changed bit.
19196 (attach_root_port): New function.
19197 (grub_usb_root_hub): Likewise.
19198 (poll_nonroot_hub): Likewise.
19199 (grub_usb_poll_devices): Likewise.
19200 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
19201 * disk/usbms.c (grub_usbms_open): Use device hooks.
19202 (grub_usbms_iterate) :Poll devices.
19203 (grub_usbms_finddevs): Split into ...
19204 (grub_usbms_attach): ... this ...
19205 (grub_usbms_attach): ... and this.
19206 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
19208 (grub_usb_interface): New fields attached and detach_hook.
19209 (grub_usb_attach_hook_class): New type.
19210 (grub_usb_attach_desc): New struct.
19211 (grub_usb_register_attach_hook_class): New function.
19212 (grub_usb_unregister_attach_hook_class): Likewise.
19213 (grub_usb_poll_devices): Likewise.
19214 (grub_usb_device_attach): Likewise.
19215 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
19216 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
19218 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19220 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
19221 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
19222 delta determination style. Works with most NetBSD partitions too.
19224 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19226 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
19227 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
19229 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19231 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
19233 2010-07-14 Anton Blanchard <anton@samba.org>
19235 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
19238 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19240 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
19242 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19244 * kern/partition.c (grub_partition_check_containment): New function to
19245 check that a partition is physically contained in a parent. Since
19246 offsets are relative (and non-negative), this reduces to checking that
19247 the partition ends before its parent.
19248 (grub_partition_map_probe): Discard out-of-range sub-partitions.
19249 (grub_partition_iterate): Likewise.
19250 * include/grub/partition.h (grub_partition_map): Slightly more detailed
19252 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
19253 partitions that start before their parent, and add debug printfs.
19255 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
19257 * Makefile.in (.SUFFIX): Spell correctly, as ...
19258 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
19259 bare module name without `.mod', e.g. `test') tried to invoke a
19262 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
19264 * README: Point to the Info manual.
19266 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
19268 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
19269 2nd superblock position from partition size.
19271 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
19273 * Makefile.in (MAINTAINER_CLEANFILES): Remove
19274 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
19275 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
19278 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19280 Restructure SCSI .id handling.
19281 Reported and tested by: Aleš Nesrsta.
19283 * disk/ata.c (grub_atapi_close): Removed. All users updated.
19284 (grub_atapi_dev): Changed .name to "ata". New field .id.
19285 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
19286 (grub_usbms_dev): New field .id.
19287 * disk/scsi.c (grub_scsi_iterate): Generate name.
19288 (grub_scsi_open): Parse name.
19289 * include/grub/scsi.h (grub_make_scsi_id): New function.
19290 (grub_scsi_dev): Change iterate and open to number instead of naming
19291 busses. All users updated.
19292 (grub_scsi): Remove name. Add .bus.
19294 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19296 * commands/help.c (grub_cmd_help): Fix a typo.
19298 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19300 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
19301 Reported and tested by: Colin Watson.
19303 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19305 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
19308 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
19310 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
19312 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
19314 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
19317 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19319 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
19320 and disk/raid6_recover.c.
19321 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
19322 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
19324 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19326 * term/gfxterm.c (repaint_schedulded): Rename to ...
19327 (repaint_scheduled): ... this. Update all callers.
19328 (repaint_was_schedulded): Rename to ...
19329 (repaint_was_scheduled): ... this. Update all callers.
19331 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19333 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
19334 which we expect to be handled by upper layers.
19336 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
19338 * bus/usb/usbhub.c: #include time.h header.
19340 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19342 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
19343 entry_name also for entries without stat blocks (e.g. ".."); fixes
19344 corruption of the first entry in a directory.
19346 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19348 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
19349 after setting gfxterm as the active terminal. GRUB_BACKGROUND
19350 doesn't work otherwise.
19352 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19354 * docs/grub.texi (Features): Update list of supported file systems.
19355 (GNU/Linux): Update for GRUB 2.
19356 (Serial terminal): Remove mention of --disable-serial, which was a
19357 GRUB Legacy configure option. Update instructions to use
19358 `terminal_input' and `terminal_output' rather than `terminal'.
19359 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
19360 configuration' and `Installing GRUB using grub-install'.
19361 (Menu entry editor): Update for GRUB 2.
19362 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
19363 Document new -a, -u, and -v options.
19364 (initrd): New section.
19365 (initrd16): New section.
19366 (linux): New section.
19367 (linux16): New section.
19368 (search): The `var' argument to `--set' is optional.
19369 (GRUB only offers a rescue shell): Go into a little more detail on
19372 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19374 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
19376 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19378 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
19379 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
19381 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19383 * util/i386/pc/grub-setup.c (setup): Rename prefix to
19384 install_prefix, in line with install_dos_part and install_bsd_part.
19385 Add new prefix variable, which is copied to install_prefix after
19386 comparing core.img in memory with the one read from disk in the
19387 no-embedding case, and use that rather than overwriting
19388 install_prefix immediately when installing to a partition.
19389 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
19392 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
19394 * configure.ac: Avoid == in test command, it's not portable.
19395 * util/grub.d/30_os-prober.in: Likewise.
19397 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
19399 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
19401 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
19403 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
19404 multiple (top-level) partmaps.
19406 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19408 * util/i386/efi/grub-install.in: Don't use empty grub_device.
19409 Reported by: Tino Keitel.
19411 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19413 Bidi and diacritics support.
19415 * Makefile.in (widthspec.bin): New target.
19416 (widthspec.h): Likewise.
19417 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
19418 * autogen.sh: Generate unidata.c.
19419 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
19420 * commands/ls.c (grub_ls_list_devices): Likewise.
19421 (grub_ls_list_files): Likewise.
19422 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
19423 (grub_mini_cmd_lsmod): Likewise.
19424 * commands/read.c: Likewise.
19425 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
19426 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
19427 * lib/arg.c (grub_arg_show_help): Likewise.
19428 * lib/crypto.c (grub_password_get): Likewise.
19429 * normal/auth.c (grub_username_get): Likewise.
19430 * normal/misc.c (grub_normal_print_device_info): Likewise.
19431 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
19432 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
19433 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
19434 (normal/charset.c_DEPENDENCIES): New variable.
19435 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
19436 (pkglib_MODULES): Remove charset.mod.
19437 (charset_mod_SOURCES): Removed.
19438 (charset_mod_CFLAGS): Likewise.
19439 (charset_mod_LDFLAGS): Likewise.
19440 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
19441 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
19443 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19444 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19445 (kernel_img_HEADERS): Add terminfo.h.
19446 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
19447 Fill ->font. Reverse ascii bitmaps.
19448 (grub_font_get_xheight): New function.
19449 * font/font.c (grub_font_get_string_width): Moved from here ...
19450 * gfxmenu/font.c (grub_font_get_string_width): ... here.
19451 * font/font.c (grub_font_draw_string): Moved from here ...
19452 * gfxmenu/font.c (grub_font_draw_string): ... here.
19453 * font/font.c (grub_font_dup_glyph): New function.
19454 (grub_font_blit_glyph): Likewise.
19455 (grub_font_blit_glyph_mirror): Likewise.
19456 (blit_comb): Likewise.
19457 (grub_font_construct_dry_run): Likewise.
19458 (grub_font_get_constructed_device_width): Likewise.
19459 (grub_font_construct_glyph): Likewise.
19460 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
19461 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
19462 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
19463 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
19464 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
19465 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
19466 (grub_font_get_xheight): New proto.
19467 (grub_font_get_constructed_device_width): Likewise.
19468 (grub_font_construct_glyph): Likewise.
19469 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
19470 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
19471 * include/grub/font.h (grub_font_draw_string): Moved from here ...
19472 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
19473 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
19474 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
19475 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
19476 (grub_console_getcharwidth): Likewise.
19477 * include/grub/misc.h (grub_xputs): New proto.
19478 (grub_puts): Inlined.
19479 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
19480 (grub_normal_get_line_counter): Removed.
19481 (grub_install_newline_hook): Likewise.
19482 (grub_normal_get_char_counter): New proto.
19483 (grub_normal_reset_more): Likewise.
19484 (grub_xputs_normal): Likewise.
19485 * include/grub/powerpc/ieee1275/console.h: Removed.
19486 * include/grub/sparc64/ieee1275/console.h: Likewise.
19487 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
19488 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
19489 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
19490 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
19491 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
19492 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
19493 (grub_term_input): Pass reference to self. All users updated.
19494 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
19495 Pass reference to self. New fields normal_color, highlight_color and
19496 data. All users updated.
19497 (grub_putchar): Removed.
19498 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
19499 (grub_unicode_estimate_width): New function.
19500 (grub_term_getcharwidth): Add defaults.
19501 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
19502 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
19503 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
19504 (grub_cls): Remove EXPORT_FUNC.
19505 (grub_setcolorstate): Inline.
19506 (grub_newline_hook): Removed.
19507 * include/grub/terminfo.h: Rewritten. All users updated.
19508 * include/grub/unicode.h: New file.
19509 * include/grub/video.h (grub_video_signed_rect): New type.
19510 * kern/emu/console.c (grub_console_highlight_color): Removed.
19511 (grub_console_normal_color): Likewise.
19512 (grub_console_standard_color): Made static.
19513 (grub_ncurses_putchar): Remove mapping.
19514 (grub_ncurses_getcharwidth): Removed.
19515 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
19516 (grub_ncurses_setcolor): Removed.
19517 (grub_ncurses_getcolor): Likewise.
19518 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
19519 (grub_console_putchar): ... this.
19520 (grub_console_putchar): Handle argument difference.
19521 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
19522 console_init_early and console_init_lately.
19523 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
19524 * kern/misc.c (grub_puts): Removed.
19525 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
19526 (grub_vsnprintf_real): Remove str = NULL support.
19527 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
19528 * normal/charset.c (grub_utf8_to_ucs4): ... here.
19529 * kern/term.c (grub_putcode): Renamed to ...
19530 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
19531 (grub_putchar): Removed.
19532 (grub_xputs_dumb): New function.
19533 (grub_xputs): New variable.
19534 * lib/charset.c: Move from here ...
19535 * normal/charset.c: ... to here.
19536 (grub_ucs4_to_utf8): New function.
19537 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
19538 (join_types): New variable.
19539 (unpack_join): New function.
19540 (bidi_types): New variable.
19541 (unpack_bidi): New function.
19542 (get_bidi_type): Likewise.
19543 (get_join_type): Likewise.
19544 (is_mirrored): Likewise.
19545 (grub_unicode_get_comb_type): Likewise.
19546 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
19547 (is_type_after): Likewise.
19548 (grub_unicode_aglomerate_comb): Likewise.
19549 (bidi_line_wrap): Likewise.
19550 (grub_bidi_line_logical_to_visual): Likewise.
19551 (grub_bidi_logical_to_visual): Likewise.
19552 (grub_unicode_mirror_code): Likewise.
19553 (grub_unicode_shape_code): Likewise.
19554 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
19555 Don't use grub_putchar.
19556 * normal/main.c (grub_normal_init_page): Use grub_putcode.
19557 (grub_normal_reader_init): Likewise.
19558 (grub_xputs_saved): New variable.
19559 (GRUB_MOD_INIT): Set grub_xputs.
19560 (GRUB_MOD_FINI): Restore grub_xputs.
19561 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
19562 (menu_init): Avoid printing gfxmenu error.
19563 (show_menu): Use grub_normal_get_char_counter.
19564 * normal/menu_entry.c (update_screen): Fix out-of-array.
19565 (complete): Avoid NULL dereferencing.
19566 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
19567 * normal/menu_text.c (print_spaces): Removed.
19568 (grub_print_ucs4): Likewise.
19569 (grub_print_message_indented): Use grub_print_ucs4.
19570 (print_message): Use grub_putcode.
19571 (print_entry): Hanlde diacritics.
19572 * normal/term.c (term_state): New type.
19573 (grub_more_lines): Removed.
19574 (term_states): New variable.
19575 (grub_normal_line_counter): Renamed to ..
19576 (grub_normal_char_counter): ...this. All users updated.
19577 (grub_normal_get_line_counter): Renamed to ...
19578 (grub_normal_get_char_counter): ... this.
19579 (grub_normal_reset_more): New function.
19580 (process_newline): Removed.
19581 (print_more): New function.
19582 (grub_install_newline_hook): Removed.
19583 (map_code): New function.
19584 (grub_puts_terminal): Use grub_print_ucs4.
19585 (putglyph): New function.
19586 (putcode_real): Likewise.
19587 (grub_putcode): Use putcode_real.
19588 (get_maxwidth): New function.
19589 (get_startwidth): Likewise.
19590 (print_ucs4_terminal): Likewise.
19591 (find_term_state): Likewise.
19592 (put_glyphs_terminal): Likewise.
19593 (print_backlog): Likewise.
19594 (print_ucs4_real): Likewise.
19595 (grub_print_ucs4): Likewise.
19596 (grub_xputs_normal): Likewise.
19597 * term/efi/console.c (grub_console_putchar): Output diacritics.
19598 (grub_console_getcharwidth): Removed.
19599 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
19600 * term/gfxterm.c (clear_char): Free chars.
19601 (scroll_up): Avoid leaking memory.
19602 (grub_gfxterm_putchar): Support diacritics.
19603 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
19604 * term/i386/pc/console.c (grub_console_term_output): Declare as
19605 GRUB_TERM_CODE_TYPE_VGA.
19606 * term/i386/pc/vga.c (grub_vga_term): Declare as
19607 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
19608 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
19609 GRUB_TERM_CODE_TYPE_VGA.
19610 * term/i386/vga_common.c (map_char): Removed.
19611 (grub_console_putchar): Likewise.
19612 (grub_console_getcharwidth): Likewise.
19613 * term/ieee1275/ofconsole.c: Simplify using terminfo.
19614 (colors): Reordered to match terminfo.
19615 (grub_ofconsole_normal_color): Removed.
19616 (grub_ofconsole_writeesc): Likewise.
19617 (grub_ofconsole_highlight_color): Likewise.
19618 (grub_ofconsole_getcharwidth): Likewise.
19619 (grub_ofconsole_setcolorstate): Likewise.
19620 (grub_ofconsole_setcolor): Likewise.
19621 (grub_ofconsole_getcolor): Likewise.
19622 (grub_ofconsole_readkey): Renamed to ...
19623 (readkey): ... this. Remove escape sequence handling. Return -1 on no
19625 (grub_ofconsole_checkkey): Removed.
19626 (grub_ofconsole_getkey): Likewise.
19627 (grub_ofconsole_getxy): Likewise.
19628 (grub_ofconsole_gotoxy): Likewise.
19629 (grub_ofconsole_cls): Likewise.
19630 (grub_ofconsole_refresh): Likewise.
19631 (grub_ofconsole_terminfo_input): New struct.
19632 (grub_ofconsole_terminfo_output): Likewise.
19633 (grub_ofconsole_term_input): Use terminfo.
19634 (grub_ofconsole_term_output): Likewise.
19635 (grub_console_init): Split into ...
19636 (grub_console_init_early): ...this and ...
19637 (grub_console_init_lately): ...this. Use terminfo.
19638 (grub_ofconsole_putchar): Renamed to ...
19639 (put): ... this. Remove mapping.
19640 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
19641 * term/serial.c: Simplify using terminfo.
19644 (keep_track): Likewise.
19645 (registered): Likewise.
19646 (input_buf): Likewise.
19647 (npending): Likewise.
19648 (serial_translate_key_sequence): Likewise.
19649 (fill_input_buf): Likewise.
19650 (grub_serial_checkkey): Likewise.
19651 (grub_serial_getkey): Likewise.
19652 (grub_serial_getxy): Likewise.
19653 (grub_serial_gotoxy): Likewise.
19654 (grub_serial_putchar): Likewise.
19655 (grub_serial_cls): Likewise.
19656 (grub_serial_setcolorstate): Likewise.
19657 (grub_serial_setcursor): Likewise.
19658 (serial_hw_init): Use serial_hw_fetch.
19659 (grub_serial_terminfo_input): New variable.
19660 (grub_serial_terminfo_output): Likewise.
19661 (grub_serial_term_input): Use terminfo.
19662 (grub_serial_term_output): Likewise.
19663 * term/terminfo.c (putstr): Use put.
19664 (grub_terminfo_all_free): New function
19665 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
19666 (grub_terminfo_output_register): New function.
19667 (grub_terminfo_output_unregister): Likewise.
19668 (grub_terminfo_getxy): Likewise.
19669 (grub_terminfo_readkey): Likewise.
19670 (grub_terminfo_checkkey): Likewise.
19671 (grub_terminfo_getkey): Likewise.
19672 (grub_terminfo_input_init): Likewise.
19673 (print_terminfo): Likewise.
19674 (grub_cmd_terminfo): Handle encoding.
19675 (grub_terminfo_gotoxy): Track position.
19676 (grub_terminfo_cls): Likewise.
19677 (grub_terminfo_putchar): Likewise.
19678 (grub_terminfo_setcolorstate): Handle colors
19679 (grub_terminfo_cursor_on): This ...
19680 (grub_terminfo_cursor_off): ... and this merged into ...
19681 (grub_terminfo_setcursor): ... this.
19682 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
19683 * unicode/ArabicShaping.txt: New file (imported from Unicode).
19684 * unicode/BidiMirroring.txt: Likewise.
19685 * unicode/UnicodeData.txt: Likewise.
19686 * unicode/COPYING: Likewise.
19687 * util/grub-editenv.c (grub_putchar): Removed.
19688 (grub_xputs_real): New function.
19689 (grub_xputs): New variable.
19690 * util/grub-fstest.c (grub_putchar): Removed.
19691 (grub_xputs_real): New function.
19692 (grub_xputs): New variable.
19693 * util/grub-mkdevicemap.c (grub_putchar): Removed.
19694 (grub_xputs_real): New function.
19695 (grub_xputs): New variable.
19696 * util/grub-probe.c (grub_putchar): Removed.
19697 (grub_xputs_real): New function.
19698 (grub_xputs): New variable.
19699 * util/grub-script-check.c (grub_putchar): Removed.
19700 (grub_xputs_real): New function.
19701 (grub_xputs): New variable.
19702 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
19703 (grub_xputs_real): New function.
19704 (grub_xputs): New variable.
19705 * util/import_unicode.py: New file.
19706 * util/grub-mkfont.c (ft_errmsgs): New array.
19707 (grub_glyph_info): Make bitmap a pointer.
19708 (file_formats): New type WIDTH_SPEC.
19709 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
19710 (options): Add width-spec.
19712 (add_char): Renamed to ...
19713 (add_glyph): ... this.
19714 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
19715 (glyph_replace): New type.
19716 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
19717 (add_char): New function.
19718 (add_subst): Likewise.
19719 (process_cursive): Likewise.
19720 (add_font): Handle GSUB.
19721 (write_font_width_spec): New function.
19722 (main): Sort glyphs.
19723 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
19724 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
19725 * kern/term.c (grub_cls): Moved from here...
19726 * normal/term.c (grub_cls): ... here.
19728 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19730 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
19731 suitable for using within the format argument of printf when
19732 converting grub_size_t.
19733 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
19734 "x" to convert grub_size_t arguments.
19736 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19738 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
19740 (list_get_minimal_size): Take selection box into account.
19742 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19744 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
19747 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19749 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
19750 devices when iterating over /dev/disk/by-id; they will be handled
19751 later if appropriate, which they aren't always (e.g. LVM).
19753 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19755 * include/grub/misc.h (grub_reboot): Declare as noreturn.
19756 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
19758 (grub_halt): Likewise.
19759 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
19761 (grub_halt): Don't return, even if all of shut-down, power-off, and
19764 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19766 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
19767 arguments, not three.
19769 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19771 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
19772 * util/grub.d/10_linux.in: Use it to check for LVM, so that
19773 LVM-on-RAID is handled correctly.
19775 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19777 * docs/grub.texi (Changes from GRUB Legacy): New section.
19778 (Future): Fix typo.
19780 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19782 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
19783 grub.d/README accidentally ends up executable for one reason or
19784 another. Ignore it.
19786 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19788 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
19789 (gpt_partition_map_iterate): Support non-512B sectors.
19791 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19793 * kern/efi/init.c (grub_efi_init): Disable watchdog.
19794 Tested by: Seth Goldberg.
19796 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19798 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
19799 Properly align mbi.
19800 Reported by: Seth Goldberg.
19802 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
19804 * util/grub-mkrescue.in: Avoid module duplication.
19806 2010-07-01 Sean Finney <seanius@seanius.net>
19808 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
19810 2010-07-01 Sean Finney <seanius@seanius.net>
19812 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
19814 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
19816 * disk/lvm.c (grub_lvm_checkvalue): New function.
19817 (grub_lvm_check_flag): Likewise.
19819 2010-07-01 Robert Millan <rmh@gnu.org>
19821 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
19822 Support 'p' as partition separator on kernel of FreeBSD (used
19824 (grub_util_biosdisk_get_grub_dev): Likewise.
19826 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
19828 Yeeloong firmware port.
19830 * boot/mips/yeeloong/fwstart.S: New file.
19831 * bus/cs5536.c (gpiodump): New const.
19832 (set_io_space): New function.
19833 (set_iod): Likewise.
19834 (set_p2d): Likewise.
19835 (grub_cs5536_init_geode): Likewise.
19836 * commands/mips/yeeloong/lsspd.c: New file.
19837 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
19838 (serial_mod_SOURCES): New variable.
19839 (serial_mod_CFLAGS): Likewise.
19840 (serial_mod_LDFLAGS): Likewise.
19841 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
19842 term/terminfo.c and term/tparm.c.
19843 (pkglib_IMAGES): Add fwstart.img.
19844 (fwstart_img_SOURCES): New variable.
19845 (fwstart_img_CFLAGS): Likewise.
19846 (fwstart_img_ASFLAGS): Likewise.
19847 (fwstart_img_LDFLAGS): Likewise.
19848 (fwstart_img_FORMAT): Likewise.
19849 (pkglib_MODULES): Add lsspd.mod.
19850 (lsspd_mod_SOURCES): New variable.
19851 (lsspd_mod_CFLAGS): Likewise.
19852 (lsspd_mod_LDFLAGS): Likewise.
19853 (pkglib_MODULES): Add halt.mod.
19854 (halt_mod_SOURCES): New variable.
19855 (halt_mod_CFLAGS): Likewise.
19856 (halt_mod_LDFLAGS): Likewise.
19857 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
19858 (serial_mod_SOURCES): Removed.
19859 (serial_mod_CFLAGS): Likewise.
19860 (serial_mod_LDFLAGS): Likewise.
19861 * disk/ata.c (check_device): New function.
19862 (grub_ata_device_initialize): Use check_device.
19863 (grub_ata_iterate): Recheck devices.
19864 (grub_ata_open): Likewise.
19865 (grub_atapi_iterate): Likewise.
19866 (grub_atapi_open): Likewise.
19867 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
19868 (GRUB_ATA_CH1_PORT1): Likewise.
19869 (GRUB_ATA_CH0_PORT2): Likewise.
19870 (GRUB_ATA_CH1_PORT2): Likewise.
19871 * include/grub/mips/loongson.h: New file.
19872 * include/grub/mips/yeeloong/ec.h: Likewise.
19873 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
19874 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
19875 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
19876 * include/grub/misc.h (grub_halt): Declare as noreturn.
19877 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
19878 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
19879 (UART_ENABLE_FIFO_TRIGGER1): New definition.
19880 (UART_ENABLE_DTRRTS): Likewise.
19881 (UART_ENABLE_MODEM): Removed.
19882 (UART_ENABLE_OUT2): New const.
19883 * include/grub/term.h (grub_term_register_input_active): New function.
19884 (grub_term_register_output_active): Likewise.
19885 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
19887 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
19888 (init_pci): New function.
19889 (grub_machine_init): Execute platform init when firmware. Init serial.
19890 (grub_halt): Implement.
19891 (grub_exit): Likewise.
19892 (grub_reboot): Likewise.
19893 * term/serial.c (serial_hw_init): Update macros.
19894 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
19895 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
19896 (image_targets): New target mipsel-yeeloong-flash.
19897 (generate_image): Support IMAGE_YEELOONG_FLASH.
19898 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
19899 (grub_video_sm712_setup): Init card.
19900 (grub_video_sm712_set_palette): Removed.
19901 * video/sm712_init.c: New file.
19903 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
19905 * Makefile.in (install-local): Temporarily prepend $(builddir) to
19906 PATH when running help2man and then run it on the unadorned
19907 executable names, rather than passing $(builddir)/* paths to
19908 help2man. This avoids the build directory ending up in generated
19911 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
19913 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
19914 to avoid accidents when debugging with 'sh -x'.
19915 * util/grub-mkrescue.in: Likewise.
19916 * util/grub.d/00_header.in: Likewise.
19917 * util/grub.d/10_hurd.in: Likewise.
19918 * util/grub.d/10_kfreebsd.in: Likewise.
19919 * util/grub.d/10_linux.in: Likewise.
19920 * util/grub.d/10_netbsd.in: Likewise.
19921 * util/grub.d/10_windows.in: Likewise.
19922 * util/grub.d/20_linux_xen.in: Likewise.
19923 * util/grub.d/30_os-prober.in: Likewise.
19924 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
19926 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
19928 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
19929 last character in the buffer.
19930 Reported by: Vladimir Serbinenko.
19932 2010-06-29 Robert Millan <rmh@gnu.org>
19934 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
19935 (Command-line and menu entry commands): Document `badram' command.
19937 2010-06-28 Robert Millan <rmh@gnu.org>
19939 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
19940 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
19941 command using ${GRUB_BADRAM} as parameter.
19943 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19945 * docs/grub.texi (Device map): New section.
19946 (Themes): New section (stub).
19947 * Makefile.in (docs/grub.info): The info documentation now builds
19948 without errors. Make sure it stays that way.
19950 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
19952 Use normal parser for menu entries.
19953 Reported by: Thomas Frauendorfer
19955 * include/grub/parser.h (grub_parser_execute): Don't export.
19956 * normal/menu.c (grub_menu_execute_entry_real): New function.
19957 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
19959 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19961 * docs/grub.texi (Embedded configuration): New section (replacing
19962 old "Preset Menu" stub).
19963 (Images): New section.
19964 (configfile): Note that any menu entries defined in `file' are shown
19967 2010-06-28 Josh Triplett <josh@joshtriplett.org>
19969 * mmap/i386/pc/mmap_helper.S: Set CF on return.
19971 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19973 * util/grub-install.in: Add --debug-image= option.
19975 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19977 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
19980 * util/deviceiter.c (check_device): Rename to ...
19981 (check_device_readable_unique): ... this. Update all callers.
19982 Maintain and check a list of which devices (by canonicalized name)
19983 have already been seen.
19984 (clear_seen_devices): New function.
19985 (compare_file_names) [__linux__]: New function.
19986 (grub_util_iterate_devices): Clear the list of seen devices on exit
19987 and (just in case) on entry.
19988 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
19989 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
19990 seen-devices list, superseded by general code in check_device.
19992 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19994 * commands/cat.c (options): New variable.
19995 (grub_cmd_cat): Parse options. If the --dos option is given, print
19996 DOS-style "\r\n" line endings as simple newlines (Debian bug
19998 (GRUB_MOD_INIT): Use extcmd.
19999 (GRUB_MOD_FINI): Likewise.
20000 * docs/grub.texi (cat): Document --dos.
20002 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
20004 XEN with Linux grub-mkconfig support.
20006 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
20007 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
20008 GRUB_CMDLINE_XEN_DEFAULT.
20009 * util/grub.d/20_linux_xen.in: New file.
20011 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
20013 Initialise VGA video on qemu ourselves.
20015 * boot/i386/qemu/boot.S: Don't call 0xc000.
20016 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
20017 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
20018 (kernel_img_HEADERS): Add pci.h.
20019 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
20020 * configure.ac: Force unifont on qemu and yeeloong.
20021 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
20022 (grub_vga_palette_write): Use correct register.
20023 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
20024 Call grub_qemu_init_cirrus.
20025 * kern/i386/qemu/init.c: New file.
20026 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
20028 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
20030 2010-06-26 Pavel Roskin <proski@gnu.org>
20032 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
20035 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
20037 * docs/grub.texi (Simple configuration): Explain that
20038 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
20039 set to `true' to disable their respective recovery entries, not
20042 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
20044 Make the `source' command slightly faster.
20046 * normal/main.c (grub_normal_execute): Don't re-read list files when
20049 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
20051 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
20052 field position and mask size to red fields from mode_info, not
20054 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
20055 Remove redundant tag->common.framebuffer_type assignment.
20056 Reported by: Seth Goldberg.
20058 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
20060 Sync up other versions of the Linux loader with Robert Millan's
20061 change of 2010-01-09, "Make loader output a bit more user-friendly".
20063 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
20065 (grub_cmd_linux): Likewise.
20066 (grub_cmd_initrd): Likewise.
20067 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
20068 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
20070 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
20072 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
20073 larger than MEMORY_MAP_SIZE.
20075 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
20077 Fix parallel build.
20079 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
20081 * script/parser.y: #include grub_script.tab.h header.
20083 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20085 Support >3GiB and <16MiB RAM in i386-qemu.
20087 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
20088 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
20089 (grub_lower_mem): Removed.
20090 (grub_upper_mem): Likewise.
20091 (mem_size): Made static.
20092 (above_4g): New variable.
20093 (grub_machine_mmap_init): Detect small mem_size and above_4g.
20094 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
20097 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20099 Cirrus 5446 and Bochs video cards support.
20101 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
20103 (video_cirrus_mod_SOURCES): New variable.
20104 (video_cirrus_mod_CFLAGS): Likewise.
20105 (video_cirrus_mod_LDFLAGS): Likewise.
20106 (video_bochs_mod_SOURCES): Likewise.
20107 (video_bochs_mod_CFLAGS): Likewise.
20108 (video_bochs_mod_LDFLAGS): Likewise.
20109 * include/grub/vga.h: New file.
20110 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
20111 (grub_video_fb_set_page_t): New type.
20112 (grub_video_fb_setup): New prototype.
20113 (grub_video_fb_swap_buffers): Likewise.
20114 (grub_video_fb_get_info_and_fini): Likewise.
20115 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
20116 (CRTC_DATA_PORT): Likewise.
20117 (CRTC_CURSOR): Likewise.
20118 (CRTC_CURSOR_ADDR_HIGH): Likewise.
20119 (CRTC_CURSOR_ADDR_LOW): Likewise.
20120 (CRTC_CURSOR_DISABLE): Likewise.
20121 (update_cursor): Use grub_vga_cr_write.
20122 (grub_vga_text_setcursor): Likewise.
20123 * video/bochs.c: New file.
20124 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
20125 (palette): Likewise.
20126 (palette_size): Likewise.
20127 (framebuffer): New variable.
20128 (grub_video_fb_init): Use 'framebuffer'.
20129 (grub_video_fb_fini): Likewise.
20130 (grub_video_fb_get_info): Likewise.
20131 (grub_video_fb_get_palette): Likewise.
20132 (grub_video_fb_set_palette): Likewise.
20133 (grub_video_fb_set_viewport): Likewise.
20134 (grub_video_fb_get_viewport): Likewise.
20135 (grub_video_fb_map_color): Likewise.
20136 (grub_video_fb_map_rgb): Likewise.
20137 (grub_video_fb_map_rgba): Likewise.
20138 (grub_video_fb_unmap_color): Likewise.
20139 (grub_video_fb_unmap_color_int): Likewise.
20140 (grub_video_fb_fill_rect): Likewise.
20141 (grub_video_fb_blit_bitmap): Likewise.
20142 (grub_video_fb_blit_render_target): Likewise.
20143 (grub_video_fb_scroll): Likewise.
20144 (grub_video_fb_create_render_target): Likewise.
20145 (grub_video_fb_doublebuf_blit_init): Likewise.
20146 (grub_video_fb_set_active_render_target): Handle doublebuffering.
20147 (doublebuf_pageflipping_update_screen): New function.
20148 (doublebuf_pageflipping_init): Likewise.
20149 (grub_video_fb_setup): Likewise.
20150 (grub_video_fb_swap_buffers): Likewise.
20151 (grub_video_fb_get_info_and_fini): Likewise.
20152 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
20154 (doublebuf_pageflipping_commit): Restructured into ...
20155 (doublebuf_pageflipping_set_page): ... this.
20156 (doublebuf_pageflipping_update_screen): Removed.
20157 (doublebuf_pageflipping_init): Likewise.
20158 (double_buffering_init): Likewise.
20159 (grub_video_vbe_setup): Use grub_video_fb_setup.
20160 (grub_video_vbe_swap_buffers): Removed.
20161 (grub_video_vbe_set_active_render_target): Likewise.
20162 (grub_video_vbe_get_active_render_target): Likewise.
20163 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
20164 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
20165 grub_video_fb_set_active_render_target and
20166 grub_video_fb_get_active_render_target.
20167 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
20168 (SEQUENCER_DATA_PORT): Likewise.
20169 (MAP_MASK_REGISTER): Likewise.
20170 (CRTC_ADDR_PORT): Likewise.
20171 (CRTC_DATA_PORT): Likewise.
20172 (START_ADDR_HIGH_REGISTER): Likewise.
20173 (START_ADDR_LOW_REGISTER): Likewise.
20174 (GRAPHICS_ADDR_PORT): Likewise.
20175 (GRAPHICS_DATA_PORT): Likewise.
20176 (READ_MAP_REGISTER): Likewise.
20177 (INPUT_STATUS1_REGISTER): Likewise.
20178 (INPUT_STATUS1_VERTR_BIT): Likewise.
20179 (get_map_mask): Use grub_vga_sr_read.
20180 (set_map_mask): Use grub_vga_sr_write.
20181 (set_read_map): Use grub_vga_gr_write.
20182 (set_start_address): Use grub_vga_cr_write.
20183 * video/sm712.c (framebuffer): Remove leftover fields.
20185 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
20187 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
20188 setting GRUB_VIDEO_BACKEND. Make it available as a user override
20189 instead. Replace the gfxterm backend check with a check that
20190 ${GRUB_PREFIX}/video.lst is non-empty.
20191 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
20193 (load_video): New generated function. Call it before loading
20194 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
20195 * util/grub.d/10_linux.in (linux_entry): Call load_video.
20196 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
20197 * docs/grub.texi (Simple configuration): Document
20198 GRUB_VIDEO_BACKEND.
20200 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20202 Use video functions in linux and xnu loaders.
20204 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
20205 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
20206 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
20207 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
20208 loader/i386/pc/linux.c.
20209 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
20210 (find_line_len): Removed.
20211 (find_framebuf): Likewise.
20212 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
20213 * loader/i386/efi/xnu.c: Removed.
20214 * loader/i386/pc/xnu.c: Moved from here...
20215 * loader/i386/xnu.c: ...here.
20217 Enable priorities in video drivers.
20219 * include/grub/video.h (grub_video_adapter_prio_t): New type.
20220 (grub_video_adapter): New field prio.
20221 (grub_video_register): Respect prio when inserting.
20222 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
20223 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
20224 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
20225 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
20226 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
20227 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
20228 * video/sm712.c (grub_video_sm712_adapter): Likewise.
20232 * include/grub/video.h (grub_video_driver_id_t): New value
20233 GRUB_VIDEO_DRIVER_SDL.
20234 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
20236 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20238 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
20239 argument to printf.
20240 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20242 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20244 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
20245 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20247 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20249 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
20250 directly, and recommend grub-install instead.
20251 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20253 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20255 Fix i386-pc prefix handling with nested partitions (Debian bug
20256 #585068). Note that the case where the core image is booted using
20257 multiboot and relocated from its original location still requires
20260 * kern/i386/pc/init.c (make_install_device): If the prefix starts
20261 with "(,", fill the boot drive in between those two characters, but
20262 expect that a full partition specification including partition map
20264 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
20265 specified, write a prefix without the drive name but including a
20266 full partition specification.
20268 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
20270 * util/grub-mkconfig.in: Ignore non-option arguments, for
20271 compatibility with older versions (before 2010-06-12) which did the
20272 same. In particular, this makes it easier to ship an update-grub
20273 wrapper which is compatible with that used with GRUB Legacy (Debian
20276 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20278 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
20279 for manual page generation.
20281 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20283 * po/POTFILES: Remove leftover commands/handler.c.
20285 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
20287 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
20288 left this script non-functional.
20290 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
20292 * docs/man/grub-emu.h2m: New file.
20294 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
20296 * docs/grub.texi (Commands): Document reduced command set in rescue
20298 (cpuid): New section.
20300 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
20302 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
20303 new partition naming style.
20304 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
20306 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
20308 Add "-o grub.iso" like cmdline options support.
20310 * util/grub-install.in: Improve cmdline option parsing.
20311 * util/grub-mkconfig.in: Likewise.
20312 * util/grub-mkrescue.in: Likewise.
20313 * util/grub-reboot.in: Likewise.
20314 * util/grub-set-default.in: Likewise.
20315 * util/i386/efi/grub-install.in: Likewise.
20316 * util/ieee1275/grub-install.in: Likewise.
20317 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20319 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20321 * .bzrignore: Ignore 41_custom.
20323 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
20325 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
20327 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20329 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
20330 prototype declarations.
20332 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
20333 generating fs, partmap, and video lists.
20334 * include/grub/fs.h (grub_fs_register): Omit prototype if
20335 GRUB_LST_GENERATOR is defined.
20336 * include/grub/partition.h (grub_partition_map_register): Likewise.
20337 * include/grub/video.h (grub_video_register): Likewise.
20339 2010-06-12 Javier Martín <lordhabbit@gmail.com>
20341 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
20343 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
20345 * util/grub-mkrescue.in: Support --xorriso argument.
20347 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20349 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
20350 Suggested by: Thomas Schmitt.
20352 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20354 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
20355 Suggested by: Thomas Schmitt.
20357 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20359 custom.cfg support.
20361 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
20362 * util/grub.d/41_custom.in: New file.
20364 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20366 * util/grub-mkrescue.in (make_image): Remove sh module, which has
20367 been merged back into normal.
20369 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
20371 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
20372 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
20374 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
20376 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
20377 when generating manual pages.
20378 * docs/man/grub-bin2h.h2m: New file.
20379 * docs/man/grub-editenv.h2m: New file.
20380 * docs/man/grub-fstest.h2m: New file.
20381 * docs/man/grub-install.h2m: New file.
20382 * docs/man/grub-macho2img.h2m: New file.
20383 * docs/man/grub-mkconfig.h2m: New file.
20384 * docs/man/grub-mkdevicemap.h2m: New file.
20385 * docs/man/grub-mkfont.h2m: New file.
20386 * docs/man/grub-mkimage.h2m: New file.
20387 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
20388 * docs/man/grub-mkrelpath.h2m: New file.
20389 * docs/man/grub-mkrescue.h2m: New file.
20390 * docs/man/grub-ofpathname.h2m: New file.
20391 * docs/man/grub-pe2elf.h2m: New file.
20392 * docs/man/grub-probe.h2m: New file.
20393 * docs/man/grub-reboot.h2m: New file.
20394 * docs/man/grub-script-check.h2m: New file.
20395 * docs/man/grub-set-default.h2m: New file.
20396 * docs/man/grub-setup.h2m: New file.
20398 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
20400 Use FOR_* macros instead of *_iterate whenever possible.
20402 * commands/handler.c: Removed.
20403 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
20404 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
20405 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20406 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
20407 (grub_probe_SOURCES): Remove kern/parser.c.
20408 (util/grub-script-check.c_DEPENDENCIES): Removed.
20409 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
20410 and grub_script_check_init.c.
20411 (grub_script_check_init.lst): Removed.
20412 (grub_script_check_init.h): Likewise.
20413 (grub_script_check_init.c): Likewise.
20414 (pkglib_MODULES): Remove handler.mod and sh.mod.
20415 (handler_mod_SOURCES): Removed.
20416 (handler_mod_CFLAGS): Likewise.
20417 (handler_mod_LDFLAGS): Likewise.
20418 (normal_mod_SOURCES): Remove normal/handler.c.
20419 Add script/main.c, script/script.c, script/execute.c,
20420 script/function.c, script/lexer.c, grub_script.tab.c
20421 and grub_script.yy.c.
20422 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20423 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20424 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
20425 (grub_setup_SOURCES): Remove kern/parser.c.
20426 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20427 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
20428 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
20429 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20430 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20431 (grub_setup_SOURCES): Remove kern/parser.c.
20432 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20433 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
20434 * include/grub/command.h (grub_command_iterate): Removed.
20435 (FOR_COMMANDS): New macro.
20436 * include/grub/dl.h (grub_dl): New member next.
20437 (grub_dl_iterate): Removed.
20438 (grub_dl_head): New variable declaration.
20439 (FOR_DL_MODULES): New macro.
20440 * include/grub/fs.h: Include list.h.
20441 (grub_fs): Make next first element.
20442 (grub_fs_list): New variable declaration.
20443 (grub_fs_register): Make inline.
20444 (grub_fs_unregister): Likewise.
20445 (grub_fs_iterate): Removed.
20446 (FOR_FILESYSTEMS): New macro.
20447 * include/grub/handler.h: Removed.
20448 * include/grub/list.h (grub_list_hook_t): Removed.
20449 (grub_list_test_t): Likewise.
20450 (grub_list_pop): Likewise.
20451 (grub_list_iterate): Likewise.
20452 (grub_list_insert): Likewise.
20453 (FOR_LIST_ELEMENTS): New macro.
20454 * include/grub/parser.h (grub_parser_class): Removed.
20455 (grub_parser_register): Likewise.
20456 (grub_parser_unregister): Likewise.
20457 (grub_parser_get_current): Likewise.
20458 (grub_parser_set_current): Likewise.
20459 (grub_register_rescue_parser): Likewise.
20460 (grub_rescue_parse_line): New function.
20461 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
20462 * include/grub/script_sh.h (grub_script_function_list): New variable
20464 (FOR_SCRIPT_FUNCTIONS): New macro.
20465 (grub_script_function_iterate): Removed.
20466 (grub_normal_parse_line): New prototype.
20467 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
20468 (FOR_DISABLED_TERM_INPUTS): Likewise.
20469 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
20470 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
20471 * include/grub/video.h (grub_video_adapter): Move 'next' to first
20473 (grub_video_register): Inline.
20474 (grub_video_unregister): Likewise.
20475 (grub_video_adapter_list): New variable declaration.
20476 (grub_video_iterate): Removed.
20477 (FOR_VIDEO_ADAPTERS): New macro.
20478 * kern/dl.c (grub_dl_list): Removed. All users updated.
20479 (grub_dl_iterate): Removed.
20480 * kern/fs.c (grub_fs_list): Make global.
20481 (grub_fs_register): Removed.
20482 (grub_fs_unregister): Likewise.
20483 (grub_fs_iterate): Likewise.
20484 * kern/handler.c: Removed.
20485 * kern/list.c (grub_list_pop): Removed.
20486 (grub_list_iterate): Likewise.
20487 (grub_list_insert): Likewise.
20488 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
20489 (grub_prio_list_insert): Don't use grub_list_insert.
20490 * kern/main.c (grub_register_rescue_parser): Don't call
20491 grub_register_rescue_parser.
20492 * kern/parser.c (grub_parser_class): Removed.
20493 (grub_parser_execute): Use grub_rescue_parse_line.
20494 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
20495 (grub_rescue_parser): Removed.
20496 (grub_register_rescue_parser): Likewise.
20497 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
20498 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
20499 (grub_auth_check_authentication): Likewise.
20500 * normal/completion.c (iterate_command): Removed.
20501 (grub_normal_do_completion): Use FOR_COMMANDS.
20502 * normal/handler.c: Removed.
20503 * normal/main.c (read_config_file): Remove parser changing.
20504 (grub_normal_execute): Don't call read_handler_list.
20505 (grub_normal_read_line_real): Statically allocate prompt.
20506 (grub_cmdline_run): Use grub_normal_parse_line.
20507 (GRUB_MOD_FINI): Don't call free_handler_list.
20508 * normal/menu_entry.c (run): Likewise.
20509 * script/function.c (grub_script_function_list): Make global.
20510 (grub_script_function_iterate): Removed.
20511 * script/main.c (grub_normal_parse_line): Make global.
20512 (grub_sh_parser): Removed.
20513 (GRUB_MOD_INIT): Likewise.
20514 (GRUB_MOD_FINI): Likewise.
20515 * tests/lib/functional_test.c (grub_functional_test): Use
20517 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
20518 (grub_test_run): Use FOR_LIST_ELEMENTS.
20519 * tests/lib/unit_test.c (main): Likewise.
20520 * util/deviceiter.c (grub_util_iterate_devices): Don't use
20522 * util/grub-fstest.c (grub_term_input_class): Removed.
20523 (grub_term_output_class): Likewise.
20524 * util/grub-probe.c: Likewise.
20525 * util/i386/pc/grub-setup.c: Likewise.
20526 * util/sparc64/ieee1275/grub-setup.c: Likewise.
20527 * util/grub-script-check.c (main): Don't call grub_init_all and
20529 * video/video.c (grub_video_adapter_list): Make global.
20530 (grub_video_register): Removed.
20531 (grub_video_unregister): Likewise.
20532 (grub_video_iterate): Likewise.
20534 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
20536 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
20537 reported by Henrique Ferreiro.
20539 2010-06-09 Robert Millan <rmh@gnu.org>
20541 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
20542 ones, when both are available.
20544 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20546 Make --version uniform and avoid hard-coded program name.
20548 * util/grub-mkimage.c (main): Use `program_name' instead of
20550 * util/i386/pc/grub-setup.c (main): Likewise.
20551 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
20552 * util/grub-install.in: Save the basename of $0 in $self, and use the
20553 latter in informational messages. Use the same format for --version
20554 as the binary programs.
20555 * util/grub-mkconfig.in: Likewise.
20556 * util/grub-mkrescue.in: Likewise.
20557 * util/grub-reboot.in: Likewise.
20558 * util/grub-set-default.in: Likewise.
20559 * util/i386/efi/grub-install.in: Likewise.
20560 * util/ieee1275/grub-install.in: Likewise.
20561 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20563 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20565 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
20566 embedding area. Use <= instead of == when checking for non-emptiness.
20568 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20570 * configure.ac: Add `.' to the directories searched for unifont.
20572 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20574 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
20577 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20579 * docs/grub.texi (History): Expand to cover GRUB 2.
20580 (Serial terminal): Refer to `terminal_input' and `terminal_output'
20581 commands, not `terminal'.
20582 (serial): Likewise.
20583 (terminal_input): New section.
20584 (terminal_output): New section.
20585 (uppermem): New section (stub).
20586 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
20588 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20590 * docs/grub.texi (Security): Menu entries are unrestricted by
20591 default, not restricted to superusers as I had previously thought.
20592 Reword to account for this.
20594 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20596 * kern/emu/misc.c (device_mapper_null_log): New function.
20597 (grub_device_mapper_supported): New function.
20598 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
20600 * kern/emu/hostdisk.c (find_partition_start): Check whether
20601 device-mapper is supported before trying to use it.
20602 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
20604 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20606 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
20607 (File name syntax): Likewise.
20608 (help): --all is no longer supported in GRUB 2. Be more precise
20609 about pattern matching.
20611 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20613 * normal/completion.c (grub_normal_do_completion): When completing
20614 arguments to "set" and the current word contains an equals sign,
20615 skip to after the equals sign before starting completion.
20617 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20619 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
20621 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20623 * docs/grub.texi (Network): New section.
20624 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
20625 `(nd)' as in GRUB Legacy.
20626 (pxe_unload): New section.
20628 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20630 * docs/grub.texi (Troubleshooting): `echo' is not usually available
20631 in the rescue shell, so recommend using `set' instead. Thanks,
20634 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20636 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
20637 (password): New section.
20638 (password_pbkdf2): New section.
20639 (search): New section.
20640 (Security): New section.
20641 (Troubleshooting): New section, currently very incomplete.
20642 (Invoking grub-mkpasswd-pbkdf2): New section.
20643 (Internals): New section, currently very incomplete.
20645 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20647 * util/grub.d/00_header.in: Add some more quoting (of
20648 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
20650 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
20652 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20654 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
20655 to `count', fixing variable shadowing that broke the -c option.
20657 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
20659 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
20660 in case they contain spaces.
20662 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
20664 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
20665 "part_" to partmap module names, in line with grub-install.
20666 Reported by: Jindřich Makovička (Debian bug #584426).
20668 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
20670 * util/grub-mkimage.c: Make target-related error messages slightly
20671 more helpful; -O talks about "format". Explicitly point to the use
20672 of -O if no target is specified.
20673 Reported by: Didier Raboud (Debian bug #584415).
20675 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
20677 * INSTALL: Document several build requirements for optional features
20678 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
20680 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
20682 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
20683 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
20684 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
20686 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20688 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
20689 Thanks to Jordan Uggla for spotting this.
20691 2010-06-02 Aleš Nesrsta <starous@volny.cz>
20693 Finally make USB usable.
20695 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
20696 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
20697 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
20698 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
20699 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
20700 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
20701 (GRUB_OHCI_FSMPS): Likewise.
20702 (GRUB_OHCI_PERIODIC_START): Likewise.
20703 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
20704 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
20705 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
20706 (GRUB_OHCI_SET_PORT_RESET): Likewise.
20707 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
20708 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
20709 (grub_ohci_transaction): Likewise.
20710 (grub_ohci_transfer): Improve condition detection algorithms.
20711 Handle toggle property. Program the transactions correctly.
20712 Improve error handling. Various important fixups.
20713 (grub_ohci_portstatus): Put register writes in right order.
20714 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
20715 (grub_uhci_transfer): Don't show "failed" message on success.
20716 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
20718 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
20719 determine its size.
20720 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
20721 before initialization is completed. Use IN direction for empty
20722 transfers. Use last_trans and compute toggle.
20723 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
20724 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
20725 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
20726 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
20727 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
20728 (grub_usb_device): Increase toggle to 256.
20729 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
20730 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
20731 GRUB_USBMS_SUBCLASS_SFF8070.
20732 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
20733 (grub_scsi_inquiry): New member page and alloc_length.
20734 (grub_scsi_request_sense): New structure.
20735 (grub_scsi_request_sense_data): Likewise.
20736 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
20738 * disk/scsi.c (grub_scsi_request_sense): New function.
20739 (grub_scsi_test_unit_ready): Likewise.
20740 (grub_scsi_inquiry): Fill new fields.
20741 (grub_scsi_read_capacity): Likewise.
20742 (grub_scsi_read10): Add request sense at the end.
20743 (grub_scsi_read12): Likewise.
20744 (grub_scsi_write10): Likewise.
20745 (grub_scsi_write12): Likewise.
20746 (grub_scsi_open): Add Test Unit Ready.
20747 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
20748 Support additional subclasses. Con't clear halt yet. Activate the
20749 proper config. Calculate LUNs correctly.
20750 (grub_usbms_transfer): Various important fixups.
20752 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20754 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
20755 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
20756 (grub_ohci_fini_hw): New function.
20757 (grub_ohci_restore_hw): Likewise.
20758 (GRUB_MOD_INIT(ohci)): Register preboot hook.
20759 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
20760 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
20762 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20764 Dedicated DMA allocations.
20766 * bus/pci.c (grub_memalign_dma32): New function
20767 (grub_dma_free): Likewise.
20768 (grub_dma_get_virt): Likewise.
20769 (grub_dma_get_phys): Likewise.
20770 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
20771 (grub_ohci_pci_iter): Use dma32_alloc.
20772 (grub_ohci_transfer): Likewise.
20773 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
20774 (grub_usb_bulk_readwrite): Likewise.
20775 * include/grub/pci.h: Add declarations.
20777 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20781 * bus/cs5536.c: New file.
20782 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
20783 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
20784 (cs5536_mod_SOURCES): New variable.
20785 (cs5536_mod_CFLAGS): Likewise.
20786 (cs5536_mod_LDFLAGS): Likewise.
20787 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
20789 (kernel_img_SOURCES): Add bus/cs5536.c.
20790 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
20792 (usb_mod_SOURCES): New variable.
20793 (usb_mod_CFLAGS): New variable.
20794 (usb_mod_LDFLAGS): New variable.
20795 (usbtest_mod_SOURCES): New variable.
20796 (usbtest_mod_CFLAGS): New variable.
20797 (usbtest_mod_LDFLAGS): New variable.
20798 (ohci_mod_SOURCES): New variable.
20799 (ohci_mod_CFLAGS): New variable.
20800 (ohci_mod_LDFLAGS): New variable.
20801 (usbms_mod_SOURCES): New variable.
20802 (usbms_mod_CFLAGS): New variable.
20803 (usbms_mod_LDFLAGS): New variable.
20804 (usb_keyboard_mod_SOURCES): New variable.
20805 (usb_keyboard_mod_CFLAGS): New variable.
20806 (usb_keyboard_mod_LDFLAGS): New variable.
20807 * include/grub/smbus.h: New file.
20808 * include/grub/cs5536.h: New file.
20810 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20812 * util/grub.d/00_header.in: Add safety check to make sure that
20813 ${locale_dir} exists before trying to probe it.
20815 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20817 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
20818 per the GNU Coding Standards; this is now too obscure to be worth
20821 (chainloader): Remove cross-reference to `SCO UnixWare'.
20823 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20825 * docs/grub.texi (Chain-loading): New section.
20826 (DOS/Windows): New section, borrowed from GRUB Legacy with details
20827 adjusted for GRUB 2.
20828 (SCO UnixWare): Likewise.
20830 (chainloader): Add reference to `Block list syntax'.
20831 (drivemap): New section.
20832 (parttool): New section.
20834 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20836 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
20838 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
20839 (Installing GRUB using grub-install): Remove reference to the grub
20840 shell; mention `grub-mkimage' and `grub-setup' instead.
20841 (Invoking grub-install): Likewise.
20842 (Interface): Add reference to `Menu entry editor'.
20843 (serial): Remove `--device' option.
20845 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20847 * docs/grub.texi (Configuration): New section, documenting
20848 configuration file generation using grub-mkconfig. I've left a slot
20849 for documenting the full shell scripting format but have not yet
20850 started on writing that up.
20851 (Invoking grub-mkconfig): New section.
20853 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20855 * docs/grub.texi (direntry): Remove grub-terminfo reference.
20856 (GNU GRUB manual): Likewise.
20857 (General commands): Update description of `terminfo' for GRUB 2.
20859 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20861 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
20862 (GRUB_MOD_INIT): Fix capitalisation.
20863 * docs/grub.texi (Command-line and menu entry commands): Document
20864 gettext and gptsync commands.
20866 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20868 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
20869 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
20871 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
20873 Add btrfs probing support, currently only in the single-device case.
20875 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
20877 (grub_guess_root_device): Call find_root_device_from_mountinfo
20878 before looking in /dev.
20880 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20882 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
20883 GRUB_DISK_SIZE_UNKNOWN.
20884 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
20886 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
20888 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
20889 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
20890 corrupted or not synced properly.
20892 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20894 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
20895 Reported by: Seth Goldberg.
20897 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20899 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
20901 Reported by: Seth Goldberg.
20903 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20905 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
20906 Reported by: Seth Goldberg.
20908 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20910 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
20911 64-bit address as signed on MIPS.
20913 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
20915 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
20916 to the empty string.
20918 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
20920 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
20922 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
20923 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
20924 * kern/misc.c (__enable_execute_stack): Disable on
20927 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
20929 Make grub-probe work with symbolic links under /dev/mapper as well
20930 as with real block devices. The Linux world seems to be (at best)
20931 in transition here, and GRUB shouldn't get caught in the middle.
20933 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
20936 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
20938 * util/grub-script-check.c (main): Ensure defined behaviour on empty
20939 input files (in which case exit zero).
20941 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
20943 * kern/emu/misc.c (canonicalize_file_name): realpath can still
20944 return NULL for various reasons even if it has a maximum-length
20945 buffer: for example, there might be a symlink loop, or the path
20946 might exceed PATH_MAX. If this happens, return NULL.
20948 2010-05-27 Robert Millan <rmh@gnu.org>
20950 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
20951 partmap module to handle cross-partmap setups.
20952 Reported by Orestes Mas. Gràcies!
20954 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
20956 * util/grub-mkrescue.in: Initialise override_dir rather than
20957 assuming that it's unset or empty in the environment.
20959 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
20961 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
20962 variable index into p_index to suppress a warning with -Wshadow.
20964 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
20966 * INSTALL: Added flex >= 2.5.35 requirement.
20968 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20970 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
20972 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20976 * commands/i386/cmostest.c: New file.
20977 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
20978 (cmostest_mod_SOURCES): New variable.
20979 (cmostest_mod_CFLAGS): Likewise.
20980 (cmostest_mod_LDFLAGS): Likewise.
20981 * conf/i386-pc.rmk: Likewise.
20982 * docs/grub.texi (Vendor power-on keys): New section.
20983 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
20984 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
20985 and GRUB_BUTTON_CMOS_ADDRESS.
20986 * util/grub.d/00_header.in: Handle powering-on by separate button.
20988 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20990 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
20991 Removed drawing_scrollbar argument. All users updated
20993 Reported by Jo Shields
20995 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20997 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
20998 buffer since gfxterm handles double repaint.
21000 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21002 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
21003 * term/gfxterm.c (real_scroll): Likewise.
21005 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21007 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
21008 before calling BIOS.
21010 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21012 * include/grub/i18n.h: Always enable grub_gettext.
21014 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21016 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
21017 partition naming style.
21019 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
21021 * util/grub-mkconfig.in: Fix handling of -o so that it works when
21022 not the first option.
21024 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
21026 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
21028 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
21030 * util/misc.c: Move inclusion of <limits.h> to ...
21031 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
21033 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
21035 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
21036 Fix merge error in NetBSD code.
21037 (find_partition_start) [__NetBSD__]: Likewise.
21039 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
21041 Fix grub-mkrescue usage unit testing.
21043 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
21045 2010-05-18 Christian Franke <franke@computer.org>
21047 * util/grub.d/10_windows.in: Use path names instead of
21048 drive letters to prevent warning from Cygwin 1.7.
21049 Add drivemap command to menuentry if needed.
21051 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
21053 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
21054 gnumach and gnumach.gz.
21056 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21058 * include/grub/i18n.h (gettext): Inline instead of using #define.
21059 (grub_gettext): Likewise.
21062 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21064 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
21065 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
21066 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
21067 (main): Add a slash after pkglibdirroot.
21069 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21071 * util/grub-install.in: Add missing "in" keyword.
21073 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21075 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
21076 Reported by: Seth Goldberg.
21078 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21080 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
21082 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
21084 * configure.ac: Check for Linux device-mapper support.
21086 * util/hostdisk.c (device_is_mapped): New function.
21087 (find_partition_start): New function, partly broken out from
21088 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
21089 device-mapper support added.
21090 (linux_find_partition): Use find_partition_start.
21091 (convert_system_partition_to_system_disk): Add `st' argument.
21092 Support Linux /dev/mapper/* devices if device-mapper support is
21093 available; only DM-RAID devices are understood at present.
21094 (find_system_device): Add `st' argument. Pass it to
21095 convert_system_partition_to_system_disk.
21096 (grub_util_biosdisk_get_grub_dev): Pass stat result to
21097 find_system_device and convert_system_partition_to_system_disk. Use
21098 find_partition_start.
21100 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
21101 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
21102 * util/deviceiter.c [__linux__]: Define MINOR.
21103 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
21104 * util/mkdevicemap.c (grub_putchar): New function.
21105 (grub_getkey): New function.
21106 (grub_refresh): New function.
21107 (main): Set debug=all if -v -v is used.
21109 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
21111 Fix build with non-GNU libcs.
21113 * util/misc.c (canonicalize_file_name): Move to ...
21114 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
21115 grub_make_system_path_relative_to_its_root.
21117 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
21119 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
21120 we handle finding grub-mkimage. Default to finding grub-mkimage in
21121 ${bindir} with program_transform_name applied, and provide a
21122 --grub-mkimage option to override this.
21124 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21126 Remove grub-mkisofs.
21128 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
21129 (grub_mkisofs_SOURCES): Removed.
21130 (grub_mkisofs_CFLAGS): Removed.
21131 * util/mkisofs/defaults.h: Removed.
21132 * util/mkisofs/eltorito.c: Likewise.
21133 * util/mkisofs/exclude.h: Likewise.
21134 * util/mkisofs/hash.c: Likewise.
21135 * util/mkisofs/include/: Likewise.
21136 * util/mkisofs/include/fctldefs.h: Likewise.
21137 * util/mkisofs/include/mconfig.h: Likewise.
21138 * util/mkisofs/include/prototyp.h: Likewise.
21139 * util/mkisofs/include/statdefs.h: Likewise.
21140 * util/mkisofs/iso9660.h: Likewise.
21141 * util/mkisofs/joliet.c: Likewise.
21142 * util/mkisofs/match.c: Likewise.
21143 * util/mkisofs/match.h: Likewise.
21144 * util/mkisofs/mkisofs.c: Likewise.
21145 * util/mkisofs/mkisofs.h: Likewise.
21146 * util/mkisofs/msdos_partition.h: Likewise.
21147 * util/mkisofs/multi.c: Likewise.
21148 * util/mkisofs/name.c: Likewise.
21149 * util/mkisofs/rock.c: Likewise.
21150 * util/mkisofs/tree.c: Likewise.
21151 * util/mkisofs/write.c: Likewise.
21153 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21155 Unify grub-mkimage accross platforms.
21157 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
21158 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
21159 (grub_mkelfimage_SOURCES): Removed.
21160 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
21161 (util/grub-mkimage.c_DEPENDENCIES): .. this.
21162 (bin_UTILITIES): Add grub-mkimage.
21163 (grub_mkimage_SOURCES): New variable.
21164 (kernel_img_HEADERS): Remove machine/kernel.h.
21165 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
21166 (pkglib_PROGRAMS): Add kernel.img.
21167 (kernel_img_HEADERS): Add machine/kernel.h.
21168 (kernel_img_FORMAT): Removed.
21169 (bin_UTILITIES): Remove grub-mkimage.
21170 (grub_mkimage_SOURCES): Removed.
21171 (grub_mkimage_CFLAGS): Likewise.
21172 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21173 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
21174 (pkglib_PROGRAMS): Add kernel.img.
21175 (bin_UTILITIES): Remove grub-mkimage.
21176 (grub_mkimage_SOURCES): Removed.
21177 (grub_mkimage_CFLAGS): Likewise.
21178 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21179 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
21180 (pkglib_PROGRAMS): Add kernel.img.
21181 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
21182 (pkglib_PROGRAMS): Add kernel.img.
21183 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
21184 (grub_mkimage_SOURCES): Removed.
21185 (grub_mkimage_CFLAGS): Likewise.
21186 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21187 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
21188 (pkglib_PROGRAMS): Add kernel.img.
21189 (bin_UTILITIES): Remove grub-mkimage.
21190 (grub_mkimage_SOURCES): Removed.
21191 (grub_mkimage_CFLAGS): Likewise.
21192 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21193 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
21194 (grub_mkimage_SOURCES): Removed.
21195 (grub_mkimage_CFLAGS): Likewise.
21196 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21197 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
21198 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
21199 (grub_pe32_optional_header): ... this.
21200 (grub_pe64_optional_header): ... and this. All users updated.
21201 (GRUB_PE32_PE32_MAGIC): Split into ..
21202 (GRUB_PE32_PE32_MAGIC): .. this.
21203 (GRUB_PE32_PE64_MAGIC): .. and this.
21204 (GRUB_PE32_SIGNATURE_SIZE): New definition.
21205 * include/grub/elf.h (PT_GNU_STACK): New definition.
21206 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
21207 * include/grub/i386/efi/kernel.h: Likewise.
21208 * include/grub/i386/kernel.h: Likewise.
21209 * include/grub/i386/pc/kernel.h: Likewise.
21210 * include/grub/i386/qemu/boot.h: Likewise.
21211 * include/grub/mips/kernel.h: Likewise.
21212 * include/grub/mips/qemu-mips/kernel.h: Likewise.
21213 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
21214 * include/grub/powerpc/kernel.h: Likewise.
21215 * include/grub/sparc64/ieee1275/boot.h: Likewise.
21216 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
21217 * include/grub/sparc64/kernel.h: Likewise.
21218 * include/grub/x86_64/efi/kernel.h: Likewise.
21219 * include/grub/x86_64/kernel.h: Likewise.
21220 * include/grub/offsets.h: New file.
21221 * include/grub/kernel.h (grub_module_info): Split into ...
21222 (grub_module_info32): ... this.
21223 (grub_module_info64): ... and this.
21224 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
21225 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
21226 (grub_boot_blocklist): Moved from here ...
21227 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
21228 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
21229 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
21230 * include/grub/types.h (grub_target_to_host16): Removed.
21231 (grub_target_to_host32): Likewise.
21232 (grub_target_to_host64): Likewise.
21233 (grub_host_to_target16): Likewise.
21234 (grub_host_to_target32): Likewise.
21235 (grub_host_to_target64): Likewise.
21236 (grub_host_to_target_addr): Likewise.
21238 Support grub-mkrescue for efi, coreboot and qemu.
21240 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
21241 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
21242 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
21243 * util/grub-mkrawimage.c: Moved from here ...
21244 * util/grub-mkimage.c: ... here. All users updated.
21245 (ALIGN_ADDR): Use image_target.
21246 (TARGET_NO_FIELD): New const.
21247 (image_target_desc): New type.
21248 (image_targets): New array.
21249 (grub_target_to_host64): Use image_target.
21250 (grub_target_to_host32): Likewise.
21251 (grub_target_to_host16): Likewise.
21252 (grub_host_to_target64): Likewise.
21253 (grub_host_to_target32): Likewise.
21254 (grub_host_to_target16): Likewise.
21255 (grub_host_to_target_addr): Likewise.
21256 (generate_image): Handle multiimage.
21257 (main): Require -O parameter. All users updated.
21258 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
21259 util/efi/grub-mkimage.c
21260 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
21261 New option --rom-directory.
21263 * util/i386/efi/grub-mkimage.c: Removed.
21264 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
21265 (grub_target_to_host32): Likewise.
21266 (grub_target_to_host64): Likewise.
21267 (grub_host_to_target16): Likewise.
21268 (grub_host_to_target32): Likewise.
21269 (grub_host_to_target64): Likewise.
21270 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
21271 (grub_target_to_host32): Likewise.
21272 (grub_target_to_host64): Likewise.
21273 (grub_host_to_target16): Likewise.
21274 (grub_host_to_target32): Likewise.
21275 (grub_host_to_target64): Likewise.
21277 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
21279 Source tree is reorganized for emu build.
21281 * include/grub/util/console.h: Move from here...
21282 * include/grub/emu/console.h: ...to here.
21283 * include/grub/util/getroot.h: Move from here...
21284 * include/grub/emu/getroot.h: ...to here.
21285 * include/grub/util/hostdisk.h: Move from here...
21286 * include/grub/emu/hostdisk.h: ...to here.
21287 * util/console.c: Move from here...
21288 * kern/emu/console.c: ...to here.
21289 * util/getroot.c: Move from here...
21290 * kern/emu/getroot.c: ...to here.
21291 * util/grub-emu.c: Move from here...
21292 * kern/emu/main.c: ...to here.
21293 * util/hostdisk.c: Move from here...
21294 * kern/emu/hostdisk.c: ...to here.
21295 * util/hostfs.c: Move from here...
21296 * kern/emu/hostfs.c: ...to here.
21297 * util/mm.c: Move from here...
21298 * kern/emu/mm.c: ...to here.
21299 * util/pci.c: Move from here...
21300 * bus/emu/pci.c: ...to here.
21301 * util/sdl.c: Move from here...
21302 * video/emu/sdl.c: ...to here.
21303 * util/time.c: Move from here...
21304 * kern/emu/time.c: ...to here.
21305 * util/usb.c: Move from here...
21306 * bus/usb/emu/usb.c: ...to here.
21308 * include/grub/emu/misc.h: New header for grub-emu functions.
21309 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
21311 * conf/any-emu.rmk: Rule updates for above renames.
21312 * conf/common.rmk: Likewise.
21313 * conf/i386-pc.rmk: Likewise.
21314 * conf/i386-qemu.rmk: Likewise.
21315 * conf/mips.rmk: Likewise.
21316 * conf/sparc64-ieee1275.rmk: Likewise.
21317 * conf/x86-efi.rmk: Likewise.
21319 * disk/lvm.h: #include updates for above renames.
21320 * util/grub-mkrelpath.c: Likewise.
21321 * util/grub-probe.c: Likewise.
21322 * util/i386/pc/grub-setup.c: Likewise.
21323 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21324 * kern/emu/console.c: Likewise.
21325 * kern/emu/getroot.c: Likewise.
21326 * kern/emu/hostdisk.c: Likewise.
21327 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
21329 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
21330 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
21331 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
21332 * util/misc.c: Remove grub-emu functions.
21334 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
21337 Reported by: Thorsten Grützmacher.
21339 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
21341 (circprog_set_property): Register and unregister timeout hook.
21342 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
21343 (label_destroy): Free template. and unregister hook.
21344 (label_set_state): New function.
21345 (label_set_property): Handle templates and hooks.
21346 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
21348 (progress_bar_set_property): Register and unregister timeout hook.
21349 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
21350 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
21351 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
21352 (update_timeout_visit): Removed.
21353 (update_timeouts): New function.
21354 (redraw_timeouts): Likewise.
21355 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
21356 (grub_gfxmenu_clear_timeout): Likewise.
21357 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
21358 (grub_gfxmenu_timeout_notify): Likewise.
21359 (grub_gfxmenu_timeout_notifications): New external variable.
21360 (grub_gfxmenu_timeout_register): New function.
21361 (grub_gfxmenu_timeout_unregister): Likewise.
21363 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
21365 Transform (broken) vga terminal into (working) vga video driver.
21367 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
21368 video/i386/pc/vga.c.
21369 * include/grub/video.h (grub_video_driver_id):
21370 Add GRUB_VIDEO_DRIVER_VGA.
21371 * term/i386/pc/vga.c: Renamed to ...
21372 * video/i386/pc/vga.c: ...this
21373 (DEBUG_VGA): Removed.
21374 (CHAR_WIDTH): Likewise.
21375 (CHAR_HEIGHT): Likewise.
21376 (TEXT_WIDTH): Likewise.
21377 (TEXT_HEIGHT): Likewise.
21378 (DEFAULT_FG_COLOR): Likewise.
21379 (DEFAULT_BG_COLOR): Likewise.
21380 (colored_char): Likewise.
21383 (cursor_state): Likewise.
21384 (fg_color): Likewise.
21385 (bg_color): Likewise.
21386 (text_buf): Likewise.
21389 (framebuffer): New variable.
21390 (set_read_map): Disabled.
21391 (setup): New variable.
21392 (is_target): Likewise.
21393 (grub_vga_mod_init): Likewise.
21394 (grub_vga_mod_fini): Likewise.
21395 (check_vga_mem): Likewise.
21396 (write_char): Likewise.
21397 (write_cursor): Likewise.
21398 (scroll_up): Likewise.
21399 (grub_vga_putchar): Likewise.
21400 (grub_vga_getcharwidth): Likewise.
21401 (grub_vga_getwh): Likewise.
21402 (grub_vga_getxy): Likewise.
21403 (grub_vga_gotoxy): Likewise.
21404 (grub_vga_cls): Likewise.
21405 (grub_vga_setcolorstate): Likewise.
21406 (grub_vga_setcursor): Likewise.
21407 (grub_video_vga_init): New function.
21408 (grub_video_vga_setup): Likewise.
21409 (grub_video_vga_fini): Likewise.
21410 (update_target): Likewise.
21411 (grub_video_vga_blit_bitmap): Likewise.
21412 (grub_video_vga_blit_render_target): Likewise.
21413 (grub_video_vga_set_active_render_target): Likewise.
21414 (grub_video_vga_get_active_render_target): Likewise.
21415 (grub_video_vga_swap_buffers): Likewise.
21416 (grub_video_vga_set_palette): Likewise.
21417 (grub_video_vga_get_info_and_fini): Likewise.
21418 (grub_vga_term): Removed.
21419 (grub_video_vga_adapter): New variable.
21420 (GRUB_MOD_INIT): Register a video driver instead of terminal.
21421 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
21423 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21425 * video/readers/jpeg.c: Indented.
21427 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21429 Various jpeg cleanups.
21431 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
21432 (grub_jpeg_decode_quan_table): Use sizeof.
21433 (grub_jpeg_decode_du): Use ARRAY_SIZE.
21435 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
21437 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
21438 tables. Ignore non-last ac bit.
21439 (grub_jpeg_decode_quan_table): Likewise.
21441 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21443 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
21444 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
21445 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21446 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
21447 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
21448 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
21450 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21452 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
21455 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21457 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
21459 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21461 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
21464 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21466 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
21469 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21471 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
21474 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21476 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
21478 2010-05-01 Christian Franke <franke@computer.org>
21480 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
21481 Remove broken Cygwin path conversion.
21482 * util/misc.c: [__CYGWIN__] Add include and define.
21483 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
21485 (make_system_path_relative_to_its_root): Simplify loop, replace early
21487 [__CYGWIN__] Add conversion to win32 path.
21488 Include "/" case in trailing slash removal.
21490 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21492 * kern/main.c (grub_load_config): Fix copy-pasted comment.
21493 Reported by: Seth Goldberg
21495 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21497 * commands/help.c (grub_cmd_help): Fix a typo.
21498 Reported by: Seth Goldberg
21500 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21502 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
21504 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
21505 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
21506 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
21507 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
21508 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
21509 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
21510 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
21511 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
21512 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
21513 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
21514 * normal/context.c (GRUB_MOD_INIT): Likewise.
21515 * normal/main.c (GRUB_MOD_INIT): Likewise.
21516 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
21517 * term/serial.c (GRUB_MOD_INIT): Likewise.
21518 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
21520 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21522 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
21525 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21527 * commands/iorw.c: New file.
21528 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
21529 (iorw_mod_SOURCES): New variable.
21530 (iorw_mod_CFLAGS): Likewise.
21531 (iorw_mod_LDFLAGS): Likewise.
21533 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21537 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
21538 * normal/main.c (hotkey_aliases): New variable.
21539 (grub_normal_add_menu_entry): Parse "--hotkey".
21540 * normal/menu_text.c (run_menu): Handle hotkeys.
21542 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21544 * kern/i386/coreboot/init.c (grub_machine_init): Call
21545 grub_machine_mmap_init on qemu.
21547 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21549 * boot/i386/qemu/boot.S: Add a missing .code16.
21551 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21553 Use LBIO on coreboot.
21555 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
21556 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
21557 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
21559 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
21560 grub_machine_mmap_init on coreboot.
21561 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
21562 GRUB_LINUXBIOS_MEMBER_LINK.
21563 (grub_machine_mmap_iterate): Fix declaration.
21564 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
21566 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21568 Split coreboot and multiboot ports.
21570 * conf/i386-multiboot.rmk: New file.
21571 * configure.ac: Add multiboot port.
21572 * include/grub/i386/multiboot/boot.h: New file.
21573 * include/grub/i386/multiboot/console.h: Likewise.
21574 * include/grub/i386/multiboot/init.h: Likewise.
21575 * include/grub/i386/multiboot/kernel.h: Likewise.
21576 * include/grub/i386/multiboot/loader.h: Likewise.
21577 * include/grub/i386/multiboot/memory.h: Likewise.
21578 * include/grub/i386/multiboot/serial.h: Likewise.
21579 * include/grub/i386/multiboot/time.h: Likewise.
21580 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
21581 * loader/multiboot.c: Likewise.
21582 * loader/multiboot_mbi2.c: Likewise.
21583 * util/grub-mkrescue.in: Generate multiboot rescue.
21585 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21587 * kern/parser.c (grub_parser_execute): Cope with read-only config.
21589 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21591 Merge handling of input and output terminals. Fix a hang.
21593 * commands/terminal.c (abstract_terminal): New struct.
21594 (handle_command): New function. Based on grub_cmd_terminal_input.
21595 (grub_cmd_terminal_input): Use handle_command.
21596 (grub_cmd_terminal_output): Use handle_command.
21598 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
21600 Fix comment handling.
21602 * tests/grub_script_comments.in: New testcase.
21603 * conf/tests.rmk: Rules for new testcase.
21604 * script/yylex.l: Updated flex rules.
21606 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
21608 * docs/grub.texi (play): Document that zero pitches produce rests.
21609 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
21612 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
21614 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
21617 2010-04-26 Christian Franke <franke@computer.org>
21619 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
21620 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
21621 (grub_get_prefix): Remove function.
21622 * util/grub-emu.c (main): Replace grub_get_prefix () call by
21623 make_system_path_relative_to_its_root ().
21624 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
21626 2010-04-24 Christian Franke <franke@computer.org>
21628 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
21629 (kernel_img_LDFLAGS): Remove -static-libgcc.
21631 2010-04-24 Christian Franke <franke@computer.org>
21633 * configure.ac: Do not CHECK_BSS_START_SYMBOL
21634 and CHECK_END_SYMBOL if grub-emu is built.
21635 Unset TARGET_OBJ2ELF if grub-emu is built
21636 without module support.
21638 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
21642 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
21643 (grub_fstest_SOURCES): Likewise.
21644 (pkglib_MODULES): Add nilfs2.mod.
21645 (nilfs2_mod_SOURCES): New variable.
21646 (nilfs2_mod_CFLAGS): Likewise.
21647 (nilfs2_mod_LDFLAGS): Likewise.
21648 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
21649 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
21650 * fs/nilfs2.c: New file.
21652 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
21654 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
21657 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
21659 Add grub-mkconfig support for NetBSD.
21661 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
21662 * util/grub-mkconfig.in: export new NetBSD specific variables.
21663 * po/POTFILES-shell: added 10_netbsd.in.
21664 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
21666 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
21668 Fix emu build with grub-emu-pci and grub-emu-modules.
21670 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
21672 * include/grub/libpciaccess.h: New file.
21673 * conf/any-emu.rmk: Update kernel headers for emu build.
21675 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21677 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
21679 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21681 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
21683 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21685 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
21686 Retrieve chosen/bootpath if bootpath isn't hardcoded.
21687 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
21688 util/ieee1275/ofpath.c.
21689 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
21690 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
21691 * include/grub/sparc64/ieee1275/boot.h
21692 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
21693 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
21694 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
21695 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
21697 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
21698 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
21699 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
21702 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
21704 * util/grub-mkconfig.in: Corrected two == equality tests.
21705 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
21706 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
21707 expect a number appended to it.
21708 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
21709 expects a number appended to it.
21711 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21713 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
21715 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21717 * util/hostdisk.c (make_device_name): Change to new partition naming.
21719 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
21721 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
21723 2010-04-17 Christian Franke <franke@computer.org>
21725 * Makefile.in: Add missing localedir setting.
21727 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
21729 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
21730 mistake in r2156. Noticed by Anthony Fok.
21732 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
21734 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
21736 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
21738 Fix a spurious, uninitialized variable warning.
21740 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
21741 Initialize variable, shdr.
21742 (grub_freebsd_load_elfmodule): Likewise.
21743 (grub_freebsd_load_elf_meta): Likewise.
21745 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
21747 Fix for escaped dollar in double quoted strings.
21749 * script/yylex.l: Updated flex rules.
21750 * conf/tests.rmk: Rule for new testcase.
21751 * tests/grub_script_dollar.in: New testcase.
21753 2010-04-13 Carles Pina i Estany <carles@pina.cat>
21754 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
21756 Enclose all translated strings in grub.cfg in single quotes, and
21757 escape them appropriately (Ubuntu bug #552921).
21759 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
21760 * util/grub.d/10_hurd.in: Use it.
21761 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
21762 * util/grub.d/10_linux.in (linux_entry): Likewise.
21764 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
21766 Fix cygwin compilation.
21768 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
21769 * include/grub/misc.h (__register_frame_info)
21770 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
21771 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
21772 * kern/misc.c (__register_frame_info)
21773 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
21774 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
21776 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
21778 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
21780 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
21782 Unify libgcc processing.
21784 * Makefile.in (kernel_img_LDFLAGS): New variable.
21785 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
21786 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
21788 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
21789 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
21790 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
21791 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
21792 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
21793 overwriting. Remove -lgcc and -static-libgcc
21794 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
21795 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
21796 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
21797 (kernel_img_LDFLAGS): Append instead of overwriting.
21798 Remove -lgcc and -static-libgcc
21799 * conf/sparc64-ieee1275.rmk: Likewise.
21800 * include/grub/powerpc/libgcc.h: Move to ...
21801 * include/grub/libgcc.h: .. this.
21802 * include/grub/libgcc.h: Don't export most of the function on x86.
21803 (__bswapsi2): New export.
21804 (__bswapdi2): Likewise.
21805 * include/grub/mips/libgcc.h: Removed.
21806 * include/grub/sparc64/libgcc.h: Likewise.
21808 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21810 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
21811 disk_info_msg (conflicts with gettexting into languages with cases).
21813 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
21815 Add grub-probe support for NetBSD.
21817 * util/getroot.c (find_root_device): Convert block device to
21818 character device on NetBSD.
21819 * util/probe.c (probe): Require character device on NetBSD.
21820 * util/hostdisk.c: NetBSD specific headers.
21821 (configure_device_driver): new function to tune device driver
21822 parameters (currently only for NetBSD floppy driver).
21823 (grub_util_biosdisk_open): NetBSD specific code (get disk size
21824 via disklabel ioctl).
21825 (open_device): call configure_device_driver on NetBSD.
21826 (convert_system_partition_to_system_disk): NetBSD specific code.
21827 (device_is_wholedisk): Likewise.
21828 (grub_util_biosdisk_get_grub_dev): Likewise.
21829 (make_device_name): Fixed a typo in bsd_part_str.
21830 * configure.ac: check for opendisk() and getrawpartition() on
21831 NetBSD and set LIBUTIL.
21832 * Makefile.in: add LIBUTIL to LIBS.
21834 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
21838 * util/grub-script-check.c: Better help message.
21840 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
21844 * configure.ac: Flex version check.
21845 * conf/common.rmk: Add -Wno-error to sh.mod.
21846 * script/yylex.l: Remove all #pragma.
21848 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21850 * include/grub/util/misc.h (canonicalise_file_name): Add missing
21852 Reported by: Seth Goldberg.
21854 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21856 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
21857 Rename "module" to "module2".
21858 Reported by: Seth Goldberg.
21860 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21862 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
21864 Reported by: Seth Goldberg.
21866 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21868 * lib/posix_wrap/locale.h: Add missing file.
21869 Reported by: Seth Goldberg.
21871 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21873 grub-emu module load support.
21875 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
21876 NO_DYNAMIC_MODULES switched to this.
21877 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
21878 (CFLAGS): Likewise.
21879 * conf/any-emu.rmk: Generate symlist.
21880 (kernel_img_HEADERS): Add util/datetime.h.
21881 (kernel_img_HEADERS) [sdl]: Add sdl.h.
21882 (kernel_img_HEADERS) [libusb]: Add libusb.h.
21883 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
21884 kern/$(target_cpu)/cache.S.
21885 * configure.ac (grub-emu-modules): New option.
21886 * genmk.rb: Handle multiple source lists.
21887 * include/grub/sdl.h: New file.
21888 * include/grub/libusb.h: Likewise.
21889 * util/grub-emu.c (main): Hanle (host) root.
21890 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
21891 GRUB_ERR_UNKNOWN_DEVICE.
21892 * util/misc.c: Move mm functions to ...
21893 * util/mm.c: ... here. All users updated.
21895 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21897 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
21898 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
21900 (maintainer-clean): Remove libgcrypt-grub.
21902 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21904 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
21906 2010-04-09 EFI Coder <eficoder@hotmail.com>
21908 * normal/menu_text.c (print_message): Clean up the message and show
21909 the Fn information when on EFI
21910 * term/efi/console.c (grub_console_checkkey): Add F4 support.
21912 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21914 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
21916 * normal/crypto.c (read_crypto_list): Likewise.
21917 * normal/dyncmd.c (read_command_list): Likewise.
21918 * normal/term.c (read_terminal_list): Likewise.
21919 * normal/main.c (read_lists): Use explicit prefix.
21920 (read_lists_hook): Use read_lists.
21921 (grub_normal_execute): Likewise.
21923 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21925 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
21926 Reported by: Thomas Schmitt.
21927 Add -no-emul-boot to grub-mkisofs parameters.
21929 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21931 * font/font.c: Indented.
21933 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
21935 Elif support to GRUB script (by Deepak Vankadaru).
21937 * tests/grub_script_if.in: New testcase.
21938 * conf/tests.rmk: Rule for new testcase.
21939 * script/parser.y: Grammar rules for elif.
21941 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
21943 While and until loops support to GRUB script.
21945 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
21946 (grub_script_create_cmdwhile): New function prototype.
21947 (grub_script_execute_cmdwhile): New function prototype.
21948 * script/execute.c (grub_script_execute_cmdwhile): New function.
21949 * script/parser.y (command): New commands.
21950 (whilecmd): New grammar rule.
21951 (untilcmd): New grammar rule.
21952 * script/script.c (grub_script_create_cmdwhile): New function.
21953 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
21956 * tests/grub_script_while1.in: New testcase.
21957 * conf/tests.rmk: Rule for new testcase.
21959 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21961 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
21964 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
21966 GRUB_BACKGROUND support.
21968 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
21969 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
21971 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21973 Load fonts and modules for gfxmenu in grub-mkconfig.
21974 Idea by: Mario Vazquez
21976 * util/grub.d/00_header.in: Load pf2 and image modules.
21978 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21980 grub-mkconfig multiple terminal support.
21982 * util/grub-mkconfig.in: Handle multiple terminals correctly.
21983 * util/grub.d/00_header.in: Likewise.
21985 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21987 * Makefile.in: Specify files explicitly instead of using $< and $@ since
21988 we use cd $(srcdir).
21990 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
21992 * util/grub.d/10_linux.in: Only use the first word of
21993 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
21994 spaces in GRUB_DISTRIBUTOR.
21995 * util/grub.d/10_kfreebsd.in: Likewise.
21996 * util/grub.d/10_hurd.in: Likewise.
21998 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
22000 Fix unit testing framework for Qemu 0.12.
22002 * tests/util/grub-shell.in: Remove -serial stdio option.
22004 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
22006 POSIX header file wrappers.
22008 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
22010 * lib/posix_wrap/ctype.h: Likewise.
22011 * lib/posix_wrap/errno.h: Likewise.
22012 * lib/posix_wrap/langinfo.h: Likewise.
22013 * lib/posix_wrap/limits.h: Likewise.
22014 * lib/posix_wrap/localcharset.h: Likewise.
22015 * lib/posix_wrap/stdint.h: Likewise.
22016 * lib/posix_wrap/stdio.h: Likewise.
22017 * lib/posix_wrap/stdlib.h: Likewise.
22018 * lib/posix_wrap/string.h: Likewise.
22019 * lib/posix_wrap/sys/types.h: Likewise.
22020 * lib/posix_wrap/unistd.h: Likewise.
22021 * lib/posix_wrap/wchar.h: Likewise.
22022 * lib/posix_wrap/wctype.h: Likewise.
22023 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
22024 (grub_script.yy.h): Likewise.
22025 * script/yylex.l: Remove POSIX emulation #defines.
22026 * Makefile.in (POSIX_CFLAGS): New variable.
22027 (GNULIB_UTIL_CFLAGS): Likewise.
22031 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
22032 (regexp_mod_SOURCES): New variable.
22033 (regexp_mod_CFLAGS): Likewise.
22034 (regexp_mod_LDFLAGS): Likewise.
22035 * commands/regexp.c: New file.
22036 * gnulib/regcomp.c: New file. Imported from gnulib.
22037 * gnulib/regex.c: Likewise.
22038 * gnulib/regex_internal.c: Likewise.
22039 * gnulib/regex_internal.h: Likewise.
22040 * gnulib/regexec.c: Likewise.
22041 * gnulib/regex.h: Likewise.
22043 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22045 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
22046 unsupported video mode types.
22048 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22050 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
22052 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22054 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
22055 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
22057 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
22059 Remove unused grub_vga_get_font.
22061 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
22062 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
22064 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22066 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
22067 * include/grub/misc.h: Likewise.
22069 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22071 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
22072 for which failure is fatal.
22074 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22076 * util/grub-install.in: Use mkdir -p to create grub directory.
22077 * util/i386/efi/grub-install.in: Likewise.
22078 * util/ieee1275/grub-install.in: Likewise.
22080 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22082 * Makefile.in (LEX): new variable.
22084 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22086 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
22087 `=' and added double quotes on operands of this equality test.
22089 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
22091 * Makefile.in (uninstall): Remove a leftover debug echo.
22092 Reported by: Grégoire Sutre
22094 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
22096 MIPS multiboot2 support.
22098 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
22099 (multiboot2_mod_SOURCES): New variable.
22100 (multiboot2_mod_CFLAGS): Likewise.
22101 (multiboot2_mod_LDFLAGS): Likewise.
22102 (multiboot2_mod_ASFLAGS): Likewise.
22103 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
22105 (MULTIBOOT_ENTRY_REGISTER): Likewise.
22106 (MULTIBOOT_MBI_REGISTER): Likewise.
22107 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
22108 (MULTIBOOT_ELF32_MACHINE): Likewise.
22109 (MULTIBOOT_ELF64_MACHINE): Likewise.
22110 * include/grub/mips/multiboot.h: New file.
22111 * include/grub/video.h (grub_video_driver_id): New type
22112 GRUB_VIDEO_DRIVER_SM712.
22113 (grub_video_get_info_and_fini): Export.
22114 (grub_video_get_palette): Likewise.
22115 (grub_video_get_driver_id): Likewise.
22116 * include/multiboot2.h: Resynced with spec.
22117 * loader/i386/multiboot.c: Moved from here ...
22118 * loader/multiboot.c: ... here. All users updated.
22119 (grub_multiboot_boot): Use platform-specific macros.
22120 * loader/i386/multiboot_elfxx.c: Moved from here ...
22121 * loader/multiboot_elfxx.c: ... here. All users updated.
22122 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
22123 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
22124 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
22126 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
22128 Import gnulib argp module.
22130 * gnulib/argp-ba.c: New file.
22131 * gnulib/argp-eexst.c: Likewise.
22132 * gnulib/argp-fmtstream.c: Likewise.
22133 * gnulib/argp-fmtstream.h: Likewise.
22134 * gnulib/argp-fs-xinl.c: Likewise.
22135 * gnulib/argp-help.c: Likewise.
22136 * gnulib/argp-namefrob.h: Likewise.
22137 * gnulib/argp-parse.c: Likewise.
22138 * gnulib/argp-pin.c: Likewise.
22139 * gnulib/argp-pv.c: Likewise.
22140 * gnulib/argp-pvh.c: Likewise.
22141 * gnulib/argp-version-etc.c: Likewise.
22142 * gnulib/argp-version-etc.h: Likewise.
22143 * gnulib/argp-xinl.c: Likewise.
22144 * gnulib/argp.h: Likewise.
22146 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
22148 * kern/device.c (grub_device_iterate): Clear errors after failed
22151 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
22153 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
22154 returned by firmware.
22156 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
22158 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
22159 compilation on coreboot and qemu
22161 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
22163 * include/multiboot2.h: Resync with spec.
22165 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
22167 Multiboot2 tag support
22169 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
22170 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
22171 Remove loader/multiboot_loader.c.
22172 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
22173 (grub_multiboot2_real_boot): Likewise.
22174 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
22175 (grub_get_multiboot_mmap_count): New proto.
22176 (grub_fill_multiboot_mmap): Likewise.
22177 (grub_multiboot_set_video_mode): Likewise.
22178 (grub_multiboot_set_console): Likewise.
22179 (grub_multiboot_load): Likewise.
22180 (grub_multiboot_load_elf): Likewise.
22181 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
22182 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
22183 * include/multiboot.h: Resynced with specification.
22184 * include/multiboot2.h: Resynced with specification.
22185 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
22186 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
22187 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
22188 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
22190 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
22191 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
22192 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
22194 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
22196 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
22197 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
22199 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
22200 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
22201 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
22203 * loader/i386/multiboot_mbi2.c: New file.
22205 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
22207 Resync with gnulib.
22209 * Makefile.in (GNULIB_CFLAGS): New variable.
22210 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
22211 (grub_script_check_CFLAGS): New variable.
22212 * gnulib/alloca.h: Resync with gnulib.
22213 * gnulib/error.c: Likewise.
22214 * gnulib/error.h: Likewise.
22215 * gnulib/fnmatch.c: Likewise.
22216 * gnulib/fnmatch_loop.c: Likewise.
22217 * gnulib/getdelim.c: Likewise.
22218 * gnulib/getline.c: Likewise.
22219 * gnulib/getopt.c: Likewise.
22220 * gnulib/getopt1.c: Likewise.
22221 * gnulib/getopt_int.h: Likewise.
22222 * gnulib/gettext.h: Likewise.
22223 * gnulib/progname.c: Likewise.
22224 * gnulib/progname.h: Likewise.
22226 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
22228 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
22229 which is the case with --disabled-nls.
22231 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
22232 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
22233 * util/misc.c: Likewise.
22234 * util/mkisofs/mkisofs.c: Likewise.
22235 * util/mkisofs/mkisofs.h: Likewise.
22237 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
22239 Simplify Apple CC support.
22241 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
22242 Add 0 byte at the end not to have a symbol with empty target.
22243 * mmap/i386/pc/mmap_helper.S: Likewise.
22244 * genmk.rb: Ignore errors 2030 and 2050.
22245 * kern/i386/pc/startup.S: Use LOCAL when possible.
22247 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
22249 Testcase and the fix for final semicolon on cmdline.
22251 * tests/grub_script_final_semicolon.in: New testcase.
22252 * conf/tests.rmk: Rules for the new testcase.
22253 * script/parser.y: Grammar fix.
22255 2010-03-26 BVK Chaitanya <bvk@localhost>
22257 Blank lines testcase for GRUB script.
22259 * tests/grub_script_blanklines.in: New testcase.
22260 * conf/tests.rmk: Rules for the new testcase.
22262 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22264 Don't use __FILE__.
22266 * genmk.rb: Add -DGRUB_FILE to all C targets.
22267 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
22268 * include/grub/list.h: Likewise.
22269 * include/grub/misc.h: Likewise.
22270 * include/grub/mm.h: Likewise.
22271 * include/grub/test.h: Likewise.
22272 * kern/mm.c: Likewise.
22273 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
22275 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22277 Sunpc partitions support.
22279 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
22280 (grub_fstest_SOURCES): Likewise.
22281 (pkglib_MODULES): Add part_sunpc.mod.
22282 (part_sunpc_mod_SOURCES): New variable.
22283 (part_sunpc_mod_CFLAGS): Likewise.
22284 (part_sunpc_mod_LDFLAGS): Likewise.
22285 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
22286 * partmap/sunpc.c: New file.
22288 2010-03-26 BVK Chaitanya <bvk@localhost>
22290 For loop support to GRUB script.
22292 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
22293 (grub_script_create_cmdfor): New function prototype.
22294 (grub_script_execute_cmdfor): New function prototype.
22295 * script/execute.c (grub_script_execute_cmdfor): New function.
22296 * script/parser.y (command): New for command.
22297 (forcmd): New grammar rule.
22298 * script/script.c (grub_script_create_cmdfor): New function.
22299 * util/grub-script-check.c (grub_script_execute_cmdfor): New
22301 * tests/grub_script_for1.in: New testcase.
22302 * conf/tests.rmk: Rules for new testcase.
22304 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22308 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
22309 'partition' is NULL, grub_partition_get_start already does that.
22310 * commands/loadenv.c (check_blocklists): Likewise.
22311 (write_blocklists): Likewise.
22312 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
22313 (grub_fstest_SOURCES): Likewise.
22314 (pkglib_MODULES): Add part_bsd.mod.
22315 (part_bsd_mod_SOURCES): New variable.
22316 (part_bsd_mod_CFLAGS): Likewise.
22317 (part_bsd_mod_LDFLAGS): Likewise.
22318 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
22319 (grub_emu_SOURCES): Likewise.
22320 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22321 * include/grub/bsdlabel.h: New file.
22322 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
22324 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
22325 (grub_partition_map_list): New variable.
22326 (grub_partition_map_register): Inline.
22327 (grub_partition_map_unregister): Likewise.
22328 (FOR_PARTITION_MAPS): New macro.
22329 (grub_partition_map_iterate): Removed.
22330 (grub_partition_get_start): Handle nested partitions.
22331 * include/grub/msdos_partition.h: Remove bsd-related entries.
22332 (grub_pc_partition): Remove.
22333 * kern/disk.c (grub_disk_close): Free partition data.
22334 (grub_disk_adjust_range): Handle nested partitions.
22335 * kern/partition.c (grub_partition_map_probe): New function.
22336 (grub_partition_probe): Parse name to number, handle subpartitions.
22337 (get_partmap): New function.
22338 (grub_partition_iterate): Handle subpartitions.
22339 (grub_partition_get_name): Likewise.
22340 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
22341 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
22342 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
22343 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
22345 (acorn_partition_map_probe): Remove.
22346 (acorn_partition_map_get_name): Likewise.
22347 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
22349 Set 'index' to 0 since there can be only one partition entry per sector.
22350 (amiga_partition_map_probe): Remove.
22351 (amiga_partition_map_get_name): Likewise.
22352 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
22354 Set 'offset' and 'index' to real positions of partitions.
22355 (apple_partition_map_probe): Remove.
22356 (apple_partition_map_get_name): Likewise.
22357 * partmap/bsdlabel.c: New file.
22358 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
22360 Allocate 'data' so it can be correctly freed.
22361 Set 'index' to offset inside sector.
22362 (gpt_partition_map_probe): Remove.
22363 (gpt_partition_map_get_name): Likewise.
22364 * partmap/msdos.c (grub_partition_parse): Remove.
22365 (pc_partition_map_iterate): Don't force raw access.
22367 Make 'ext_offset' a local variable.
22368 (pc_partition_map_probe): Remove.
22369 (pc_partition_map_get_name): Remove.
22370 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
22372 (sun_partition_map_probe): Remove.
22373 (sun_partition_map_get_name): Likewise.
22374 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
22375 (grub_pcpart_type): Likewise.
22376 * util/hostdisk.c (open_device): Handle new numbering scheme.
22377 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
22378 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
22379 * util/grub-probe.c (probe_partmap): Handle nested paritions.
22380 * util/grub-install.in: Insert all subpartition modules.
22381 * util/ieee1275/grub-install.in: Likewise.
22383 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
22385 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
22388 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
22390 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
22392 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
22394 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
22395 match where 'make install' puts them.
22396 * util/i386/efi/grub-install.in: Likewise.
22398 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
22400 * .bzrignore: Add gentrigtables, grub-script-check,
22401 grub_script_check_init.c, grub_script_check_init.h, and
22404 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
22406 * kern/parser.c: Indented.
22408 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
22410 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
22412 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
22414 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
22415 alpha_mask_size == 0 case.
22417 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
22419 GRUB shell lexer and parser improvements.
22421 * conf/any-emu.rmk: Build rule updates.
22422 * conf/common.rmk: Likewise.
22423 * conf/i386-coreboot.rmk: Likewise.
22424 * conf/i386-efi.rmk: Likewise.
22425 * conf/i386-ieee1275.rmk: Likewise.
22426 * conf/i386-pc.rmk: Likewise.
22427 * conf/powerpc-ieee1275.rmk: Likewise.
22428 * conf/x86_64-efi.rmk: Likewise.
22430 * configure.ac: Configure check for flex.
22432 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
22434 (grub_lexer_param): Struct member updates.
22435 (grub_parser_param): Likewise.
22436 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
22437 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
22438 (grub_script_lexer_init): Prototype update.
22439 (grub_script_lexer_record_start): Likewise.
22440 (grub_script_lexer_record_stop): Likewise.
22441 (grub_script_lexer_yywrap): New function prototype.
22442 (grub_script_lexer_fini): Likewise.
22443 (grub_script_execute_argument_to_string): Removed by...
22444 (grub_script_execute_argument_to_argv): ...better version.
22446 * script/execute.c (ROUND_UPTO): New macro.
22447 (grub_script_execute_cmdline): Out of memory fixes.
22448 (grub_script_execute_menuentry): Likewise.
22449 (grub_script_execute_argument_to_string): Removed. Update all
22451 (grub_script_execute_argument_to_argv): ...better version.
22452 * script/function.c (grub_script_function_create): Use
22453 grub_script_execute_argument_to_argv instead of
22454 grub_script_execute_argument_to_string.
22456 * script/lexer.c (check_varstate): Removed.
22457 (check_textstate): Removed.
22458 (grub_script_lexer_record_start): Likewise.
22459 (grub_script_lexer_record_stop): Likewise.
22460 (recordchar): Replaced with...
22461 (grub_script_lexer_record): ...new function.
22462 (nextchar): Removed.
22463 (grub_script_lexer_init): Rewritten.
22464 (grub_script_yylex): Rewritten.
22465 (append_newline): New function.
22466 (grub_script_lexer_yywrap): New function.
22467 (grub_script_lexer_fini): New function.
22468 (grub_script_yyerror): Sets error flag.
22470 * script/yylex.l: New file.
22471 (grub_lexer_yyfree): Wrapper for flex yyffre.
22472 (grub_lexer_yyalloc): Likewise.
22473 (grub_lexer_yyrealloc): Likewise.
22474 * script/parser.y: Refactored.
22476 * script/script.c (grub_script_arg_add): Out of memory fixes.
22477 (grub_script_add_arglist): Likewise.
22478 (grub_script_create_cmdline): Likewise.
22479 (grub_script_create_cmdmenu): Likewise.
22480 (grub_script_add_cmd): Likewise.
22481 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
22482 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
22485 * tests/grub_script_echo1.in: New testcase.
22486 * tests/grub_script_vars1.in: New testcase.
22487 * tests/grub_script_echo_keywords.in: New testcase.
22489 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22491 Remove some redundancy in build system.
22493 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
22494 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
22495 (TARGET_LDFLAGS): Add -nostdlib.
22496 (TARGET_IMG_LDFLAGS): Likewise.
22497 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
22498 anything since mmap isn't available.
22499 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
22501 (pkglib_MODULES): Remove reboot.mod.
22502 (reboot_mod_SOURCES): Removed.
22503 (reboot_mod_CFLAGS): Likewise.
22504 (reboot_mod_LDFLAGS): Likewise.
22505 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
22506 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
22507 (DEFSYMFILES): Add kernel_syms.lst.
22508 (kernel_img_HEADERS): Add common headers.
22509 (symlist.c): New target.
22510 (kernel_syms.lst): Likewise.
22511 (pkglib_MODULES): Add memdisk.mod.
22512 (memdisk_mod_SOURCES): New variable.
22513 (memdisk_mod_CFLAGS): Likewise.
22514 (memdisk_mod_LDFLAGS): Likewise.
22515 (pkglib_MODULES): Add reboot.mod.
22516 (reboot_mod_SOURCES): New variable.
22517 (reboot_mod_CFLAGS): Likewise.
22518 (reboot_mod_LDFLAGS): Likewise.
22519 (pkglib_MODULES): Add date.mod.
22520 (date_mod_SOURCES): New variable.
22521 (date_mod_CFLAGS): Likewise.
22522 (date_mod_LDFLAGS): Likewise.
22523 (pkglib_MODULES): Add datehook.mod.
22524 (datehook_mod_SOURCES): New variable.
22525 (datehook_mod_CFLAGS): Likewise.
22526 (datehook_mod_LDFLAGS): Likewise.
22527 (pkglib_MODULES): Add lsmmap.mod.
22528 (lsmmap_mod_SOURCES): New variable.
22529 (lsmmap_mod_CFLAGS): Likewise.
22530 (lsmmap_mod_LDFLAGS): Likewise.
22531 (pkglib_MODULES): Add boot.mod.
22532 (boot_mod_SOURCES): New variable.
22533 (boot_mod_CFLAGS): Likewise.
22534 (boot_mod_LDFLAGS): Likewise.
22535 * conf/i386-coreboot.rmk: Removed redundant parts.
22536 * conf/i386-ieee1275.rmk: Likewise.
22537 * conf/i386-pc.rmk: Likewise.
22538 * conf/mips-yeeloong.rmk: Likewise.
22539 * conf/mips.rmk: Likewise.
22540 * conf/powerpc-ieee1275.rmk: Likewise.
22541 * conf/sparc64-ieee1275.rmk: Likewise.
22542 * conf/x86_64-efi.rmk: Likewise.
22543 * conf/i386-coreboot.rmk: Moved qemu parts ..
22544 * conf/i386-qemu.rmk: ... here
22545 * conf/i386-efi.rmk: Moved common parts to...
22546 * conf/x86-efi.rmk: ... here.
22547 * conf/i386.rmk: Added modules common to all x86 variants.
22548 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
22549 * disk/memdisk.c: Remove grub/machine/kernel.h.
22550 * gensymlist.sh.in: Include symbol.h.
22551 * hook/datehook.c: Correct module name.
22552 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
22553 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
22554 * include/grub/i386/efi/serial.h: New file.
22555 * include/grub/x86_64/efi/serial.h: Likewise.
22556 * util/time.c: Likewise.
22557 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
22559 2010-03-14 Colin King <colin.king@ubuntu.com>
22560 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
22562 Shrink the pre-partition-table part of boot.img by eight bytes.
22564 * boot/i386/pc/boot.S (ERR): New macro.
22565 (chs_mode): Use ERR.
22566 (geometry_error): Likewise.
22567 (hd_probe_error): Remove. This is only used once, so we wrwite
22569 (read_error): Instead of printing read_error_string, just set up
22570 %si and fall through to ...
22571 (error_message): ... this new function, also used by ERR.
22573 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
22575 Speed up consecutive hostdisk operations on the same device.
22577 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
22578 (grub_util_biosdisk_open): Initialise disk->data.
22579 (struct linux_partition_cache): New structure.
22580 (linux_find_partition): Cache partition start positions; these are
22581 expensive to compute on every read and write.
22582 (open_device): Cache open file descriptor in disk->data, so that we
22583 don't have to reopen it and flush the buffer cache for consecutive
22584 operations on the same device.
22585 (grub_util_biosdisk_close): New function.
22586 (grub_util_biosdisk_dev): Set `close' member.
22588 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
22589 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
22590 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
22591 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
22592 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
22594 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22596 Compile parts of grub-emu as modules.
22598 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
22599 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
22600 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
22601 (all-local): Add $(GRUB_EMU).
22602 (install-local): Install $(GRUB_EMU).
22603 (uninstall): Uninstall $(GRUB_EMU).
22604 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
22605 * kern/dl.c: Likewise.
22606 * commands/sleep.c: Not include machine/time.h.
22607 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
22608 (COMMON_CFLAGS): Likewise.
22609 (sbin_UTILITIES): Remove grub-emu.
22610 (grub_emu_SOURCES): Removed.
22611 (kernel_img_RELOCATABLE): New variable.
22612 (pkglib_PROGRAMS): Add kernel.img.
22613 (kernel_img_SOURCES): New variable
22614 (kernel_img_CFLAGS): Likewise.
22615 (kernel_img_LDFLAGS): Likewise.
22616 (TARGET_NO_STRIP): Likewise.
22617 (TARGET_NO_DYNAMIC_MODULES): Likewise.
22618 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
22619 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
22620 (grub-emu): New target.
22621 (GRUB_EMU): New variable.
22622 * configure.ac: Whitelist -emu as possible x86_64 architecture.
22623 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
22624 * loader/xnu.c: Likewise.
22625 * include/grub/pci.h: Likewise.
22626 * genemuinit.sh: New file.
22627 * genemuinitheader.sh: Likewise.
22628 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
22629 Support TARGET_NO_DYNAMIC_MODULES.
22630 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
22631 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
22632 * disk/loopback.c: Likewise.
22633 * font/font_cmd.c: Likewise.
22634 * partmap/acorn.c: Likewise.
22635 * partmap/amiga.c: Likewise.
22636 * partmap/apple.c: Likewise.
22637 * partmap/gpt.c: Likewise.
22638 * partmap/msdos.c: Likewise.
22639 * partmap/sun.c: Likewise.
22640 * parttool/msdospart.c: Likewise.
22641 * term/gfxterm.c: Likewise.
22642 * video/bitmap.c: Likewise.
22643 * video/readers/jpeg.c: Likewise.
22644 * video/readers/png.c: Likewise.
22645 * video/readers/tga.c: Likewise.
22646 * video/video.c: Likewise.
22647 * util/grub-emu.c (read_command_list): Removed.
22648 (main): Don't call util_init_nls.
22649 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
22650 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
22652 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22654 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
22655 date.mod, datehook.mod.
22656 (datetime_mod_SOURCES): New variable.
22657 (datetime_mod_CFLAGS): Likewise.
22658 (datetime_mod_LDFLAGS): Likewise.
22659 (date_mod_SOURCES): Likewise.
22660 (date_mod_CFLAGS): Likewise.
22661 (date_mod_LDFLAGS): Likewise.
22662 (datehook_mod_SOURCES): Likewise.
22663 (datehook_mod_CFLAGS): Likewise.
22664 (datehook_mod_LDFLAGS): Likewise.
22665 * conf/sparc64-ieee1275.rmk: Likewise.
22666 * lib/ieee1275/datetime.c: New file.
22668 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22670 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
22671 (ieee1275_fb_mod_SOURCES): New variable.
22672 (ieee1275_fb_mod_CFLAGS): Likewise.
22673 (ieee1275_fb_mod_LDFLAGS): Likewise.
22674 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
22676 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
22677 (HEAP_MAX_ADDR): Likewise.
22678 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
22680 Correct stop condition.
22681 (grub_ieee1275_devices_iterate): New function.
22682 * video/ieee1275.c: New file.
22684 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22686 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
22688 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
22690 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
22691 SCRATCH_PAD_DISKBOOT as scratch.
22692 (bootit): Pass Openfirmware pointer in %o4.
22693 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
22695 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
22696 with util/grub-mkrawimage.c.
22697 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
22698 * include/grub/aout.h (AOUT_MID_SUN): New definition.
22699 (grub_aout_get_type) [GRUB_UTIL]: Removed.
22700 (grub_aout_load) [GRUB_UTIL]: Likewise.
22701 * include/grub/kernel.h (grub_modules_get_end): New proto.
22702 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
22703 (SCRATCH_PAD_BOOT): New definition.
22704 (SCRATCH_PAD_DISKBOOT): Likewise.
22705 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
22706 * include/grub/sparc64/ieee1275/ieee1275.h
22707 (grub_ieee1275_original_stack): New variable
22708 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
22710 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
22711 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
22712 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
22713 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
22714 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
22715 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
22716 (grub_platform_image_format_t): New type.
22717 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
22718 * kern/main.c (grub_modules_get_end)
22719 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
22720 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
22721 (codestart): Switch stacks.
22722 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
22724 (grub_heap_init): Use grub_modules_get_end.
22725 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
22727 * util/grub-mkrawimage.c (generate_image): Support sparc64.
22729 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
22731 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
22733 * util/grub-mkrescue.in: Base ISO UUID on UTC.
22735 2010-03-08 Matt Kraai <kraai@ftbfs.org>
22737 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
22740 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
22742 * genmoddep.awk: Output all missing symbols and not only first.
22744 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22746 * NEWS: Put the date of 1.98 release.
22748 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22750 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
22753 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22755 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
22756 completition in the middle of string.
22758 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22760 * util/grub-mkrescue.in: Use mktemp with explicit template.
22762 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22764 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
22766 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22768 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
22771 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
22773 Fix FreeBSD compilation.
22775 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
22776 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
22778 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
22780 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
22782 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22784 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
22786 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22788 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
22790 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
22792 Support relative image path in theme file.
22794 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
22795 (image_set_property): Handle theme_dir and relative path.
22797 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22799 * configure.ac: Alias amd64 to x86_64.
22801 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22803 * NEWS: mention multiboot on EFI.
22805 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22807 * kern/main.c (grub_load_modules): Handle errors from init functions of
22810 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22812 * normal/autofs.c (autoload_fs_module): Handle errors.
22814 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22816 Disable linux.mod on qemu-mips since it's not functional and leads
22817 to compilation failure.
22819 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
22820 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
22821 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
22822 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
22823 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
22824 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
22825 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
22826 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
22827 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
22828 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
22829 Reported by: BVK Chaitanya
22831 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
22833 * INSTALL: Add gettext as a dependency and add qemu to a new section
22834 "Prerequisites for make-check".
22836 2010-03-04 Christian Franke <franke@computer.org>
22838 * util/grub-pe2elf.c: Add missing include "progname.h".
22840 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22842 * normal/crypto.c (read_crypto_list): Fix a typo.
22843 Reported by: Seth Goldberg.
22845 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22847 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
22848 Reported by: Seth Goldberg.
22850 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22852 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
22855 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22857 * genmk.rb: Remove terminal*.lst in make clean.
22858 Reported by: Seth Goldberg.
22860 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22862 * util/i386/efi/grub-install.in: Copy gettext files.
22864 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22866 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
22868 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22870 Wait for user entry basing on presence of output rather than on errors.
22872 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
22873 (grub_install_newline_hook): Likewise.
22874 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
22875 * normal/menu.c (show_menu): Check line_counter to determine presence
22877 * normal/term.c (grub_normal_line_counter): New variable.
22878 (grub_normal_get_line_counter): New function.
22879 (grub_install_newline_hook): Likewise.
22881 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22883 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
22885 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22887 * configure.ac: Update version to 1.98.
22889 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
22891 * util/grub.d/10_linux.in (linux_entry): Don't default to
22892 gfxpayload=keep if Linux doesn't support video handover.
22894 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
22896 Don't compile video modules on yeeloong since video subsystem is part
22899 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
22900 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
22901 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
22902 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
22903 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
22904 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
22905 * include/grub/bitmap_scale.h: Likewise.
22906 * include/grub/bufio.h: Likewise.
22907 * include/grub/font.h: Likewise.
22908 * include/grub/gfxterm.h: Likewise.
22909 * include/grub/video.h: Likewise.
22910 * include/grub/vbe.h: Don't include video_fb.h.
22911 * video/i386/pc/vbe.c: Include video_fb.h.
22912 * commands/i386/pc/vbetest.c: Include video.h.
22914 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
22916 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
22917 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
22918 default entry if GRUB_SAVEDEFAULT=true. This allows using
22919 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
22920 saving a new default on every boot.
22922 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
22924 * normal/crypto.c (read_crypto_list): Fix a memory leak.
22925 * normal/term.c (read_terminal_list): Likewise.
22926 * normal/main.c (grub_normal_init_page): Likewise.
22927 (grub_normal_read_line_real): Likewise.
22929 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
22931 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
22933 Reported by: Seth Goldberg.
22935 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
22937 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
22938 duplicate declaration of `start'.
22940 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
22942 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
22944 Reported by: Georgy Buranov
22946 2010-02-20 Carles Pina i Estany <carles@pina.cat>
22948 * util/grub-mkrawimage.c (usage): Change string formatting to
22951 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22953 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
22956 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
22958 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
22959 Reported by: Michael Suchanek.
22961 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
22963 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
22964 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
22966 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
22968 Remove any reference to non-free fonts.
22970 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
22971 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
22972 uses non-free components.
22973 * font/font.c (grub_font_get_name): Remove example name.
22974 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
22975 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22976 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
22977 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
22979 2010-02-16 Georgy Buranov <gburanov@gmail.com>
22981 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
22983 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
22985 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
22987 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
22989 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
22991 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
22993 * gensymlist.sh.in: Use TARGET_CC instead of CC.
22995 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
22997 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
22998 * docs/grub.texi (Command-line and menu entry commands): Document play
23001 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
23003 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
23004 parse arguments as inline tempo and notes. Move code for playing notes
23006 (play): ... new function.
23008 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
23010 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
23011 grub_uint16_t instead of short.
23012 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
23013 disk from little endian to cpu endianness.
23015 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
23017 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
23018 GRUB_TICKS_PER_SECOND instead of 120.
23020 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23022 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
23023 escape sequence after \e.
23025 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23027 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
23028 non-ASCII characters.
23030 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23032 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
23033 set root in single quotes to prevent \, from being unescaped.
23035 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23037 Prevent unknown commands from stopping menuentry execution.
23039 * script/execute.c (grub_script_execute_cmdline): Print error after
23042 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23044 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
23045 Reported by: Pavel Pisa.
23047 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23049 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
23051 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23053 Merge grub_ieee1275_map_physical into grub_map and rename to
23056 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
23057 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
23059 * kern/ieee1275/openfw.c (grub_map): Rename to ...
23060 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
23062 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
23064 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23066 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
23067 opening and not after.
23069 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23071 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
23074 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23076 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
23077 (alloc_phys): Use ALIGN_UP instead of align_addr.
23079 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23081 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
23083 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23085 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
23087 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23089 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
23092 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23094 Fix over-4GiB seek on sparc64.
23096 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
23097 Replace pos_i and pos_lo with pos. All users updated.
23098 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
23100 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
23102 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
23105 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23107 * util/grub-mkrawimage.c (main): Call set_program_name.
23109 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23111 Properly align 64-bit targets.
23113 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
23114 (generate_image): Use ALIGN_ADDR.
23116 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23118 Properly create cross-endian images.
23120 * include/grub/types.h (grub_host_to_target_addr): New macro
23121 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
23123 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23125 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
23127 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23129 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
23131 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
23132 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
23133 (grub_linux_boot): Divide by 64K when on VESA.
23135 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23137 Support GRUB_GFXPAYLOAD_LINUX.
23139 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
23140 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
23142 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23144 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
23145 to show messages instead of discarding them.
23146 Process errors after executing command and not before. Keep old method
23149 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
23151 * configure.ac: Check for ft2build.h.
23153 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23155 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
23157 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23159 * genkernsyms.sh.in: Use TARGET_CC.
23161 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
23165 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23167 * include/grub/multiboot2.h: Remove leftover file.
23168 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
23169 * include/grub/partition.h [GRUB_UTIL]: Likewise.
23171 2010-02-07 Yves Blusseau <blusseau@zetam.org>
23173 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
23175 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23177 Fix warnings in grub-emu when compiling with maximum warning options.
23179 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
23180 (grub_arch_modules_addr): Return 0 and not NULL.
23181 * util/misc.c (ENABLE_RELOCATABLE): New definition.
23182 (xstrdup): Use newstr instead of dup.
23183 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
23184 of disk to dsk to avoid shadowing.
23185 (find_free_slot): Fix prototype.
23186 * util/getroot.c (grub_util_is_dmraid): Make static.
23187 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
23188 Add missing prototype.
23189 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
23191 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23193 * loader/i386/linux.c (grub_linux_setup_video): Handle error
23196 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23198 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
23201 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23203 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
23204 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
23205 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
23206 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
23207 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
23208 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
23210 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23212 * include/grub/err.h (grub_err_printf): Don't export.
23214 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23216 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
23218 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23220 * include/grub/i18n.h (grub_gettext_dummy): Removed.
23221 * kern/misc.c (grub_gettext_dummy): Make static.
23223 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23225 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
23227 * kern/term.c (grub_putchar): Likewise.
23229 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23231 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
23232 buggy hook call and memory leak.
23234 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23236 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
23238 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23240 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
23242 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23244 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
23246 Return grub_errno on allocation error.
23248 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23250 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
23252 2010-02-06 Yves Blusseau <blusseau@zetam.org>
23254 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
23255 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
23257 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23259 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
23261 (grub_pxefs_open): Likewise.
23263 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23265 * util/grub.d/10_hurd.in: Add --class information to menuentries.
23266 * util/grub.d/10_kfreebsd.in: Likewise.
23267 * util/grub.d/10_linux.in: Likewise.
23269 2010-02-06 Colin D Bennett <colin@gibibit.com>
23271 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
23272 (gfxmenu_mod_SOURCES): New variable.
23273 (gfxmenu_mod_CFLAGS): Likewise.
23274 (gfxmenu_mod_LDFLAGS): Likewise.
23275 * include/grub/term.h (grub_term_set_current_output): Declare
23277 * docs/gfxmenu-theme-example.txt: New file.
23278 * gfxmenu/gfxmenu.c: Likewise.
23279 * gfxmenu/gui_box.c: Likewise.
23280 * gfxmenu/gui_canvas.c: Likewise.
23281 * gfxmenu/gui_circular_progress.c: Likewise.
23282 * gfxmenu/gui_image.c: Likewise.
23283 * gfxmenu/gui_label.c: Likewise.
23284 * gfxmenu/gui_list.c: Likewise.
23285 * gfxmenu/gui_progress_bar.c: Likewise.
23286 * gfxmenu/gui_string_util.c: Likewise.
23287 * gfxmenu/gui_util.c: Likewise.
23288 * gfxmenu/icon_manager.c: Likewise.
23289 * gfxmenu/model.c: Likewise.
23290 * gfxmenu/named_colors.c: Likewise.
23291 * gfxmenu/theme_loader.c: Likewise.
23292 * gfxmenu/view.c: Likewise.
23293 * gfxmenu/widget-box.c: Likewise.
23294 * include/grub/gfxmenu_model.h: Likewise.
23295 * include/grub/gfxmenu_view.h: Likewise.
23296 * include/grub/gfxwidgets.h: Likewise.
23297 * include/grub/gui.h: Likewise.
23298 * include/grub/gui_string_util.h: Likewise.
23299 * include/grub/icon_manager.h: Likewise.
23301 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23303 Agglomerate scrolling in gfxterm.
23305 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
23306 (grub_virtual_screen_setup): Initialise 'total_screen'.
23307 (write_char): Split to ...
23308 (paint_char): ... this ...
23309 (write_char): ... and this.
23310 (paint_char): Handle delayed scrolling.
23311 (draw_cursor): Likewise.
23312 (scroll_up): Split to ...
23313 (real_scroll): ... this ...
23314 (scroll_up): ... and this.
23315 (real_scroll): Handle multi-line scroll and draw below-the-bottom
23317 (grub_gfxterm_refresh): Call real_scroll.
23319 2010-02-06 Colin D Bennett <colin@gibibit.com>
23321 * include/grub/misc.h (grub_iscntrl): New inline function.
23322 (grub_isalnum): Likewise.
23323 (grub_strtol): Likewise.
23325 2010-02-06 Colin D Bennett <colin@gibibit.com>
23327 * normal/menu_text.c (get_entry_number): Move from here ...
23328 * normal/menu.c (get_entry_number): ... moved here.
23329 * include/grub/menu.h (grub_menu_get_default_entry_index):
23331 * normal/menu.c (grub_menu_get_default_entry_index): New function.
23332 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
23333 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
23334 (grub_menu_viewer_should_return): Likewise.
23335 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
23336 * normal/menu_text.c (run_menu): Enable menu switching.
23337 * normal/menu_viewer.c (should_return): New variable.
23338 (menu_viewer_changed): Likewise.
23339 (grub_menu_viewer_show_menu): Handle menu viewer changes.
23340 (grub_menu_viewer_should_return): New function.
23341 (menuviewer_write_hook): Likewise.
23342 (grub_menu_viewer_init): Likewise.
23344 2010-02-06 Colin D Bennet <colin@gibibit.com>
23345 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23347 Support for gfxterm in a window.
23349 * include/grub/gfxterm.h: New file.
23350 * include/grub/video.h (struct grub_video_rect): New declaration.
23351 (grub_video_rect_t): Likewise.
23352 * term/gfxterm.c (struct grub_gfxterm_window): New type.
23353 (refcount): New variable.
23354 (render_target): Likewise.
23355 (window): Likewise.
23356 (repaint_callback): Likewise.
23357 (grub_virtual_screen_setup): Use 'render_target'.
23358 (init_window): New function.
23359 (grub_gfxterm_init_window): Likewise.
23360 (grub_gfxterm_init): Check reference counter.
23362 (destroy_window): New function.
23363 (grub_gfxterm_destroy_window): Likewise.
23364 (grub_gfxterm_fini): Check reference counter.
23365 Use destroy_window.
23366 (redraw_screen_rect): Restore viewport.
23367 Use 'render_target' and 'window'.
23368 Call 'repaint_callback'.
23369 (write_char): Use 'render_target'.
23370 (draw_cursor): Likewise.
23371 (scroll_up): Restore viewport.
23372 Use 'render_target' and 'window'.
23373 Call 'repaint_callback'.
23374 (grub_gfxterm_cls): Likewise.
23375 (grub_gfxterm_refresh): Use 'window'.
23376 (grub_gfxterm_set_repaint_callback): New function.
23377 (grub_gfxterm_background_image_cmd): Use 'window'.
23378 (grub_gfxterm_get_term): New function.
23379 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
23381 2010-02-06 Colin D Bennett <colin@gibibit.com>
23383 Bitmap scaling support.
23385 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
23386 (bitmap_scale_mod_SOURCES): New variable.
23387 (bitmap_scale_mod_CFLAGS): Likewise.
23388 (bitmap_scale_mod_LDFLAGS): Likewise.
23389 * include/grub/bitmap_scale.h: New file.
23390 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
23391 (background_image_cmd_options): New variable.
23392 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
23393 (cmd): Rename and change type to ...
23394 (background_image_cmd_handle): ... this. All users updated.
23395 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
23396 * video/bitmap_scale.c: New file.
23398 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23402 * Makefile.in (LIBSDL): New variable.
23403 (enable_grub_emu_sdl): Likewise.
23404 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
23405 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
23406 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
23407 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
23408 * util/sdl.c: New file.
23410 2010-02-06 Colin D Bennett <colin@gibibit.com>
23411 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23413 Double buffering support.
23415 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
23416 * include/grub/video.h: Update comment.
23417 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
23419 (grub_video_fb_doublebuf_blit_init): New prototype.
23420 * term/gfxterm.c (scroll_up): Support double buffering.
23421 (grub_gfxterm_refresh): Likewise.
23422 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
23423 (grub_video_fb_doublebuf_blit_init): Likewise.
23424 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
23425 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
23426 'displayed_page', 'render_page' and 'update_screen'.
23427 (grub_video_vbe_fini): Free offscreen buffer.
23428 (doublebuf_pageflipping_commit): New function.
23429 (doublebuf_pageflipping_update_screen): Likewise.
23430 (doublebuf_pageflipping_init): Likewise.
23431 (double_buffering_init): Likewise.
23432 (grub_video_vbe_setup): Enable doublebuffering.
23433 (grub_video_vbe_swap_buffers): Implement.
23434 (grub_video_vbe_set_active_render_target): Handle double buffering.
23435 (grub_video_vbe_get_active_render_target): Likewise.
23436 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
23437 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
23438 (grub_video_vbe_enable_double_buffering): Likewise.
23439 (grub_video_vbe_swap_buffers): Use update_screen.
23440 (grub_video_set_mode): Use double buffering.
23442 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23444 * maintainance/gentrigtables.py: Remove.
23445 * lib/trig.c: Likewise.
23447 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
23449 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
23451 (trigtables.c): New rule.
23452 (gentrigtables): Likewise.
23453 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
23455 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23457 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
23460 2010-02-06 Colin D Bennet <colin@gibibit.com>
23462 Trigonometry support.
23464 * include/grub/trig.h: New file.
23465 * lib/trig.c: Likewise.
23466 * maintainance/gentrigtables.py: Likewise.
23467 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
23468 (trig_mod_SOURCES): New variable.
23469 (trig_mod_CFLAGS): Likewise.
23470 (trig_mod_LDFLAGS): Likewise.
23472 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23474 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
23477 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23479 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
23482 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
23484 * util/hostdisk.c (open_device): Don't use partition device when reading
23485 before the partition.
23486 (grub_util_biosdisk_read): Don't read from partition and before the
23487 partition in single operation.
23488 (grub_util_biosdisk_write): Don't write to partition and before the
23489 partition in single operation.
23491 2010-02-03 Torsten Landschoff <torsten@debian.org>
23493 * kern/disk.c (grub_disk_read): Fix offset computation when reading
23496 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
23498 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
23500 (grub_biosdisk_write): Refuse to write to CDROM.
23502 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23504 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
23506 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23508 * font/font.c (find_glyph): Check that bmp_idx is available before
23510 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
23511 with (font == NULL).
23513 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
23515 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
23517 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
23519 * include/grub/script_sh.h (sourcecode): Add const qualifier.
23520 * util/grub-script-check.c (getline): Fix empty lines case.
23522 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
23524 * Makefile.in (check): Exit with fail status when one of the tests
23526 * tests/example_functional_test.c (example_test): Fix reversed assert.
23527 * tests/example_unit_test.c (example_test): Likewise.
23529 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
23531 * util/grub.d/10_linux.in: This script does not use any of the
23532 contents of gettext.sh, only the external command `gettext', so stop
23533 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
23534 the same prefix as GRUB.)
23535 * util/grub.d/10_kfreebsd.in: Likewise.
23537 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23539 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
23542 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23544 * kern/disk.c (grub_disk_read): Fix offset computation when reading
23547 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23549 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
23550 having a 4KiB and not 32KiB buffer size.
23552 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23554 * util/hostfs.c: Include `<errno.h>'.
23555 (grub_hostfs_read): Handle errors from fseeko() and fread().
23557 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23559 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
23560 loop when using read hooks on files whose size isn't sector-aligned.
23562 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23564 Remove unused parameter.
23566 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
23567 (grub_iso9660_open): Remove initialization of `data->length'.
23569 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23571 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
23572 memleak conditions.
23574 2010-01-27 Carles Pina i Estany <carles@pina.cat>
23576 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
23577 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
23579 2010-01-26 Carles Pina i Estany <carles@pina.cat>
23581 * util/bin2h.c (usage): Fix warning (space after backslash).
23583 2010-01-26 Carles Pina i Estany <carles@pina.cat>
23585 * font/font.c: Include `grub/fontformat.h.
23586 Remove font file format constants.
23587 (grub_font_load): Use the new macros.
23588 * include/grub/fontformat.h: New file.
23589 * util/grub-mkfont.c: Include `grub/fontformat.c'.
23590 (write_font_pf2): Use the new macros.
23592 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
23594 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
23597 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
23599 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
23601 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
23602 (_start): Macroify `0x7F'.
23604 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
23605 (make_install_device): Use "(pxe)" as fallback prefix when booting
23608 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
23610 * configure.ac: Reset LIBS after check for libgcc symbols.
23612 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
23614 * util/hostdisk.c (open_device): Add trailing newline to debug
23617 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
23619 * configure.ac: Check for `limits.h'.
23620 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
23622 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
23624 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
23625 capitalize error strings.
23627 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
23629 * util/grub.d/10_hurd.in: Add a recovery mode.
23631 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
23633 * configure.ac: Check for libgcc symbols with -nostdlib.
23635 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
23637 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
23639 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23641 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
23642 stack since heap may be unavailable at that point.
23643 (grub_ofconsole_gotoxy): Likewise.
23645 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23647 * configure.ac: Check for _restgpr_14_x.
23648 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
23649 and _savegpr_* prototypes.
23651 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
23653 Use generic grub_reboot() for i386-efi.
23655 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
23656 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
23657 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
23659 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23661 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
23662 presence of "prefix" variable as it breaks when normal.mod is
23665 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23667 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
23668 stack since heap is unavailable at that point.
23670 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23672 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
23673 (grub_freebsd_bootinfo): Rewritten.
23674 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
23676 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23678 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
23680 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
23682 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
23685 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
23687 * util/misc.c (make_system_path_relative_to_its_root): Change the work
23688 around for handling "/" to the correct fix. Fix a memory leak. Use
23689 xstrdup instead of strdup.
23691 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23693 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
23695 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23697 Optimise glyph lookup by Basic Multilingual Plane lookup array.
23699 * font/font.c (struct grub_font): New member 'bmp_idx'.
23700 (font_init): Initialise 'bmp_idx'.
23701 (load_font_index): Fill 'bmp_idx'.
23702 (find_glyph): Make inline. Use bmp_idx for BMP characters.
23704 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23706 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
23709 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23711 Move context handling out of the kernel.
23713 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
23714 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
23715 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
23716 * conf/i386-efi.rmk: Likewise.
23717 * conf/i386-ieee1275.rmk: Likewise.
23718 * conf/i386-pc.rmk: Likewise.
23719 * conf/powerpc-ieee1275.rmk: Likewise.
23720 * conf/sparc64-ieee1275.rmk: Likewise.
23721 * conf/x86_64-efi.rmk: Likewise.
23722 * include/grub/env.h: Include grub/menu.h.
23723 (grub_env_var_type): Removed.
23724 (grub_env_var): Replaced field 'type' with 'global'.
23725 (grub_env_find): New prototype.
23726 (grub_env_context_open): Remove EXPORT_FUNC.
23727 (grub_env_context_close): Likewise.
23728 (grub_env_export): Likewise.
23729 (grub_env_set_data_slot): Removed.
23730 (grub_env_get_data_slot): Likewise.
23731 (grub_env_unset_data_slot): Likewise.
23732 (grub_env_unset_menu): New prototype.
23733 (grub_env_set_menu): Likewise.
23734 (grub_env_get_menu): Likewise.
23735 * include/grub/env_private.h: New file.
23736 * include/grub/normal.h (grub_context_init): New prototype.
23737 (grub_context_fini): Likewise.
23738 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
23739 * normal/context.c (grub_cmd_export): ... to here.
23740 * kern/env.c: Include env_private.h.
23741 (HASHSZ): Moved to include/grub/env_private.h.
23742 (grub_env_context): Likewise.
23743 (grub_env_sorted_var): Likewise.
23744 (current_context): Renamed from this ...
23745 (grub_current_context): ...to this. 'static' removed. All users updated.
23746 (grub_env_find): Removed 'static'.
23747 (grub_env_context_open): Moved to normal/context.c.
23748 (grub_env_context_close): Likewise.
23749 (grub_env_export): Likewise.
23750 (mangle_data_slot_name): Removed.
23751 (grub_env_set_data_slot): Likewise.
23752 (grub_env_get_data_slot): Likewise.
23753 (grub_env_unset_data_slot): Likewise.
23754 * kern/main.c (grub_set_root_dev): Don't export root.
23755 It will be done later.
23756 (grub_main): Don't export prefix.
23757 It will be done later.
23758 * normal/context.c: New file.
23759 * normal/main.c (free_menu): Use grub_env_unset_menu.
23760 (grub_normal_add_menu_entry): Use grub_env_get_menu.
23761 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
23762 (GRUB_MOD_INIT(normal)): Call grub_context_init.
23763 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
23765 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23769 * commands/setpci.c: New file.
23770 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
23771 (setpci_mod_SOURCES): New variable.
23772 (setpci_mod_CFLAGS): Likewise.
23773 (setpci_mod_LDFLAGS): Likewise.
23775 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23777 Byte-addressable PCI configuration space.
23779 * bus/pci.c (grub_pci_make_address): Use byte address instead of
23781 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
23782 GRUB_PCI_REG_CACHELINE.
23783 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
23784 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
23785 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
23786 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
23787 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
23788 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
23789 grub_pci_make_address.
23790 (lock_rom_area): Likewise.
23791 * commands/lspci.c (grub_lspci_iter): Use macroses
23792 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
23793 of grub_pci_make_address.
23794 * disk/ata.c (grub_ata_pciinit): Likewise.
23795 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
23796 (GRUB_PCI_REG_VENDOR): Likewise.
23797 (GRUB_PCI_REG_DEVICE): Likewise.
23798 (GRUB_PCI_REG_COMMAND): Likewise.
23799 (GRUB_PCI_REG_STATUS): Likewise.
23800 (GRUB_PCI_REG_REVISION): Likewise.
23801 (GRUB_PCI_REG_CLASS): Likewise.
23802 (GRUB_PCI_REG_CACHELINE): Likewise.
23803 (GRUB_PCI_REG_LAT_TIMER): Likewise.
23804 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
23805 (GRUB_PCI_REG_BIST): Likewise.
23806 (GRUB_PCI_REG_ADDRESSES): Likewise.
23807 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23808 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23809 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23810 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23811 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23812 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23813 (GRUB_PCI_REG_CIS_POINTER): Likewise.
23814 (GRUB_PCI_REG_SUBVENDOR): Likewise.
23815 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
23816 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
23817 (GRUB_PCI_REG_CAP_POINTER): Likewise.
23818 (GRUB_PCI_REG_IRQ_LINE): Likewise.
23819 (GRUB_PCI_REG_IRQ_PIN): Likewise.
23820 (GRUB_PCI_REG_MIN_GNT): Likewise.
23821 (GRUB_PCI_REG_MAX_LAT): Likewise.
23822 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
23823 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
23824 * video/efi_uga.c (find_framebuf): Likewise.
23825 * video/sm712.c (grub_video_sm712_setup): Likewise.
23826 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
23829 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23831 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
23832 can be reliably determined to be supported.
23834 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23836 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
23837 that VESA is supported.
23838 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
23841 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23843 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
23845 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23847 * util/misc.c (make_system_path_relative_to_its_root): Work around
23848 special-casing of "/", as previous incarnation of this routine did.
23850 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23852 Fix any-emu compilation.
23854 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
23855 * grub_bin2h_SOURCES: New variable.
23857 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23859 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
23861 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23863 * util/grub.d/00_header.in: Fix handling of locale_dir.
23865 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23867 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
23868 as possible unifont location (Gentoo).
23869 Reported by: Alexander Brüning
23871 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23873 Don't try to generate lists for kernel.img.
23875 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
23876 (pkglib_MODULES): Remove kernel.img.
23877 (kernel_img_EXPORTS): Removed.
23878 (kernel_img_RELOCATABLE): New variable.
23879 * conf/x86_64-efi.rmk: Likewise.
23880 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
23882 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23884 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
23885 grub_xasprintf or grub_snprintf.
23886 (grub_vsprintf): Likewise.
23887 (grub_snprintf): New proto.
23888 (grub_vsnprintf): Likewise.
23889 (grub_xasprintf): Likewise.
23890 (grub_xvasprintf): Likewise.
23891 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
23892 (grub_sprintf): Removed.
23893 (grub_vsnprintf): New function.
23894 (grub_snprintf): Likewise.
23895 (grub_xvasprintf): Likewise.
23896 (grub_xasprintf): Likewise.
23897 (grub_vsprintf): Renamed to ...
23898 (grub_vsnprintf_real): ...this. New argument max_len.
23900 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
23902 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
23903 fix grub-script-check warning.
23905 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23907 * include/grub/font.h (grub_font_load): Fix prototype.
23909 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23911 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
23913 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23915 * include/grub/x86_64/at_keyboard.h: New file.
23917 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23919 * loader/mips/linux.c: Include missing grub/i18n.h.
23921 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23923 * normal/menu.c (notify_execution_failure): Clarify error message.
23925 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23927 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
23928 return value (and revert all return statements). Update users.
23930 2010-01-20 Dan Merillat <debian@dan.merillat.org>
23932 * kern/device.c (grub_device_iterate): Allocate new part_ent
23933 structure based on sizeof (*p) rather than sizeof (p->next), to
23934 account for structure padding.
23936 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
23937 disk is NULL, which might happen for LVM physical volumes with no
23940 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23942 * loader/mips/linux.c (grub_cmd_initrd)
23943 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
23945 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23947 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
23948 (grub_video_video_init, grub_video_bitmap_init)
23949 (grub_font_manager_init, grub_term_gfxterm_init)
23950 (grub_at_keyboard_init): New extern declarations.
23951 (grub_machine_init): Initialize gfxterm and at_keyboard.
23953 * kern/main.c (grub_main): Revert grub_printf delay kludge.
23955 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
23956 `gfxterm.mod' into core image.
23958 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
23959 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
23960 (kernel_img_FORMAT): Copy to ...
23962 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
23963 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
23964 (kernel_img_FORMAT): ... here, and ...
23966 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
23967 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
23968 (kernel_img_FORMAT): ... here.
23970 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
23971 and input (at_keyboard) terminals in kernel.
23972 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
23974 (pkglib_MODULES): Remove `pci.mod'.
23975 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
23976 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
23977 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
23978 (at_keyboard_mod_LDFLAGS): Remove variables.
23980 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
23982 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
23984 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
23986 * include/grub/mips/libgcc.h: Only export symbols for functions
23987 that libgcc provides.
23989 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
23993 * bus/bonito.c: New file.
23994 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
23995 GRUB_PCI_NUM_DEVICES.
23996 * term/i386/pc/serial.c: Move to ...
23997 * term/serial.c: ... here. All users updated.
23998 * util/i386/pc/grub-mkimage.c: Move to ...
23999 * util/grub-mkrawimage.c: ... here. All users updated.
24000 * term/i386/pc/at_keyboard.c: Move to ...
24001 * term/at_keyboard.c: ... here. All users updated.
24002 * conf/mips-qemu-mips.rmk: New file.
24003 * conf/mips-yeeloong.rmk: Likewise.
24004 * conf/mips.rmk: Likewise.
24005 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
24007 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
24009 (grub_ata_pciinit): Support CS5536.
24010 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
24011 * font/font_cmd.c (loadfont_command): Open file before passing it to
24013 (pseudo_file_read): New function.
24014 (pseudo_file_close): Likewise.
24015 (pseudo_fs): New structure.
24016 (load_font_module): New function.
24017 (GRUB_MOD_INIT(font_manager)): Load embedded font.
24018 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
24019 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
24020 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
24021 * include/grub/i386/at_keyboard.h: Split into ...
24022 * include/grub/at_keyboard.h: ... this ...
24023 * include/grub/i386/at_keyboard.h: ... and this.
24024 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
24026 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
24028 (grub_elf64_size): Likewise.
24029 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
24031 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
24032 * include/grub/i386/coreboot/serial.h: Rewritten.
24033 * include/grub/i386/ieee1275/serial.h: Include
24034 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
24035 * include/grub/i386/pc/serial.h: Moved from here ...
24036 * include/grub/serial.h: ... to here. All users updated.
24037 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
24038 (GRUB_PCI_NUM_BUS): Likewise.
24039 (GRUB_PCI_NUM_DEVICES): Likewise.
24040 (grub_pci_device_map_range): Add missing volatile keyword.
24041 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
24042 * include/grub/mips/at_keyboard.h: New file.
24043 * include/grub/mips/cache.h: Likewise.
24044 * include/grub/mips/io.h: Likewise.
24045 * include/grub/mips/kernel.h: Likewise.
24046 * include/grub/mips/libgcc.h: Likewise.
24047 * include/grub/mips/pci.h: Likewise.
24048 * include/grub/mips/qemu-mips/boot.h: Likewise.
24049 * include/grub/mips/qemu-mips/kernel.h: Likewise.
24050 * include/grub/mips/qemu-mips/loader.h: Likewise.
24051 * include/grub/mips/qemu-mips/memory.h: Likewise.
24052 * include/grub/mips/qemu-mips/serial.h: Likewise.
24053 * include/grub/mips/qemu-mips/time.h: Likewise.
24054 * include/grub/mips/relocator.h: Likewise.
24055 * include/grub/mips/time.h: Likewise.
24056 * include/grub/mips/types.h: Likewise.
24057 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
24058 * include/grub/mips/yeeloong/boot.h: Likewise.
24059 * include/grub/mips/yeeloong/kernel.h: Likewise.
24060 * include/grub/mips/yeeloong/loader.h: Likewise.
24061 * include/grub/mips/yeeloong/memory.h: Likewise.
24062 * include/grub/mips/yeeloong/pci.h: Likewise.
24063 * include/grub/mips/yeeloong/serial.h: Likewise.
24064 * include/grub/mips/yeeloong/time.h: Likewise.
24065 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
24066 * kern/elf.c (grub_elf32_size): New parameter. All users
24068 (grub_elf64_size): Likewise.
24069 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
24070 Load modules before saying "Welcome to GRUB!".
24071 Call grub_refresh after saying "Welcome to GRUB!".
24072 * kern/mips/cache.S: New file.
24073 * kern/mips/cache_flush.S: Likewise.
24074 * kern/mips/dl.c: Likewise.
24075 * kern/mips/init.c: Likewise.
24076 * kern/mips/qemu-mips/init.c: Likewise.
24077 * kern/mips/startup.S: Likewise.
24078 * kern/mips/yeeloong/init.c: Likewise.
24079 * kern/term.c (grub_putcode): Handle NULL terminal.
24080 (grub_getcharwidth): Likewise.
24081 (grub_getkey): Likewise.
24082 (grub_checkkey): Likewise.
24083 (grub_getkeystatus): Likewise.
24084 (grub_getxy): Likewise.
24085 (grub_getwh): Likewise.
24086 (grub_gotoxy): Likewise.
24087 (grub_cls): Likewise.
24088 (grub_setcolorstate): Likewise.
24089 (grub_setcolor): Likewise.
24090 (grub_getcolor): Likewise.
24091 (grub_refresh): Likewise.
24092 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
24093 (write_jump): Add hatch nop.
24094 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
24095 * lib/mips/setjmp.S: New file.
24096 * loader/mips/linux.c: Likewise.
24097 * term/i386/pc/at_keyboard.c: Move from here ...
24098 * term/at_keyboard.c: ... to here.
24099 * term/i386/pc/serial.c: Moved from here ...
24100 * term/serial.c: ... to here. All users updated.
24101 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
24102 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
24103 (serial_translate_key_sequence): Avoid deadlock.
24104 (grub_serial_getkey): Handle backspace.
24105 (grub_serial_putchar): Fix newline handling.
24106 * util/i386/pc/grub-mkimage.c: Move from here ...
24107 * util/grub-mkrawimage.c: ... to here. All users updated.
24108 (generate_image): New parameters 'font_path' and 'format'.
24109 Support embedding font.
24110 Use grub_host_to_target* instead of grub_cpu_to_le*.
24111 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
24112 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
24113 (options): New option "--font".
24115 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
24116 (main): Handle "--font".
24117 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
24118 (grub_virtual_screen_setup): Set bg_color_display.
24119 (redraw_screen_rect): Use bg_color_display instead of incorrect
24121 (grub_gfxterm_cls): Likewise.
24122 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
24123 Support embedding config file.
24124 (add_segments): Likewise.
24125 (options): New option "--config".
24126 (main): Handle "--config".
24127 * video/sm712.c: New file.
24129 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24131 Fix parallel builds.
24133 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
24134 font.c depend on ascii.h).
24136 2010-01-12 Carles Pina i Estany <carles@pina.cat>
24138 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
24140 2010-01-11 Carles Pina i Estany <carles@pina.cat>
24142 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
24143 By default: disabled.
24144 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
24147 2010-01-10 Carles Pina i Estany <carles@pina.cat>
24149 * font/font.c: Update copyright years.
24150 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
24152 2010-01-10 Carles Pina i Estany <carles@pina.cat>
24154 * font/font.c: Include `ascii.h'.
24155 (ASCII_BITMAP_SIZE): New macro.
24156 (ascii_font_glyph): Define.
24157 (ascii_glyph_lookup): New function.
24158 (grub_font_get_string_width): Change comment. If glyph not found, use
24159 ascii_glyph_lookup.
24160 (grub_font_get_glyph_with_fallback): If glyph not available returns
24161 ascii_glyph_lookup.
24162 * util/grub-mkfont.c (file_formats): New enum.
24163 (options): Add `ascii-bitmaps' new option.
24164 (usage): Add `asii-bitmaps' new option.
24165 (write_font_ascii_bitmap): New function.
24166 (write_font): Rename to ...
24167 (write_font_p2): ... this. Remove print_glyphs call.
24168 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
24169 used. Call print_glyphs.
24170 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
24172 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
24174 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
24175 (grub_bin2h_SOURCES): New variable.
24176 * util/bin2h.c: New file.
24178 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24180 * include/multiboot.h: Resynced with spec.
24181 * include/multiboot2.h: Likewise.
24182 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
24183 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
24185 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24187 * include/grub/term.h (grub_term_register_input,
24188 grub_term_register_output): Check return of terminal init()
24189 routines, and abort if errors are raised.
24191 * commands/terminal.c: Update copyright year.
24193 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24195 * commands/terminal.c (grub_cmd_terminal_input)
24196 (grub_cmd_terminal_output): Check return of terminal init()
24197 routines, and abort if errors are raised.
24199 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
24201 * include/grub/i386/bsd.h: Fix include pathes.
24203 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
24205 Add missing *BSD copyright headers.
24207 * include/grub/aout.h: Add BSD licence.
24208 * include/grub/i386/bsd.h: Parts under different licences moved to ...
24209 * include/grub/i386/freebsd_linker.h: ... here,
24210 * include/grub/i386/freebsd_reboot.h: ... here,
24211 * include/grub/i386/netbsd_bootinfo.h: ... here,
24212 * include/grub/i386/netbsd_reboot.h: ... here,
24213 * include/grub/i386/openbsd_bootarg.h: ... here,
24214 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
24215 licence to each file.
24217 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24219 * acinclude.m4: Remove `nop' assembly instruction; it's not
24220 implemented by all architectures.
24222 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24224 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
24225 ELILO. This is no longer necessary.
24227 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
24229 Added new tool, grub-scrit-check to verify grub.cfg syntax.
24231 * util/grub-script-check.c: grub-script-check tool.
24232 * conf/common.rmk: Make rules for grub-script-check.
24234 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24236 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
24237 spotting it back in 2008. Shame on me for forgetting he did.
24239 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
24241 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24243 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
24244 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
24245 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
24246 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
24247 (GRUB_VIDEO_TYPE_EFI): Rename to ...
24248 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
24250 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
24252 * include/grub/test.h: Add license header.
24253 * tests/example_functional_test.c: Likewise.
24254 * tests/example_unit_test.c: Likewise.
24255 * tests/lib/functional_test.c: Likewise.
24256 * tests/lib/test.c: Likewise.
24257 * tests/lib/unit_test.c: Likewise.
24259 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
24261 Use flag-based instead of hook-based video mode selection and "auto"
24264 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
24265 (grub_video_set_mode): Changed prototype. All users updated.
24266 (grub_video_check_mode_flag): New inline function.
24267 * video/video.c (parse_modespec): New function.
24268 (grub_video_set_mode): Parse flags and keywords.
24270 2010-01-17 Carles Pina i Estany <carles@pina.cat>
24272 * util/misc.c (grub_util_info): Fix the order of the parameters in a
24275 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
24277 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
24279 2010-01-16 Carles Pina i Estany <carles@pina.cat>
24281 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
24283 * util/grub-emu.c (usage): Likewise.
24284 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
24285 * util/i386/efi/grub-mkimage.c (usage): Likewise.
24286 * util/i386/pc/grub-mkimage.c (usage): Likewise.
24287 * util/i386/pc/grub-setup.c (usage): Likewise.
24289 2010-01-16 Carles Pina i Estany <carles@pina.cat>
24291 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
24293 (grub_util_info): Likewise.
24294 (grub_util_error): Likewise.
24295 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
24296 and/or new lines in `grub_util_warna', `grub_util_info',
24297 `grub_util_error' calls.
24298 * util/getroot.c: Likewise.
24299 * util/grub-editenv.c: Likewise.
24300 * util/grub-emu.c: Likewise.
24301 * util/grub-fstest.c: Likewise.
24302 * util/grub-mkdevicemap.c: Likewise.
24303 * util/grub-mkfont.c: Likewise.
24304 * util/grub-mkpasswd-pbkdf2.c: Likewise.
24305 * util/grub-mkrelpath.c: Likewise.
24306 * util/grub-pe2elf.c: Likewise.
24307 * util/grub-probe.c: Likewise.
24308 * util/hostdisk.c: Likewise.
24309 * util/i386/efi/grub-mkimage.c: Likewise.
24310 * util/i386/pc/grub-mkimage.c: Likewise.
24311 * util/i386/pc/grub-setup.c: Likewise.
24312 * util/ieee1275/ofpath.c: Likewise.
24313 * util/mkisofs/eltorito.c: Likewise.
24314 * util/mkisofs/rock.c: Likewise.
24315 * util/mkisofs/write.c: Likewise.
24316 * util/raid.c: Likewise.
24317 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
24318 * util/sparc64/ieee1275/grub-setup.c: Likewise.
24320 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24322 Enable multiboot on non-pc.
24324 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
24325 multiboot.mod and multiboot2.mod to ...
24326 * conf/i386.rmk (pkglib_MODULES): ... here.
24327 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
24329 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
24330 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
24332 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
24333 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
24335 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
24336 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
24338 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
24339 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
24341 (ata_mod_SOURCES): Removed.
24342 (ata_mod_CFLAGS): Likewise.
24343 (ata_mod_LDFLAGS): Likewise.
24344 (relocator_mod_SOURCES): Removed.
24345 (relocator_mod_CFLAGS): Likewise.
24346 (relocator_mod_ASFLAGS): Likewise.
24347 (relocator_mod_LDFLAGS): Likewise.
24349 * include/grub/x86_64/multiboot.h: New file.
24350 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
24353 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24355 Video multiboot support.
24357 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
24359 * include/multiboot.h: Resynced with multiboot specification.
24360 * include/multiboot2.h: Likewise.
24361 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
24362 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
24363 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
24364 (HAS_VGA_TEXT): Likewise.
24365 (accepts_video): New variable.
24366 (grub_multiboot_set_accepts_video): New function.
24367 (grub_multiboot_get_mbi_size): Account for video structures.
24368 (set_video_mode): New function.
24369 (retrieve_video_parameters): Likewise.
24370 (grub_multiboot_make_mbi): Fill video fields.
24372 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24376 * include/grub/video.h (grub_video_driver_id): New type.
24377 (grub_video_adapter): New member 'id'. All users updated.
24378 (grub_video_get_driver_id): New proto.
24379 * video/video.c (grub_video_get_driver_id): New function.
24381 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24383 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
24386 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24388 * normal/cmdline.c (print_completion): Gettextizze.
24390 2001-01-14 Carles Pina i Estany <carles@pina.cat>
24392 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
24394 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24396 * gettext/gettext.c (grub_gettext_translate): Push and pop
24398 (grub_gettext_delete_list): Change comment style.
24399 * kern/err.c (grub_error): Gettextizze.
24400 (grub_fatal): Gettextizze.
24402 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
24404 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
24405 (grub_linux16_real_boot): ... this.
24406 * kern/i386/loader.S: Likewise.
24407 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
24408 (grub_linux16_boot): New function. Switches to text mode and calls
24409 grub_linux16_real_boot().
24411 * loader/i386/bsd.c: Include `<grub/video.h>'.
24412 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
24413 text mode before calling grub_unix_real_boot().
24415 * loader/i386/multiboot.c: Include `<grub/video.h>'.
24416 (grub_multiboot_boot): Switch to text mode before calling
24417 grub_relocator32_boot().
24419 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
24420 (grub_chainloader_boot): Switch to text mode before calling
24421 grub_chainloader_real_boot().
24423 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24424 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24426 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
24429 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24430 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24432 * util/grub.d/00_header.in: Define a "savedefault" function for use
24434 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
24436 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24437 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24439 * util/grub-mkconfig_lib.in (save_default_entry): Only set
24440 saved_entry if boot_once is unset.
24441 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
24442 previous saved entry (i.e. grub-reboot).
24444 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24446 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
24448 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24450 * util/grub.d/00_header.in: Use `set var=val' rather than plain
24452 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
24454 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24456 * util/grub-reboot.in: Fix --version output.
24457 * util/grub-set-default.in: Likewise.
24459 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24461 * util/grub.d/00_header.in: Silently ignore zero-sized environment
24464 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24466 * util/grub.d/00_header.in: Quote the value assigned to `default',
24467 in case it contains spaces.
24469 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24471 * util/grub.d/30_os-prober.in: Fix merge error that moved a
24472 `save_default_entry' call from the macosx case to the linux case.
24474 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
24475 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
24477 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
24478 in `chosen' environment variable.
24479 * normal/menu_text.c (get_entry_number): Check if the variable
24480 matches the title of a menu entry.
24481 (run_menu): Pass menu to get_entry_number.
24483 * util/grub-reboot.in: New file.
24484 * util/grub-set-default.in: New file.
24485 * conf/common.rmk (grub-reboot): New utility.
24486 (grub-set-default): New utility.
24488 * util/grub-mkconfig_lib.in (save_default_entry): New function.
24489 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
24490 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
24491 move it to `saved_entry' for the next boot. Load environment on
24493 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
24494 * util/grub.d/10_hurd.in: Likewise.
24495 * util/grub.d/10_linux.in (linux_entry): Likewise.
24496 * util/grub.d/10_windows.in: Likewise.
24497 * util/grub.d/30_os-prober.in: Likewise.
24499 * util/grub-install.in: Create environment block.
24500 * util/i386/efi/grub-install.in: Likewise.
24501 * util/ieee1275/grub-install.in: Likewise.
24502 * util/sparc64/ieee1275/grub-install.in: Likewise.
24504 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
24506 Unit testing framework for GRUB.
24508 * Makefile.in: Test framework build rules for 'make check'.
24509 * conf/tests.rmk: Build rules for individual tests and framework.
24511 * include/grub/test.h: Header file for whitebox tests.
24512 * tests/lib/functional_test.c: Framework support for whitebox
24514 * tests/lib/test.c: Common whitebox testing code for unit and
24516 * tests/lib/unit_test.c: Framework support for whitebox unit
24519 * tests/util/grub-shell-tester.in: Support utility for grub-script
24521 * tests/util/grub-shell.in: Utility to execute grub-script
24522 commands in a Qemu instance.
24524 * tests/example_functional_test.c: Example whitebox functional
24526 * tests/example_grub_script_test.in: Example grub-script test.
24527 * tests/example_scripted_test.in: Example scripted test.
24528 * tests/example_unit_test.c: Example whitebox unit test.
24530 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
24532 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
24533 Add loader/i386/multiboot_mbi.c.
24534 (multiboot2_mod_SOURCES): Likewise.
24535 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
24536 (multiboot2_mod_SOURCES): Likewise.
24537 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
24538 (grub_multiboot_make_mbi): Likewise.
24539 (grub_multiboot_free_mbi): Likewise.
24540 (grub_multiboot_init_mbi): Likewise.
24541 (grub_multiboot_add_module): Likewise.
24542 (grub_multiboot_set_bootdev): Likewise.
24543 * loader/i386/multiboot.c (mbi): Removed.
24544 (mbi_dest): Likewise.
24545 (alloc_mbi): New variable.
24546 (grub_multiboot_payload_size): Removed. All users updated.
24547 (grub_multiboot_pure_size): New variable.
24548 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
24549 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
24550 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
24551 (grub_fill_multiboot_mmap): Likewise.
24552 (grub_multiboot_get_bootdev): Likewise.
24553 (grub_multiboot): Use multiboot_mbi functions.
24554 * loader/i386/multiboot_mbi.c: New file.
24556 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
24558 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
24559 it would result in module crash.
24561 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
24563 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
24564 (grub_ofconsole_getwh): Split to ...
24565 (grub_ofconsole_getwh): ... this.
24566 (grub_ofconsole_dimensions): ...and this.
24567 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
24569 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
24571 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
24573 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
24575 * loader/i386/pc/multiboot2.c: Removed stalled file.
24577 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
24579 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
24580 Reported by: Grégoire Sutre
24582 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
24584 * util/misc.c (canonicalize_file_name): New function.
24585 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
24586 instead of realpath().
24588 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
24590 * util/grub-install.in (usage): Clarify meaning of --root-directory,
24591 and make it clearer that it's optional. Based on confusion
24594 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
24596 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
24597 in premature implicit newline.
24599 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
24601 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
24602 which resulted in garbled command line at the end of screen.
24604 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24606 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
24607 initialization with similar approach as with other Linux loaders.
24609 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24611 Fix i386-ieee1275 build.
24613 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
24614 and grub_term_height() for video_{width,height} initialization.
24616 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24618 Fix grub-emu build.
24620 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
24622 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
24623 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
24625 Support for multiple terminals.
24627 * Makefile.in (pkglib_DATA): terminal.lst.
24628 (terminal.lst): New target.
24629 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
24630 (GRUB_MOD_INIT(handler)): Likewise.
24631 (GRUB_MOD_FINI(handler)): Likewise.
24632 * commands/help.c (grub_cmd_help): Handle multiple terminals.
24633 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
24634 * commands/sleep.c (do_print): Use grub_term_restore_pos.
24635 (grub_cmd_sleep): Use grub_term_save_pos.
24636 * commands/terminal.c: New file.
24637 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
24638 commands/terminal.c and lib/charset.c.
24639 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
24640 (pkglib_MODULES): Add terminal.mod.
24641 (terminal_mod_SOURCES): New variable.
24642 (terminal_mod_CFLAGS): Likewise.
24643 (terminal_mod_LDFLAGS): Likewise.
24644 * genhandlerlist.sh: Don't handle terminals.
24645 * genmk.rb: Generate terminal-*.lst.
24646 * genterminallist.sh: New file.
24647 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
24648 (grub_is_valid_utf8): Likewise.
24649 (grub_utf8_to_ucs4_alloc): Likewise.
24650 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
24651 (grub_menu_register_viewer): Changed argument.
24652 (grub_menu_try_text): New proto.
24653 (grub_gfxmenu_try_hook): New declaration.
24654 * include/grub/normal.h (grub_normal_exit_level): New declaration.
24655 (grub_menu_init_page): Additional argument term.
24656 (grub_normal_init_page): Likewise.
24657 (grub_cmdline_get): Arguments simplified.
24658 (grub_utf8_to_ucs4_alloc): Removed.
24659 (grub_print_ucs4): Additional argument term.
24660 (grub_getstringwidth): Likewise.
24661 (grub_print_message_indented): Likewise.
24662 (grub_menu_text_register_instances): New proto.
24663 (grub_show_menu): Likewise.
24664 (read_terminal_list): Likewise.
24665 (grub_set_more): Likewise.
24666 * include/grub/parser.h: Include handler.h.
24667 * include/grub/reader.h: Rewritten.
24668 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
24669 (GRUB_TERM_WIDTH): Changed to function.
24670 (GRUB_TERM_HEIGHT): Likewise.
24671 (GRUB_TERM_BORDER_WIDTH): Likewise.
24672 (GRUB_TERM_BORDER_HEIGHT): Likewise.
24673 (GRUB_TERM_NUM_ENTRIES): Likewise.
24674 (GRUB_TERM_ENTRY_WIDTH): Likewise.
24675 (GRUB_TERM_CURSOR_X): Likewise.
24676 (grub_term_input_class): Likewise.
24677 (grub_term_output_class): Likewise.
24678 (grub_term_outputs_disabled): New declaration.
24679 (grub_term_inputs_disabled): Likewise.
24680 (grub_term_outputs): Likewise.
24681 (grub_term_inputs): Likewise.
24682 (grub_term_register_input): Rewritten.
24683 (grub_term_register_output): Likewise.
24684 (grub_term_unregister_input): Likewise.
24685 (grub_term_unregister_output): Likewise.
24686 (FOR_ACTIVE_TERM_INPUTS): New macro.
24687 (FOR_DISABLED_TERM_INPUTS): Likewise.
24688 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
24689 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
24690 * include/grub/terminfo.h: Add oterm argument to all protypes.
24691 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
24692 Use grub_rescue_run.
24693 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
24695 * kern/reader.c: Removed. All users updated.
24696 * kern/rescue_reader.c (grub_rescue_init): Removed.
24697 (grub_rescue_reader): Likewise.
24698 (grub_register_rescue_reader): Likewise.
24699 (grub_rescue_run): New function based on kern/reader.c.
24700 * kern/term.c: Adapted for multiterm.
24701 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
24702 (grub_is_valid_utf8): Likewise.
24703 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
24704 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
24706 * loader/i386/linux.c (grub_linux_boot): Likewise.
24707 * normal/auth.c (grub_username_get): New function.
24708 (grub_auth_check_authentication): Use grub_username_get.
24709 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
24710 * normal/color.c: Adapt for multiterm.
24711 * normal/main.c (read_config_file): Don't use grub_reader_loop.
24712 (grub_normal_init_page): Additional argument term.
24713 (read_lists): Call read_terminal_lists.
24714 (grub_enter_normal_mode): Call grub_cmdline_run.
24715 Handle grub_normal_exit_level.
24716 (grub_cmd_normal): Make reentrant.
24717 (grub_cmd_normal_exit): New function.
24718 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
24719 * normal/menu.c: Adapt for multiterm.
24720 * normal/menu_entry.c: Likewise.
24721 * normal/menu_text.c: Likewise.
24722 * normal/menu_viewer.c: Removed. All users updated.
24723 * normal/term.c: New file.
24724 * util/console.c: Change order of includes to workaround a bug in
24726 * term/terminfo.c: New argument oterm on all exported functions.
24728 * util/grub-editenv.c (grub_term_input_class): Removed.
24729 (grub_term_output_class): Likewise.
24731 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
24733 Make loader output a bit more user-friendly.
24735 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
24736 is being loaded. Likewise for the Hurd.
24738 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
24739 that kernel of FreeBSD ${version} is being loaded.
24741 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
24743 (grub_cmd_initrd): Likewise.
24744 * util/grub.d/10_linux.in (linux_entry): Print message indicating
24745 that Linux ${version} is being loaded. Likewise for initrd.
24747 2010-01-09 Carles Pina i Estany <carles@pina.cat>
24749 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
24751 2010-01-08 Carles Pina i Estany <carles@pina.cat>
24753 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
24754 (GRUB_MOD_INIT): Gettextizze.
24755 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
24756 (GRUB_MOD_INIT): Gettextizze.
24757 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
24758 (grub_cmd_linux): Capitalise Linux.
24759 (GRUB_MOD_INIT): Gettextizze.
24760 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
24761 (grub_cmd_linux): Capitalise Linux.
24762 (GRUB_MOD_INIT): Gettextizze.
24763 * loader/i386/linux.c: Include `<grub/i18n.h>'.
24764 (grub_cmd_linux): Capitalise Linux.
24765 (GRUB_MOD_INIT): Gettextizze.
24766 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
24767 (GRUB_MOD_INIT): Gettextizze.
24768 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
24769 (grub_cmd_linux): Capitalise Linux.
24770 (GRUB_MOD_INIT): Gettextizze.
24771 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
24772 (grub_cpu_xnu_init): Gettextizze.
24773 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
24774 (GRUB_MOD_INIT): Gettextizze.
24775 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
24776 (GRUB_MOD_INIT): Gettextizze.
24777 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
24778 (grub_linux_load64): Capitalise Linux.
24779 (GRUB_MOD_INIT): Gettextizze.
24780 * loader/xnu.c: Include `<grub/i18n.h>'.
24781 (GRUB_MOD_INIT): Gettextizze.
24782 * po/POTFILES: Add `loader/efi/appleloader.c',
24783 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
24784 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
24785 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
24786 `loader/i386/xnu.c', `loader/multiboot_loader.c',
24787 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
24788 and `loader/xnu.c'.
24790 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
24792 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
24794 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
24796 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
24797 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
24798 * util/mkisofs/mkisofs.c (main): Readjust --version output.
24800 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24802 Reset Multiboot 2 support. New loader implements the draft in
24803 /branches/multiboot2 and shares as much code as possible with the
24804 production Multiboot 1 implementation.
24806 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
24807 * loader/multiboot2.c: Likewise.
24808 * loader/i386/multiboot_helper.S: Likewise.
24809 * include/multiboot2.h: Replace with latest version from the draft
24810 in /branches/multiboot2.
24812 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
24813 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
24814 and `loader/multiboot2.c'.
24815 (pkglib_MODULES): Add `multiboot2.mod'.
24816 (multiboot2_mod_SOURCES): New variable.
24817 (multiboot2_mod_LDFLAGS): Likewise.
24818 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
24820 * conf/i386-pc.rmk: Likewise.
24822 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
24823 (multiboot_mod_SOURCES): Remove variable.
24824 (multiboot_mod_LDFLAGS): Likewise.
24825 (multiboot_mod_CFLAGS): Likewise.
24827 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
24828 `<multiboot2.h>' instead of `<multiboot.h>'.
24829 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
24830 (MULTIBOOT_HEADER_MAGIC): New macros.
24832 * loader/multiboot_loader.c (module_version_status): Remove variable.
24833 (find_multi_boot2_header): Remove function.
24834 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
24835 logic. Always check for the Multiboot version we're compiling for.
24836 (grub_cmd_module_loader): Likewise.
24837 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
24838 command instead of `multiboot'.
24840 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24842 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
24843 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
24846 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24847 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
24849 Fix breakage introduced with previous commit.
24851 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
24853 * normal/handler.c (read_handler_list): Revert part of previous commit
24854 affecting this file.
24855 * normal/main.c (read_lists): Move read_handler_list() call back to ...
24856 (grub_normal_execute): ... here.
24858 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24860 Merge prefix-redefinition-fix branch.
24862 * normal/autofs.c (read_fs_list): Make function capable of being
24863 run multiple times, gracefuly replacing the previous data
24865 * normal/dyncmd.c (read_command_list): Likewise.
24866 * normal/handler.c (read_handler_list): Likewise.
24867 * normal/main.c (read_lists): New function. Calls all the
24868 list reading functions.
24869 (grub_normal_execute): Use read_lists() instead of calling all
24870 list reading functions explicitly. Register read_lists() as a
24871 variable hook attached to ${prefix}.
24873 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
24875 Merge crypto branch.
24877 * Makefile.in (pkglib_DATA): Add crypto.lst.
24878 (crypto.lst): New target.
24879 * commands/hashsum.c: New file.
24880 * commands/password.c (check_password): Use grub_crypto_memcmp.
24881 * commands/password_pbkdf2.c: New file.
24882 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
24883 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
24884 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
24885 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
24886 -I$(srcdir)/lib/libgcrypt_wrap.
24887 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
24888 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
24889 password_pbkdf2.mod.
24890 (crypto_mod_SOURCES): New variable.
24891 (crypto_mod_CFLAGS): Likewise.
24892 (crypto_mod_LDFLAGS): Likewise.
24893 (hashsum_mod_SOURCES): New variable.
24894 (hashsum_mod_CFLAGS): Likewise.
24895 (hashsum_mod_LDFLAGS): Likewise.
24896 (pbkdf2_mod_SOURCES): New variable.
24897 (pbkdf2_mod_CFLAGS): Likewise.
24898 (pbkdf2_mod_LDFLAGS): Likewise.
24899 (password_pbkdf2_mod_SOURCES): New variable.
24900 (password_pbkdf2_mod_CFLAGS): Likewise.
24901 (password_pbkdf2_mod_LDFLAGS): Likewise.
24902 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
24903 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
24904 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
24905 Include conf/gcry.rmk.
24906 * include/grub/auth.h: Rewritten.
24907 * include/grub/crypto.h: New file.
24908 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
24909 * include/grub/normal.h (read_crypto_list): New prototype.
24910 * lib/crypto.c: New file.
24911 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
24912 * lib/pbkdf2.c: Likewise.
24913 * normal/auth.c (grub_auth_strcmp): Removed.
24914 (grub_iswordseparator): Likewise.
24915 (grub_auth_strword): Likewise.
24916 (is_authenticated): Use grub_strword.
24917 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
24918 and grub_strword. Pass entered password to authentication callback.
24919 * normal/crypto.c: New file.
24920 * normal/main.c: Call read_crypto_list.
24921 * util/grub-mkpasswd-pbkdf2.c: New file.
24922 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
24924 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
24926 Fix descent and ascent calculation.
24928 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
24929 (options): New option "asce".
24931 (add_char): Ignore invalid glyphs for descent calculation.
24932 Calculate ascent from actual content.
24933 (print_glyphs): Use 'asce'.
24934 (write_font): Likewise. Allow ascent override.
24935 (main): Handle "asce" option.
24937 2010-01-06 Carles Pina i Estany <carles@pina.cat>
24939 * kern/err.c: Include `<grub/i18n.h>'.
24940 (grub_print_error): Add full stop. Gettextizze.
24941 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
24942 (grub_bsd_load_elf): Capitalise ELF.
24943 (grub_cmd_freebsd_loadenv): Add `s' in error string.
24944 (grub_cmd_freebsd_module): Likewise.
24945 (grub_cmd_freebsd_module_elf): Likewise.
24946 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
24948 2010-01-06 Carles Pina i Estany <carles@pina.cat>
24950 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
24951 * commands/search_file.c (HELP_MESSAGE): New macro.
24952 * commands/search_label.c (HELP_MESSAGE): Likewise.
24953 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
24954 * po/POTFILES: Add `commands/search_file.c',
24955 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
24956 `commands/search.c'.
24958 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
24960 * config.rpath: Update from Gnulib.
24962 2010-01-05 Yves Blusseau <blusseau@zetam.org>
24964 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
24966 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
24968 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
24970 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24972 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
24973 arguments to fread so that we get a return value in bytes, rather
24974 than something that will normally be rounded down to 0.
24975 Adjust error handling to avoid producing garbage when size_t is not
24976 the same size as long long.
24978 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24980 * util/mkisofs/write.c (padblock_write): Check return value of
24983 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
24985 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
24988 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
24990 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
24992 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
24993 instead of manual alignment.
24994 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
24995 verbose). Avoid attempts to read past end of the device
24996 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
24997 but GRUB_DISK_CACHE_SIZE may exceed that).
24999 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
25001 * commands/crc.c (grub_cmd_crc): Abort on read errors.
25002 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
25005 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
25007 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
25009 (grub_efi_piwg_device_path): New structure
25010 (grub_efi_piwg_device_path_t): New type.
25011 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
25012 (devpath_1): Transform to a structure. All users updated.
25013 (devpath_2): Likewise.
25014 (devpath_3): Likewise.
25015 (devpath_4): Likewise.
25016 (devpath_5): Likewise.
25018 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
25020 * loader/efi/appleloader.c: Restored. Update all users.
25022 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25024 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
25026 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
25027 (struct boot_blocklist): Move from here ...
25028 * include/grub/i386/pc/boot.h [ASM_FILE]
25029 (struct grub_boot_blocklist): ... to here. Update all users.
25030 (setup): Only initialize `start' member of `first_block'
25031 structure. Add assert() calls to verify the other members.
25033 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
25034 (generate_image): Fix broken blocklist length initialization.
25035 Add assert() call to verify blocklist `segment' field.
25037 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25039 * loader/efi/appleloader.c: Remove. Update all users.
25041 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25043 * boot/i386/pc/boot.S: Update copyright year.
25044 * boot/i386/pc/cdboot.S: Likewise.
25045 * boot/i386/pc/diskboot.S: Likewise.
25046 * boot/i386/pc/lnxboot.S: Likewise.
25047 * boot/i386/pc/pxeboot.S: Likewise.
25048 * bus/pci.c: Likewise.
25049 * commands/cmp.c: Likewise.
25050 * commands/help.c: Likewise.
25051 * commands/hexdump.c: Likewise.
25052 * commands/i386/pc/halt.c: Likewise.
25053 * commands/i386/pc/play.c: Likewise.
25054 * commands/i386/pc/vbeinfo.c: Likewise.
25055 * commands/ls.c: Likewise.
25056 * commands/test.c: Likewise.
25057 * disk/dmraid_nvidia.c: Likewise.
25058 * disk/i386/pc/biosdisk.c: Likewise.
25059 * disk/ieee1275/nand.c: Likewise.
25060 * disk/ieee1275/ofdisk.c: Likewise.
25061 * disk/lvm.c: Likewise.
25062 * disk/raid.c: Likewise.
25063 * disk/raid6_recover.c: Likewise.
25064 * disk/scsi.c: Likewise.
25065 * fs/affs.c: Likewise.
25066 * fs/cpio.c: Likewise.
25067 * fs/ext2.c: Likewise.
25068 * fs/hfs.c: Likewise.
25069 * fs/iso9660.c: Likewise.
25070 * fs/ntfs.c: Likewise.
25071 * fs/sfs.c: Likewise.
25072 * fs/udf.c: Likewise.
25073 * fs/ufs.c: Likewise.
25074 * fs/xfs.c: Likewise.
25075 * gencmdlist.sh: Likewise.
25076 * genmk.rb: Likewise.
25077 * include/grub/disk.h: Likewise.
25078 * include/grub/efi/api.h: Likewise.
25079 * include/grub/efi/efi.h: Likewise.
25080 * include/grub/efi/pe32.h: Likewise.
25081 * include/grub/elf.h: Likewise.
25082 * include/grub/fs.h: Likewise.
25083 * include/grub/i386/at_keyboard.h: Likewise.
25084 * include/grub/i386/pc/memory.h: Likewise.
25085 * include/grub/i386/pc/vbe.h: Likewise.
25086 * include/grub/i386/pci.h: Likewise.
25087 * include/grub/i386/tsc.h: Likewise.
25088 * include/grub/ieee1275/ieee1275.h: Likewise.
25089 * include/grub/ntfs.h: Likewise.
25090 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
25091 * include/grub/sparc64/libgcc.h: Likewise.
25092 * include/grub/symbol.h: Likewise.
25093 * include/grub/types.h: Likewise.
25094 * include/multiboot2.h: Likewise.
25095 * io/gzio.c: Likewise.
25096 * kern/device.c: Likewise.
25097 * kern/disk.c: Likewise.
25098 * kern/efi/efi.c: Likewise.
25099 * kern/efi/mm.c: Likewise.
25100 * kern/elf.c: Likewise.
25101 * kern/file.c: Likewise.
25102 * kern/i386/dl.c: Likewise.
25103 * kern/i386/pc/init.c: Likewise.
25104 * kern/i386/pc/startup.S: Likewise.
25105 * kern/ieee1275/ieee1275.c: Likewise.
25106 * kern/ieee1275/init.c: Likewise.
25107 * kern/main.c: Likewise.
25108 * kern/mm.c: Likewise.
25109 * kern/powerpc/dl.c: Likewise.
25110 * kern/sparc64/dl.c: Likewise.
25111 * kern/x86_64/dl.c: Likewise.
25112 * lib/hexdump.c: Likewise.
25113 * loader/efi/appleloader.c: Likewise.
25114 * loader/i386/ieee1275/linux.c: Likewise.
25115 * loader/i386/pc/chainloader.c: Likewise.
25116 * loader/i386/pc/linux.c: Likewise.
25117 * loader/i386/pc/multiboot2.c: Likewise.
25118 * loader/ieee1275/multiboot2.c: Likewise.
25119 * loader/multiboot2.c: Likewise.
25120 * loader/multiboot_loader.c: Likewise.
25121 * loader/powerpc/ieee1275/linux.c: Likewise.
25122 * normal/completion.c: Likewise.
25123 * normal/menu_entry.c: Likewise.
25124 * partmap/apple.c: Likewise.
25125 * util/grub.d/10_hurd.in: Likewise.
25126 * util/hostfs.c: Likewise.
25127 * video/readers/png.c: Likewise.
25129 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
25131 * include/grub/misc.h (GNUC_PREREQ): New macro.
25132 (ATTRIBUTE_ERROR): New macro.
25133 * include/grub/list.h (grub_bad_type_cast_real): Use
25136 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25138 * normal/menu_text.c (print_message): Change messages.
25140 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25142 * normal/menu_entry.c (store_completion): Gettextizze.
25144 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25146 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
25148 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25150 * po/POTFILES: Sort correctly.
25152 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25154 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
25155 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
25156 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
25158 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
25159 summary. Gettextizze the strings.
25160 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
25161 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
25162 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
25164 (GRUB_MOD_INIT): Remove command name from summary.
25165 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
25167 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
25168 * term/i386/pc/serial.c (options): Add full stops.
25169 (GRUB_MOD_INIT): Remove command name from the summary.
25171 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25173 * commands/acpi.c: Gettextizze help strings and/or options. Include
25174 `grub/i18n.h' if needed.
25175 * commands/blocklist.c: Likewise.
25176 * commands/boot.c: Likewise.
25177 * commands/cat.c: Likewise.
25178 * commands/cmp.c: Likewise.
25179 * commands/configfile.c: Likewise.
25180 * commands/crc.c: Likewise.
25181 * commands/date.c: Likewise.
25182 * commands/echo.c: Likewise.
25183 * commands/efi/fixvideo.c: Likewise.
25184 * commands/efi/loadbios.c: Likewise.
25185 * commands/gptsync.c: Likewise.
25186 * commands/halt.c: Likewise.
25187 * commands/handler.c: Likewise.
25188 * commands/hdparm.c: Likewise.
25189 * commands/hexdump.c: Likewise.
25190 * commands/i386/cpuid.c: Likewise.
25191 * commands/i386/pc/drivemap.c: Likewise.
25192 * commands/i386/pc/halt.c: Likewise.
25193 * commands/i386/pc/pxecmd.c: Likewise.
25194 * commands/i386/pc/vbeinfo.c: Likewise.
25195 * commands/i386/pc/vbetest.c: Likewise.
25196 * commands/ieee1275/suspend.c: Likewise.
25197 * commands/keystatus.c: Likewise.
25198 * commands/loadenv.c: Likewise.
25199 * commands/ls.c: Likewise.
25200 * commands/lsmmap.c: Likewise.
25201 * commands/lspci.c: Likewise.
25202 * commands/memrw.c: Likewise.
25203 * commands/minicmd.c: Likewise.
25204 * commands/parttool.c: Likewise.
25205 * commands/password.c: Likewise.
25206 * commands/probe.c: Likewise.
25207 * commands/read.c: Likewise.
25208 * commands/reboot.c: Likewise.
25209 * commands/search.c: Likewise.
25210 * commands/sleep.c: Likewise.
25211 * commands/test.c: Likewise.
25212 * commands/true.c: Likewise.
25213 * commands/usbtest.c: Likewise.
25214 * commands/videotest.c: Likewise.
25215 * commands/xnu_uuid.c: Likewise.
25216 * disk/loopback.c: Likewise.
25217 * hello/hello.c: Likewise.
25218 * loader/i386/bsd.c: Likewise.
25219 * term/i386/pc/serial.c: Likewise.
25220 * po/POTFILES: Add new files.
25222 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
25224 * term/i386/pc/at_keyboard.c
25225 (keyboard_controller_wait_untill_ready): Rename to ...
25226 (keyboard_controller_wait_until_ready): ... this. Update all users.
25228 2010-01-01 Carles Pina i Estany <carles@pina.cat>
25230 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
25231 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
25232 string using string width.
25233 * normal/menu_text.c (grub_print_message_indented): Use
25234 grub_print_spaces and not print_spaces.
25235 (print_timeout): Likewise.
25236 (print_spaces): Move to...
25237 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
25239 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
25241 Import from Gnulib.
25243 * gnulib/getdelim.c: New file.
25244 * gnulib/getline.c: Likewise.
25246 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
25248 * include/grub/list.h (grub_assert_fail): Removed.
25249 (grub_bad_type_cast_real): New function.
25250 (grub_bad_type_cast): New macro.
25251 (GRUB_AS_LIST): Use grub_bad_type_cast.
25252 (GRUB_AS_LIST_P): Likewise.
25253 (GRUB_AS_NAMED_LIST): Likewise.
25254 (GRUB_AS_NAMED_LIST_P): Likewise.
25255 (GRUB_AS_PRIO_LIST): Likewise.
25256 (GRUB_AS_PRIO_LIST_P): Likewise.
25257 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
25259 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
25261 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
25264 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
25266 * configure.ac: Check for TARGET_CFLAGS initialization before we
25267 initialize it ourselves (sigh).
25268 Move a few modifications to TARGET_CFLAGS to be unconditional
25269 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
25272 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
25273 * term/i386/pc/at_keyboard.c
25274 (keyboard_controller_wait_untill_ready): Likewise.
25275 (keyboard_controller_led): Rename `led_status' paramter to avoid
25278 2009-12-28 Carles Pina i Estany <carles@pina.cat>
25280 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
25283 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25285 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
25287 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25289 * normal/menu_text.c (grub_print_message_indented): Prevent
25290 past-the-end-of-array dereference.
25292 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25294 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
25295 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
25297 2009-12-27 Carles Pina i Estany <carles@pina.cat>
25299 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
25300 * normal/main.c (grub_normal_read_line): Remove a space from the
25303 2009-12-27 Carles Pina i Estany <carles@pina.cat>
25305 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
25306 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25307 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
25308 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
25309 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25310 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25311 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25313 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25315 * video/readers/jpeg.c (cmd): Declare.
25316 (grub_cmd_jpegtest): Use `grub_command_t' type.
25317 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25319 (GRUB_MOD_FINI): Use `cmd' to unregister.
25320 * video/readers/png.c (cmd): Declare.
25321 (grub_cmd_pngtest): Use `grub_command_t' type.
25322 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25324 (GRUB_MOD_FINI): Use `cmd' to unregister.
25325 * video/readers/tga.c (cmd): Declare.
25326 (grub_cmd_tgatest): Use `grub_command_t' type.
25327 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25329 (GRUB_MOD_FINI): Use `cmd' to unregister.
25331 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25333 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
25335 * kern/corecmd.c (grub_register_core_commands): Likewise.
25336 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
25337 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
25338 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
25339 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25340 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
25341 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
25342 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
25343 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
25344 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25345 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25346 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25347 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25348 * normal/handler.c (insert_handler): Likewise.
25349 * normal/main.c (GRUB_MOD_INIT): Likewise.
25350 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
25352 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25354 * commands/help.c (grub_cmd_help): Print the command name before the
25356 (GRUB_MOD_INIT): Remove command name from the summary.
25357 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
25359 * lib/arg.c (find_long): Print the command name before the summary.
25360 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
25362 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
25363 * commands/cat.c (GRUB_MOD_INIT): Likewise.
25364 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
25365 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
25366 * commands/crc.c (GRUB_MOD_INIT): Likewise.
25367 * commands/date.c (GRUB_MOD_INIT): Likewise.
25368 * commands/echo.c (GRUB_MOD_INIT): Likewise.
25369 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
25370 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
25371 * commands/handler.c (GRUB_MOD_INIT): Likewise.
25372 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
25373 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
25374 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
25375 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
25376 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
25377 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
25378 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
25379 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
25380 * commands/ls.c (GRUB_MOD_INIT): Likewise.
25381 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
25382 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
25383 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
25384 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
25385 * commands/password.c (GRUB_MOD_INIT): Likewise.
25386 * commands/probe.c (GRUB_MOD_INIT): Likewise.
25387 * commands/read.c (GRUB_MOD_INIT): Likewise.
25388 * commands/search.c (GRUB_MOD_INIT): Likewise.
25389 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
25390 * commands/test.c (GRUB_MOD_INIT): Likewise.
25391 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
25392 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
25393 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
25394 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
25395 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
25396 * lib/arg.c (GRUB_MOD_INIT): Likewise.
25397 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
25398 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
25399 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25400 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25401 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
25402 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
25403 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
25404 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
25406 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25408 Use search command for preliminar UUID search.
25410 * commands/search.c: Split into ...
25411 * commands/search_wrap.c: ...this
25412 * commands/search.c: ...and this.
25413 * commands/search_file.c: New file.
25414 * commands/search_label.c: New file.
25415 * commands/search_uuid.c: New file.
25416 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
25417 Add commands/search_wrap.c, commands/search_file.c,
25418 commands/search_label.c and commands/search_uuid.c.
25419 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
25420 (search_mod_SOURCES): Set to commands/search_wrap.c.
25421 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
25423 (search_fs_file_mod_SOURCES): New variable.
25424 (search_fs_file_mod_CFLAGS): Likewise.
25425 (search_fs_file_mod_LDFLAGS): Likewise.
25426 (search_label_mod_SOURCES): Likewise.
25427 (search_label_mod_CFLAGS): Likewise.
25428 (search_label_mod_LDFLAGS): Likewise.
25429 (search_fs_uuid_mod_SOURCES): New variable.
25430 (search_fs_uuid_mod_CFLAGS): Likewise.
25431 (search_fs_uuid_mod_LDFLAGS): Likewise.
25432 (fs_file_mod_SOURCES): Removed.
25433 (fs_file_mod_CFLAGS): Likewise.
25434 (fs_file_mod_LDFLAGS): Likewise.
25435 (fs_uuid_mod_SOURCES): Removed.
25436 (fs_uuid_mod_CFLAGS): Likewise.
25437 (fs_uuid_mod_LDFLAGS): Likewise.
25438 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
25439 Set to util/grub-install.in.
25440 * disk/fs_file.c: Removed.
25441 * disk/fs_uuid.c: Likewise.
25442 * include/grub/search.h: New file.
25443 * util/grub-install.in: Handle sparc64.
25444 Create and use load.cfg.
25445 * util/sparc64/ieee1275/grub-install.in: Removed.
25447 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25449 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
25450 Ignore return status if CF is cleared.
25451 (grub_biosdisk_get_diskinfo_standard): Likewise.
25453 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
25455 * term/i386/pc/at_keyboard.c
25456 (keyboard_controller_wait_untill_ready): New function.
25457 (grub_keyboard_controller_write, grub_keyboard_controller_read)
25458 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
25459 for keyboard polling, rather than duplicate the same loop. This
25460 saves a few bytes in code size.
25462 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25464 Support for (pxe[:server[:gateway]]) syntax and
25465 use environment variable for PXE.
25467 * commands/i386/pc/pxecmd.c (options): Removed.
25468 (print_ip): Removed.
25469 (grub_cmd_pxe): Removed
25470 (grub_cmd_pxe_unload): New function.
25471 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
25472 (grub_pxe_your_ip): Made static.
25473 (grub_pxe_default_server_ip): Likewise.
25474 (grub_pxe_default_gateway_ip): Likewise.
25475 (grub_pxe_blksize): Likewise.
25476 (parse_ip): New function.
25477 (grub_pxe_open): Support server and gateway specification.
25478 (grub_pxe_close): Free disk->data.
25479 (grub_pxefs_open): Use disk->data.
25480 (grub_pxefs_read): Likewise.
25481 (grub_env_write_readonly): New function.
25482 (set_mac_env): Likewise.
25483 (set_env_limn_ro): Likewise.
25484 (parse_dhcp_vendor): Likewise.
25485 (grub_pxe_detect): Set the environment variables.
25486 (set_ip_env): New function.
25487 (write_ip_env): Likewise.
25488 (grub_env_write_pxe_default_server): Likewise.
25489 (grub_env_write_pxe_default_gateway): Likewise.
25490 (grub_env_write_pxe_blocksize): Likewise.
25491 (GRUB_MOD_INIT(pxe)): Set environment variables.
25492 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
25493 (grub_pxe_mac_addr_t): ... this. All users updated.
25494 (grub_pxe_your_ip): Removed.
25495 (grub_pxe_server_ip): Likewise.
25496 (grub_pxe_gateway_ip): Likewise.
25497 (grub_pxe_blksize): Likewise.
25499 2009-12-25 Carles Pina i Estany <carles@pina.cat>
25501 * commands/help.c: Include `<grub/i18n.h>'.
25502 (grub_cmd_help): Gettextizze.
25503 (GRUB_MOD_INIT): Likewise.
25504 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
25505 (GRUB_MOD_INIT): Gettextizze.
25506 * commands/search.c: Include `<grub/i18n.h>'.
25507 (options): Gettextizze.
25508 (GRUB_MOD_INIT): Gettextizze.
25509 * lib/arg.c: Include `<grub/i18n.h>'.
25510 (help_options): Gettextizze.
25511 (find_long): Likewise.
25512 (grub_arg_show_help): Likewise.
25513 * normal/dyncmd.c: Include `<grub/i18n.h>'.
25514 (read_command_list): Gettextizze.
25515 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
25516 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
25518 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
25520 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
25521 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
25522 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
25523 (led_status): New variable.
25524 (keyboard_controller_led): New function.
25525 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
25526 update led status for caps lock, num lock and scroll lock.
25528 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
25530 * util/hostdisk.c (open_device): Fix a comment.
25532 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25534 * util/grub-install.in (host_os): New variable.
25535 * util/i386/efi/grub-install.in (host_os): Likewise.
25537 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25539 * util/mkisofs/write.c (padblock_write): Abort when given an
25540 excedingly large embed image, instead of silently truncating it.
25542 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25544 * include/multiboot.h: Indentation fixes.
25546 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25548 * include/multiboot.h (struct multiboot_aout_symbol_table)
25549 (struct multiboot_elf_section_header_table): New structure
25550 declarations (stolen from GRUB Legacy).
25551 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
25554 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
25555 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
25558 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25560 * include/multiboot.h: Make comments src2texi-friendly.
25562 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25564 For consistency with [multiboot]/docs/boot.S.
25566 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
25567 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
25568 (MULTIBOOT_MAGIC2): Rename from this ...
25569 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
25571 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25573 * include/multiboot.h: Remove `<grub/types.h>'.
25574 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
25575 types. Update all users.
25577 2009-12-25 Carles Pina i Estany <carles@pina.cat>
25579 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
25580 `couldn't' and `can not' by `cannot'.
25581 * commands/i386/pc/drivemap.c: Likewise.
25582 * disk/ata.c: Likewise.
25583 * disk/ieee1275/nand.c: Likewise.
25584 * fs/affs.c: Likewise.
25585 * fs/fat.c: Likewise.
25586 * fs/hfs.c: Likewise.
25587 * fs/hfsplus.c: Likewise.
25588 * fs/iso9660.c: Likewise.
25589 * fs/jfs.c: Likewise.
25590 * fs/minix.c: Likewise.
25591 * fs/reiserfs.c: Likewise.
25592 * fs/sfs.c: Likewise.
25593 * fs/udf.c: Likewise.
25594 * fs/ufs.c: Likewise.
25595 * fs/xfs.c: Likewise.
25596 * loader/powerpc/ieee1275/linux.c: Likewise.
25597 * loader/sparc64/ieee1275/linux.c: Likewise.
25598 * util/grub-probe.c: Likewise.
25599 * util/misc.c: Likewise.
25601 2009-12-24 Carles Pina i Estany <carles@pina.cat>
25603 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
25605 * commands/acpi.c: Likewise.
25606 * commands/blocklist.c: Likewise.
25607 * commands/efi/loadbios.c: Likewise.
25608 * commands/i386/pc/drivemap.c: Likewise.
25609 * commands/loadenv.c: Likewise.
25610 * commands/memrw.c: Likewise.
25611 * commands/password.c: Likewise.
25612 * commands/videotest.c: Likewise.
25613 * disk/ata.c: Likewise.
25614 * disk/ata_pthru.c: Likewise.
25615 * disk/dmraid_nvidia.c: Likewise.
25616 * disk/ieee1275/nand.c: Likewise.
25617 * disk/ieee1275/ofdisk.c: Likewise.
25618 * disk/loopback.c: Likewise.
25619 * disk/lvm.c: Likewise.
25620 * disk/mdraid_linux.c: Likewise.
25621 * disk/raid.c: Likewise.
25622 * disk/raid6_recover.c: Likewise.
25623 * disk/scsi.c: Likewise.
25624 * efiemu/main.c: Likewise.
25625 * efiemu/mm.c: Likewise.
25626 * efiemu/pnvram.c: Likewise.
25627 * efiemu/symbols.c: Likewise.
25628 * font/font.c: Likewise.
25629 * fs/cpio.c: Likewise.
25630 * fs/hfsplus.c: Likewise.
25631 * fs/iso9660.c: Likewise.
25632 * fs/jfs.c: Likewise.
25633 * fs/minix.c: Likewise.
25634 * fs/ntfs.c: Likewise.
25635 * fs/ntfscomp.c: Likewise.
25636 * fs/reiserfs.c: Likewise.
25637 * fs/ufs.c: Likewise.
25638 * fs/xfs.c: Likewise.
25639 * gettext/gettext.c: Likewise.
25640 * include/grub/auth.h: Likewise.
25641 * kern/elf.c: Likewise.
25642 * kern/file.c: Likewise.
25643 * kern/ieee1275/init.c: Likewise.
25644 * kern/ieee1275/mmap.c: Likewise.
25645 * kern/ieee1275/openfw.c: Likewise.
25646 * kern/powerpc/dl.c: Likewise.
25647 * kern/sparc64/dl.c: Likewise.
25648 * lib/arg.c: Likewise.
25649 * loader/i386/bsd.c: Likewise.
25650 * loader/i386/bsdXX.c: Likewise.
25651 * loader/i386/efi/linux.c: Likewise.
25652 * loader/i386/efi/xnu.c: Likewise.
25653 * loader/i386/ieee1275/linux.c: Likewise.
25654 * loader/i386/linux.c: Likewise.
25655 * loader/i386/multiboot.c: Likewise.
25656 * loader/i386/pc/linux.c: Likewise.
25657 * loader/i386/pc/multiboot2.c: Likewise.
25658 * loader/i386/xnu.c: Likewise.
25659 * loader/ieee1275/multiboot2.c: Likewise.
25660 * loader/macho.c: Likewise.
25661 * loader/machoXX.c: Likewise.
25662 * loader/multiboot2.c: Likewise.
25663 * loader/multiboot_loader.c: Likewise.
25664 * loader/powerpc/ieee1275/linux.c: Likewise.
25665 * loader/sparc64/ieee1275/linux.c: Likewise.
25666 * loader/xnu.c: Likewise.
25667 * loader/xnu_resume.c: Likewise.
25668 * mmap/i386/pc/mmap.c: Likewise.
25669 * normal/menu_viewer.c: Likewise.
25670 * partmap/acorn.c: Likewise.
25671 * partmap/amiga.c: Likewise.
25672 * partmap/apple.c: Likewise.
25673 * script/lexer.c: Likewise.
25674 * term/gfxterm.c: Likewise.
25675 * term/i386/pc/serial.c: Likewise.
25676 * term/i386/pc/vga.c: Likewise.
25677 * term/ieee1275/ofconsole.c: Likewise.
25678 * term/terminfo.c: Likewise.
25679 * video/bitmap.c: Likewise.
25680 * video/efi_gop.c: Likewise.
25681 * video/efi_uga.c: Likewise.
25682 * video/fb/video_fb.c: Likewise.
25683 * video/i386/pc/vbe.c: Likewise.
25684 * video/readers/tga.c: Likewise.
25685 * video/video.c: Likewise.
25687 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
25689 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
25690 * commands/lspci.c: Likewise.
25691 * commands/probe.c: Likewise.
25692 * commands/xnu_uuid.c: Likewise.
25693 * conf/i386-coreboot.rmk: Likewise.
25694 * conf/i386-efi.rmk: Likewise.
25695 * conf/i386-ieee1275.rmk: Likewise.
25696 * conf/i386-pc.rmk: Likewise.
25697 * conf/powerpc-ieee1275.rmk: Likewise.
25698 * conf/sparc64-ieee1275.rmk: Likewise.
25699 * conf/x86_64-efi.rmk: Likewise.
25700 * fs/i386/pc/pxe.c: Likewise.
25701 * gettext/gettext.c: Likewise.
25702 * include/grub/efi/graphics_output.h: Likewise.
25703 * include/grub/i386/pc/memory.h: Likewise.
25704 * kern/env.c: Likewise.
25705 * kern/i386/qemu/startup.S: Likewise.
25706 * lib/i386/pc/biosnum.c: Likewise.
25707 * lib/i386/relocator.c: Likewise.
25708 * lib/i386/relocator_asm.S: Likewise.
25709 * lib/relocator.c: Likewise.
25710 * loader/i386/bsd.c: Likewise.
25711 * loader/i386/multiboot.c: Likewise.
25712 * loader/i386/pc/chainloader.c: Likewise.
25713 * loader/i386/xnu.c: Likewise.
25714 * loader/xnu.c: Likewise.
25715 * normal/main.c: Likewise.
25716 * normal/menu_text.c: Likewise.
25717 * util/getroot.c: Likewise.
25718 * util/grub-mkconfig_lib.in: Likewise.
25719 * util/grub.d/00_header.in: Likewise.
25720 * util/i386/pc/grub-mkimage.c: Likewise.
25721 * util/mkisofs/eltorito.c: Likewise.
25722 * util/mkisofs/exclude.h: Likewise.
25723 * util/mkisofs/hash.c: Likewise.
25724 * util/mkisofs/iso9660.h: Likewise.
25725 * util/mkisofs/joliet.c: Likewise.
25726 * util/mkisofs/mkisofs.c: Likewise.
25727 * util/mkisofs/mkisofs.h: Likewise.
25728 * util/mkisofs/multi.c: Likewise.
25729 * util/mkisofs/name.c: Likewise.
25730 * util/mkisofs/rock.c: Likewise.
25731 * util/mkisofs/tree.c: Likewise.
25732 * util/mkisofs/write.c: Likewise.
25733 * video/efi_gop.c: Likewise.
25735 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
25737 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
25740 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25742 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
25743 * genmk.rb (class SCRIPT): Modify the target file instead of source.
25745 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25747 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
25748 (GRUB_MOD_INIT(memrw)): Update help line.
25750 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25752 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
25753 Use grub_extcmd_t. All users updated.
25754 (options): New variable.
25755 (grub_cmd_read): Restructure for readability. Support "-v" option.
25756 (grub_cmd_write): Restructure for readability.
25758 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25760 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
25762 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25764 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
25765 with the actual contents of the correspondending make variable.
25766 * util/grub-mkrescue.in (pkglib_DATA): New variable.
25767 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
25768 specifying `*.lst' and `efiemu??.o'
25770 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25772 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
25773 after function name.
25774 Noticed by Rene Engelhard <rene@debian.org>.
25776 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25778 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
25779 (options): New variable.
25780 (iospace): Likewise.
25781 (grub_lspci_iter): List IO spaces if "-i" was given.
25782 (grub_cmd_lspci): Parse options.
25783 (GRUB_MOD_INIT(lspci)): Use extcmd.
25784 (GRUB_MOD_FINI(lspci)): Likewise.
25786 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25788 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
25789 `function' keyword.
25790 Patch by Tony Mancill <tmancill@debian.org>.
25792 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25794 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
25795 (grub_uhci_portstatus): Likewise.
25796 (grub_uhci_portstatus): Add necessary delay.
25797 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
25799 2009-12-21 Carles Pina i Estany <carles@pina.cat>
25801 * commands/acpi.c (options): Fix capitalizations and/or full stops.
25802 (GRUB_MOD_INIT): Likewise.
25803 * commands/boot.c (GRUB_MOD_INIT): Likewise.
25804 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
25805 * commands/echo.c (options): Fix capitalizations and/or full stops.
25806 * commands/efi/loadbios.c (enable_rom_area): Likewise.
25807 (enable_rom_area): Likewise.
25808 (GRUB_MOD_INIT): Likewise.
25809 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
25810 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
25811 * commands/handler.c (GRUB_MOD_INIT): Likewise.
25812 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
25813 * commands/hexdump.c (options): Likewise.
25814 * commands/i386/cpuid.c (options): Likewise.
25815 (GRUB_MOD_INIT): Likewise.
25816 * commands/i386/pc/drivemap.c (options): Likewise.
25817 (GRUB_MOD_INIT): Likewise.
25818 * commands/i386/pc/halt (options): Likewise.
25819 (GRUB_MOD_INIT): Likewise.
25820 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
25821 * commands/i386/pc/pxecmd.c (options): Likewise.
25822 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
25823 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
25824 * commands/keystatus.c (options): Likewise.
25825 (GRUB_MOD_INIT): Likewise.
25826 * commands/loadenv.c (options): Likewise.
25827 * commands/ls.c (options): Likewise.
25828 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
25829 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
25830 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
25831 * commands/parttool.c (helpmsg): Likewise.
25832 * commands/probe.c (options): Likewise.
25833 * commands/read.c (GRUB_MOD_INIT): Likewise.
25834 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
25835 * commands/search.c (options): Likewise.
25836 * commands/sleep.c (options): Likewise.
25837 * commands/test.c (GRUB_MOD_INIT): Likewise.
25838 * commands/true.c (GRUB_MOD_INIT): Likewise.
25839 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
25840 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
25841 * lib/arg.c (help_options): Likewise.
25842 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
25844 * po/POTFILES: Add `commands/loadenv.c'.
25846 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
25848 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
25849 instead of specifying them explicit.
25851 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25853 * NEWS: Add grub-probe support for GNU/Hurd.
25855 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25857 * NEWS: gettext was added after 1.97.
25859 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25861 * util/mkisofs/msdos_partition.h: New file (based on
25862 include/grub/msdos_partition.h).
25863 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
25864 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
25865 (ld_options, main): Recognize --protective-msdos-label.
25866 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
25867 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
25868 (padblock_write): If `use_protective_msdos_label' is set, patch a
25869 protective DOS-style label in the output image.
25871 * util/grub-mkrescue.in: Use --protective-msdos-label.
25873 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25875 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
25878 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25880 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
25882 (ld_options, main): Recognize `--embedded-boot'.
25883 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
25885 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
25886 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
25887 (padblock_write): Likewise. Rewrite to support embedded boot image.
25889 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
25890 for BIOS-based disk boot instead of only ElTorito.
25892 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25894 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
25895 build (not needed for bootstrap).
25897 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25899 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
25900 from i386-pc build (not needed for bootstrap).
25901 Rewrite a pair of strings.
25903 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25905 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
25907 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
25909 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
25911 2009-12-21 Andreas Born <futur.andy@googlemail.com>
25913 * kern/env.c (grub_env_context_open): Mark exported variable for
25916 2009-12-21 Andreas Born <futur.andy@googlemail.com>
25918 * kern/env.c (grub_env_export): Create nonexistent variables before
25921 2009-12-20 Carles Pina i Estany <carles@pina.cat>
25923 * include/grub/auth.h: Include `<grub/i18n.h>'.
25924 (GRUB_GET_PASSWORD): Gettextizze string.
25925 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
25927 (grub_utf8_to_ucs4_alloc): Fix indentation.
25928 (grub_print_ucs4): Likewise.
25929 (grub_getstringwidth): Likewise.
25930 (print_message_indented): New declaration.
25931 * normal/auth.c: Include `<grub/i18n.h>'.
25932 (grub_auth_check_authentication): Gettexttize string.
25933 * normal/cmdline.c: Include `<grub/i18n.h>'.
25934 (grub_cmdline_get): Gettextizze.
25935 * normal/color.c: Include `<grub/i18n.h>'.
25936 (grub_parse_color_name_pair): Gettexttize strings.
25937 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
25938 string (use `print_message_indented').
25939 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
25940 `include/grub/normal.h'.
25941 (print_message_indented): Renamed to ...
25942 (grub_print_message_indented): ... this. Remove `static' qualifer (now
25943 used in normal/main.c).
25944 (print_message): Use `grub_print_message_indented' instead of
25945 `print_message_indented'.
25946 (print_timeout): Likewise.
25947 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
25948 (grub_normal_print_device_info): Gettexttize strings.
25949 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
25951 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
25953 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
25954 of arguments. Return number of tokens and not arguments. All users
25957 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
25959 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
25960 non-MSDOS paritions.
25962 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
25964 * include/grub/types.h (UNUSED): Removed since it conflicts with
25965 NetBSD headers. All users changed to direct __attribute__ ((unused)).
25966 Reported by Grégoire Sutre.
25968 2009-12-19 Carles Pina i Estany <carles@pina.cat>
25970 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
25971 (grub_print_ucs4_alloc): Likewise.
25972 (grub_getstringwidth): Likewise.
25973 * normal/main.c (grub_normal_init_page): Gettextize version string.
25974 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
25975 (getstringwidth): Renamed to ...
25976 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
25977 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
25978 (grub_print_ucs4): Remove `static' qualifer (now used in
25980 * po/POTFILES: Add normal/main.c.
25982 2009-12-19 Carles Pina i Estany <carles@pina.cat>
25984 * normal/menu_text.c (STANDARD_MARGIN): New macro.
25985 (print_message_indented): Add `margin_left' and `margin_right'
25987 (print_message): Update `print_message_indented' calls. Adds '\n' to the
25989 (print_timeout): Use `print_message_indented' to print the message.
25990 Deletes `second_stage' parameter.
25991 (run_menu): Update `print_timeout' calls.
25993 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
25995 Fix console palette on OpenFirmware.
25997 * term/ieee1275/ofconsole.c (MAX): Removed.
25998 (colors): Redone based on VGA palette.
25999 (grub_ofconsole_setcolor): Discard brightness bit since only 8
26000 colors are supported.
26001 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
26003 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26005 Fix potential EfiEmu double prepare.
26007 * efiemu/main.c (prepared): New variable
26008 (grub_efiemu_unload): Set prepare to '0'.
26009 (grub_efiemu_prepare): Return if already prepared. Set prepared.
26011 set_virtual_address_map support.
26013 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
26015 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
26017 (grub_efiemu_crc32): Likewise.
26018 (grub_efiemu_crc64): Likewise.
26019 (grub_efiemu_set_virtual_address_map): Likewise.
26020 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
26022 (grub_autoefi_set_virtual_address_map): Likewise.
26023 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
26024 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
26025 Restructure flow to accomodate it.
26026 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
26027 (grub_efiemu_crc): Recompute CRC32.
26028 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
26029 (efiemu_ptv_relocated): ... this. Made global. All users updated.
26030 * efiemu/symbols.c (relocated_handle): New variable.
26031 (grub_efiemu_free_syms): Free relocated_handle.
26032 (grub_efiemu_alloc_syms): Allocate relocated_handle.
26033 (grub_efiemu_write_sym_markers): New function.
26034 (grub_efiemu_set_virtual_address_map): Likewise.
26036 Newer XNU parameters.
26038 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
26039 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
26040 (grub_xnu_fill_devicetree): New prototype.
26041 (grub_xnu_heap_real_start): New variable.
26042 * loader/xnu.c (get_name_ptr): New function.
26043 (grub_xnu_load_driver): Fill namelen and name.
26045 64-bit xnu support.
26047 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
26048 and 'loader/macho64.c'.
26049 * conf/i386-pc.rmk: Likewise.
26050 * conf/x86_64-efi.rmk: Likewise.
26051 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
26052 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
26053 * include/grub/macho.h (grub_macho_segment64): New structure.
26054 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
26055 (grub_macho_size32): ... to this.
26056 (grub_macho32_get_entry_point): Renamed from ...
26057 (grub_macho_get_entry_point32): ... to this.
26058 (grub_macho_contains_macho64): New prototype.
26059 (grub_macho_size64): Likewise.
26060 (grub_macho_get_entry_point64): Likewise.
26061 (grub_macho32_load): Renamed from ...
26062 (grub_macho_load32): ... to this.
26063 (grub_macho32_filesize): Renamed from ...
26064 (grub_macho_filesize32): ... to this.
26065 (grub_macho32_readfile): Renamed from ...
26066 (grub_macho_readfile32): ... to this.
26067 (grub_macho_filesize64): New prototype.
26068 (grub_macho_readfile64): Likewise.
26069 (grub_macho_parse32): Likewise.
26070 (grub_macho_parse64): Likewise.
26071 * loader/macho.c: Split into ...
26072 * loader/machoXX.c: ... and this. Replace 32 with XX.
26073 * loader/macho32.c: New file.
26074 * loader/macho64.c: Likewise.
26075 * loader/xnu.c (grub_xnu_is_64bit): New variable.
26076 (grub_cmd_xnu_kernel): Make 32-bit only.
26077 (grub_cmd_xnu_kernel64): New function.
26078 (grub_xnu_load_driver): Support Mach-O 64.
26079 (grub_cmd_xnu_mkext): Likewise.
26080 * util/grub.d/30_os-prober.in (osx_entry): New function.
26081 Generate entries for 64-bit boot too.
26083 Eliminate ad-hoc tree format in XNU and EfiEmu.
26085 * efiemu/main.c (grub_efiemu_prepare): Update comment.
26086 * efiemu/pnvram.c: Rewritten to use environment variables.
26089 Inline utf16_to_utf8.
26091 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
26092 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
26094 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
26096 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
26097 * commands/usbtest.c (grub_usb_get_string): ... move here.
26098 (usb_print_str): Fix error handling.
26099 * include/grub/usb.h (grub_usb_get_string): Remove.
26101 UTF-8 to UTF-16 transformation.
26103 * conf/common.rmk (pkglib_MODULES): Add charset.mod
26104 (charset_mod_SOURCES): New variable.
26105 (charset_mod_CFLAGS): Likewise.
26106 (charset_mod_LDFLAGS): Likewise.
26107 * include/grub/utf.h: New file.
26108 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
26110 Support for device properties.
26112 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
26113 (grub_xnu_devprop_device_header): Likewise.
26114 (grub_xnu_devprop_device_descriptor): Likewise.
26115 (grub_xnu_devprop_add_device): New prototype.
26116 (grub_xnu_devprop_remove_device): Likewise.
26117 (grub_xnu_devprop_remove_property): Likewise.
26118 (grub_xnu_devprop_add_property_utf8): Likewise.
26119 (grub_xnu_devprop_add_property_utf16): Likewise.
26120 (grub_cpu_xnu_init): Likewise.
26121 (grub_cpu_xnu_fini): Likewise.
26122 (grub_cpu_xnu_unload): Likewise.
26123 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
26124 (property_descriptor): Likewise.
26125 (devices): New variable.
26126 (grub_xnu_devprop_remove_property): New function.
26127 (grub_xnu_devprop_add_device): Likewise.
26128 (grub_xnu_devprop_remove_device): Likewise.
26129 (grub_xnu_devprop_add_property): Likewise.
26130 (grub_xnu_devprop_add_property_utf8): Likewise.
26131 (grub_xnu_devprop_add_property_utf16): Likewise.
26132 (hextoval): Likewise.
26133 (grub_cpu_xnu_fill_devprop): Likewise.
26134 (grub_cmd_devprop_load): Likewise.
26135 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
26136 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
26137 (cmd_devprop_load): New variable.
26138 (grub_cpu_xnu_init): New function.
26139 (grub_cpu_xnu_fini): Likewise.
26140 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
26141 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
26142 (grub_cmd_xnu_devtree): Likewise.
26143 (hextoval): New function.
26144 (unescape): Likewise.
26145 (grub_xnu_fill_devicetree): Likewise.
26147 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
26148 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
26150 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26152 Workaround for broken ATI VBE.
26154 * video/i386/pc/vbe.c (last_set_mode): New variable.
26155 (grub_vbe_set_video_mode): Set 'last_set_mode'.
26156 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
26157 (grub_video_vbe_setup): Don't check for reserved flag.
26159 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
26161 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
26162 the `find' command.
26164 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
26166 UUID support for HFS.
26168 * fs/hfs.c (grub_hfs_uuid): New function.
26169 (grub_hfs_fs): New value .uuid.
26170 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
26172 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
26174 Fix a segfault with parsing unknown long options.
26176 * util/grub-mkrelpath.c (options): Zero terminate it.
26178 2009-12-13 Carles Pina i Estany <carles@pina.cat>
26180 * include/grub/misc.h (grub_puts): New declaration.
26181 (grub_puts_): Likewise.
26182 * kern/misc.c (grub_puts): New definition.
26183 (grub_puts_): Likewise.
26185 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
26187 * util/grub-probe.c (probe): Improve error message.
26189 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
26191 * loader/i386/multiboot_elfxx.c
26192 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
26195 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
26197 Relocator framework
26199 * loader/i386/xnu_helper.S: Removed. All users updated.
26200 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
26201 (relocator_mod_SOURCES): New variable.
26202 (relocator_mod_CFLAGS): Likewise.
26203 (relocator_mod_LDFLAGS): Likewise.
26204 (relocator_mod_ASFLAGS): Likewise.
26205 * conf/x86_64.rmk: Likewise.
26206 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
26207 (grub_multiboot_payload_entry_offset): Likewise.
26208 (grub_multiboot_forward_relocator): Likewise.
26209 (grub_multiboot_forward_relocator_end): Likewise.
26210 (grub_multiboot_backward_relocator): Likewise.
26211 (grub_multiboot_backward_relocator_end): Likewise.
26212 (grub_multiboot_payload_eip): New variable.
26213 (grub_multiboot_payload_orig): Likewise.
26214 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
26215 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
26216 * include/grub/i386/memory.h
26217 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
26218 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
26219 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
26220 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
26221 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
26222 * include/grub/i386/relocator.h: New file.
26223 * include/grub/x86_64/relocator.h: Likewise.
26224 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
26225 (XNU_RELOCATOR): New macro.
26226 (grub_xnu_launcher_start): Remove.
26227 (grub_xnu_launcher_end): Likewise.
26228 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
26229 (grub_xnu_heap_real_start): Remove.
26230 (grub_xnu_heap_start): Change to void *. All users updated.
26231 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
26232 * lib/i386/relocator.c: New file.
26233 * lib/i386/relocator_asm.S: Likewise.
26234 * lib/i386/relocator_backward.S: Likewise.
26235 * lib/mips/relocator.c: Likewise.
26236 * lib/mips/relocator_asm.S: Likewise.
26237 * lib/relocator.c: Likewise.
26238 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
26240 (playground): Likewise.
26241 (grub_multiboot_payload_orig): New variable.
26242 (grub_multiboot_payload_dest): Likewise.
26243 (grub_multiboot_payload_size): Likewise.
26244 (grub_multiboot_payload_eip): Likewise.
26245 (grub_multiboot_payload_esp): Likewise.
26246 (grub_multiboot_boot): Use grub_relocator32_boot.
26247 (grub_multiboot_unload): Free relocators.
26248 (grub_multiboot): Setup stack. Use relocators.
26249 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
26250 (grub_multiboot_load_elfXX): Use relocators.
26251 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
26252 (grub_multiboot_payload_size): Likewise.
26253 (grub_multiboot_payload_dest): Likewise.
26254 (grub_multiboot_payload_entry_offset): Likewise.
26255 (grub_multiboot_forward_relocator): Likewise.
26256 (grub_multiboot_backward_relocator): Likewise.
26257 (grub_multiboot_real_boot): Likewise.
26258 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
26259 (grub_xnu_entry_point): Likewise.
26260 (grub_xnu_arg1): Likewise.
26261 (grub_xnu_stack): Likewise.
26262 (grub_xnu_launch): Removed.
26263 (grub_xnu_boot_resume): New function.
26264 (grub_xnu_boot): Use relocators.
26265 * loader/i386/xnu_helper.S: Removed.
26266 * loader/xnu.c (grub_xnu_heap_start): New variable.
26267 (grub_xnu_heap_size): Likewise.
26268 (grub_xnu_heap_malloc): Use relocators.
26269 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
26271 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
26273 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
26276 2009-12-13 Carles Pina i Estany <carles@pina.cat>
26278 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
26279 GRUB_ERR_NONE before calling grub_env_set.
26281 2009-12-12 Robert Millan <rmh@aybabtu.com>
26283 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
26284 * genmk.rb (video): New variable.
26285 (CLEANFILES, VIDEOFILES): Add #{video}.
26286 (#{video}): New target rule.
26287 * genvideolist.sh: New file.
26288 * Makefile.in (pkglib_DATA): Add video.lst.
26289 (video.lst): New target rule.
26290 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
26292 * util/grub.d/30_os-prober.in: Replace `vbe' with
26293 ${GRUB_VIDEO_BACKEND}.
26295 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
26297 * THANKS: Add David Miller.
26299 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
26301 libpciaccess support.
26303 * Makefile.in (LIBPCIACCESS): New variable.
26304 (enable_grub_emu_pci): Likewise.
26305 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
26306 util/pci.c and commands/lspci.c.
26307 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
26308 * configure.ac (grub-emu-pci): New option.
26309 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
26310 (grub_pci_device_unmap_range): Likewise.
26311 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
26312 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
26313 (grub_pci_address_t) [!GRUB_UTIL]: New type.
26314 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
26315 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
26316 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
26317 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
26318 * include/grub/pciutils.h: New file.
26319 * util/pci.c: Likewise.
26321 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
26323 * util/misc.c: Don't include <errno.h> twice.
26325 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
26327 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
26328 name in an error message.
26329 (grub_biosdisk_rw): Likewise.
26331 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26333 Eliminate NTFS 4Gib barrier.
26335 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
26336 (read_run_data): Likewise.
26337 (grub_ntfs_read_run_list): Likewise.
26338 (grub_ntfs_read_block): Likewise.
26339 (grub_ntfs_iterate_dir): Likewise.
26340 (read_mft): Likewise.
26341 (read_data): Likewise.
26343 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
26344 to avoid 64-bit division
26345 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
26346 (grub_ntfs_rlst): Use grub_disk_addr_t.
26348 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26350 Eliminate grub-fstest 4Gib barrier.
26352 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
26353 (read_file): Fix error reporting.
26355 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26357 Eliminate hexdump 4Gib barrier.
26359 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
26360 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
26362 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26364 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
26367 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
26369 Remove miscellaneous files in distclean target.
26371 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
26373 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
26375 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
26376 if they're already set. This resolves the conflict between my
26377 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
26378 fixing the --grub-probe option again.
26379 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
26380 change on 2009-10-06, so that we now once again source
26381 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
26383 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
26385 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
26386 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
26387 `util/devicemap.c'.
26389 2009-12-08 Carles Pina i Estany <carles@pina.cat>
26391 * include/grub/misc.h (grub_printf_): New declaration.
26392 * kern/misc.c (grub_printf_): New definition.
26393 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
26394 instead of `grub_printf' and `_'.
26395 * normal/menu_entry.c (store_completion): Likewise.
26397 (grub_menu_entry_run): Likewise.
26398 * normal/menu_text.c (grub_wait_after_message): Likewise.
26399 (notify_booting): Likewise.
26400 (notify_fallback): Likewise.
26401 (notify_execution_failure): Likewise.
26403 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
26405 * configure.ac: Check for vasprintf.
26406 * util/misc.c (asprintf): Move allocation from here ...
26407 (vasprintf): ... to here. New function.
26408 (xasprintf): New function.
26409 * include/grub/util/misc.h (vasprintf, xasprintf): Add
26411 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26412 * util/grub-mkfont.c (write_font): Likewise.
26413 * util/grub-probe.c (probe): Likewise.
26414 * util/hostdisk.c (make_device_name): Likewise.
26416 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
26418 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
26419 anything even prefixed with 'cdrom' as a cdrom.
26421 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
26423 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
26426 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26428 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
26429 grub_gettext_msg_list.
26430 (grub_gettext_gettranslation_from_position): Return const char *
26432 (grub_gettext_translate): Add the translated strings into a list,
26433 returns from the list if existing there.
26434 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
26435 (grub_gettext_delete_list): Delete the list.
26436 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
26437 lang environment variable is changed.
26438 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
26440 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
26442 Rename kernel.mod to kernel.img.
26444 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
26445 (kernel_mod_EXPORTS): Rename to ...
26446 (kernel_img_EXPORTS): ... this.
26447 (kernel_mod_SOURCES): Rename to ...
26448 (kernel_img_SOURCES): ... this.
26449 (kernel_mod_HEADERS): Rename to ...
26450 (kernel_img_HEADERS): ... this. All users updated.
26451 (kernel_mod_CFLAGS): Rename to ...
26452 (kernel_img_CFLAGS): ... this.
26453 (kernel_mod_ASFLAGS): Rename to ...
26454 (kernel_img_ASFLAGS): ... this.
26455 (kernel_mod_LDFLAGS): Rename to ...
26456 (kernel_img_LDFLAGS): ... this.
26457 * conf/x86_64-efi.rmk: Likewise.
26458 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
26459 (read_kernel_image): ... this. All users updated.
26460 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
26462 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26464 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
26465 (print_spaces): New function.
26466 (grub_print_ucs4): New function.
26467 (getstringwidth): New function.
26468 (print_message_indented): New function.
26469 (print_message): Gettexttize strings using print_message_indented.
26470 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
26472 (get_entry_number): Gettextize and uses dynamic terminal width.
26473 (notify_booting, notify_fallback, notify_execution_failure):
26475 * normal/menu_entry.c (store_completion): Cleanup the gettextized
26478 (grub_menu_entry_run): Likewise.
26479 * PO/POTFILES: Add normal/menu_entry.c.
26481 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
26483 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
26485 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26487 * util/grub-install.in: Install gettext .mo files.
26488 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
26490 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26492 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
26495 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
26497 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
26498 non-firmware-dependant one in realmode.S takes precedence.
26500 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
26502 * commands/halt.c: Replace misc arch-specific headers with
26504 * commands/reboot.c: Likewise.
26505 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
26507 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
26508 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
26509 (kernel_img_SOURCES): ... to here.
26511 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
26512 * include/grub/i386/pc/init.h: Likewise.
26513 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
26514 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
26516 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
26518 * include/grub/i386/halt.h: Remove.
26519 * include/grub/i386/reboot.h: Likewise.
26521 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
26523 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
26525 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
26526 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
26527 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
26529 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
26530 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26531 (usage): Add missing comma in printf.
26533 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
26535 Use the same reboot approach on i386 coreboot and qemu as we do on
26538 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
26539 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
26540 * kern/i386/reboot.c: Remove.
26541 * include/grub/i386/reboot.h (grub_reboot): Export function.
26542 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
26543 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
26544 0xf000:0xfff0 instead of 0xffff:0x0000.
26545 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
26546 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
26548 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
26550 Fix $srcdir != $objdir build.
26552 * Makefile.in (po/%.po): Rewrite as ...
26553 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
26555 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
26557 Fix GNU/Hurd grub-install crash.
26558 * util/grub-probe.c (probe): Try to access `path' only when it is not
26561 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26563 Correct module naming.
26565 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
26566 (GRUB_MOD_INIT(efi_uga)): ... to this
26567 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
26568 (GRUB_MOD_FINI(efi_uga)): ... to this
26569 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
26570 (GRUB_MOD_INIT(efi_gop)): ... to this
26571 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
26572 (GRUB_MOD_FINI(efi_gop)): ... to this
26574 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
26576 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
26578 (usage): Translate `arg' strings using gettext().
26579 Thanks to Jordi Mallach for the suggestion.
26581 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26583 GOP support. Based on patch from Bean
26584 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
26586 * video/efi_gop.c: New file.
26587 * include/grub/efi/graphics_output.h: Likewise.
26588 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
26589 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
26591 * conf/x86_64-efi.rmk: Likewise.
26593 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26595 Rename efi_fb to efi_uga.
26597 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
26599 (efi_fb_mod_SOURCES): Rename this ...
26600 (efi_uga_mod_SOURCES): ... to this.
26601 (efi_fb_mod_CFLAGS): Rename this ...
26602 (efi_uga_mod_CFLAGS): ... to this.
26603 (efi_fb_mod_LDFLAGS): Rename this ...
26604 (efi_uga_mod_LDFLAGS): ... to this.
26605 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
26607 (efi_fb_mod_SOURCES): Rename this ...
26608 (efi_uga_mod_SOURCES): ... to this.
26609 (efi_fb_mod_CFLAGS): Rename this ...
26610 (efi_uga_mod_CFLAGS): ... to this.
26611 (efi_fb_mod_LDFLAGS): Rename this ...
26612 (efi_uga_mod_LDFLAGS): ... to this.
26613 * video/efi_fb.c: Move this ...
26614 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
26616 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26618 * po/README: New file. Explain our PO file workflow.
26620 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26622 * po/ChangeLog: Remove. Move relevant entries back to ...
26623 * ChangeLog: ... here.
26624 * po/ca.po: Remove (now handled by TLP).
26625 * po/id.po: Likewise.
26626 * po/zh_CN.po: Likewise.
26627 * Makefile.in (LINGUAS): Initialize in a way that supports
26630 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26632 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
26633 reliing on po/LINGUAS.
26634 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
26635 (po/%.po): ... this.
26637 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26639 * util/i386/efi/grub-mkimage.c: Include "progname.h".
26640 (main): Use `program_name' instead of nonexistent `progname'.
26642 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26644 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26645 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
26647 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
26649 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
26651 * conf/i386-efi.rmk: Likewise.
26652 * conf/i386-ieee1275.rmk: Likewise.
26653 * conf/powerpc-ieee1275.rmk: Likewise.
26654 * conf/sparc64-ieee1275.rmk: Likewise.
26655 * conf/x86_64-efi.rmk: Likewise.
26657 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26659 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
26661 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26663 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
26665 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
26667 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
26668 (grub_mkdevicemap_SOURCES): New variable.
26669 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
26670 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
26671 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
26672 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
26673 (grub_mkdevicemap_SOURCES): Remove.
26674 * conf/i386-efi.rmk: Likewise.
26675 * conf/i386-ieee1275.rmk: Likewise.
26676 * conf/i386-pc.rmk: Likewise.
26677 * conf/powerpc-ieee1275.rmk: Likewise.
26678 * conf/sparc64-ieee1275.rmk: Likewise.
26679 * conf/x86_64-efi.rmk: Likewise.
26680 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
26681 (usage): Fix strings to use `program_name'.
26682 (main): Initialize gettext.
26683 * util/grub-editenv.c: Likewise.
26684 * util/grub-emu.c: Likewise.
26685 * util/grub-fstest.c: Likewise.
26686 * util/grub-mkdevicemap.c: Likewise.
26687 * util/grub-mkfont.c: Likewise.
26688 * util/grub-mkrelpath.c: Likewise.
26689 * util/grub-pe2elf.c: Likewise.
26690 * util/grub-probe.c: Likewise.
26691 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
26692 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
26693 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26695 * util/misc.c: Include `"progname.h"'.
26696 (progname): Remove variable.
26697 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
26699 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
26701 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
26702 printf and print a newline after the menuentry header line.
26703 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
26705 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
26707 autoconf >= 2.60 support $(localedir).
26709 * INSTALL: Note that autoconf 2.60 is required.
26710 * configure.ac (AC_PREREQ): Bump to 2.60.
26711 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
26712 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
26714 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
26716 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
26719 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
26721 * normal/main.c (grub_normal_read_line): Fix off-by-one
26724 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
26726 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
26727 "parser.grub" in grub_command_execute() call.
26729 2009-11-24 Carles Pina i Estany <carles@pina.cat>
26731 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
26732 * conf/i386-efi.rmk: Likewise.
26733 * conf/i386-ieee1275.rmk: Likewise.
26734 * conf/i386-pc.rmk: Likewise.
26735 * conf/powerpc-ieee1275.rmk: Likewise.
26736 * conf/sparc64-ieee1275.rmk: Likewise.
26737 * conf/x86_64-efi.rmk: Likewise.
26738 * gettext/gettex.c: Include <grub/i18n.h>.
26739 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
26741 * include/grub/i18n.h: ... to here
26742 * include/grub/i18n.h: ... to here.
26743 * kern/misc.c: Include <grub/i18n.h>
26744 (grub_gettext_dummy): Move above user.
26746 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26748 * util/Makefile.in (install-local): Convert a `for' into a normal
26751 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
26753 * autogen.sh: Add automake call.
26754 * config.guess: Remove.
26755 * config.sub: Likewise.
26756 * install-sh: Likewise.
26758 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26760 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
26762 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26764 * util/Makefile.in (install-local): Convert a make `$(foreach)'
26765 function to a normal shell `for'.
26767 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26769 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26771 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26773 * util/grub-mkrelpath.c: New file.
26774 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
26775 (grub_mkrelpath_SOURCES): New variable.
26776 * include/grub/util/misc.h: New function prototype.
26777 * util/misc.c (make_system_path_relative_to_its_root): New function.
26779 * util/grub-mkconfig_lib.in (bindir): New variable.
26780 (grub_mkrelpath): Likewise.
26781 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
26783 * util/probe.c (probe): Make the file path relative to its root.
26784 Change a info message to use the GRUB path. Enable again the
26785 check if we can read the file with GRUB facilities.
26787 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
26790 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26792 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
26795 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26797 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
26800 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26802 * util/getroot.c (grub_util_is_dmraid): New function.
26803 (grub_util_get_dev_abstraction): Treat dmraid and multipath
26804 devices as normal ones, not as LVM.
26806 2009-11-23 Carles Pina i Estany <carles@pina.cat>
26808 * conf/common.rmk: Add grub-gettext_lib target and updates
26809 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
26811 * gettext/gettext.c: New file. (Reads mo files).
26812 * include/grub/file.h (grub_file_pread): New prototype.
26813 * include/grub/i18n.h (_): New prototype.
26814 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
26816 * kern/misc.c (grub_gettext_dummy): New function.
26817 * normal/menu_text.c: Include <grub/i18n.h>.
26818 * normal/menu_text.c (print_timeout): Gettexttize string.
26819 * normal/menu_text.c (print_message): Gettexttize string.
26820 * po/POTFILES: Add `normal/menu_text.c'.
26821 * po/ca.po: Add new translations.
26822 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
26823 gettext module and defines locale_dir and lang in grub.cfg.
26824 * NEWS: Add gettext support.
26826 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26828 * util/hostdisk.c: Include `<grub/i18n.h>'.
26829 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
26830 (make_device_name): Rewrite using asprintf.
26831 (convert_system_partition_to_system_disk): Replace 0 with NULL.
26832 (find_system_device): If a device is not found, generate one just
26833 by reusing the OS path name.
26834 (read_device_map): Make it permissible for device.map not to exist.
26836 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26838 * script/sh/execute.c: Move from here ...
26839 * script/execute.c: ... to here. Update all users.
26840 * script/sh/function.c: Move from here ...
26841 * script/function.c: ... to here. Update all users.
26842 * script/sh/lexer.c: Move from here ...
26843 * script/lexer.c: ... to here. Update all users.
26844 * script/sh/main.c: Move from here ...
26845 * script/main.c: ... to here. Update all users.
26846 * script/sh/parser.y: Move from here ...
26847 * script/parser.y: ... to here. Update all users.
26848 * script/sh/script.c: Move from here ...
26849 * script/script.c: ... to here. Update all users.
26851 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26853 * configure.ac: Detect all `emu' platforms. Define
26854 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
26855 --enable-grub-emu logic. Disable include/grub/machine
26856 symlink on `emu' platforms.
26858 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
26859 * gensymlist.sh.in: Likewise.
26861 * include/grub/i386/coreboot/machine.h: Remove file.
26862 * include/grub/i386/efi/machine.h: Likewise.
26863 * include/grub/i386/ieee1275/machine.h: Likewise.
26864 * include/grub/i386/pc/machine.h: Likewise.
26865 * include/grub/i386/qemu/machine.h: Likewise.
26866 * include/grub/powerpc/ieee1275/machine.h: Likewise.
26867 * include/grub/sparc64/ieee1275/machine.h: Likewise.
26868 * include/grub/x86_64/efi/machine.h: Likewise.
26870 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
26871 * commands/halt.c: Likewise.
26872 * commands/reboot.c: Likewise.
26873 * include/grub/autoefi.h: Likewise.
26874 * include/grub/i386/at_keyboard.h: Likewise.
26875 * include/grub/i386/kernel.h: Likewise.
26876 * include/grub/i386/loader.h: Likewise.
26877 * include/grub/i386/pc/memory.h: Likewise.
26878 * kern/dl.c: Likewise.
26879 * kern/i386/coreboot/init.c: Likewise.
26880 * loader/i386/bsd.c: Likewise.
26881 * loader/i386/linux.c: Likewise.
26882 * loader/multiboot_loader.c: Likewise.
26883 * term/i386/pc/serial.c: Likewise.
26884 * term/usb_keyboard.c: Likewise.
26886 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
26887 `<grub/machine/machine.h>'
26888 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
26889 * util/misc.c: Remove `<grub/machine/machine.h>' and
26890 `<grub/machine/time.h>'.
26892 * Makefile.in (enable_grub_emu): Remove variable.
26893 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
26895 * conf/any-emu.rmk: New file.
26896 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
26897 (grub_emu_init.c): Move from here ...
26898 * conf/any-emu.rmk: ... to here.
26900 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
26901 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
26902 * conf/any-emu.rmk: ... to here.
26904 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26906 * include/grub/parser.h (grub_parser_register): Document need
26907 of `name' parameter.
26908 * normal/main.c (grub_normal_read_line): Simplify prompt string.
26909 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
26912 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26914 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
26916 * include/grub/i18n.h (N_): New macro.
26917 * util/mkisofs/mkisofs.h: Likewise.
26918 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
26920 (usage): Use gettext() to translate help strings when printing them.
26922 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26924 Based on patch from Bean
26925 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
26927 * video/efi_fb.c: New file.
26928 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
26929 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
26931 * conf/x86_64-efi.rmk: Likewise.
26933 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
26935 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
26936 * util/i386/pc/grub-setup.c: Likewise.
26938 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
26940 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
26942 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
26943 file_get_storage_info to implement grub_guess_root_device.
26945 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
26947 * Makefile.in (target): Use make's builtin $(shell) function
26948 instead of calling directly $(SHELL) to create the locale directories,
26949 inside the $(foreach) function.
26951 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
26953 * util/grub-mkrescue.in: Print an error and usage if output option
26954 has not been given.
26956 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
26958 Patch from Loïc Minier <loic.minier@ubuntu.com>.
26959 * util/grub.d/30_os-prober.in: Cope with Linux entries where
26960 root and /boot are on different devices.
26962 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
26964 Fix build for srcdir != objdir.
26966 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
26967 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
26969 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
26970 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
26971 reference for input.
26973 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
26975 * util/grub-mkrescue.in: Use source directory direcly (without copiing
26976 or hardlinking it). Remove -J option, Joliet is not compatible with
26977 multiple source directories.
26979 2009-11-21 Carles Pina i Estany <carles@pina.cat>
26980 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
26982 * util/grub-mkrescue.in: Recognize `--override-directory' option.
26983 (process_input_dir): New function. Process an arbitrary input
26985 Misc adjustments to support both "override mode" and system-wide mode.
26987 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
26989 * configure.ac (UNIFONT_BDF): Rename to ...
26990 (FONT_SOURCE): ... this. Update all users.
26992 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
26994 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
26995 to the list of unifont files to look for.
26997 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
26999 Patch from Joe Auricchio <jauricchio@gmail.com>
27000 * commands/minicmd.c (grub_mini_cmd_clear): New function.
27001 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
27002 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
27004 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
27006 * Makefile.in (install-local): Add a missing backslash.
27008 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
27010 * include/grub/x86_64/io.h: New file.
27012 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27014 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
27015 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
27016 Include `"progname.h"'.
27017 (main): Initialize gettext.
27018 * util/i386/pc/grub-setup.c: Gettexttize.
27019 * util/i386/pc/grub-mkimage.c: Likewise.
27021 * Makefile.in (po/*.po): Redefine as ...
27022 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
27024 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
27026 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27028 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
27029 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
27030 (program_name): Remove.
27031 (main): Initialize gettext support.
27032 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
27033 Include `<libintl.h>'.
27036 * util/mkisofs/eltorito.c: Gettexttize.
27037 * util/mkisofs/joliet.c: Likewise.
27038 * util/mkisofs/mkisofs.c: Likewise.
27039 * util/mkisofs/multi.c: Likewise.
27040 * util/mkisofs/rock.c: Likewise.
27041 * util/mkisofs/tree.c: Likewise.
27042 * util/mkisofs/write.c: Likewise.
27044 * po/POTFILES: Update with new files.
27046 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27048 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
27049 * util/mkisofs/iso9660.h: Likewise.
27050 * util/mkisofs/joliet.c: Likewise.
27051 * util/mkisofs/mkisofs.c: Likewise.
27052 * util/mkisofs/mkisofs.h: Likewise.
27053 * util/mkisofs/rock.c: Likewise.
27054 * util/mkisofs/tree.c: Likewise.
27055 * util/mkisofs/write.c: Likewise.
27057 * util/mkisofs/eltorito.c (rcsid): Remove.
27058 * util/mkisofs/hash.c: Likewise.
27059 * util/mkisofs/joliet.c: Likewise.
27060 * util/mkisofs/name.c: Likewise.
27061 * util/mkisofs/rock.c: Likewise.
27062 * util/mkisofs/tree.c: Likewise.
27063 * util/mkisofs/write.c: Likewise.
27065 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27067 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
27068 instead of static allocation.
27069 * util/mkisofs/match.h: Likewise.
27071 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27073 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
27074 and `util/grub.d/10_linux.in'.
27075 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
27076 translatable Shell files.
27078 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27080 * Makefile.in ($(srcdir)/aclocal.m4): New target.
27082 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27084 * INSTALL: Document Automake is needed for bootstrap.
27085 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
27086 * util/grub.d/10_kfreebsd.in (bindir): New variable.
27087 Add gettext initialization.
27088 (kfreebsd_entry): Make menuentry output translatable.
27090 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27092 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
27093 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
27094 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
27095 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
27096 (LINGUAS): Auto-generate using `po/LINGUAS'.
27097 * po/LINGUAS: New file.
27099 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27101 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
27103 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
27104 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
27105 bindtextdomain() calls for gettext initialization.
27107 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27109 * gnulib/progname.c: New file (imported from Gnulib).
27110 * gnulib/progname.h: Likewise.
27111 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
27112 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
27113 (usage): Replace `progname' with `program_name'.
27114 (main): Use set_program_name() for program name initialization.
27116 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27118 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
27120 * Makefile.in (CPPFLAGS): ... to here.
27122 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27124 * aclocal.m4: Move from here ...
27125 * acinclude.m4: ... to here.
27126 * autogen.sh: Add call to `aclocal'.
27127 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
27129 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27131 * Makefile.in (CLEANFILES): Add `po/*.mo'.
27132 (LINGUAS): New variable.
27133 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
27134 (install-local): Install MO files.
27135 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
27136 * include/grub/i18n.h: New file.
27137 * po/POTFILES: New file.
27138 * po/ca.po: New file.
27139 * util/grub.d/10_linux.in (bindir): New variable.
27140 Add gettext initialization.
27141 (linux_entry): Make menuentry output translatable.
27142 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
27143 (usage): Make --help output translatable.
27144 (main): Initialize gettext.
27146 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27148 * import_gcry.py: New file (written by Vladimir with minor
27150 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
27152 * INSTALL: Document that Python is required for bootstrap.
27154 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27156 Import ciphers from libgcrypt 1.4.4.
27158 * lib/libgcrypt/cipher/ChangeLog
27159 * lib/libgcrypt/cipher/ac.c
27160 * lib/libgcrypt/cipher/arcfour.c
27161 * lib/libgcrypt/cipher/bithelp.h
27162 * lib/libgcrypt/cipher/blowfish.c
27163 * lib/libgcrypt/cipher/camellia-glue.c
27164 * lib/libgcrypt/cipher/camellia.c
27165 * lib/libgcrypt/cipher/camellia.h
27166 * lib/libgcrypt/cipher/cast5.c
27167 * lib/libgcrypt/cipher/cipher.c
27168 * lib/libgcrypt/cipher/crc.c
27169 * lib/libgcrypt/cipher/des.c
27170 * lib/libgcrypt/cipher/dsa.c
27171 * lib/libgcrypt/cipher/ecc.c
27172 * lib/libgcrypt/cipher/elgamal.c
27173 * lib/libgcrypt/cipher/hash-common.c
27174 * lib/libgcrypt/cipher/hash-common.h
27175 * lib/libgcrypt/cipher/hmac-tests.c
27176 * lib/libgcrypt/cipher/md.c
27177 * lib/libgcrypt/cipher/md4.c
27178 * lib/libgcrypt/cipher/md5.c
27179 * lib/libgcrypt/cipher/primegen.c
27180 * lib/libgcrypt/cipher/pubkey.c
27181 * lib/libgcrypt/cipher/rfc2268.c
27182 * lib/libgcrypt/cipher/rijndael-tables.h
27183 * lib/libgcrypt/cipher/rijndael.c
27184 * lib/libgcrypt/cipher/rmd.h
27185 * lib/libgcrypt/cipher/rmd160.c
27186 * lib/libgcrypt/cipher/rsa.c
27187 * lib/libgcrypt/cipher/seed.c
27188 * lib/libgcrypt/cipher/serpent.c
27189 * lib/libgcrypt/cipher/sha1.c
27190 * lib/libgcrypt/cipher/sha256.c
27191 * lib/libgcrypt/cipher/sha512.c
27192 * lib/libgcrypt/cipher/tiger.c
27193 * lib/libgcrypt/cipher/twofish.c
27194 * lib/libgcrypt/cipher/whirlpool.c
27196 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27198 Fix build for systems without error().
27200 * gnulib/error.c: New file (imported from Gnulib).
27201 * gnulib/error.h: Likewise.
27202 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
27203 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
27204 (this variable is now used by error()).
27206 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
27208 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
27209 instead of relying that char is signed.
27211 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
27213 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
27214 blocksize different from specified.
27215 (grub_pxefs_read): Likewise.
27217 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
27219 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
27221 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
27222 (grub_ata_readwrite): Likewise. Update 2 format strings.
27223 (grub_atapi_read): Likewise.
27225 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
27226 * conf/i386.rmk (pkglib_MODULES): ... to here ...
27227 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
27228 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
27229 (ata_mod_LDFLAGS): Move from here ...
27230 * conf/i386.rmk: ... to here ...
27231 * conf/x86_64-efi.rmk: ... and here.
27232 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
27233 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
27235 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27237 Relicense multiboot.h, with RMS' blessing.
27239 * include/multiboot.h: Change to X11 license.
27241 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
27243 Support --version in grub-mkisofs.
27245 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
27246 (OPTION_VERSION): New macro.
27247 (ld_options): Recognize --version.
27248 (usage): Move `program_name' from here ...
27249 (program_name): ... to here. Add `static' qualifier.
27250 (main): Recognize `OPTION_VERSION'.
27252 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
27254 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
27255 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
27257 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
27259 Fix help2man generation for mkisofs.
27261 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
27262 (usage): Send output to stdout (rather than stderr).
27264 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
27266 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
27267 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
27268 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
27269 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
27270 (bin_SCRIPTS): Add `grub-mkfloppy'.
27271 (grub_mkfloppy_SOURCES): New variable.
27273 * util/grub-mkrescue.in: New file.
27274 * util/i386/pc/grub-mkfloppy.in: New file.
27276 * util/i386/coreboot/grub-mkrescue.in: Remove.
27277 * util/i386/pc/grub-mkrescue.in: Remove.
27279 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27281 * include/grub/multiboot.h (struct grub_multiboot_header): Move
27283 * include/multiboot.h (struct multiboot_header): ... to here. Update
27285 * include/grub/multiboot.h (struct grub_multiboot_info): Move
27287 * include/multiboot.h (struct multiboot_info): ... to here. Update
27289 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
27291 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
27293 * include/grub/multiboot.h (struct grub_mod_list): Move
27295 * include/multiboot.h (struct multiboot_mod_list): ... to here.
27298 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27300 * include/multiboot2.h (multiboot_word): Rename from this ...
27301 (multiboot2_word): ... to this. Update all users.
27302 (multiboot_header): Rename from this ...
27303 (multiboot2_header): ... to this. Update all users.
27304 (multiboot_tag_header): Rename from this ...
27305 (multiboot2_tag_header): ... to this. Update all users.
27306 (multiboot_tag_start): Rename from this ...
27307 (multiboot2_tag_start): ... to this. Update all users.
27308 (multiboot_tag_name): Rename from this ...
27309 (multiboot2_tag_name): ... to this. Update all users.
27310 (multiboot_tag_module): Rename from this ...
27311 (multiboot2_tag_module): ... to this. Update all users.
27312 (multiboot_tag_memory): Rename from this ...
27313 (multiboot2_tag_memory): ... to this. Update all users.
27314 (multiboot_tag_unused): Rename from this ...
27315 (multiboot2_tag_unused): ... to this. Update all users.
27316 (multiboot_tag_end): Rename from this ...
27317 (multiboot2_tag_end): ... to this. Update all users.
27319 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27321 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
27322 this platform we should support Multiboot1 first.
27324 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
27325 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
27326 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
27328 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
27330 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
27331 of write calls (converting them to fwrite() if they aren't already).
27332 (get_torito_desc): Likewise.
27333 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
27335 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
27337 * util/i386/pc/grub-install.in: Move from here ...
27338 * util/grub-install.in: ... to here. Update all users.
27340 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
27342 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
27344 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
27346 Support for El Torito without floppy emulation.
27348 * util/mkisofs/eltorito.c: Include `<errno.h>'.
27349 (init_boot_catalog): Improve error handling.
27350 (get_torito_desc): Don't use floppy emulation unless requested by
27351 user. Patch boot information table when requested via
27352 `-boot-info-table'.
27353 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
27354 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
27355 (use_boot_info_table): New variables.
27356 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
27357 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
27358 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
27359 `--eltorito-emul-floppy'.
27360 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
27361 and `OPTION_ELTORITO_EMUL_FLOPPY'.
27362 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
27363 (use_boot_info_table, get_731): New prototypes.
27364 * util/mkisofs/write.c (get_731): New function.
27366 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
27368 Fix the generation of the man page.
27370 * util/pc/i386/grub-install.in: Source
27371 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
27373 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
27375 Large file support for grub-mkisofs.
27377 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
27378 * util/mkisofs/mkisofs.c (next_extent, last_extent)
27379 (session_start): Upgrade type to `uint64_t'. Update all users.
27380 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
27381 (struct directory_entry): Upgrade type of `starting_block' and
27382 `size' to `uint64_t'. Update all users.
27383 (struct deferred): Remove unused structure.
27384 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
27386 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
27387 file is larger than `UINT32_MAX'.
27388 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
27389 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
27391 (struct deferred_write): Upgrade type of `extent' and `size' to
27392 `uint64_t'. Update all users.
27393 (last_extent_written): Upgrade type to `uint64_t'. Update all
27395 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
27396 Update all users. Upgrade type of `remain' to `int64_t' and
27397 `use' to `size_t'. Use error() to handle fread() errors.
27398 (write_files): Rely on write_one_file() rather than calling
27399 xfwrite() directly.
27401 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
27403 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
27405 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27407 * util/mkisofs/fnmatch.c: Remove.
27408 * util/mkisofs/getopt1.c: Likewise.
27409 * util/mkisofs/getopt.c: Likewise.
27410 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
27411 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
27412 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
27413 `gnulib/getopt1.c' and `gnulib/getopt.c'.
27414 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
27416 * configure.ac: Detect `mingw32msvc' host_os.
27417 Check for lstat(), getuid() and getgid().
27419 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
27420 instances of `u_char' with `uint8_t'.
27422 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
27423 [!HAVE_GETUID] (getuid): New function (stub).
27424 [!HAVE_GETGID] (getgid): Likewise.
27425 [!HAVE_LSTAT] (lstat): Likewise.
27426 [!S_IROTH] (S_IROTH): New macro (dummy).
27427 [!S_IRGRP] (S_IRGRP): Likewise.
27429 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27431 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
27432 conditional expression).
27434 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27436 Import from Gnulib.
27438 * gnulib/fnmatch.c: New file.
27439 * gnulib/fnmatch.h: Likewise.
27440 * gnulib/fnmatch_loop.c: Likewise.
27441 * gnulib/getopt.c: Likewise.
27442 * gnulib/getopt.h: Likewise.
27443 * gnulib/getopt1.c: Likewise.
27444 * gnulib/getopt_int.h: Likewise.
27445 * gnulib/gettext.h: Likewise.
27447 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27449 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
27450 * normal/handler.c (read_handler_list): Likewise.
27452 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27456 * kern/command.c (grub_register_command_prio): Use
27457 grub_zalloc() instead of explicitly zeroing data.
27458 * kern/list.c: Include `<grub/mm.h>'.
27459 (grub_named_list_find): Replace `0' with `NULL'.
27460 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
27461 (fs_module_list): Change type to `grub_named_list_t'. Update all
27463 * normal/dyncmd.c (read_command_list): Add space between function
27464 call and parenthesis.
27465 * normal/handler.c (read_handler_list): Likewise.
27467 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27469 * normal/auth.c (punishment_delay): Moved from here ...
27470 (grub_auth_strcmp): ... to here (inside function).
27472 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27474 * include/grub/list.h (struct grub_named_list): Remove `const'
27475 qualifier from `name'.
27476 (struct grub_prio_list): Likewise.
27478 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27480 * normal/auth.c: Include `<grub/time.h>'.
27481 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
27483 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27485 * normal/auth.c (punishment_delay): New variable.
27486 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
27487 (grub_auth_check_authentication): Punish failed login attempts with
27488 an incremental (2^N) delay.
27490 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27492 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
27493 path with $(srcdir).
27495 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
27497 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
27499 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27501 * util/i386/coreboot/grub-mkrescue.in: New file.
27502 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
27505 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
27506 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
27507 * configure.ac: Add header and function checks to satisfy grub-mkisofs
27509 * util/mkisofs/defaults.h: New file.
27510 * util/mkisofs/eltorito.c: Likewise.
27511 * util/mkisofs/exclude.h: Likewise.
27512 * util/mkisofs/fnmatch.c: Likewise.
27513 * util/mkisofs/getopt.c: Likewise.
27514 * util/mkisofs/getopt1.c: Likewise.
27515 * util/mkisofs/hash.c: Likewise.
27516 * util/mkisofs/include/fctldefs.h: Likewise.
27517 * util/mkisofs/include/mconfig.h: Likewise.
27518 * util/mkisofs/include/prototyp.h: Likewise.
27519 * util/mkisofs/include/statdefs.h: Likewise.
27520 * util/mkisofs/iso9660.h: Likewise.
27521 * util/mkisofs/joliet.c: Likewise.
27522 * util/mkisofs/match.c: Likewise.
27523 * util/mkisofs/match.h: Likewise.
27524 * util/mkisofs/mkisofs.c: Likewise.
27525 * util/mkisofs/mkisofs.h: Likewise.
27526 * util/mkisofs/multi.c: Likewise.
27527 * util/mkisofs/name.c: Likewise.
27528 * util/mkisofs/rock.c: Likewise.
27529 * util/mkisofs/tree.c: Likewise.
27530 * util/mkisofs/write.c: Likewise.
27532 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
27534 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
27537 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27539 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
27540 `grub-mkimage' (and use $0 when possible).
27542 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27544 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
27545 error message for excessively large memory map.
27547 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27549 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
27552 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27554 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
27555 message for coreboot users.
27557 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
27559 Fix build with GNU gold.
27561 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
27562 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
27563 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
27565 * aclocal.m4: Likewise.
27567 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
27569 * configure.ac (AC_PREREQ): Bump to 2.59d.
27570 * INSTALL: Make it more clear when Autoconf and Ruby are
27571 needed and when to run `./autogen.sh'.
27573 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
27575 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
27578 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27580 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
27582 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27584 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
27585 giving it to GNU Mach.
27587 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27589 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
27590 GNU partition number to get internal GRUB partition number.
27592 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27594 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
27595 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
27597 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
27599 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
27600 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
27603 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
27605 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
27607 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
27611 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
27612 `-isystem=$(srcdir)/include'.
27614 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
27616 * util/i386/pc/grub-install.in: Remove hint that device.map should be
27617 checked (grub-install doesn't currently rely on it).
27619 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
27623 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
27624 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
27625 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
27626 * conf/i386-ieee1275.rmk: Likewise.
27627 * conf/i386-pc.rmk: Likewise.
27628 * conf/powerpc-ieee1275.rmk: Likewise.
27629 * conf/sparc64-ieee1275.rmk: Likewise.
27630 * conf/x86_64-efi.rmk: Likewise.
27632 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27634 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
27636 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27638 * include/grub/misc.h: Stop checking for APPLE_CC.
27640 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27642 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
27643 doesn't cause an infinite call loop.
27645 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
27647 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
27650 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27652 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
27654 * Makefile.in: Likewise.
27656 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27658 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
27660 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27662 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
27664 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27666 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
27668 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27670 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
27672 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
27674 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27676 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
27677 in $(MAKEINFO) invocation. This makes it clear in output that
27678 errors are being ignored.
27680 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27682 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
27684 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
27685 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
27686 * conf/i386-ieee1275.rmk: Likewise.
27687 * conf/i386-pc.rmk: Likewise.
27688 * conf/powerpc-ieee1275.rmk: Likewise.
27689 * conf/sparc64-ieee1275.rmk: Likewise.
27690 * conf/x86_64-efi.rmk: Likewise.
27692 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
27694 * util/grub-editenv.c (main): If only a command is given, use
27695 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
27696 (usage): FILENAME is now optional and has a default.
27698 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
27700 Improve grub-mkconfig performance when there are several menu
27701 entries on a single filesystem.
27703 * util/grub.d/10_linux.in (linux_entry): Cache the output of
27704 prepare_grub_to_access_device.
27705 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
27706 * util/grub.d/30_os-prober.in: Likewise.
27708 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27710 * util/grub.d/10_freebsd.in: Remove.
27711 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
27712 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
27714 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27716 * docs/grub.cfg: Fix example usage of *BSD loaders.
27718 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27720 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
27721 grub_util_error() call.
27723 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27725 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
27726 `reserved_first_sector' member.
27727 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
27728 `reserved_first_sector' to 1.
27729 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
27730 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
27731 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
27732 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
27733 filesystems which begin at first sector.
27734 (options): New option --skip-fs-probe.
27735 (main): Handle --skip-fs-probe and pass it to setup().
27737 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27739 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
27740 (memset): Fix function prototype.
27742 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27743 2009-10-25 Vasily Averin <vvs@parallels.com>
27745 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
27746 `dirent.direntlen == 0'.
27748 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27750 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
27752 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
27754 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27756 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
27757 `__trampoline_setup' and `__ucmpdi2'.
27758 * include/grub/powerpc/libgcc.h: Only export symbols for functions
27759 that libgcc provides.
27761 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27763 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
27764 * include/grub/sparc64/libgcc.h (memset): Likewise.
27765 * include/grub/misc.h (memset, memcmp): New function prototypes.
27767 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27769 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
27771 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
27773 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27775 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
27776 * docs/grub.cfg: Compensate for recent change in multiboot
27777 loader (since 2009-08-14 it won't pass filename to payload).
27778 * util/grub.d/10_hurd.in: Likewise.
27780 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
27782 * config.guess: Update to latest version from config git
27784 * config.sub: Likewise.
27786 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
27788 Fix build on sparc64.
27790 * configure.ac: Perform checks for libgcc symbols before
27791 adding `-nostdlib' to LDFLAGS.
27793 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
27795 Let user specify OpenBSD root device.
27797 * loader/i386/bsd.c (openbsd_root): New variable.
27798 (openbsd_opts): New option 'root'.
27799 (OPENBSD_ROOT_ARG): New macro.
27800 (grub_openbsd_boot): Use 'openbsd_root'.
27801 (grub_cmd_openbsd): Fill 'openbsd_root'.
27803 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
27805 * NEWS: Misc adjustments.
27807 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
27809 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
27811 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
27813 * configure.ac: Bump version to 1.97.
27815 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
27817 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
27818 -mno-3dnow on x86 architectures. Some toolchains enable these
27819 features by default, but they rely on registers that aren't enabled
27820 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
27822 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
27824 Make entry text a bit more readable.
27826 * util/grub.d/10_linux.in: Add `with' before `Linux'.
27828 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27830 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
27832 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27834 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
27837 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27839 * configure.ac: Add missing dollar.
27841 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27843 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
27845 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
27846 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
27848 * include/grub/sparc64/libgcc.h: Likewise. Use
27849 preprocessor conditionals.
27851 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
27853 * conf/common.rmk (grub-dumpbios): Remove rule.
27854 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
27855 * util/grub-dumpbios.in: Remove file.
27857 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
27859 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
27860 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
27862 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
27863 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
27866 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
27867 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
27868 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
27869 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
27872 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
27874 * term/tparm.c: Switch to GPLv3.
27876 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
27878 * include/grub/i386/cpuid.h: Add header protection.
27880 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
27882 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
27884 * include/grub/i386/cpuid.h: New file.
27885 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
27886 (has_longmode): Rename to ...
27887 (grub_cpuid_has_longmode): ... this. Update all users. Remove
27888 `static' attribute.
27889 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
27890 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
27891 on a CPU that doesn't implement AMD64 instruction set.
27893 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
27895 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
27896 that version.texi is rebuilt on version number changes.
27898 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
27900 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
27903 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
27905 * util/i386/pc/grub-install.in: Source
27906 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
27907 that the --grub-probe option will work.
27908 * util/sparc64/ieee1275/grub-install.in: Likewise.
27910 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
27912 * configure.ac: Bump version to 1.97~beta4.
27914 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
27916 Resync grub-mkdevicemap in x86_64-efi.
27918 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
27919 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
27920 `util/devicemap.c'.
27922 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
27924 * util/grub-editenv.c (create_envblk_file): Write new block with a
27925 .new suffix and then rename it into place, to ensure atomic
27928 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
27930 Do not automatically install headers.
27932 * Makefile.in (include_DATA): Remove. Update all users.
27934 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
27936 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
27937 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
27939 * util/osdetect.lua: Remove.
27940 * script/lua/lauxlib.c: Likewise.
27941 * script/lua/ldebug.c: Likewise.
27942 * script/lua/grub_main.c: Likewise.
27943 * script/lua/lauxlib.h: Likewise.
27944 * script/lua/ldebug.h: Likewise.
27945 * script/lua/ltablib.c: Likewise.
27946 * script/lua/liolib.c: Likewise.
27947 * script/lua/lstrlib.c: Likewise.
27948 * script/lua/lualib.h: Likewise.
27949 * script/lua/ldo.c: Likewise.
27950 * script/lua/ldump.c: Likewise.
27951 * script/lua/ldo.h: Likewise.
27952 * script/lua/loslib.c: Likewise.
27953 * script/lua/lundump.c: Likewise.
27954 * script/lua/grub_lib.c: Likewise.
27955 * script/lua/ldblib.c: Likewise.
27956 * script/lua/lundump.h: Likewise.
27957 * script/lua/lmem.c: Likewise.
27958 * script/lua/grub_lib.h: Likewise.
27959 * script/lua/lmathlib.c: Likewise.
27960 * script/lua/lstate.c: Likewise.
27961 * script/lua/ltm.c: Likewise.
27962 * script/lua/lvm.c: Likewise.
27963 * script/lua/lmem.h: Likewise.
27964 * script/lua/lstate.h: Likewise.
27965 * script/lua/ltm.h: Likewise.
27966 * script/lua/ltable.c: Likewise.
27967 * script/lua/lvm.h: Likewise.
27968 * script/lua/llex.c: Likewise.
27969 * script/lua/lgc.c: Likewise.
27970 * script/lua/grub_lua.h: Likewise.
27971 * script/lua/loadlib.c: Likewise.
27972 * script/lua/lfunc.c: Likewise.
27973 * script/lua/lopcodes.c: Likewise.
27974 * script/lua/lparser.c: Likewise.
27975 * script/lua/ltable.h: Likewise.
27976 * script/lua/llex.h: Likewise.
27977 * script/lua/lgc.h: Likewise.
27978 * script/lua/lfunc.h: Likewise.
27979 * script/lua/lbaselib.c: Likewise.
27980 * script/lua/lopcodes.h: Likewise.
27981 * script/lua/lparser.h: Likewise.
27982 * script/lua/lzio.c: Likewise.
27983 * script/lua/linit.c: Likewise.
27984 * script/lua/lobject.c: Likewise.
27985 * script/lua/llimits.h: Likewise.
27986 * script/lua/lstring.c: Likewise.
27987 * script/lua/lzio.h: Likewise.
27988 * script/lua/lapi.c: Likewise.
27989 * script/lua/lcode.c: Likewise.
27990 * script/lua/lua.h: Likewise.
27991 * script/lua/lobject.h: Likewise.
27992 * script/lua/lstring.h: Likewise.
27993 * script/lua/lapi.h: Likewise.
27994 * script/lua/lcode.h: Likewise.
27995 * script/lua/luaconf.h: Likewise.
27997 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
27999 * docs/grub.texi (Command-line and menu entry commands): Document
28000 date and echo commands.
28002 2009-09-24 Pavel Roskin <proski@gnu.org>
28004 * include/grub/kernel.h (struct grub_module_header): Remove
28005 `grub_module_header_types'. Make `type' unsigned. Make `size'
28006 32-bit on all platforms.
28007 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
28008 8-bit field. Use grub_host_to_target32() for `size'.
28009 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
28010 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
28011 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
28013 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28015 Fix "lost keypress" bug in at_keyboard.
28017 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
28018 Checks for readyness of input buffer (without flushing it).
28019 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
28020 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
28022 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28024 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
28025 size check within GRUB_MACHINE_PCBIOS section.
28027 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28029 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
28031 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
28032 KEYBOARD_ISREADY check.
28033 (grub_at_keyboard_checkkey): Rename to ...
28034 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
28035 Remove gratuitous cast.
28037 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
28039 * configure.ac: Call AC_PROG_MKDIR_P.
28040 * Makefile.in (docs/stamp-vti): Create docs directory. Create
28041 version.texi in $(builddir) rather than $(srcdir).
28042 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
28043 to makeinfo's @include search path.
28045 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
28047 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
28049 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
28051 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
28054 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
28056 Build info documentation. Some code borrowed from Automake.
28058 * configure.ac: Check for makeinfo.
28059 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
28060 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
28062 (MOSTLYCLEANFILES): Add vti.tmp.
28063 (docs/version.texi, docs/stamp-vti): Update automatically.
28064 (docs/grub.info): Build info documentation. Use --force and ignore
28066 (all-local): Add $(INFOS).
28067 (install-local): Install info files.
28068 (uninstall): Uninstall info files.
28069 * docs/version.texi: Remove from revision control. This file is
28070 automatically generated on build now.
28071 * gendistlist.sh: Add `*.info'.
28073 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
28075 * kern/term.c: Fix indentation.
28077 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
28079 * util/hostdisk.c: Fix a comment.
28081 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
28083 Fix regression introduced in r2539.
28085 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
28088 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
28090 * util/grub.d/30_os-prober.in: Don't throw away stderr from
28091 os-prober. Under normal operation, it does not print anything to
28092 stderr; if it does, we need to debug it, and throwing away stderr
28093 makes that excessively difficult.
28095 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
28097 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
28099 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
28101 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
28102 AC_LANG_PROGRAM from autoconf.
28103 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
28104 prototypes (fixes warning).
28106 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
28107 `--disable-werror' was used.
28109 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
28111 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
28112 uninitialized `lastaddr'.
28114 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
28116 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
28118 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
28120 * commands/test.c (get_fileinfo): Return immediately if
28121 grub_fs_probe fails.
28123 2009-09-14 José Martínez <xosemp@gmail.com>
28125 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
28127 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
28129 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
28132 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
28134 * configure.ac: Remove --enable-grub-pe2elf. Only build
28135 grub-pe2elf when needed by the build system itself.
28136 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
28138 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28140 * configure.ac: Bump version to 1.97~beta3.
28141 * docs/version.texi: Likewise.
28143 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28145 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
28146 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
28148 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
28149 (grub_linux_setup_video): ... to here (with some adjustments).
28151 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28153 Fix memory corruption issue (spotted by Colin Watson).
28155 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
28156 causing returned size to be stored in an incorrect memory location.
28157 Fix use of uninitialized value when storing the returned size.
28159 2009-09-12 Yves Blusseau <blusseau@zetam.org>
28161 Change clean rules to properly remove files
28163 * genmk.rb: add new clean rules
28164 * Makefile.in (clean): add the new targets
28165 (mostlyclean): likewise
28167 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
28169 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
28171 * fs/ntfs.c (init_file): Understand 64-bit sizes for
28172 non-resident files.
28174 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
28176 * configure.ac: Don't look for help2man when cross-compiling. Fixes
28177 part of bug #27349.
28179 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
28181 * util/grub-mkconfig.in: Make the created config mode 400 and
28182 print a warning if it fails.
28184 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
28186 * util/grub.d/40_custom.in: Ask user to type custom entries below
28187 comment, rather than below 'exec tail' line.
28189 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
28191 * util/grub.d/40_custom.in: Make sure that the explanatory text is
28192 visible in grub.cfg.
28194 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
28196 * util/grub.d/40_custom.in: Make it a little clearer how to use this
28199 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
28201 * docs/grub.cfg: Add an example menu entry for memtest86+.
28203 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
28205 * config.guess: Update to latest version from config git.
28206 * config.sub: Likewise.
28208 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
28210 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
28211 unknown-command case. Fixes bug #27320.
28213 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
28215 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
28216 `help' if the command exists.
28218 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
28220 * INSTALL: Require GCC 4.1.3 or later.
28222 2009-09-06 Yves Blusseau <blusseau@zetam.org>
28224 * Makefile.in (RMKFILES): add i386-qemu.rmk
28225 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
28226 $(srcdir)/stamp-h.in
28228 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
28230 * util/grub-probe.c (probe): Comment out buggy codepath, which
28231 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
28232 should be re-enabled after 1.97.
28234 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
28236 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
28239 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
28241 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
28242 unnecessary calls to grub_error.
28244 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
28246 * NEWS: Mention `keystatus' and Unicode fonts.
28248 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
28250 * configure.ac: Bump version to 1.97~beta2.
28251 * docs/version.texi: Likewise.
28253 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
28255 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
28256 containing unwind information in some cases where it previously did
28257 not. Use -fno-dwarf2-cfi-asm if available to restore the old
28258 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
28261 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
28263 Embedding loadenv module into grub-emu
28265 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
28267 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
28268 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
28269 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
28270 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
28271 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
28272 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
28274 2009-09-03 Magnus Granberg <zorry@ume.nu>
28276 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
28277 include -fPIE in the default specs.
28278 * configure.ac: Check if pie_possible is yes and add -fno-PIE
28281 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
28283 * INSTALL: Note that GNU Bison 2.3 or later is required.
28285 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
28287 * kern/i386/pc/startup.S: Fix typo.
28289 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
28291 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
28294 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28296 * docs/grub.texi (Naming convention): Describe one-based partition
28298 (Device syntax): Likewise.
28299 (File name syntax): Likewise.
28300 (Block list syntax): Likewise.
28301 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
28303 (File name syntax): Likewise.
28304 (Command-line and menu entry commands): Document acpi, blocklist,
28305 crc, export, insmod, keystatus, ls, set, and unset commands.
28307 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28309 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
28310 to avoid implying that only one of --shift, --ctrl, or --alt may be
28313 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28315 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
28316 rather than comparing against S_IFREG, which will almost never work.
28318 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
28320 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
28321 (write_blocklists): Likewise.
28323 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
28325 * script/lua/grub_lua.h (fputs): Supply a format string as the first
28326 argument to grub_printf.
28328 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
28330 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
28333 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
28335 * kern/file.c (grub_file_read): Spelling fix
28337 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
28339 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
28340 loading of headers in some cases.
28342 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
28344 * configure.ac: Bump version to 1.97~beta1.
28345 * docs/version.texi: Likewise.
28347 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
28349 * include/grub/i386/xnu.h: Add license header.
28350 include grub/err.h explicitly.
28352 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
28354 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
28355 to `ufs' in the vfs.root.mountfrom kernel parameter.
28357 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
28359 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
28361 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
28362 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
28364 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
28365 `ARRAY_SIZE' macro.
28367 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28369 * kern/file.c (grub_file_read): Check offset.
28370 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
28371 * fs/jfs.c (grub_jfs_read_file): Likewise.
28372 * fs/ntfs.c (grub_ntfs_read): Likewise.
28373 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
28374 * fs/minix.c (grub_minix_read_file): Correct offset check.
28375 * fs/ufs.c (grub_ufs_read_file): Likewise.
28377 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28379 * term/i386/pc/console.c (bios_data_area): Cast
28380 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
28382 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28384 1-bit optimised blitters.
28386 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
28388 (grub_video_fbblit_replace_24bit_1bit): Likewise.
28389 (grub_video_fbblit_replace_16bit_1bit): Likewise.
28390 (grub_video_fbblit_replace_8bit_1bit): Likewise.
28391 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
28392 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
28393 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
28394 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
28396 (grub_video_fbblit_replace_24bit_1bit): Likewise.
28397 (grub_video_fbblit_replace_16bit_1bit): Likewise.
28398 (grub_video_fbblit_replace_8bit_1bit): Likewise.
28399 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
28400 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
28401 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
28402 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
28404 * video/video.c (grub_video_get_blit_format): Return
28405 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
28407 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28409 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
28410 the first argument to grub_printf.
28412 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28413 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
28415 Add `getkeystatus' terminal method. Add a new `keystatus' command
28418 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
28419 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
28420 modifier key bitmasks.
28421 (struct grub_term_input): Add `getkeystatus' member.
28422 (grub_getkeystatus): Add prototype.
28423 * kern/term.c (grub_getkeystatus): New function.
28425 * include/grub/i386/pc/memory.h
28426 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
28427 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
28429 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
28430 (grub_console_term_input): Set `getkeystatus' member.
28431 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
28433 (grub_usb_keyboard_getreport): Likewise.
28434 (grub_usb_keyboard_checkkey): Likewise.
28435 (grub_usb_keyboard_getkeystatus): New function.
28436 (grub_usb_keyboard_term): Set `getkeystatus' member.
28438 * commands/keystatus.c: New file.
28439 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
28440 (keystatus_mod_SOURCES): New variable.
28441 (keystatus_mod_CFLAGS): Likewise.
28442 (keystatus_mod_LDFLAGS): Likewise.
28443 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
28444 commands/keystatus.c.
28445 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28446 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28447 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28448 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28449 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28450 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28452 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28454 Split befs.mod and afs.mod into *_be.mod and *.mod
28456 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
28457 (grub_fstest_SOURCES): Likewise.
28458 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
28459 (afs_be_mod_SOURCES): New variable.
28460 (afs_be_mod_CFLAGS): Likewise.
28461 (afs_be_mod_LDFLAGS): Likewise.
28462 (befs_be_mod_SOURCES): Likewise.
28463 (befs_be_mod_CFLAGS): Likewise.
28464 (befs_be_mod_LDFLAGS): Likewise.
28465 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
28466 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28467 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28468 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
28469 (grub_emu_SOURCES): Likewise.
28470 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28471 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28472 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28473 * fs/afs_be.c: New file.
28474 * fs/befs_be.c: New file.
28475 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
28476 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
28477 (U16): Replaced with ...
28478 (grub_afs_to_cpu16): ...this. All users updated.
28479 (U32): Replaced with ...
28480 (grub_afs_to_cpu32): ...this. All users updated.
28481 (U64): Replaced with ...
28482 (grub_afs_to_cpu64): ...this. All users updated.
28483 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
28484 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
28485 (grub_afs_validate_sblock): Check only one endianness.
28486 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
28487 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
28488 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
28489 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
28490 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
28491 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
28492 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
28493 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
28495 2009-08-26 Bean <bean123ch@gmail.com>
28497 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
28499 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
28500 (grub_xfs_inode_block): Change return type to grub_uint64_t.
28501 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
28503 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28505 NetBSD memory map support.
28507 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
28508 (grub_netbsd_btinfo_mmap_header): New structure.
28509 (grub_netbsd_btinfo_mmap_entry): Likewise.
28510 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
28512 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28514 Enable bsd.mod on coreboot.
28516 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
28517 (bsd_mod_SOURCES): New variable.
28518 (bsd_mod_CFLAGS): Likewise.
28519 (bsd_mod_LDFLAGS): Likewise.
28520 (bsd_mod_ASFLAGS): Likewise.
28521 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
28522 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
28524 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28526 Cleanup NetBSD root support.
28528 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
28529 grub_bsd_get_device.
28532 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
28534 * util/grub.d/00_header.in: Move check for the video backend of
28535 gfxterm from here ...
28536 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
28537 a suitable video backend.
28539 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28541 Fix breakage in grub-setup.
28543 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
28544 "msdos_partition_map".
28546 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28548 Fix breakage in normal/auth.c.
28550 * normal/auth.c (grub_iswordseparator): New function.
28552 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28554 Authentication support.
28556 * commands/password.c: New file.
28557 * conf/common.rmk (pkglib_MODULES): Add password.mod.
28558 (password_mod_SOURCES): New variable.
28559 (password_mod_CFLAGS): Likewise.
28560 (password_mod_LDFLAGS): Likewise.
28561 (normal_mod_SOURCES): Add normal/auth.c.
28562 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
28564 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28565 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28566 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28567 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28568 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28569 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28570 * include/grub/auth.h: New file.
28571 * include/grub/err.h (grub_err_t): New enum value
28572 GRUB_ERR_ACCESS_DENIED.
28573 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
28575 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
28576 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
28578 * normal/auth.c: New file.
28579 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
28580 (grub_cmdline_run): Don't allow to go to command line without
28582 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
28583 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
28584 menuentry without superuser rights.
28585 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
28586 user isn't a superuser.
28588 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28590 Save space by inlining misc.c functions.
28592 * kern/misc.c (grub_iswordseparator): Made static.
28593 * kern/misc.c (grub_strcat): Moved from here ...
28594 * include/grub/misc.h (grub_strcat): ... here. Inlined.
28595 * kern/misc.c (grub_strncat): Moved from here ...
28596 * include/grub/misc.h (grub_strncat): ... here. Inlined.
28597 * kern/misc.c (grub_strcasecmp): Moved from here ...
28598 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
28599 * kern/misc.c (grub_strncasecmp): Moved from here ...
28600 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
28601 * kern/misc.c (grub_isalpha): Moved from here ...
28602 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
28603 * kern/misc.c (grub_isdigit): Moved from here ...
28604 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
28605 * kern/misc.c (grub_isgraph): Moved from here ...
28606 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
28607 * kern/misc.c (grub_tolower): Moved from here ...
28608 * include/grub/misc.h (grub_tolower): ... here. Inlined.
28610 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28612 * script/sh/function.c (grub_script_function_find): Cut error message
28613 not to flood terminal.
28614 * script/sh/lexer.c (grub_script_yylex): Remove command line length
28616 * script/sh/script.c (grub_script_arg_add): Duplicate string.
28618 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
28620 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
28621 `report' grub_uint8_t *.
28622 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
28623 Use a 50-millisecond timeout rather than just repeating
28624 grub_usb_keyboard_getreport 50 times.
28625 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
28627 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28629 Rename *_partition_map to part_*
28631 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
28632 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
28633 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
28634 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
28636 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
28638 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
28639 * util/grub-probe.c (probe_partmap): Don't transform partition name
28640 to get module name.
28642 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28644 Fix OpenBSD and NetBSD support.
28646 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
28647 memory address conflict.
28648 (OPENBSD_MMAP_ACPI): New definition.
28649 (OPENBSD_MMAP_NVS): Likewise.
28650 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
28651 and OPENBSD_MMAP_NVS.
28652 Add memory map terminator
28653 Explicit cast when calling grub_unix_real_boot.
28654 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
28656 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28658 Let user specify NetBSD root device.
28660 * loader/i386/bsd.c (netbsd_root): New variable.
28661 (netbsd_opts): New option 'root'.
28662 (NETBSD_ROOT_ARG): New macro.
28663 (grub_netbsd_boot): Use 'netbsd_root'.
28664 (grub_bsd_unload): Free 'netbsd_root'.
28665 (grub_cmd_netbsd): Fill 'netbsd_root'.
28667 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28669 Support for 64-bit NetBSD.
28671 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
28672 point when booting non-FreeBSD.
28674 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28676 Support --no-smp and --no-acpi for NetBSD.
28678 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
28679 (NETBSD_AB_NOACPI): Likewise.
28680 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
28681 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
28683 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28685 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
28687 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
28688 errors. Call grub_error when needed.
28690 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28692 * commands/search.c (search_fs): Try searching without autoload first.
28693 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
28694 filesystem module explicitly for faster booting.
28696 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
28698 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
28700 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
28702 * util/grub.d/30_os-prober.in: Disable os-prober if
28703 `GRUB_DISABLE_OS_PROBER' was set to true.
28705 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
28707 * partmap/pc.c: Rename to ...
28708 * partmap/msdos.c: ... this. Update all users.
28709 (grub_pc_partition_map): Rename to ...
28710 (grub_msdos_partition_map): ... this. Update all users.
28712 * parttool/pcpart.c: Rename to ...
28713 * parttool/msdospart.c: ... this. Update all users.
28715 * include/grub/pc_partition.h: Rename to ...
28716 * include/grub/msdos_partition.h: ... this. Update all users.
28717 (grub_pc_partition_bsd_entry): Rename to ...
28718 (grub_msdos_partition_bsd_entry): ... this. Update all users.
28719 (grub_pc_partition_disk_label): Rename to ...
28720 (grub_msdos_partition_disk_label): ... this. Update all users.
28721 (grub_pc_partition_entry): Rename to ...
28722 (grub_msdos_partition_entry): ... this. Update all users.
28723 (grub_pc_partition_mbr): Rename to ...
28724 (grub_msdos_partition_mbr): ... this. Update all users.
28725 (grub_pc_partition): Rename to ...
28726 (grub_msdos_partition): ... this. Update all users.
28727 (grub_pc_partition_is_empty): Rename to ...
28728 (grub_msdos_partition_is_empty): ... this. Update all users.
28729 (grub_pc_partition_is_extended): Rename to ...
28730 (grub_msdos_partition_is_extended): ... this. Update all users.
28731 (grub_pc_partition_is_bsd): Rename to ...
28732 (grub_msdos_partition_is_bsd): ... this. Update all users.
28734 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
28735 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
28736 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
28737 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
28738 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
28739 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
28740 (gpt_mod_LDFLAGS): Rename to ...
28741 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
28742 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
28743 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
28744 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
28745 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
28746 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
28747 (part_gpt_mod_LDFLAGS): ... this.
28748 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
28749 `pcpart.mod' to `msdospart.mod'.
28750 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
28752 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
28753 (msdospart_mod_LDFLAGS): ... this.
28755 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28757 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
28758 (openbsd_opts): Likewise.
28759 (netbsd_opts): Likewise.
28760 (freebsd_flags): Added 0 terminator.
28761 (openbsd_flags): Likewise.
28762 (netbsd_flags): Likewise.
28763 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
28764 (grub_cmd_freebsd): Transformed into extended command.
28765 (grub_cmd_openbsd): Likewise.
28766 (grub_cmd_netbsd): Likewise.
28767 (cmd_freebsd): Changed type to grub_extcmd_t.
28768 (cmd_openbsd): Likewise.
28769 (cmd_netbsd): Likewise.
28770 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
28771 grub_cmd_openbsd as extended commands.
28772 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
28773 cmd_netbsd and cmd_openbsd
28775 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
28777 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
28779 2009-08-21 Pavel Roskin <proski@gnu.org>
28781 * Makefile.in (install-local): When checking if a file is in the
28782 build directory, use "test -e" to detect symlinks.
28784 * Makefile.in (install-local): Remove all files in
28785 $(DESTDIR)$(pkglibdir) before installing new files there.
28787 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
28789 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
28792 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
28794 * util/grub-mkconfig.in: Don't use gfxterm by default if not
28795 explicitly specified by the user.
28797 2009-08-18 Pavel Roskin <proski@gnu.org>
28799 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
28800 grub_uint8_t pointer for data.
28801 * include/grub/fbutil.h (struct grub_video_fbblit_info):
28803 * video/fb/fbutil.c: Remove unnecessary casts.
28805 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
28809 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
28810 (grub_vbe_set_video_mode): Save active mode info
28811 only after setting the mode.
28812 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
28815 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
28817 Rename variables for clarity.
28819 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
28820 (active_vbe_mode_info): ... this. All users updated.
28821 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
28823 (initial_mode): Rename to ...
28824 (initial_vbe_mode): ... this. All users updated.
28825 (mode_in_use): Rename to ..
28826 (vbe_mode_in_use): ... this. All users updated.
28827 (mode_list): Rename to ..
28828 (vbe_mode_list): ... this. All users updated.
28829 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
28830 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
28831 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
28832 'mode_list_size' to 'vbe_mode_list_size'.
28833 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
28834 'best_mode_info' to 'best_vbe_mode_info' and
28835 'best_mode' to 'best_vbe_mode'
28837 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
28839 Remove duplicate grub_video_fb_get_video_ptr.
28841 * include/grub/fbutil.h (get_data_ptr): Rename to ...
28842 (grub_video_fb_get_video_ptr): ... this.
28843 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
28844 * video/fb/fbutil.c: Add comment about addressing.
28845 (get_data_ptr): Rename to ...
28846 (grub_video_fb_get_video_ptr): ... this. All users updated.
28847 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
28849 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
28851 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
28852 grub_dprintf() that was just added.
28854 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
28856 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
28857 (DEFAULT_VIDEO_MODE): Remove macros.
28858 (grub_linux_boot): Remove assumption that Linux has FB support,
28859 and use "text" as default video mode.
28861 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
28863 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
28865 * fs/fat.c (grub_fat_read_data): Likewise.
28867 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28869 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
28871 (grub_module): Likewise.
28873 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28875 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
28876 mbi->cmdline but free playground.
28878 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28880 Handle group offset on UFS1.
28882 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
28883 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
28885 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28887 Split ufs.mod into ufs1.mod and ufs2.mod.
28889 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
28890 (grub_fstest_SOURCES): Likewise.
28891 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
28892 (ufs_mod_SOURCES): Remove.
28893 (ufs_mod_CFLAGS): Likewise.
28894 (ufs_mod_LDFLAGS): Likewise.
28895 (ufs1_mod_SOURCES): New variable.
28896 (ufs1_mod_CFLAGS): Likewise.
28897 (ufs1_mod_LDFLAGS): Likewise.
28898 (ufs2_mod_SOURCES): New variable.
28899 (ufs2_mod_CFLAGS): Likewise.
28900 (ufs2_mod_LDFLAGS): Likewise.
28901 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
28902 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
28904 (grub_emu_SOURCES): Likewise.
28905 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28906 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28907 (grub_setup_SOURCES): Likewise.
28908 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28909 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
28910 (grub_setup_SOURCES): Likewise.
28911 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
28913 * fs/ufs2.c: New file.
28914 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
28916 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28920 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
28921 subsystem at the end.
28922 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
28923 (video_fb_mod_SOURCES): New variable.
28924 (video_fb_mod_CFLAGS): Likewise.
28925 (video_fb_mod_LDFLAGS): Likewise.
28926 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
28927 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
28928 * video/i386/pc/vbeblit.c: Moved from here ...
28929 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
28930 * video/i386/pc/vbefill.c: Moved from here ...
28931 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
28932 * video/i386/pc/vbeutil.c: Moved from here ...
28933 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
28934 * include/grub/i386/pc/vbeblit.h: Moved from here ...
28935 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
28936 * include/grub/i386/pc/vbefill.h: Moved from here ...
28937 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
28938 * include/grub/i386/pc/vbeutil.h: Moved from here ...
28939 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
28940 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
28941 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
28942 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
28943 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
28944 (grub_video_adapter): Added 'get_info_and_fini'.
28945 (grub_video_get_info_and_fini): New prototype.
28946 (grub_video_set_mode): make modestring const char *.
28947 * loader/i386/linux.c (grub_linux_setup_video): Use
28948 grub_video_get_info_and_fini.
28949 (grub_linux_boot): Move modesetting just before booting.
28950 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
28951 grub_video_get_info_and_fini.
28952 * video/i386/pc/vbe.c: Moved framebuffer part ...
28953 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
28954 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
28955 grub_video_fbstd_colors and grub_video_fb_set_palette.
28956 (grub_video_vbe_init): Clear 'framebuffer' variable and use
28957 grub_video_fb_init.
28958 (grub_video_vbe_fini): Use grub_video_fb_fini.
28959 (grub_video_vbe_setup): Use framebuffer.render_target instead of
28960 render_target and use grub_video_fb_set_active_render_target and
28961 grub_video_fb_set_palette.
28962 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
28963 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
28964 (grub_video_vbe_adapter): Use framebuffer.
28965 * video/video.c (grub_video_get_info_and_fini): New function.
28966 (grub_video_set_mode): Make modestring const char *.
28967 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
28968 values are already initialised.
28970 2009-08-14 Pavel Roskin <proski@gnu.org>
28972 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
28974 * boot/i386/pc/diskboot.S: Likewise.
28975 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
28976 sectors allow compilation on MacOSX.
28977 * conf/i386-pc.rmk: Enable unconditional compilation of
28980 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
28982 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
28983 * util/grub.d/00_header.in: Enter interruptible sleep if
28984 GRUB_HIDDEN_TIMEOUT is set.
28986 2009-08-13 Yves Blusseau <blusseau@zetam.org>
28988 * include/grub/symbol.h: Add the LOCAL macro.
28989 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
28990 starting with "L_".
28992 2009-08-13 Pavel Roskin <proski@gnu.org>
28994 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
28995 any modern compilers we support.
28997 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
28998 Use local labels starting with "L_" so that Apple assembler
28999 knows they are local.
29001 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
29003 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
29004 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
29005 (bsd_kernel_types): ... this enum.
29007 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
29008 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
29009 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
29011 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
29012 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
29013 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
29016 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
29018 * util/grub-dumpdevtree: Moved from here ...
29019 * util/i386/efi/grub-dumpdevtree: ... to here.
29020 (hexify): New function. Converts a string to its hex version.
29021 Generate hex versions of "efi" and "device-properties" by calling
29022 hexify() on the ASCII strings rather than by hardcoding numbers.
29024 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
29026 * fs/jfs.c: Update copyright year.
29028 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
29030 * util/grub.d/00_header.in: Fix a comment.
29031 * util/grub.d/10_linux.in: Likewise.
29032 * util/grub.d/10_windows.in: Likewise.
29033 * util/grub.d/10_hurd.in: Likewise.
29035 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
29037 * util/grub-mkconfig.in: Allow the user to specify the used font
29040 2009-08-08 Pavel Roskin <proski@gnu.org>
29042 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
29043 available, xfs.mod needs it now.
29045 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
29046 the "g" modifier in sed when the intention is to strip something
29047 once. This fixes comparison of kernels with multiple dashes.
29049 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
29050 on it. Add missing space before closing bracket. Fix
29051 misleading formatting.
29053 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29055 * docs/grub.texi: Major overhaul. Remove all sections that are
29056 specific to GRUB Legacy, or mostly composed of Legacy-specific
29059 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29061 * docs/version.texi: New file. Provides version information for
29064 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29066 * docs/grub.texi: Update CVS information to SVN.
29067 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
29069 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
29071 * util/grub-mkconfig.in: Remove a wrong `fi'.
29073 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
29075 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
29076 (grub_jfs_uuid): New function.
29077 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
29079 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
29081 * util/grub-mkconfig_lib.in (font_path): Move the functionality
29083 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
29084 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
29086 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29088 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
29089 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
29092 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
29093 not just "vmlinu[zx]".
29094 Moved from here ...
29095 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
29098 * util/grub.d/10_linux.in (find_latest): Moved from here ...
29099 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
29102 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29104 * util/grub.d/10_freebsd.in: Use an absolute device path for
29105 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
29107 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
29109 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
29110 handling of multiple abstraction modules.
29112 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
29114 Fix a bug resulting in black screen when loading Linux using a
29117 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
29120 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
29121 (grub_vbe_bios_getset_dac_palette_width): New function.
29122 (grub_vbe_bios_get_dac_palette_width)
29123 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
29124 grub_vbe_bios_getset_dac_palette_width()).
29126 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
29127 check for return status.
29128 (grub_vbe_get_video_mode_info): When getting information for a packed
29129 mode (<= 8 bpp), obtain DAC palette width using
29130 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
29131 {red,green,blue}_mark_size.
29133 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
29135 * commands/search.c (options): Fix help output to match actual code.
29137 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
29139 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
29142 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29144 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
29145 on XFS or ReiserFS.
29147 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29149 Support Apple partition map with sector size different from 512 bytes.
29151 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
29152 (apple_partition_map_iterate): Respect 'aheader.blocksize'
29153 and 'apart.partmap_size'.
29155 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29156 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
29160 * commands/i386/cpuid.c (options): New variable.
29161 (grub_cmd_cpuid): Return real error.
29162 (GRUB_MOD_INIT(cpuid)): Declare options.
29164 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
29166 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
29169 2009-07-31 Bean <bean123ch@gmail.com>
29171 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
29173 (grub_fshelp_node): Move inode field to the end.
29174 (grub_xfs_data): Remove inode field.
29175 (grub_xfs_inode_block): Calculate inode size using sblock.
29176 (grub_xfs_inode_offset): Likewise.
29177 (grub_xfs_read_inode): Calculate inode size using sblock.
29178 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
29179 (grub_xfs_iterate_dir): Calculate inode size using sblock.
29180 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
29181 to match inode size.
29182 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
29183 not accessible when data is null.
29184 (grub_xfs_open): Likewise.
29186 2009-07-31 Bean <bean123ch@gmail.com>
29188 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
29189 Don't change pv->disk if it's already set.
29191 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
29192 (grub_raid_register): ... here.
29193 (grub_raid_rescan): Removed.
29195 * include/grub/raid.h (grub_raid_rescan): Removed.
29197 * util/grub-fstest.c: Remove include file <grub/raid.h>.
29198 (fstest): Replace grub_raid_rescan with module fini function followed
29201 * util/grub-probe.c: Add include file <grub/raid.h>.
29202 (probe_raid_level): New function.
29203 (probe): Detect abstraction by walking the disk device, support two
29204 level of abstraction (LVM on RAID) when detecting partition map.
29206 2009-07-31 Pavel Roskin <proski@gnu.org>
29208 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
29209 to grub_zalloc(), it was erroneous.
29210 Reported by Bean <bean123ch@gmail.com>
29212 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
29214 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
29215 embedding zone, not only the first one.
29217 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
29219 * term/gfxterm.c (clear_char): New function.
29220 (grub_virtual_screen_setup): Use clear_char.
29221 (scroll_up): Likewise.
29222 (grub_virtual_screen_cls): Likewise.
29224 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
29226 * util/deviceiter.c (get_acceleraid_disk_name): New static
29228 (grub_util_iterate_devices): Handle Accelraid devices.
29229 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
29231 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
29233 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
29234 separator for the suggested gfxpayload string (';' collides with the
29235 parser and needs escaping).
29237 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
29239 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
29240 Clear direction flag before jumping to OS.
29241 (grub_multiboot2_real_boot): Likewise.
29243 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
29245 * util/i386/pc/grub-install: Fix parsing of --disk-module
29248 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
29250 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
29253 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
29255 * util/grub-mkconfig.in (package_version): New variable.
29256 Use it do display the version.
29258 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
29260 * kern/file.c (grub_file_open): Revert to previous check with
29263 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
29265 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
29266 from help line. It's out of sync with code.
29268 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
29270 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
29271 entries on failed boot.
29273 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
29275 * kern/file.c (grub_file_open): Fix an error check.
29277 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
29279 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
29280 partition map couldn't be identified.
29282 2009-07-23 Pavel Roskin <proski@gnu.org>
29284 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
29285 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
29286 case of little endian words becomes just an optimization.
29287 Respect const modifier.
29288 (md5_final): Use code that doesn't depend on endianness.
29290 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
29291 to avoid loss of upper bits if align is unsigned and shorter
29294 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
29296 UUID support for UFS
29298 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
29299 (grub_ufs_uuid): New function.
29300 (grub_ufs_fs): add .uuid
29302 2009-07-21 Pavel Roskin <proski@gnu.org>
29304 * kern/dl.c (grub_dl_check_header): Make static.
29306 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
29308 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
29309 add drivemap for Vista. It breaks Windows 7.
29311 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
29313 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
29316 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29320 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
29321 (grub_fstest_SOURCES): Likewise.
29322 (pkglib_MODULES): Add befs.mod.
29323 (befs_mod_SOURCES): New variable.
29324 (befs_mod_CFLAGS): Likewise.
29325 (befs_mod_LDFLAGS): Likewise.
29326 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
29327 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29328 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29329 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29330 (grub_setup_SOURCES): Likewise.
29331 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29332 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29333 (grub_setup_SOURCES): Likewise.
29334 * fs/befs.c: New file.
29335 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
29336 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
29337 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
29338 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
29339 (B_KEY_INDEX_ALIGN): New declaration.
29340 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
29341 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
29342 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
29343 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
29344 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
29345 (grub_afs_mount) [MODE_BFS]: Likewise.
29346 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
29347 (grub_afs_fs): Use GRUB_AFS_FSNAME
29348 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
29349 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
29350 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
29351 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
29353 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
29355 * util/getroot.c (find_root_device): Add support for MacOSX.
29356 * util/hostdisk.c: Likewise.
29358 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29360 * font/font.c (find_glyph): Check whether a font is present to avoid
29361 segmentation fault.
29363 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
29365 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
29367 2009-07-20 Pavel Roskin <proski@gnu.org>
29369 * configure.ac: Trim excessively wordy excuses.
29371 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29373 Add symlink, mtime and label support to AtheFS.
29375 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
29376 (grub_afs_iterate_dir): Handle symlinks.
29377 (grub_afs_open): Use grub_afs_read_symlink.
29378 (grub_afs_dir): Likewise.
29380 (grub_afs_label): New function.
29381 (grub_afs_fs): Add grub_afs_label.
29382 (grub_afs_read_symlink): New function.
29384 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29386 Fix AtheFS support.
29388 * fs/afs.c: Fix comments style.
29389 (grub_afs_blockrun): Declare as packed.
29390 (grub_afs_datastream): Likewise.
29391 (grub_afs_bnode): Likewise.
29392 (grub_afs_btree): Likewise.
29393 (grub_afs_sblock): Likewise.
29394 Declare `name' as char.
29395 (grub_afs_inode): Declare as packed.
29396 Change void *vnode to grub_uint32_t unused.
29397 (grub_afs_iterate_dir): Check that key_size is positive.
29398 (grub_afs_mount): Don't read superblock twice.
29399 (grub_afs_dir): Don't free node in case of error,
29400 grub_fshelp_find_file already handles this.
29401 (grub_afs_open): Likewise.
29403 2009-07-19 Pavel Roskin <proski@gnu.org>
29405 * Makefile.in: Remove LIBLZO and enable_lzo.
29406 * conf/i386-pc.rmk: Remove lzo support.
29407 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
29408 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
29410 * kern/i386/pc/lzo1x.S: Remove.
29411 * kern/i386/pc/startup.S: Remove lzo support.
29412 * util/i386/pc/grub-mkimage.c: Likewise.
29414 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
29416 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
29417 * fs/xfs.c (grub_xfs_dir): Likewise.
29418 * fs/afs.c (grub_afs_dir): Likewise.
29419 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
29420 (grub_iso9660_open): Likewise.
29421 * fs/jfs.c (grub_jfs_open): Likewise.
29422 * fs/ext2.c (grub_ext2_dir): Likewise.
29423 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
29424 * script/sh/lexer.c (grub_script_yylex): Likewise.
29426 2009-07-16 Pavel Roskin <proski@gnu.org>
29428 * configure.ac: Never add "-c" to CFLAGS.
29430 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
29432 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
29433 grub_cv_cc_efiemu should be used.
29435 * configure.ac: Typo fixes.
29437 * kern/mm.c (grub_zalloc): New function.
29438 (grub_debug_zalloc): Likewise.
29439 * include/grub/mm.h: Declare grub_zalloc() and
29440 grub_debug_zalloc().
29441 * util/misc.c (grub_zalloc): New function.
29442 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
29443 instead of grub_malloc(), remove unneeded initializations.
29444 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
29445 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
29446 * commands/parttool.c (grub_cmd_parttool): Likewise.
29447 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
29448 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
29449 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
29450 * disk/usbms.c (grub_usbms_finddevs): Likewise.
29451 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
29452 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
29453 (grub_cmd_efiemu_pnvram): Likewise.
29454 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
29455 * fs/iso9660.c (grub_iso9660_mount): Likewise.
29456 (grub_iso9660_iterate_dir): Likewise.
29457 * fs/jfs.c (grub_jfs_opendir): Likewise.
29458 * fs/ntfs.c (list_file): Likewise.
29459 (grub_ntfs_mount): Likewise.
29460 * kern/disk.c (grub_disk_open): Likewise.
29461 * kern/dl.c (grub_dl_load_core): Likewise.
29462 * kern/elf.c (grub_elf_file): Likewise.
29463 * kern/env.c (grub_env_context_open): Likewise.
29464 (grub_env_set): Likewise.
29465 (grub_env_set_data_slot): Likewise.
29466 * kern/file.c (grub_file_open): Likewise.
29467 * kern/fs.c (grub_fs_blocklist_open): Likewise.
29468 * loader/i386/multiboot.c (grub_module): Likewise.
29469 * loader/xnu.c (grub_xnu_create_key): Likewise.
29470 (grub_xnu_create_value): Likewise.
29471 * normal/main.c (grub_normal_add_menu_entry): Likewise.
29472 (read_config_file): Likewise.
29473 * normal/menu_entry.c (make_screen): Likewise.
29474 * partmap/sun.c (sun_partition_map_iterate): Likewise.
29475 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
29476 * script/sh/script.c (grub_script_parse): Likewise.
29477 * video/bitmap.c (grub_video_bitmap_create): Likewise.
29478 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
29479 * video/readers/png.c (grub_png_output_byte): Likewise.
29480 (grub_video_reader_png): Likewise.
29482 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29484 Enable all targets that can be built by default
29486 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
29487 grub-mkfont and grub-fstest if they can be built
29489 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29491 Fix hang and segmentation fault in grub-emu-usb
29493 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
29494 * util/usb.c (grub_libusb_devices): likewise
29495 (grub_libusb_init): rename to ...
29496 (GRUB_MOD_INIT (libusb)):...this
29497 (grub_libusb_fini): rename to ..
29498 (GRUB_MOD_FINI (libusb)):...this
29499 * disk/usbms.c (grub_usbms_transfer): fix retry logic
29500 * include/grub/disk.h (grub_raid_init): removed, it's useless
29501 (grub_raid_fini): likewise
29502 (grub_lvm_init): likewise
29503 (grub_lvm_fini): likewise
29504 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
29507 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29511 * Makefile.in (LIBUSB): new macro
29512 * genmk.rb (Utility/print_tail): new method
29513 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
29514 (top level): call util.print_tail at the end.
29516 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29518 Make FreeBSD accept zpool.cache
29520 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
29521 type is /boot/zfs/zpool.cache
29523 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29527 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
29528 correct wrong typedef
29529 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
29531 2009-07-15 Pavel Roskin <proski@gnu.org>
29533 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
29534 * kern/disk.c (struct grub_disk_cache): Likewise.
29536 * commands/probe.c (options): Typo fix.
29538 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
29539 Increase to 0x5a to accommodate FAT32. Adjust other offsets
29541 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
29543 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
29544 the end of "Error" to make the message more readable.
29546 * boot/i386/pc/boot.S (kernel_segment): Remove.
29547 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
29550 * boot/i386/pc/boot.S (boot_version): Remove.
29551 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
29554 * include/grub/i386/pc/boot.h: Sort all offsets.
29555 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
29556 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
29557 * boot/i386/pc/boot.S: Assert location of every offset listed in
29558 include/grub/i386/pc/boot.h.
29560 2009-07-13 Pavel Roskin <proski@gnu.org>
29562 * include/grub/i386/coreboot/machine.h: Rename
29563 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
29564 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
29565 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
29567 * kern/dl.c: Force native word size to suppress warnings when
29568 compiling grub-emu.
29570 * kern/device.c (grub_device_iterate): Change struct part_ent to
29571 hold the name, not a pointer to it. Use one grub_malloc() per
29572 partition, not two. Free partition_name if grub_malloc() fails.
29573 Set ents to NULL only before grub_partition_iterate() is called.
29575 2009-07-11 Bean <bean123ch@gmail.com>
29577 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
29580 2009-07-10 Bean <bean123ch@gmail.com>
29581 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
29583 * kern/ieee1275/openfw.c (grub_children_iterate)
29584 (grub_devalias_iterate): Fix size evaluation for property or path
29585 strings, which was broken since r2132.
29587 2009-07-07 Pavel Roskin <proski@gnu.org>
29589 * commands/search.c (search_file): Merge into ...
29590 (search_fs): ... this. Accept search type as argument.
29591 (grub_cmd_search): Pass search type to search_fs().
29593 * include/grub/util/console.h: New file.
29594 * util/console.c: Use it instead of grub/machine/console.h.
29595 * util/grub-emu.c: Likewise.
29597 * lib/arg.c (find_long_option): Remove.
29598 (find_long): Add `len' argument, make `s' const char *.
29599 (grub_arg_parse): Parse long options in place, not in a
29602 2009-07-06 Pavel Roskin <proski@gnu.org>
29604 * commands/search.c (search_fs): Fix potential NULL pointer
29607 * commands/search.c (search_fs): Replace QUID macro with quid_fn
29610 2009-07-06 Daniel Mierswa <impulze@impulze.org>
29612 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
29615 2009-07-05 Pavel Roskin <proski@gnu.org>
29617 * include/grub/i386/linux.h (struct linux_kernel_params):
29618 Restore padding3, it's still needed.
29620 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
29622 * util/osdetect.lua: Likewise.
29624 2009-07-05 Bean <bean123ch@gmail.com>
29626 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
29628 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
29629 (grub_lua_getenv): Likewise.
29630 (grub_lua_setenv): Likewise.
29631 (save_errno): New function.
29632 (push_result): Likewise.
29633 (grub_lua_enum_device): Likewise.
29634 (grub_lua_enum_file): Likewise.
29635 (grub_lua_file_open): Likewise.
29636 (grub_lua_file_close): Likewise.
29637 (grub_lua_file_seek): Likewise.
29638 (grub_lua_file_read): Likewise.
29639 (grub_lua_file_getline): Likewise.
29640 (grub_lua_file_getsize): Likewise.
29641 (grub_lua_file_getpos): Likewise.
29642 (grub_lua_file_eof): Likewise.
29643 (grub_lua_file_exist): Likewise.
29644 (grub_lua_add_menu): Likewise.
29646 * script/lua/grub_lua.h (isupper): New inline function.
29647 (islower): Likewise.
29648 (ispunct): Likewise.
29649 (isxdigit): Likewise.
29650 (strcspn): Change to normal function.
29651 (strpbkr): New function declaration.
29652 (memchr): Likewise.
29654 * script/lua/grub_main.c (scan_str): New function.
29655 (strcspn): Likewise.
29656 (strpbrk): Likewise.
29657 (memchr): Likewise.
29659 * script/lua/linit.c (lualibs): Enable the string library.
29661 * util/osdetect.lua: New file.
29663 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
29665 * include/grub/i386/linux.h (struct linux_kernel_params): Add
29666 `capabilities' member.
29668 2009-07-02 Pavel Roskin <proski@gnu.org>
29670 * genparttoollist.sh: Add missing newline at the end.
29672 2009-07-01 Pavel Roskin <proski@gnu.org>
29674 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
29676 * util/hostdisk.c (open_device): Remove `const' from
29677 `sysctl_size', as sysctlbyname() can change it (in this case it
29678 doesn't actually happen).
29680 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
29681 using signed long int constants.
29683 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
29684 constant to avoid a warning on FreeBSD.
29686 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
29689 * Makefile.in: Install include/grub/machine symlink.
29691 * Makefile.in: When installing symlinks, use "cp -fR", which
29692 works on FreeBSD and MacOSX.
29693 From Yves Blusseau <cl7m42e02@sneakemail.com>
29695 * kern/dl.c (grub_dl_resolve_symbol): Make static.
29696 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
29698 * util/misc.c: Move grub_reboot() and grub_halt() ...
29699 * util/grub-emu.c: ... here. Make main_env static.
29700 * include/grub/util/misc.h: Remove main_env.
29702 * kern/mm.c: Use correct format to print size_t.
29704 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
29705 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
29706 * kern/powerpc/dl.c: Likewise.
29707 * kern/sparc64/dl.c: Likewise.
29708 * kern/x86_64/dl.c: Likewise.
29710 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29712 Fix grub-emu build on sparc64-ieee1275.
29714 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
29715 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
29717 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29719 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
29720 (grub_reboot, grub_halt): New functions.
29722 * util/i386/pc/misc.c: Delete. Update all users.
29723 * util/sparc64/ieee1275/misc.c: Likewise.
29724 * util/powerpc/ieee1275/misc.c: Likewise.
29726 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29728 * conf/i386.rmk (setjmp_mod_SOURCES)
29729 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
29730 * conf/common.rmk (setjmp_mod_SOURCES)
29731 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
29732 to use $(target_cpu).
29733 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
29734 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
29735 * conf/powerpc-ieee1275.rmk: Likewise.
29736 * conf/sparc64-ieee1275.rmk: Likewise.
29738 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
29739 $(target_cpu) for kern/$(target_cpu)/dl.c.
29740 * conf/i386-efi.rmk: Likewise.
29741 * conf/i386-ieee1275.rmk: Likewise.
29742 * conf/x86_64-efi.rmk: Likewise.
29743 * conf/i386-coreboot.rmk: Likewise.
29744 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
29745 $(target_cpu) for kern/$(target_cpu)/dl.c and for
29746 kern/$(target_cpu)/cache.S.
29747 * conf/sparc64-ieee1275.rmk: Likewise.
29749 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29751 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
29752 type to `grub_uint8_t', and adjust `padding9' accordingly.
29754 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29756 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
29758 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
29759 assembly in final jump, using register constraints.
29761 (grub_linux_boot): For text mode, initialize `have_vga' using
29762 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
29764 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
29765 right before the final jump.
29767 Set `video_mode' to 0x3.
29769 Document initialization of `video_page', `video_mode' and
29772 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29774 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
29775 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
29776 and set GRUB_LINUX_FLAG_QUIET appropriately.
29778 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29780 Fix build on Debian / sparc.
29782 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
29784 2009-06-28 Pavel Roskin <proski@gnu.org>
29786 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
29789 * util/grub.d/10_linux.in: Match SUSE style initrd names.
29791 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
29793 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
29796 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
29800 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
29801 file can't be opened. grub_file_open() is already supposed to set
29802 grub_errno / grub_errmsg appropriately.
29803 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
29805 2009-06-27 Pavel Roskin <proski@gnu.org>
29806 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
29808 * include/grub/dl.h: Include grub/elf.h.
29809 (struct grub_dl): Add symtab field.
29810 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
29811 GRUB_MODULES_MACHINE_READONLY.
29812 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
29813 of the header for read-only modules.
29814 (grub_dl_unload): Free mod->symtab for read-only modules.
29815 * kern/i386/dl.c: Use mod->symtab.
29816 * kern/powerpc/dl.c: Likewise.
29817 * kern/sparc64/dl.c: Likewise.
29818 * kern/x86_64/dl.c: Likewise.
29820 * conf/i386-qemu.rmk: New file.
29821 * kern/i386/qemu/startup.S: Likewise.
29822 * kern/i386/qemu/mmap.c: Likewise.
29823 * boot/i386/qemu/boot.S: Likewise.
29824 * include/grub/i386/qemu/time.h: Likewise.
29825 * include/grub/i386/qemu/serial.h: Likewise.
29826 * include/grub/i386/qemu/kernel.h: Likewise.
29827 * include/grub/i386/qemu/console.h: Likewise.
29828 * include/grub/i386/qemu/boot.h: Likewise.
29829 * include/grub/i386/qemu/init.h: Likewise.
29830 * include/grub/i386/qemu/machine.h: Likewise.
29831 * include/grub/i386/qemu/loader.h: Likewise.
29832 * include/grub/i386/qemu/memory.h: Likewise.
29834 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
29835 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
29836 [qemu] (pkglib_IMAGES): Add `boot.img'.
29837 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
29838 [qemu] (boot_img_FORMAT): New variables.
29839 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
29840 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
29841 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
29842 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
29843 [qemu] (kernel_img_FORMAT): New variables.
29845 * configure.ac: Recognise `i386-qemu'.
29847 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
29848 (for no compression).
29849 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
29850 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
29851 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
29852 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
29855 2009-06-27 Pavel Roskin <proski@gnu.org>
29857 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
29859 * efiemu/prepare32.c: Likewise.
29860 * efiemu/prepare64.c: Likewise.
29862 2009-06-26 Pavel Roskin <proski@gnu.org>
29864 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
29865 * include/grub/elf.h: Define symbols without "32" or "64" based
29866 on GRUB_TARGET_WORDSIZE.
29867 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
29868 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
29870 * efiemu/loadcore64.c: Likewise.
29871 * loader/i386/bsd32.c: Likewise.
29872 * loader/i386/bsd64.c: Likewise.
29873 * kern/dl.c: Remove own ELF definitions.
29874 * util/i386/efi/grub-mkimage.c: Likewise.
29876 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
29878 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
29879 segment 0x0 unconditionally, because the reference generated by
29880 GAS is an absolute address.
29882 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29884 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
29885 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
29887 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29889 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
29890 indexes. Check for -f explicitly.
29891 (search_file): Improve error message.
29892 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
29894 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29896 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
29897 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
29899 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29901 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
29902 * conf/i386-ieee1275.rmk: Likewise.
29903 * conf/i386-coreboot.rmk: Likewise.
29905 * kern/i386/pc/startup.S (grub_stop): Remove function.
29906 * kern/i386/ieee1275/startup.S: Likewise.
29907 * kern/i386/coreboot/startup.S: Likewise.
29908 * kern/i386/misc.S (grub_stop): New function.
29910 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29912 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
29913 * kern/i386/realmode.S (real_to_prot): ... to here.
29915 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29917 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
29919 (kernel_elf_SOURCES): Rename to ...
29920 (kernel_img_SOURCES): ... this.
29921 (kernel_elf_HEADERS): Rename to ...
29922 (kernel_img_HEADERS): ... this. Update all users.
29923 (kernel_elf_ASFLAGS): Rename to ...
29924 (kernel_img_ASFLAGS): ... this.
29925 (kernel_elf_CFLAGS): Rename to ...
29926 (kernel_img_CFLAGS): ... this.
29927 (kernel_elf_LDFLAGS): Rename to ...
29928 (kernel_img_LDFLAGS): ... this.
29929 * conf/i386-coreboot.rmk: Likewise.
29930 * conf/powerpc-ieee1275.rmk: Likewise.
29932 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
29935 2009-06-21 Pavel Roskin <proski@gnu.org>
29937 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
29938 to match nested functions.
29939 * loader/sparc64/ieee1275/linux.c: Likewise.
29941 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
29943 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
29945 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
29946 all i386 platforms.
29948 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
29950 Fix asm file handling on ELF, and remove workarounds.
29952 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
29953 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
29954 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
29955 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
29957 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
29959 Load BSD ELF modules
29961 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
29962 and loader/i386/bsd64.c
29963 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
29964 (FREEBSD_MODTYPE_ELF_MODULE): New definition
29965 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
29966 (grub_freebsd_load_elfmodule32): New declaration
29967 (grub_freebsd_load_elfmoduleobj64): Likewise
29968 (grub_freebsd_load_elf_meta32): Likewise
29969 (grub_freebsd_load_elf_meta64): Likewise
29970 (grub_freebsd_add_meta): Likewise
29971 (grub_freebsd_add_meta_module): Likewise
29972 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
29973 (grub_freebsd_add_meta_module): Likewise and move module-specific
29974 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
29975 (grub_cmd_freebsd): Add elf-kernel specific parts
29976 based on grub_freebsd_add_meta_module
29977 (grub_cmd_freebsd_module): Add type parsing moved from
29978 grub_freebsd_add_meta_module
29979 (grub_cmd_freebsd_module_elf): New function
29980 (cmd_freebsd_module_elf): New variable
29981 (GRUB_MOD_INIT): Register freebsd_module_elf
29982 * loader/i386/bsd32.c: New file
29983 * loader/i386/bsd64.c: Likewise
29984 * loader/i386/bsdXX.c: Likewise
29985 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
29986 (grub_elf64_load): Likewise
29987 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
29989 (grub_elf64_load_hook_t): Likewise
29991 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
29993 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
29995 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
29996 don't write a menu entry for recovery mode.
29998 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
30000 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
30001 after it's no longer needed.
30003 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
30005 * include/grub/i386/loader.h (grub_linux_prot_size)
30006 (grub_linux_tmp_addr, grub_linux_real_addr)
30007 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
30008 GRUB_MACHINE_PCBIOS.
30009 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
30010 common grub_util_info() call to ...
30011 (generate_image): ... here.
30012 Fix use of uninitialized memory, comparison of signed with
30013 unsigned integers and memory leak.
30014 Remove bogus module address message.
30016 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
30018 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
30020 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
30022 2009-06-19 Pavel Roskin <proski@gnu.org>
30024 * configure.ac: Remove stray AC_MSG_CHECKING.
30026 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
30028 * disk/scsi.c (grub_scsi_open): use continue instead of big if
30030 2009-06-18 Pavel Roskin <proski@gnu.org>
30032 * conf/common.rmk: Add fs_file.mod.
30033 * disk/fs_file.c: New file.
30034 * include/grub/disk.h (enum grub_disk_dev_id): Add
30035 GRUB_DISK_DEVICE_FILE_ID.
30037 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30039 Fix build with Apple's toolchain. Part 2
30041 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
30044 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30046 Fix build with Apple's toolchain. Part 1
30048 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
30050 * configure.ac: remove a leftover AC_MSG_RESULT
30051 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
30054 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30058 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
30059 (decomp_block): initialize ch
30060 use grub_memcpy instead of memcpy
30062 2009-06-17 Pavel Roskin <proski@gnu.org>
30064 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
30065 version, use declarations needed to use vga_text as the startup
30068 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
30069 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
30071 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
30072 and grub_at_keyboard_fini(), it's done on module load and
30075 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
30077 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
30078 file can't be found.
30079 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
30081 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
30083 Fix newline handling
30085 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
30086 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
30087 (grub_script_yylex): don't segfault on unterminated script
30088 newline terminates command and variable
30090 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
30092 avoid double grub_adjust_range call. Bug reported by David Simner
30094 * kern/disk.c (grub_disk_write): change to raw disk access before
30097 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
30099 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
30100 spaces, for the benefit of help2man.
30101 * util/i386/efi/grub-mkimage.c (usage): Likewise.
30103 2009-06-16 Pavel Roskin <proski@gnu.org>
30105 * kern/i386/halt.c: Include grub/machine/init.h.
30106 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
30108 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
30110 * util/grub.d/30_os-prober.in: Use ${root} in the generated
30111 drivemap menuentry.
30113 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
30115 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
30118 2009-06-16 Pavel Roskin <proski@gnu.org>
30120 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
30121 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
30122 save %dx, we only need %dl and we never change it.
30123 * boot/i386/pc/cdboot.S: Don't set the root drive.
30124 * boot/i386/pc/pxeboot.S: Likewise.
30125 * include/grub/i386/pc/boot.h: Remove
30126 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
30127 GRUB_BOOT_MACHINE_DRIVE_CHECK.
30128 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
30129 * kern/i386/pc/init.c (make_install_device): Remove references
30130 to grub_root_drive.
30131 * kern/i386/pc/startup.S: Likewise.
30132 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
30134 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
30138 * commands/xnu_uuid.c: new file
30139 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
30140 (xnu_uuid_mod_SOURCES): new variable
30141 (xnu_uuid_mod_CFLAGS): likewise
30142 (xnu_uuid_mod_LDFLAGS): likewise
30143 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
30144 * conf/i386-ieee1275.rmk: likewise
30145 * conf/i386-pc.rmk: likewise
30146 * conf/powerpc-ieee1275.rmk: likewise
30147 * conf/sparc64-ieee1275.rmk: likewise
30148 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
30150 2009-06-16 Pavel Roskin <proski@gnu.org>
30152 * configure.ac: Avoid '==' in test command, it's not portable.
30154 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
30158 * commands/probe.c: new file
30159 * conf/common.rmk (pkglib_MODULES): add probe.mod
30160 (probe_mod_SOURCES): new variable
30161 (probe_mod_CFLAGS): likewise
30162 (probe_mod_LDFLAGS): likewise
30163 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
30164 * conf/i386-ieee1275.rmk: likewise
30165 * conf/i386-pc.rmk: likewise
30166 * conf/powerpc-ieee1275.rmk: likewise
30167 * conf/sparc64-ieee1275.rmk: likewise
30169 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
30171 Fix handling of string like \"hello\" and "a
30174 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
30175 (grub_script_yylex): fix parsing of quoting, escaping and newline
30177 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
30179 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
30182 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
30184 * util/grub-mkconfig.in: Fix parsing of --output option.
30186 2009-06-12 Pavel Roskin <proski@gnu.org>
30188 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
30189 genmk.rb don't need to be generated or installed.
30191 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
30193 * commands/i386/pc/drivemap_int13h.S: add more comments
30195 2009-06-11 Pavel Roskin <proski@gnu.org>
30197 * Makefile.in (uninstall): Uninstall manuals.
30199 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
30200 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
30201 and update-grub_lib in two places.
30202 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
30204 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
30205 a compiler warning.
30207 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
30208 `entry_lo' to fix variable shadowing.
30210 2009-06-11 Christian Franke <franke@computer.org>
30212 * kern/misc.c (__enable_execute_stack): Add missing return type
30213 to prevent gcc warning.
30215 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
30217 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
30219 2009-06-11 Pavel Roskin <proski@gnu.org>
30221 * Makefile.in: Don't rely on any scripts being executable.
30222 Always use $(SHELL) to run shell scripts.
30224 * configure.ac: Always define ___main if using -nostdlib. This
30225 fixes tests on Cygwin.
30227 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
30231 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
30232 is in bytes and not in blocks
30234 2009-06-11 Pavel Roskin <proski@gnu.org>
30236 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
30239 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
30241 * util/grub.d/30_os-prober.in: Fix a comment. Source
30242 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
30243 to set the root device. Place drivemap command in the generated
30246 2009-06-11 Pavel Roskin <proski@gnu.org>
30248 * configure.ac: Remove host_m32. Issues with 64-bit utilities
30249 have long been resolved.
30251 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
30253 * util/grub.d/10_linux.in: Capitalise "Linux".
30255 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
30257 2009-06-11 Pavel Roskin <proski@gnu.org>
30259 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
30260 fix a gcc warning and ensure that the function won't ever exit.
30262 * kern/i386/ieee1275/init.c: Add missing prototype for
30263 grub_stop_floppy().
30265 * loader/ieee1275/multiboot2.c [__i386__]: Include
30266 grub/cpu/multiboot.h.
30268 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
30269 casts to short - they are not portable and cause warnings. Fix
30270 use of uninitialized values in input_buf. Use ARRAY_SIZE.
30272 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
30276 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
30278 (grub_get_root_biosnumber_saved): new variable
30279 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
30280 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
30281 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
30282 %dx after the call if necessary
30283 * conf/common.rmk (pkglib_MODULES): remove boot.mod
30284 (boot_mod_SOURCES): remove
30285 (boot_mod_CFLAGS): remove
30286 (boot_mod_LDFLAGS): remove
30287 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
30288 (boot_mod_SOURCES): new variable
30289 (boot_mod_CFLAGS): likewise
30290 (boot_mod_LDFLAGS): likewise
30291 * conf/i386-efi.rmk: likewise
30292 * conf/i386-ieee1275.rmk: likewise
30293 * conf/i386-pc.rmk: likewise
30294 * conf/powerpc-ieee1275.rmk: likewise
30295 * conf/sparc64-ieee1275.rmk: likewise
30296 * conf/x86_64-efi.rmk: likewise
30297 * include/grub/i386/pc/biosnum.h: new file
30298 * lib/i386/pc/biosnum.c: likewise
30299 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
30300 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
30301 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
30303 2009-06-10 Pavel Roskin <proski@gnu.org>
30305 * io/gzio.c (test_header): Don't reuse one buffer for all data.
30306 Use separate variables. Read only the file size at the end, but
30307 not the checksum that we don't use.
30309 * kern/file.c (grub_file_read): Use void pointer for the buffer.
30310 Adjust all callers.
30312 * kern/ieee1275/openfw.c: Remove libc includes.
30313 * kern/ieee1275/cmain.c: Likewise.
30314 * include/grub/ieee1275/ieee1275.h: Likewise.
30316 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
30319 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
30321 * Makefile.in: Remove all trailing whitespace.
30322 * conf/i386-pc.rmk: Likewise.
30323 * conf/powerpc-ieee1275.rmk: Likewise.
30324 * conf/sparc64-ieee1275.rmk: Likewise.
30325 * docs/grub.texi: Likewise.
30326 * docs/texinfo.tex: Likewise.
30327 * disk/fs_uuid.c: Likewise.
30328 * disk/lvm.c: Likewise.
30329 * disk/scsi.c: Likewise.
30330 * disk/ata.c: Likewise.
30331 * disk/ieee1275/ofdisk.c: Likewise.
30332 * disk/i386/pc/biosdisk.c: Likewise.
30333 * disk/host.c: Likewise.
30334 * disk/raid.c: Likewise.
30335 * disk/efi/efidisk.c: Likewise.
30336 * disk/usbms.c: Likewise.
30337 * disk/memdisk.c: Likewise.
30338 * disk/loopback.c: Likewise.
30339 * kern/powerpc/dl.c: Likewise.
30340 * kern/device.c: Likewise.
30341 * kern/dl.c: Likewise.
30342 * kern/sparc64/dl.c: Likewise.
30343 * kern/ieee1275/ieee1275.c: Likewise.
30344 * kern/term.c: Likewise.
30345 * kern/fs.c: Likewise.
30346 * kern/i386/dl.c: Likewise.
30347 * kern/i386/pc/startup.S: Likewise.
30348 * kern/i386/pc/init.c: Likewise.
30349 * kern/i386/pc/mmap.c: Likewise.
30350 * kern/i386/pc/lzo1x.S: Likewise.
30351 * kern/i386/ieee1275/init.c: Likewise.
30352 * kern/i386/realmode.S: Likewise.
30353 * kern/i386/tsc.c: Likewise.
30354 * kern/partition.c: Likewise.
30355 * kern/corecmd.c: Likewise.
30356 * kern/file.c: Likewise.
30357 * kern/efi/efi.c: Likewise.
30358 * kern/efi/init.c: Likewise.
30359 * kern/efi/mm.c: Likewise.
30360 * kern/main.c: Likewise.
30361 * kern/err.c: Likewise.
30362 * kern/env.c: Likewise.
30363 * kern/disk.c: Likewise.
30364 * kern/generic/millisleep.c: Likewise.
30365 * kern/generic/rtc_get_time_ms.c: Likewise.
30366 * kern/misc.c: Likewise.
30367 * kern/parser.c: Likewise.
30368 * genmk.rb: Likewise.
30369 * configure.ac: Likewise.
30370 * boot/i386/pc/diskboot.S: Likewise.
30371 * boot/i386/pc/pxeboot.S: Likewise.
30372 * boot/i386/pc/boot.S: Likewise.
30373 * boot/i386/pc/lnxboot.S: Likewise.
30374 * boot/i386/pc/cdboot.S: Likewise.
30375 * parttool/pcpart.c: Likewise.
30376 * video/readers/tga.c: Likewise.
30377 * video/video.c: Likewise.
30378 * video/bitmap.c: Likewise.
30379 * lib/envblk.c: Likewise.
30380 * lib/i386/setjmp.S: Likewise.
30381 * fs/xfs.c: Likewise.
30382 * fs/afs.c: Likewise.
30383 * fs/fat.c: Likewise.
30384 * fs/ntfs.c: Likewise.
30385 * fs/udf.c: Likewise.
30386 * fs/affs.c: Likewise.
30387 * fs/iso9660.c: Likewise.
30388 * fs/hfs.c: Likewise.
30389 * fs/fshelp.c: Likewise.
30390 * fs/ext2.c: Likewise.
30391 * fs/jfs.c: Likewise.
30392 * fs/reiserfs.c: Likewise.
30393 * fs/hfsplus.c: Likewise.
30394 * fs/minix.c: Likewise.
30395 * fs/cpio.c: Likewise.
30396 * fs/sfs.c: Likewise.
30397 * fs/ufs.c: Likewise.
30398 * efiemu/prepare.c: Likewise.
30399 * efiemu/loadcore_common.c: Likewise.
30400 * efiemu/runtime/efiemu.sh: Likewise.
30401 * efiemu/runtime/efiemu.S: Likewise.
30402 * efiemu/runtime/efiemu.c: Likewise.
30403 * efiemu/pnvram.c: Likewise.
30404 * efiemu/main.c: Likewise.
30405 * efiemu/i386/pc/cfgtables.c: Likewise.
30406 * efiemu/i386/loadcore64.c: Likewise.
30407 * efiemu/i386/loadcore32.c: Likewise.
30408 * efiemu/loadcore.c: Likewise.
30409 * efiemu/symbols.c: Likewise.
30410 * efiemu/mm.c: Likewise.
30411 * include/grub/autoefi.h: Likewise.
30412 * include/grub/datetime.h: Likewise.
30413 * include/grub/term.h: Likewise.
30414 * include/grub/hfs.h: Likewise.
30415 * include/grub/lvm.h: Likewise.
30416 * include/grub/i386/tsc.h: Likewise.
30417 * include/grub/i386/linux.h: Likewise.
30418 * include/grub/i386/xnu.h: Likewise.
30419 * include/grub/i386/efiemu.h: Likewise.
30420 * include/grub/i386/pc/biosdisk.h: Likewise.
30421 * include/grub/i386/pc/memory.h: Likewise.
30422 * include/grub/i386/pc/vbe.h: Likewise.
30423 * include/grub/parttool.h: Likewise.
30424 * include/grub/video.h: Likewise.
30425 * include/grub/memory.h: Likewise.
30426 * include/grub/fs.h: Likewise.
30427 * include/grub/partition.h: Likewise.
30428 * include/grub/xnu.h: Likewise.
30429 * include/grub/efi/api.h: Likewise.
30430 * include/grub/efi/pe32.h: Likewise.
30431 * include/grub/efi/memory.h: Likewise.
30432 * include/grub/multiboot.h: Likewise.
30433 * include/grub/usbdesc.h: Likewise.
30434 * include/grub/multiboot2.h: Likewise.
30435 * include/grub/acpi.h: Likewise.
30436 * include/grub/efiemu/efiemu.h: Likewise.
30437 * include/grub/disk.h: Likewise.
30438 * include/grub/ieee1275/ieee1275.h: Likewise.
30439 * include/grub/net.h: Likewise.
30440 * include/grub/machoload.h: Likewise.
30441 * include/grub/macho.h: Likewise.
30442 * include/multiboot.h: Likewise.
30443 * genmoddep.awk: Likewise.
30444 * normal/main.c: Likewise.
30445 * normal/menu_entry.c: Likewise.
30446 * normal/menu_viewer.c: Likewise.
30447 * normal/completion.c: Likewise.
30448 * normal/cmdline.c: Likewise.
30449 * normal/misc.c: Likewise.
30450 * normal/datetime.c: Likewise.
30451 * bus/usb/usbtrans.c: Likewise.
30452 * bus/usb/ohci.c: Likewise.
30453 * bus/usb/uhci.c: Likewise.
30454 * bus/usb/usb.c: Likewise.
30455 * mmap/efi/mmap.c: Likewise.
30456 * mmap/i386/pc/mmap_helper.S: Likewise.
30457 * mmap/i386/pc/mmap.c: Likewise.
30458 * mmap/i386/mmap.c: Likewise.
30459 * mmap/i386/uppermem.c: Likewise.
30460 * mmap/mmap.c: Likewise.
30461 * commands/acpi.c: Likewise.
30462 * commands/echo.c: Likewise.
30463 * commands/blocklist.c: Likewise.
30464 * commands/loadenv.c: Likewise.
30465 * commands/usbtest.c: Likewise.
30466 * commands/boot.c: Likewise.
30467 * commands/parttool.c: Likewise.
30468 * commands/search.c: Likewise.
30469 * commands/cat.c: Likewise.
30470 * commands/i386/pc/play.c: Likewise.
30471 * commands/i386/pc/drivemap.c: Likewise.
30472 * commands/i386/pc/vbeinfo.c: Likewise.
30473 * commands/i386/pc/acpi.c: Likewise.
30474 * commands/i386/pc/vbetest.c: Likewise.
30475 * commands/ls.c: Likewise.
30476 * commands/cmp.c: Likewise.
30477 * commands/test.c: Likewise.
30478 * commands/efi/acpi.c: Likewise.
30479 * commands/gptsync.c: Likewise.
30480 * commands/help.c: Likewise.
30481 * partmap/amiga.c: Likewise.
30482 * partmap/apple.c: Likewise.
30483 * partmap/acorn.c: Likewise.
30484 * partmap/pc.c: Likewise.
30485 * partmap/sun.c: Likewise.
30486 * partmap/gpt.c: Likewise.
30487 * script/sh/lexer.c: Likewise.
30488 * script/sh/function.c: Likewise.
30489 * font/font.c: Likewise.
30490 * font/font_cmd.c: Likewise.
30491 * loader/powerpc/ieee1275/linux.c: Likewise.
30492 * loader/efi/chainloader.c: Likewise.
30493 * loader/multiboot_loader.c: Likewise.
30494 * loader/macho.c: Likewise.
30495 * loader/i386/multiboot.c: Likewise.
30496 * loader/i386/linux.c: Likewise.
30497 * loader/i386/pc/linux.c: Likewise.
30498 * loader/i386/pc/multiboot2.c: Likewise.
30499 * loader/i386/pc/chainloader.c: Likewise.
30500 * loader/i386/pc/xnu.c: Likewise.
30501 * loader/i386/bsd_trampoline.S: Likewise.
30502 * loader/i386/efi/linux.c: Likewise.
30503 * loader/i386/multiboot_elfxx.c: Likewise.
30504 * loader/i386/bsd_helper.S: Likewise.
30505 * loader/i386/bsd.c: Likewise.
30506 * loader/i386/linux_trampoline.S: Likewise.
30507 * loader/i386/xnu_helper.S: Likewise.
30508 * loader/i386/xnu.c: Likewise.
30509 * loader/i386/bsd_pagetable.c: Likewise.
30510 * loader/i386/multiboot_helper.S: Likewise.
30511 * loader/xnu.c: Likewise.
30512 * loader/xnu_resume.c: Likewise.
30513 * io/gzio.c: Likewise.
30514 * term/efi/console.c: Likewise.
30515 * term/terminfo.c: Likewise.
30516 * term/ieee1275/ofconsole.c: Likewise.
30517 * term/i386/pc/serial.c: Likewise.
30518 * term/i386/pc/vesafb.c: Likewise.
30519 * term/i386/pc/vga.c: Likewise.
30520 * term/usb_keyboard.c: Likewise.
30521 * term/gfxterm.c: Likewise.
30522 * aclocal.m4: Likewise.
30523 * util/lvm.c: Likewise.
30524 * util/grub.d/30_os-prober.in: Likewise.
30525 * util/grub.d/10_hurd.in: Likewise.
30526 * util/console.c: Likewise.
30527 * util/grub-macho2img.c: Likewise.
30528 * util/grub-probe.c: Likewise.
30529 * util/hostfs.c: Likewise.
30530 * util/i386/pc/grub-mkimage.c: Likewise.
30531 * util/i386/pc/grub-setup.c: Likewise.
30532 * util/i386/efi/grub-mkimage.c: Likewise.
30533 * util/grub-mkconfig.in: Likewise.
30534 * util/raid.c: Likewise.
30535 * util/resolve.c: Likewise.
30536 * util/grub-mkdevicemap.c: Likewise.
30537 * util/grub-emu.c: Likewise.
30538 * util/getroot.c: Likewise.
30539 * util/hostdisk.c: Likewise.
30540 * util/usb.c: Likewise.
30541 * util/grub-editenv.c: Likewise.
30542 * util/misc.c: Likewise.
30544 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
30546 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
30547 `genparttoollist.sh'.
30548 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
30549 Add `*.sh' to the list find searches for and change `mdate.sh'
30552 2009-06-10 Pavel Roskin <proski@gnu.org>
30554 * include/grub/multiboot2.h: Provide compatibility defines for
30556 * include/multiboot2.h: Include stdint.h only if needed, using
30558 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
30560 * loader/ieee1275/multiboot2.c: Likewise.
30561 * loader/multiboot2.c: Likewise.
30562 * loader/multiboot_loader.c: Likewise.
30564 * configure.ac: Use -nostdlib when probing for the target. It
30565 should not be required to have libc for the target.
30567 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
30568 they fail without libc headers for the target.
30569 * include/grub/powerpc/libgcc.h: Use weak attribute for all
30571 * include/grub/sparc64/libgcc.h: Likewise. Don't use
30572 preprocessor conditionals.
30574 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
30575 build system doesn't need to be aware of the tar.c internals.
30577 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
30579 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
30581 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
30583 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
30584 disk limit to 26 for IDE, Virtio, Xen and SCSI.
30586 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
30588 * util/i386/pc/grub-install.in: Change the error message if UUIDs
30589 aren't available if ata.mod gets used.
30591 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
30593 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
30594 initialising controller.
30595 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
30597 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30599 * util/i386/pc/grub-install.in: Add a parameter --disk-module
30600 to choose between ata and biosdisk module on i386-pc.
30602 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
30604 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
30605 Subclass and Programming Interface fields in terms of the 3 byte
30606 Class Code register.
30607 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
30609 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
30610 interface is OHCI. Add grub_dprintf for symmetry with
30612 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
30613 interface is UHCI. Add interf variable for programming
30614 interface. Print interface with class/subclass.
30616 * bus/usb/ohci.c: Set interf with correct field.
30618 * bus/usb/uhci.c: Remove unneeded doubled lines.
30619 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
30620 Remove whitespace inside comment.
30622 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
30624 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
30625 as fallback an equivalent option without depth.
30627 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
30629 Not fail if unable to retrieve C/H/S on LBA disks
30631 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
30632 if unable to retrieve C/H/S on LBA disks
30634 2009-06-08 Pavel Roskin <proski@gnu.org>
30636 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
30639 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30641 * Makefile.in (uninstall): Remove all $lib_DATA files.
30643 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
30645 Bugfix: install on partitionless device
30647 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
30650 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30652 * Makefile.in (uninstall): Remove all $include_DATA files.
30654 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30656 * commands/true.c: New file. Implement the true and false commands.
30657 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
30658 (true_mod_SOURCES): New variable.
30659 (true_mod_CFLAGS): Likewise.
30660 (true_mod_LDFLAGS): Likewise.
30662 2009-06-05 Colin D Bennett <colin@gibibit.com>
30664 Optimized font character lookup using binary search instead of linear
30665 search. Fonts now are required to have the character index ordered by
30668 * font/font.c (load_font_index): Verify that fonts have ordered
30670 (find_glyph): Use binary search instead of linear search to find a
30671 character in a font.
30673 2009-06-05 Michael Scherer <misc@mandriva.org>
30675 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
30676 uses case sensitive btree.
30677 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
30678 only for case insensitive filesystems.
30680 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
30682 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
30683 * conf/common.rmk (search_mod_CFLAGS): likewise
30685 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30687 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
30688 compensate a compiler bug
30690 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30692 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
30695 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30697 Definitions for creating asm symbols with Apple's CC
30699 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
30700 [APPLE_CC] (VARIABLE): likewise
30702 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30704 Disable lnxboot.img when compiled
30707 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
30708 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
30709 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
30710 [! APPLE_CC] (CODE_LENG): skip
30711 [! APPLE_CC] (setup_sects): likewise
30712 [! APPLE_CC]: skip filling
30714 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30716 Address in trampolines based on 32-bit registers when compiled
30719 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
30721 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
30723 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30725 Avoid aliases when compiling with Apple's CC for PCBIOS machine
30727 * kern/misc.c [APPLE_CC] (memcpy): new function
30728 [APPLE_CC] (memmove): likewise
30729 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
30730 (memcpy): define alias conditionally on !APPLE_CC
30733 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
30734 APPLE_CC are defined
30735 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
30736 (grub_assert_fail): make prototype conditional
30738 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30740 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
30742 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
30744 (CLEANFILES): add grub-macho2img
30745 (grub_macho2img_SOURCES): new variable
30746 * kern/i386/pc/startup.S (bss_start): new variable
30747 (bss_end): likewise
30748 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
30749 * util/grub-macho2img.c: new file
30751 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30753 Use objconv when compiling with Apple's CC
30755 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
30756 (efiemu64.o): likewise
30757 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
30758 when compiling with Apple's CC
30759 (efiemu64_s.o): likewise
30760 * configure.ac: check for objconv when compiling with Apple's CC
30761 * genmk.rb: use objconv for modules when compiled with Apple's CC
30763 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30765 Define segment as well as section when compiling with
30768 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
30769 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
30770 (efiemu_convert_pointer): likewise
30771 (efiemu_set_virtual_address_map): likewise
30772 (efiemu_convert_pointer): likewise
30773 (efiemu_getcrc32): likewise
30774 (init_crc32_table): likewise
30775 (reflect): likewise
30776 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
30777 (GRUB_MOD_DEP): likewise
30779 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30781 Allow a compilation without -mcmodel=large
30783 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
30784 when compiled without -mcmodel=large
30785 (filter_memory_map): remove memory post 4 GiB when compiled
30786 without -mcmodel=large
30787 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
30788 TARGET_CFLAGS when -mcmodel=large isn't supported
30790 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30792 Remove nested functions in efiemu core
30794 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
30796 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30798 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
30800 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
30802 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
30804 (grub_cpu_is_tsc_supported): likewise
30805 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
30807 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30809 Absolute addressing through constant with Apple's cc
30811 * kern/i386/pc/startup.S: Define necessary constants
30812 and address through it when using ABS with Apple's CC
30813 * boot/i386/pc/diskboot.S: likewise
30814 * boot/i386/pc/boot.S: likewise
30815 * boot/i386/pc/lnxboot.S: likewise
30816 * boot/i386/pc/cdboot.S: likewise
30817 * mmap/i386/pc/mmap_helper.S: likewise
30818 * commands/i386/pc/drivemap_int13h.S: likewise
30820 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30822 Check if compiler is apple cc
30824 * Makefile.in (ASFLAGS): new variable
30825 (TARGET_ASFLAGS): likewise
30826 (TARGET_MODULE_FORMAT): likewise
30827 (TARGET_APPLE_CC): likewise
30828 (OBJCONV): likewise
30829 (TARGET_IMG_CFLAGS): likewise
30830 (TARGET_CPPFLAGS): add includedir
30831 * configure.ac: call grub_apple_cc and grub_apple_target_cc
30832 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
30833 Check for linker script only if compiler isn't Apple's CC
30834 (TARGET_MODULE_FORMAT): set
30835 (TARGET_APPLE_CC): likewise
30836 (TARGET_ASFLAGS): likewise
30837 (ASFLAGS): likewise
30838 Check for objcopy only if compiler isn't Apple's CC
30839 Check for BSS symbol only if compiler isn't Apple's CC
30840 * genmk.rb: adapt nm options if we use Apple's utils
30841 * aclocal.m4 (grub_apple_cc): new test
30842 (grub_apple_target_cc): likewise
30844 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30846 Simplify sed expressions and improve awk
30848 * Makefile.in (install-local): simplify sed expression
30849 * gencmdlist.sh: likewise
30850 * genmoddep.awk: avoid adding module as a dependency of itself
30852 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30854 Add missing start symbols
30856 * boot/i386/pc/boot.S: add start
30857 * boot/i386/pc/pxeboot.S: likewise
30859 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30861 Fix wrong assumptions with grub-mkimage on EFI
30863 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
30864 (relocate_addresses): consider both r_addend and value at offset
30865 (make_mods_section): zerofill modinfo and header
30866 (convert_elf): write prefix here
30868 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30870 Use .asciz instead of .string
30872 * i386/pc/diskboot.S: use .asciz instead of .string
30873 * i386/pc/boot.S: likewise
30874 * include/grub/dl.h (GRUB_MOD_DEP): likewise
30875 (GRUB_MOD_NAME): likewise
30877 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30881 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
30882 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
30883 (grub_video_setup): remove
30884 (grub_video_set_mode): new prototype
30885 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
30887 (linux_vesafb_res): compile only on PCBIOS
30888 (grub_linux_boot): support gfxpayload
30889 * loader/i386/pc/xnu.c (video_hook): new function
30890 (grub_xnu_set_video): support gfxpayload
30891 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
30892 (DEFAULT_VIDEO_HEIGHT): likewise
30893 (DEFAULT_VIDEO_FLAGS): likewise
30894 (DEFAULT_VIDEO_MODE): new definition
30895 (video_hook): new function
30896 (grub_gfxterm_init): use grub_video_set_mode
30897 * util/grub.d/30_os-prober.in: remove explicit modesetting before
30899 * video/video.c (grub_video_setup): removed
30900 (grub_video_set_mode): new function based on grub_gfxterm_init and
30903 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30905 Avoid calling biosdisk in drivemap
30907 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
30908 (revparse_biosdisk): likewise
30909 (list_mappings): derive name from id directly
30910 (grub_cmd_drivemap): use tryparse_diskstring
30912 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30916 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
30917 (grub_lexer_param): add tokenonhold
30918 (grub_script_create_cmdline): remove cmdline. All callers updated
30919 (grub_script_function_create): make functionname
30920 grub_script_arg. All callers updated
30921 (grub_script_execute_argument_to_string): new prototype
30922 * kern/parser.c (state_transitions): reorder
30923 (grub_parser_cmdline_state): fix a bug and make more compact
30924 * script/sh/execute.c (grub_script_execute_argument_to_string):
30926 (grub_script_execute_cmdline): use new format
30927 * script/sh/function.c (grub_script_function_create): make functionname
30928 grub_script_arg. All callers updated
30929 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
30930 (grub_script_yylex): remove
30931 (grub_script_yylex2): renamed to ...
30932 (grub_script_yylex): ...renamed
30933 parse the expressions like a${b}c
30934 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
30935 (GRUB_PARSER_TOKEN_VAR): remove
30936 (GRUB_PARSER_TOKEN_NAME): likewise
30937 ("if"): declare as typeless
30938 ("while"): likewise
30939 ("function"): likewise
30944 (argument): likewise
30945 (script): accept empty scripts and make exit on error
30946 (arguments): use GRUB_PARSER_TOKEN_ARG
30947 (function): likewise
30948 (command): move error handling to script
30949 (menuentry): move grub_script_lexer_ref before
30950 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
30951 argument. All callers updated
30953 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
30955 Prevent GRUB from probing floppies during boot.
30957 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
30958 * commands/search.c (options): Add --no-floppy.
30959 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
30960 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
30961 --no-floppy when searching for UUIDs.
30963 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
30965 Simplify the code duplication in commands/search.c.
30967 * commands/search.c (search_label, search_fs_uuid): Merge into ...
30968 (search_fs): ... this. Update all users.
30970 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
30972 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
30974 2009-05-28 Pavel Roskin <proski@gnu.org>
30976 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
30977 Remove the original symlink explicitly.
30979 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
30980 just one slash. That's how grub_fshelp_find_file() does it.
30982 2009-05-26 Pavel Roskin <proski@gnu.org>
30984 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
30987 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
30990 2009-05-25 Christian Franke <franke@computer.org>
30992 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
30994 (grub_atapi_identify): Add wait after drive select.
30995 (grub_ata_identify): Do more strict status register check before
30996 calling grub_atapi_identify (). Suppress error message if status
30997 register is 0x00 after command failure. Add status register
30998 check after PIO read to avoid bogus identify due to stuck DRQ.
30999 Thanks to Pavel Roskin for testing.
31000 (grub_device_initialize): Remove unsafe status register check.
31001 Thanks to 'phcoder' for problem report and patch.
31002 Prevent sign extension in debug message.
31004 2009-05-23 Colin D Bennett <colin@gibibit.com>
31006 Cleaned up `include/grub/normal.h'. Grouped prototypes by
31007 definition file, and functions defined in `normal/menu.c' have had
31008 their prototypes moved to `include/grub/menu.h' for consistency.
31010 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
31012 (grub_menu_get_entry): Likewise.
31013 (grub_menu_get_timeout): Likewise.
31014 (grub_menu_set_timeout): Likewise.
31015 (grub_menu_execute_entry): Likewise.
31016 (grub_menu_execute_with_fallback): Likewise.
31017 (grub_menu_entry_run): Likewise.
31019 * include/grub/normal.h: Re-ordered and grouped function
31020 prototypes by file that the function is defined in.
31021 (grub_menu_execute_callback): Removed; moved to menu.h.
31022 (grub_menu_get_entry): Likewise.
31023 (grub_menu_get_timeout): Likewise.
31024 (grub_menu_set_timeout): Likewise.
31025 (grub_menu_execute_entry): Likewise.
31026 (grub_menu_execute_with_fallback): Likewise.
31027 (grub_menu_entry_run): Likewise.
31028 (grub_menu_addentry): Renamed from this ...
31029 (grub_normal_add_menu_entry): ... to this.
31031 * normal/main.c (grub_menu_addentry): Renamed from this ...
31032 (grub_normal_add_menu_entry): ... to this.
31034 * script/sh/execute.c (grub_script_execute_menuentry): Update
31035 reference to renamed grub_menu_addentry function.
31037 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
31039 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
31041 2009-05-22 Pavel Roskin <proski@gnu.org>
31043 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
31044 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
31045 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
31046 compiling for the i386 targets, but not for the utilities.
31048 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
31050 (grub_root_drive): Likewise.
31051 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
31053 (grub_root_drive): Change size to byte.
31054 (grub_start_addr): Remove.
31055 (grub_end_addr): Likewise.
31056 (grub_apm_bios_info): Likewise.
31058 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
31060 * normal/i386: Remove.
31061 * normal/powerpc: Likewise.
31062 * normal/sparc64: Likewise.
31063 * normal/x86_64: Likewise.
31065 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
31067 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
31068 * loader/i386/linux_trampoline.S: Fix indentation
31069 * loader/i386/xnu_helper.S: Likewise
31071 2009-05-18 Colin D Bennett <colin@gibibit.com>
31073 Display error messages when parsing a Lua statement fails.
31074 Previously, executing a syntactically invalid statement like
31075 ")foo" or "bar;" would silently fail.
31077 * script/lua/grub_main.c (handle_lua_error): New function.
31078 (grub_lua_parse_line): Improved reporting of Lua parser and
31081 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
31083 Remove -Werror which causes build to fail on some systems
31085 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
31086 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
31087 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
31089 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
31091 trampoline for linux on 64-bit platform
31093 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
31094 loader/i386/efi/linux_trampoline.S
31095 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
31097 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
31099 * loader/i386/linux_trampoline.S: moved here
31100 * loader/i386/efi/linux.c (allocate_pages): reserve space for
31102 (jumpvector): removed
31103 (grub_linux_trampoline_start): new declaration
31104 (grub_linux_trampoline_end): likewise
31105 (grub_linux_boot): use trampoline when on 64-bit platform
31106 * loader/i386/linux.c: likewise
31108 2009-05-16 Pavel Roskin <proski@gnu.org>
31110 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
31111 const to avoid a warning.
31112 (grub_lua_setenv): Likewise.
31113 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
31114 lmsg to fix a warning.
31116 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
31118 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
31119 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31120 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
31121 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31122 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
31123 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31124 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
31125 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31127 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
31129 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
31131 2009-05-16 Bean <bean123ch@gmail.com>
31133 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
31134 (lua_mod_SOURCES): New variable.
31135 (lua_mod_CFLAGS): Likewise.
31136 (lua_mod_LDFLAGS): Likewise.
31138 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
31139 (setjmp_mod_SOURCES): New variable.
31140 (setjmp_mod_CFLAGS): Likewise.
31141 (setjmp_LDFLAGS): Likewise.
31143 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
31144 (setjmp_mod_SOURCES): New variable.
31145 (setjmp_mod_CFLAGS): Likewise.
31146 (setjmp_LDFLAGS): Likewise.
31148 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
31149 (setjmp_mod_SOURCES): New variable.
31150 (setjmp_mod_CFLAGS): Likewise.
31151 (setjmp_LDFLAGS): Likewise.
31153 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
31154 (setjmp_mod_SOURCES): New variable.
31155 (setjmp_mod_CFLAGS): Likewise.
31156 (setjmp_LDFLAGS): Likewise.
31158 * normal/i386/setjmp.S: Moved from here ...
31159 * lib/i386/setjmp.S: ... Moved here
31160 * normal/x86_64/setjmp.S: Moved from here ...
31161 * lib/x86_64/setjmp.S: ... Moved here
31162 * normal/powerpc/setjmp.S: Moved from here ...
31163 * lib/powerpc/setjmp.S: ... Moved here
31164 * normal/sparc64/setjmp.S: Moved from here ...
31165 * lib/sparc64/setjmp.S: ... Moved here
31167 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
31168 returns_twice in mingw.
31170 * script/lua/grub_lib.c: New file.
31171 * script/lua/grub_lib.h: Likewise.
31172 * script/lua/grub_lua.h: Likewise.
31173 * script/lua/grub_main.c: Likewise.
31174 * script/lua/lapi.c: Likewise.
31175 * script/lua/lapi.h: Likewise.
31176 * script/lua/lauxlib.c: Likewise.
31177 * script/lua/lauxlib.h: Likewise.
31178 * script/lua/lbaselib.c: Likewise.
31179 * script/lua/lcode.c: Likewise.
31180 * script/lua/lcode.h: Likewise.
31181 * script/lua/ldblib.c: Likewise.
31182 * script/lua/ldebug.c: Likewise.
31183 * script/lua/ldebug.h: Likewise.
31184 * script/lua/ldo.c: Likewise.
31185 * script/lua/ldo.h: Likewise.
31186 * script/lua/ldump.c: Likewise.
31187 * script/lua/lfunc.c: Likewise.
31188 * script/lua/lfunc.h: Likewise.
31189 * script/lua/lgc.c: Likewise.
31190 * script/lua/lgc.h: Likewise.
31191 * script/lua/linit.c: Likewise.
31192 * script/lua/liolib.c: Likewise.
31193 * script/lua/llex.c: Likewise.
31194 * script/lua/llex.h: Likewise.
31195 * script/lua/llimits.h: Likewise.
31196 * script/lua/lmathlib.c: Likewise.
31197 * script/lua/lmem.c: Likewise.
31198 * script/lua/lmem.h: Likewise.
31199 * script/lua/loadlib.c: Likewise.
31200 * script/lua/lobject.c: Likewise.
31201 * script/lua/lobject.h: Likewise.
31202 * script/lua/lopcodes.c: Likewise.
31203 * script/lua/lopcodes.h: Likewise.
31204 * script/lua/loslib.c: Likewise.
31205 * script/lua/lparser.c: Likewise.
31206 * script/lua/lparser.h: Likewise.
31207 * script/lua/lstate.c: Likewise.
31208 * script/lua/lstate.h: Likewise.
31209 * script/lua/lstring.c: Likewise.
31210 * script/lua/lstring.h: Likewise.
31211 * script/lua/lstrlib.c: Likewise.
31212 * script/lua/ltable.c: Likewise.
31213 * script/lua/ltable.h: Likewise.
31214 * script/lua/ltablib.c: Likewise.
31215 * script/lua/ltm.c: Likewise.
31216 * script/lua/ltm.h: Likewise.
31217 * script/lua/lua.h: Likewise.
31218 * script/lua/luaconf.h: Likewise.
31219 * script/lua/lualib.h: Likewise.
31220 * script/lua/lundump.c: Likewise.
31221 * script/lua/lundump.h: Likewise.
31222 * script/lua/lvm.c: Likewise.
31223 * script/lua/lvm.h: Likewise.
31224 * script/lua/lzio.c: Likewise.
31225 * script/lua/lzio.h: Likewise.
31227 2009-05-16 Bean <bean123ch@gmail.com>
31229 * include/grub/kernel.h (grub_module_header_types): Add type
31232 * kern/main.c (grub_load_config): New function.
31233 (grub_main): Call grub_load_config to read boot config.
31235 * grub-mkimage (generate_image): New parameter config_path.
31236 (options): New option --config.
31237 (main): Parse --config option, and pass it to generate_image.
31239 2009-05-14 Christian Franke <franke@computer.org>
31241 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
31242 This fixes build on Cygwin.
31244 2009-05-14 Pavel Roskin <proski@gnu.org>
31246 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
31247 jump. This saves two bytes, so the typical case of 2 swapped
31248 drives would fit 32 bytes.
31250 2009-05-13 Pavel Roskin <proski@gnu.org>
31252 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
31253 grub_uint32_t to avoid a warning.
31255 * loader/i386/linux.c (allocate_pages): When assigning
31256 real_mode_mem, cast through grub_size_t to fix a warning. The
31257 code already makes sure that the value would fit a pointer.
31258 (grub_linux_setup_video): Cast render_target->data to
31259 grub_size_t to fix a warning.
31261 2009-05-13 Javier Martín <lordhabbit@gmail.com>
31263 * commands/i386/pc/drivemap.c: New file - implement drivemap
31265 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
31266 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
31268 2009-05-13 Pavel Roskin <proski@gnu.org>
31270 * util/i386/pc/grub-setup.c (setup): Remove unused variable
31271 embedding_area_exists.
31273 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
31275 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
31276 it easier to understand / work with.
31277 Improve warning messages for cases where there's no embedding area,
31278 or when it is too small (or core.img too large).
31280 2009-05-13 Pavel Roskin <proski@gnu.org>
31282 * loader/i386/pc/multiboot2.c: Add necessary includes for
31283 grub_multiboot2_real_boot().
31285 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
31286 PX record is always little-endian. We only need the lower 2
31289 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
31290 facilitate code reuse.
31291 (grub_cpio_mount): Use "struct head", not a char buffer. This
31292 fixes a warning reported by gcc 4.4.
31294 * kernel/disk.c (grub_disk_read): Use void pointer for the
31296 (grub_disk_write): Use const void pointer for the buffer.
31297 Adjust all callers. Remove unnecessary casts.
31299 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
31301 * util/i386/pc/grub-install.in: Update copyright year.
31303 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
31307 * commands/gptsync.c: new file
31308 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
31309 (gptsync_mod_SOURCES): new variable
31310 (gptsync_mod_CFLAGS): likewise
31311 (gptsync_mod_LDFLAGS): likewise
31312 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
31314 (GRUB_PC_PARTITION_TYPE_HFS): likewise
31315 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
31316 * conf/i386-ieee1275.rmk: likewise
31317 * conf/i386-pc.rmk: likewise
31318 * conf/powerpc-ieee1275.rmk: likewise
31320 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
31324 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
31325 (grub_dl_ref): likewise
31327 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
31329 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
31330 split in two functions (one for msdos and one for gpt).
31332 2009-05-08 Pavel Roskin <proski@gnu.org>
31334 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
31337 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
31338 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
31339 Initialize them with -1. Add sanity check for bad1. Eliminate
31342 2009-05-08 David S. Miller <davem@davemloft.net>
31344 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
31346 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
31348 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
31351 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
31353 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
31354 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
31356 2009-05-05 David S. Miller <davem@davemloft.net>
31358 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
31360 2009-05-05 Pavel Roskin <proski@gnu.org>
31362 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
31363 of grub_dl_ref() and grub_dl_unref().
31364 * commands/parttool.c: Remove preprocessor conditionals around
31365 grub_dl_ref() and grub_dl_unref().
31366 * fs/affs.c: Likewise.
31367 * fs/afs.c: Likewise.
31368 * fs/cpio.c: Likewise.
31369 * fs/ext2.c: Likewise.
31370 * fs/fat.c: Likewise.
31371 * fs/hfs.c: Likewise.
31372 * fs/hfsplus.c: Likewise.
31373 * fs/iso9660.c: Likewise.
31374 * fs/jfs.c: Likewise.
31375 * fs/minix.c: Likewise.
31376 * fs/ntfs.c: Likewise.
31377 * fs/reiserfs.c: Likewise.
31378 * fs/sfs.c: Likewise.
31379 * fs/udf.c: Likewise.
31380 * fs/ufs.c: Likewise.
31381 * fs/xfs.c: Likewise.
31382 * include/grub/dl.h: Likewise.
31383 * loader/xnu.c: Likewise.
31385 2009-05-04 Pavel Roskin <proski@gnu.org>
31387 * commands/acpi.c: Remove unused variable my_mod.
31388 * partmap/amiga.c: Likewise.
31389 * partmap/apple.c: Likewise.
31390 * partmap/gpt.c: Likewise.
31391 * partmap/pc.c: Likewise.
31392 * partmap/sun.c: Likewise.
31393 * term/gfxterm.c: Likewise.
31394 * term/i386/pc/vesafb.c: Likewise.
31395 * term/i386/pc/vga.c: Likewise.
31397 2009-05-04 David S. Miller <davem@davemloft.net>
31399 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
31400 pointer args to grub_ieee1275_get_property().
31402 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
31404 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
31405 devices, and do not traverse down under controller nodes.
31407 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
31408 (grub_ofdisk_open): Use it to un-escape "," characters.
31409 * kern/disk.c (find_part_sep): New.
31410 (grub_disk_open): Use it to find the first non-escaped ','
31411 character in the disk name.
31412 * util/ieee1275/devicemap.c (escape_of_path): New.
31413 (grub_util_emit_devicemap_entry): Use it.
31414 * util/sparc64/ieee1275/grub-install.in: Update script to
31415 strip partition specifiers properly by not triggering on
31416 '\' escaped ',' characters.
31418 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31420 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
31422 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
31424 (linux_vesafb_modes): Add a lot of additional modes to the list (based
31425 on documentation from Wikipedia).
31427 2009-05-04 Pavel Roskin <proski@gnu.org>
31429 * disk/ata.c: Spelling fixes.
31430 * disk/raid.c: Likewise.
31431 * disk/usbms.c: Likewise.
31432 * disk/dmraid_nvidia.c: Likewise.
31433 * kern/ieee1275/openfw.c: Likewise.
31434 * kern/ieee1275/init.c: Likewise.
31435 * kern/ieee1275/cmain.c: Likewise.
31436 * boot/i386/pc/cdboot.S: Likewise.
31437 * video/readers/png.c: Likewise.
31438 * video/i386/pc/vbe.c: Likewise.
31439 * fs/udf.c: Likewise.
31440 * fs/hfs.c: Likewise.
31441 * fs/reiserfs.c: Likewise.
31442 * efiemu/runtime/efiemu.c: Likewise.
31443 * efiemu/main.c: Likewise.
31444 * efiemu/mm.c: Likewise.
31445 * include/grub/elf.h: Likewise.
31446 * include/grub/xnu.h: Likewise.
31447 * include/grub/usbdesc.h: Likewise.
31448 * include/grub/usb.h: Likewise.
31449 * include/grub/script_sh.h: Likewise.
31450 * include/grub/lib/LzmaEnc.h: Likewise.
31451 * include/grub/efiemu/efiemu.h: Likewise.
31452 * include/grub/command.h: Likewise.
31453 * normal/menu.c: Likewise.
31454 * normal/main.c: Likewise.
31455 * normal/datetime.c: Likewise.
31456 * bus/usb/uhci.c: Likewise.
31457 * mmap/i386/uppermem.c: Likewise.
31458 * mmap/mmap.c: Likewise.
31459 * commands/acpi.c: Likewise.
31460 * commands/test.c: Likewise.
31461 * partmap/apple.c: Likewise.
31462 * font/font.c: Likewise.
31463 * loader/sparc64/ieee1275/linux.c: Likewise.
31464 * loader/macho.c: Likewise.
31465 * loader/i386/bsd_trampoline.S: Likewise.
31466 * loader/i386/bsd.c: Likewise.
31467 * loader/xnu.c: Likewise.
31468 * term/i386/pc/vesafb.c: Likewise.
31469 * term/usb_keyboard.c: Likewise.
31470 * util/resolve.c: Likewise.
31471 * util/getroot.c: Likewise.
31473 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
31475 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
31477 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31479 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
31482 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31484 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
31485 parameter only available on BIOS.
31487 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31489 Removed wrong semicolon in declaration
31491 * grub/misc.h (grub_dprintf): remove semicolon
31493 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31495 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
31496 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
31497 is done by grub_cmd_linux() now).
31498 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
31499 restore video to text mode.
31500 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
31501 indicates lack of "vga=" parameter. "vga=0" is mapped to
31502 `GRUB_LINUX_VID_MODE_NORMAL'.
31504 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
31506 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
31507 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
31508 and `normal/script.c'. Add `kern/rescue_reader.c',
31509 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
31510 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
31511 `grub_script.tab.c'.
31513 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31514 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
31515 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31516 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
31517 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31519 * Makefile.in: Remove duplicated 2008 in Copyright line.
31521 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31523 * util/misc.c (grub_util_warn): New function. Emits a warning
31525 * include/grub/util/misc.h (grub_util_warn): New declaration.
31527 * util/i386/pc/grub-install.in: Understand --force and pass it down
31530 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
31532 (setup): Improve error messages and add warnings when requested to
31533 install in odd layouts. Refuse to install using blocklists unless
31536 2009-05-04 martin f. krafft <madduck@madduck.net>
31538 * disk/raid.c (grub_raid_scan_device): Improve debug message.
31540 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31542 Updated copyright year
31544 * fs/hfsplus.c: updated copyright year
31546 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31550 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
31551 in the space previously used by unused3
31552 (grub_hfsplus_uuid): new function
31553 (grub_hfsplus_fs): added uuid field
31555 2009-05-03 Pavel Roskin <proski@gnu.org>
31557 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
31558 suppress warnings. It's no longer needed.
31559 * disk/host.c: Likewise.
31560 * disk/ata_pthru.c: Likewise.
31561 * disk/loopback.c: Likewise.
31562 * hook/datehook.c: Likewise.
31563 * parttool/pcpart.c: Likewise.
31564 * fs/i386/pc/pxe.c: Likewise.
31565 * fs/ntfscomp.c: Likewise.
31566 * efiemu/main.c: Likewise.
31567 * mmap/mmap.c: Likewise.
31568 * commands/crc.c: Likewise.
31569 * commands/hexdump.c: Likewise.
31570 * commands/hdparm.c: Likewise.
31571 * commands/acpi.c: Likewise.
31572 * commands/echo.c: Likewise.
31573 * commands/minicmd.c: Likewise.
31574 * commands/blocklist.c: Likewise.
31575 * commands/memrw.c: Likewise.
31576 * commands/loadenv.c: Likewise.
31577 * commands/usbtest.c: Likewise.
31578 * commands/lsmmap.c: Likewise.
31579 * commands/boot.c: Likewise.
31580 * commands/parttool.c: Likewise.
31581 * commands/configfile.c: Likewise.
31582 * commands/search.c: Likewise.
31583 * commands/ieee1275/suspend.c: Likewise.
31584 * commands/cat.c: Likewise.
31585 * commands/i386/pc/pxecmd.c: Likewise.
31586 * commands/i386/pc/play.c: Likewise.
31587 * commands/i386/pc/halt.c: Likewise.
31588 * commands/i386/pc/vbeinfo.c: Likewise.
31589 * commands/i386/pc/vbetest.c: Likewise.
31590 * commands/lspci.c: Likewise.
31591 * commands/date.c: Likewise.
31592 * commands/handler.c: Likewise.
31593 * commands/ls.c: Likewise.
31594 * commands/test.c: Likewise.
31595 * commands/cmp.c: Likewise.
31596 * commands/efi/loadbios.c: Likewise.
31597 * commands/efi/fixvideo.c: Likewise.
31598 * commands/halt.c: Likewise.
31599 * commands/help.c: Likewise.
31600 * commands/reboot.c: Likewise.
31601 * hello/hello.c: Likewise.
31602 * script/sh/main.c: Likewise.
31603 * loader/xnu.c: Likewise.
31604 * term/terminfo.c: Likewise.
31605 * term/i386/pc/serial.c: Likewise.
31606 * term/usb_keyboard.c: Likewise.
31608 2009-05-03 David S. Miller <davem@davemloft.net>
31610 * normal/menu.c: Include grub/parser.h
31612 2009-05-03 Pavel Roskin <proski@gnu.org>
31614 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
31616 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
31617 Suggested by Javier Martín <lordhabbit@gmail.com>
31619 * util/i386/pc/grub-mkrescue.in: Allow for the case when
31620 efiemu??.o doesn't exist.
31621 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
31624 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
31626 FreeBSD 64-bit support
31628 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
31629 and loader/i386/bsd_trampoline.S
31630 (bsd_mod_ASFLAGS): new variable
31631 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
31632 (FREEBSD_MODTYPE_KERNEL64): likewise
31633 (grub_bsd64_trampoline_start): likewise
31634 (grub_bsd64_trampoline_end): likewise
31635 (grub_bsd64_trampoline_selfjump): likewise
31636 (grub_bsd64_trampoline_gdt): likewise
31637 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
31638 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
31639 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
31640 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
31641 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
31643 * loader/i386/bsd_pagetable.c: new file
31644 * loader/i386/bsd_trampoline.S: likewise
31645 * loader/i386/bsd.c (ALIGN_QWORD): new macro
31646 (ALIGN_VAR): likewise
31647 (entry_hi): new variable
31648 (kern_end_mdofs): likewise
31649 (is_64bit): likewise
31650 (grub_freebsd_add_meta): use ALIGN_VAR
31651 (grub_e820_mmap): new declaration
31652 (grub_freebsd_add_mmap): new function
31653 (grub_freebsd_add_meta_module): support 64 bit kernels
31654 (grub_freebsd_list_modules): use ALIGN_VAR
31655 (gdt_descriptor): new declaration
31656 (grub_freebsd_boot): support 64 bit kernels
31657 (grub_bsd_elf64_hook): new function
31658 (grub_bsd_load_elf): support elf64
31660 2009-05-03 Bean <bean123ch@gmail.com>
31662 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
31663 after we get the result of if statement.
31665 2009-05-03 Bean <bean123ch@gmail.com>
31667 * Makefile.in (enable_efiemu): New variable.
31669 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
31671 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
31673 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
31674 path, add -mno-red-zone option.
31675 (efiemu64_s.o): Likewise.
31676 (efiemu64.o): Use macro $^ for source file.
31678 * configure.ac (--enable-efiemu): New option.
31680 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
31684 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
31685 (pkglib_MODULES): add xnu.mod
31686 (xnu_mod_SOURCES): new variable
31687 (xnu_mod_CFLAGS): likewise
31688 (xnu_mod_LDFLAGS): likewise
31689 (xnu_mod_ASFLAGS): likewise
31690 * conf/i386-pc.rmk: likewise
31691 * conf/x86_64-efi.rmk: likewise
31692 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
31694 * include/grub/i386/macho.h: new file
31695 * include/grub/i386/xnu.h: likewise
31696 * include/grub/macho.h: likewise
31697 * include/grub/machoload.h: likewise
31698 * include/grub/x86_64/macho.h: likewise
31699 * include/grub/x86_64/xnu.h: likewise
31700 * include/grub/xnu.h: likewise
31701 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
31702 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
31703 * loader/i386/efi/xnu.c: new file
31704 * loader/i386/pc/xnu.c: likewise
31705 * loader/i386/xnu.c: likewise
31706 * loader/i386/xnu_helper.S: likewise
31707 * loader/macho.c: likewise
31708 * loader/xnu.c: likewise
31709 * loader/xnu_resume.c: likewise
31710 * util/grub-dumpdevtree: likewise
31711 * include/grub/i386/pit.h: include grub/err.h
31712 (grub_pit_wait): export
31713 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
31715 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31719 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
31720 _linux_efi, linux_efi.
31721 new files in grub-emu
31722 new targets efiemu32.o and efiemu64.o
31723 * loader/linux_normal_efiemu.c: likewise
31724 * loader/i386/efi/linux.c: added preliminary efiemu support
31725 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
31727 * include/grub/autoefi.h: new file
31728 * include/grub/i386/efiemu.h: likewise
31729 * include/grub/i386/pc/efiemu.h: likewise
31730 * include/grub/efi/api.h: add LL suffix when necessary
31731 new definitions relating to tables
31732 * include/grub/efiemu/efiemu.h: new file
31733 * include/grub/efiemu/runtime.h: likewise
31734 * efiemu/prepare.c: likewise
31735 * efiemu/loadcore_common.c: likewise
31736 * efiemu/loadcore64.c: likewise
31737 * efiemu/runtime/efiemu.sh: likewise
31738 * efiemu/runtime/efiemu.S: likewise
31739 * efiemu/runtime/efiemu.c: likewise
31740 * efiemu/runtime/config.h: likewise
31741 * efiemu/prepare32.c: likewise
31742 * efiemu/main.c: likewise
31743 * efiemu/modules/pnvram.c: likewise
31744 * efiemu/modules/i386: likewise
31745 * efiemu/modules/i386/pc: likewise
31746 * efiemu/modules/acpi.c: likewise
31747 * efiemu/i386/pc/cfgtables.c: likewise
31748 * efiemu/i386/loadcore64.c: likewise
31749 * efiemu/i386/loadcore32.c: likewise
31750 * efiemu/prepare64.c: likewise
31751 * efiemu/loadcore.c: likewise
31752 * efiemu/symbols.c: likewise
31753 * efiemu/mm.c: likewise
31754 * efiemu/loadcore32.c: likewise
31756 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31760 * commands/acpi.c: new file
31761 * commands/i386/pc/acpi.c: likewise
31762 * commands/efi/acpi.c: likewise
31763 * include/grub/acpi.h: likewise
31764 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
31765 (acpi_mod_SOURCES): new variable
31766 (acpi_mod_CFLAGS): likewise
31767 (acpi_mod_LDFLAGS): likewise
31768 * conf/i386-efi.rmk: likewise
31769 * conf/x86_64-efi.rmk: likewise
31771 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31773 Missing part from mmap patch
31775 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
31776 (grub_mmap_unregister)
31777 (grub_mmap_free_and_unregister): use grub_mmap_register
31779 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31783 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
31784 * loader/i386/linux.c (find_mmap_size): likewise
31785 (allocate_pages): likewise
31786 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
31787 (grub_fill_multiboot_mmap): likewise
31788 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
31789 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
31790 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
31791 (OPENBSD_MMAP_RESERVED): likewise
31792 * include/grub/i386/pc/memory.h: include grub/memory.h
31793 (grub_lower_mem): removed
31794 (grub_upper_mem): likewise
31795 (GRUB_MACHINE_MEMORY_ACPI): new definition
31796 (GRUB_MACHINE_MEMORY_NVS): likewise
31797 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
31798 (GRUB_MACHINE_MEMORY_HOLE): likewise
31799 (grub_machine_mmap_register): likewise
31800 (grub_machine_mmap_unregister): likewise
31801 (grub_machine_get_upper): likewise
31802 (grub_machine_get_lower): likewise
31803 (grub_machine_get_post64): likewise
31804 * include/grub/i386/efi/memory.h: new file
31805 * include/grub/x86_64/efi/memory.h: likewise
31806 * include/grub/efi/memory.h: likewise
31807 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
31808 (mmap_mod_SOURCES): new variable
31809 (mmap_mod_LDFLAGS): likewise
31810 (mmap_mod_ASFLAGS): likewise
31811 * conf/i386-coreboot.rmk: likewise
31812 * conf/i386-ieee1275.rmk: likewise
31813 * conf/i386-efi.rmk: likewise
31814 * conf/x86_64-efi.rmk: likewise
31815 * include/grub/types.h (UINT_TO_PTR): new macro
31816 (PTR_TO_UINT32): likewise
31817 (PTR_TO_UINT64): likewise
31818 * include/grub/memory.h: new file
31819 * mmap/i386/pc/mmap.c: likewise
31820 * mmap/i386/pc/mmap_helper.S: likewise
31821 * mmap/i386/uppermem.c: likewise
31822 * mmap/mmap.c: likewise
31823 * mmap/efi/mmap.c: likewise
31824 * kern/i386/coreboot/init.c (grub_machine_init): don't use
31826 * kern/i386/pc/init.c (grub_lower_mem): removed variable
31827 (grub_upper_mem): likewise
31828 (grub_machine_init): don't use grub_upper_mem,
31829 make grub_lower_mem local
31830 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
31831 grub_mmap_iterate and grub_mmap_get_upper
31832 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
31834 2009-05-02 Bean <bean123ch@gmail.com>
31836 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
31837 script/sh/parser.y.
31838 (pkglib_MODULES): Add normal.mod and sh.mod.
31839 (normal_SOURCES): New variable.
31840 (normal_mod_CFLAGS): Likewise.
31841 (normal_mod_LDFLAGS): Likewise.
31842 (sh_mod_SOURCES): Likewise.
31843 (sh_mod_CFLAGS): Likewise.
31844 (sh_mod_LDFLAGS): Likewise.
31846 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
31847 script/sh/lexer.c_DEPENDENCIES.
31848 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
31849 kern/rescue_reader.c and kern/rescue_parser.c.
31850 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
31851 (grub_emu_SOURCES): Change source files.
31852 (pkglib_MODULES): Remove normal.mod.
31853 (normal_SOURCES): Removed.
31854 (normal_mod_CFLAGS): Likewise.
31855 (normal_mod_LDFLAGS): Likewise.
31856 * conf/i386-coreboot.rmk: Likewise.
31857 * conf/i386-efi.rmk: Likewise.
31858 * conf/i386-ieee1276.rmk: Likewise.
31859 * conf/powerpc-ieee1275.rmk: Likewise.
31860 * conf/sparc64-ieee1275.rmk: Likewise.
31861 * conf/x86_64-efi.rmk: Likewise.
31863 * include/grub/command.h (grub_command_execute): New inline function.
31865 * include/grub/menu.h (grub_menu_entry): Removed commands field.
31867 * include/grub/normal.h: Remove <grub/setjmp.h>.
31868 (grub_fs_module_list): Moved to normal/autofs.c.
31869 (grub_exit_env): Removed.
31870 (grub_command_execute): Likewise.
31871 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
31873 (read_command_list): New function declaration.
31874 (read_fs_list): Likewise.
31876 * include/parser.h: Include <grub/reader.h>.
31877 (grub_parser_split_cmdline): Change type of getline parameter.
31878 (grub_parser): New structure.
31879 (grub_parser_class): New variable.
31880 (grub_parser_execute): New function declaration.
31881 (grub_register_rescue_parser): Likewise.
31882 (grub_parser_register): New inline function.
31883 (grub_parser_unregister): Likewise.
31884 (grub_parser_get_current): Likewise.
31885 (grub_parser_set_current): Likewise.
31887 * include/grub/reader.h: New file.
31888 * kern/reader.c: Likewise.
31889 * kern/rescue_parser.c: Likewise.
31890 * kern/rescue_reader.c: Likewise.
31891 * normal/autofs.c: Likewise.
31892 * normal/dyncmd.c: Likewise.
31894 * include/grub/rescue.h: Removed.
31895 * normal/command.h: Likewise.
31897 * include/grub/script.h: Moved to ...
31898 * include/grub/script_sh.h: ... Moved here.
31899 * normal/execute.c: Moved to ...
31900 * script/sh/execute.c: ... Moved here.
31901 * normal/function.c: Moved to ...
31902 * script/sh/function.c: ... Moved here.
31903 * normal/lexer.c: Moved to ...
31904 * script/sh/lexer.c: ... Moved here.
31905 * normal/parser.y: Moved to ...
31906 * script/sh/parser.y: ... Moved here.
31907 * normal/script.c: Moved to ...
31908 * script/sh/script.c: ... Moved here.
31910 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
31912 (grub_exit_env): Removed.
31913 (fs_module_list): Moved to normal/autofs.c.
31914 (grub_file_getline): Don't handle comment here.
31915 (free_menu): Skip removed field entry->commands.
31916 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
31918 (read_config_file): Removed nested parameter, change getline function.
31919 (grub_enter_normal_mode): Removed.
31920 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
31921 (read_command_list): Likewise.
31922 (autoload_fs_module): Moved to normal/autofs.c.
31923 (read_fs_list): Likewise.
31924 (reader_nested): New variable.
31925 (grub_normal_execute): Run parser.sh to switch to sh parser.
31926 (grub_cmd_rescue): Removed.
31927 (cmd_normal): Removed.
31928 (grub_cmd_normal): Unregister itself at the beginning. Don't register
31930 (grub_cmdline_run): New function.
31931 (grub_normal_reader_init): Likewise.
31932 (grub_normal_read_line): Likewise.
31933 (grub_env_write_pager): Likewise.
31934 (cmdline): New variable.
31935 (grub_normal_reader): Likewise.
31936 (GRUB_MOD_INIT): Register normal reader and set as current, register
31937 pager hook, register normal command with grub_register_command_prio,
31938 so that it won't show up in command.lst.
31939 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
31940 grub_fs_autoload_hook.
31942 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
31943 (grub_menu_execute_entry): Replace grub_script_execute with
31944 grub_parser_execute, change parameter to grub_command_execute.
31946 * normal/menu_text.c: Remove <grub/script.h>.
31948 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
31949 and <grub/parser.h>.
31950 (run): Change editor_getline to use new parser interface. Change
31951 parameter to grub_command_execute.
31953 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
31954 <grub/reader.h> and <grub/parser.h>.
31955 (grub_load_normal_mode): Execute normal command.
31956 (grub_main): Call grub_register_core_commands,
31957 grub_register_rescue_parser and grub_register_rescue_reader, use
31958 grub_reader_loop to enter input loop.
31960 * kern/parser.c (grub_parser_split_cmdline): Change type of
31962 (grub_parser_class): New variable.
31963 (grub_parser_execute): New function.
31965 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
31966 * loader/multiboot2.c: Likewise.
31967 * loader/sparc64/ieee1275/linux.c: Likewise.
31969 * util/grub-emu.c (read_command_list): New dummy function.
31971 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
31973 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
31974 count to 16 for CCISS and IDA.
31976 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
31978 * normal/menu_text.c (grub_wait_after_message): Print a newline
31979 after waiting for user input.
31981 * loader/i386/linux.c: Include `<grub/normal.h>'.
31982 (grub_cmd_linux): Improve the error message about `ask' mode, by
31983 waiting for user input so it's not missed (we can do this, since
31984 user requested interaction).
31986 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31988 Added missing lst to grub-mkrescue
31990 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
31991 and ${input_dir}/parttool.lst
31993 2009-04-30 David S. Miller <davem@davemloft.net>
31995 * util/hostdisk.c (device_is_wholedisk): New function.
31996 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
31997 zero only if device_is_wholedisk() returns true.
31999 * util/hostdisk.c (convert_system_partition_to_system_disk):
32000 Handle virtual disk devices named /dev/vdiskX as found on sparc
32003 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
32004 lettered partition specifier is found, convert to numbered.
32006 2009-04-29 David S. Miller <davem@davemloft.net>
32008 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
32009 * include/grub/sparc64/ieee1275/memory.h: Likewise.
32011 * normal/command.c: Add missing newline at end of file.
32013 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
32015 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
32016 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
32017 grub_ofdisk_read): Likewise, and deal similarly with the fact that
32018 ihandles have a 32-bit type but need to be stored in a "void *".
32020 2009-04-28 Pavel Roskin <proski@gnu.org>
32022 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
32023 not disk. Adjust all dependencies.
32024 (grub_fs_uuid_close): Use grub_device_close(), not
32027 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
32028 parent's partition, don't copy it by reference, as it gets freed
32031 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
32033 Preboot hooks support
32035 * commands/boot.c (struct grub_preboot_t): new declaration
32036 (preboots_head): new variable
32037 (preboots_tail): likewise
32038 (grub_loader_register_preboot_hook): new function
32039 (grub_loader_unregister_preboot_hook): likewise
32040 (grub_loader_set): launch preboot hooks
32041 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
32042 (grub_loader_register_preboot_hook): new declaration
32043 (grub_loader_unregister_preboot_hook): likewise
32045 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
32049 * disk/scsi.c (grub_scsi_open): added missing cast when
32050 calling grub_dprintf
32052 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
32054 Bug and warning fixes
32056 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
32058 * commands/test.c (test_parse): fixed bug with file tests and corrected
32059 declaration of find_file
32061 2009-04-26 Pavel Roskin <proski@gnu.org>
32063 * Makefile.in: Don't install empty manual pages if help2man is
32064 missing. Use help2man option for output, not shell redirection.
32066 2009-04-26 David S. Miller <davem@davemloft.net>
32068 * util/grub-mkdevicemap.c (make_device_map): Add missing
32069 NESTED_FUNC_ATTR to process_device().
32071 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
32075 * commands/test.c: rewritten to use bash-like test
32077 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
32079 Parttool autoloading and improvements
32081 * Makefile.in (pkglib_DATA): add parttool.lst
32082 (parttool.lst): new target
32083 * genmk.rb: generate parttool-*
32084 (CLEANFILES): add #{parttool}
32085 (PARTTOOLFILES): new variable
32086 * genparttoollist.sh: new file
32087 * parttool/pcpart.c (grub_pcpart_boot): more feedback
32088 (grub_pcpart_type): likewise
32089 * commands/parttool.c (helpmsg): new variable
32090 (grub_cmd_parttool): output help if not enough arguments are supplied
32092 (GRUB_MOD_INIT(parttool)): use helpmsg
32094 2009-04-24 David S. Miller <davem@davemloft.net>
32096 Avoiding opening same device multiple times in device iterator.
32098 * kern/device.c: (grub_device_iterate): Define struct part_ent,
32099 and use it to build a list of partitions in iterate_disk() and
32100 iterate_partition().
32102 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
32105 * disk/ieee1275/nand.c (grub_nand_iterate): Return
32106 grub_devalias_iterate() result instead of unconditional 0.
32107 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
32108 Also, capture hook return value, either directly or via
32109 grub_children_iterate(), and propagate to caller.
32110 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
32111 grub_children_iterate): Return value is now 'int' instead of
32113 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
32114 like a proper iterator, stopping when hooks return non-zero.
32115 (grub_devalias_iterate): Likewise.
32117 2009-04-23 David S. Miller <davem@davemloft.net>
32119 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
32121 2009-04-22 David S. Miller <davem@davemloft.net>
32123 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
32124 is larger than address_cells, use that value for address_cells too.
32126 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
32127 IEEE1275_MAX_PATH_LEN): Define.
32128 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
32129 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
32130 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
32131 'devtype'. Explicitly NULL terminate devalias expansion.
32133 * util/sparc64/ieee1275/misc.c: New file.
32134 * util/sparc64/ieee1275/grub-setup.c: New file.
32135 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
32136 * util/sparc64/ieee1275/grub-mkimage.c: New file.
32137 * util/sparc64/ieee1275/grub-install.in: New file.
32138 * util/ieee1275/ofpath.c: New file.
32139 * util/ieee1275/devicemap.c: New file.
32140 * util/devicemap.c: New file.
32141 * util/deviceiter.c: New file.
32142 * kern/sparc64/ieee1275/init.c: New file.
32143 * include/grub/util/ofpath.h: New file.
32144 * include/grub/util/deviceiter.h: New file.
32145 * util/grub-mkdevicemap.c: Include deviceiter.h.
32146 Implement using grub_util_emit_devicemap_entry and
32147 grub_util_iterate_devices.
32148 * conf/i386-corebook.rmk: Build util/deviceiter.c and
32149 util/devicemap.c into grub-mkdevicemap
32150 * conf/i386-efi.rmk: Likewise.
32151 * conf/i386-ieee1275.rmk: Likewise.
32152 * conf/i386-pc.rmk: Likewise.
32153 * conf/powerpc-ieee1275.rmk: Likewise.
32154 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
32155 images and installation utilities. Build kernel as image
32156 instead of as elf binary. Use common rules as much as possible.
32158 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
32160 Correct GPT definition
32162 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
32165 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
32167 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
32169 2009-04-19 David S. Miller <davem@davemloft.net>
32171 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
32172 (grub_rescue_cmd_linux): Rename to...
32173 (grub_cmd_linux): and fix prototype.
32174 (grub_rescue_cmd_initrd): Rename to...
32175 (grub_cmd_initrd): and fix prototype.
32176 (cmd_linux, cmd_initrd): New.
32177 (GRUB_MOD_INIT(linux)): Use grub_register_command().
32178 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
32180 2009-04-17 Pavel Roskin <proski@gnu.org>
32182 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
32184 (grub_ohci_transfer): Likewise.
32186 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
32188 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
32189 return without a value. Fix inconsistent indentation.
32191 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
32192 match struct grub_fs.
32194 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
32195 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
32196 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
32197 * commands/lspci.c (grub_lspci_iter): Likewise.
32199 2009-04-16 Bean <bean123ch@gmail.com>
32201 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
32204 2009-04-15 Pavel Roskin <proski@gnu.org>
32206 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
32207 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
32208 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
32211 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
32213 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
32214 that no multiple data or metadata areas are supported and `Unknown
32217 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
32219 Move loader out of the kernel
32221 * kern/loader.c: moved to ...
32222 * commands/boot.c: ... moved here
32223 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
32224 * commands/boot.c (grub_cmd_boot): moved here. All users updated
32225 * include/grub/kernel.h (grub_machine_fini): export
32226 * include/grub/loader.h (grub_loader_is_loaded): update declaration
32227 (grub_loader_set): likewise
32228 (grub_loader_unset): likewise
32229 (grub_loader_boot): likewise
32230 * conf/common.rmk: new module boot.mod
32231 (pkglib_MODULES): add boot.mod
32232 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
32233 (grub_emu_SOURCES): likewise
32234 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
32235 (grub_emu_SOURCES): likewise
32236 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
32237 (grub_emu_SOURCES): likewise
32238 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
32239 (grub_emu_SOURCES): likewise
32240 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
32241 (grub_emu_SOURCES): likewise
32242 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
32243 (grub_emu_SOURCES): likewise
32244 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
32245 (grub_emu_SOURCES): likewise
32247 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
32249 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
32251 * kern/misc.c (grub_itoa): Removed function
32252 (grub_ltoa): likewise
32253 (grub_vsprintf): use grub_lltoa
32255 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
32259 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
32260 * conf/i386-coreboot.rmk: likewise
32261 * conf/i386-ieee1275.rmk: likewise
32262 * conf/powerpc-ieee1275.rmk: likewise
32264 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
32266 * INSTALL: Add that `./autogen.sh' needs to be run before
32269 2009-04-14 Bean <bean123ch@gmail.com>
32271 * Makefile.in (pkglib_DATA): Add handler.lst.
32272 (handler.lst): New rule.
32274 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
32275 * conf/i386-coreboot.rmk: Likewise.
32276 * conf/i386-ieee1275.rmk: Likewise.
32277 * conf/i386-efi.rmk: Likewise.
32278 * conf/x86_64-efi.rmk: Likewise.
32279 * conf/powerpc-ieee1275.rmk: Likewise.
32280 * conf/sparc64-ieee1275.rmk: Likewise.
32282 * genhandlerlist.sh: New file.
32284 * genmk.rb: Add rules to generate handler.lst.
32286 * include/grub/normal.h (grub_file_getline): New function definition.
32287 (read_handler_list): Likewise.
32288 (free_handler_list): Likewise.
32290 * include/grub/term.h (grub_term_register_input): Add name parameter
32291 for auto generation of handler.lst.
32292 (grub_term_register_output): Likewise.
32294 * normal/handler.c: New file.
32296 * normal/main.c (get_line): Renamed to grub_file_getline.
32297 (read_config_file): Use the newly renamed grub_file_getline.
32298 (read_command_list): Likewise.
32299 (read_fs_list): Likewise.
32300 (grub_normal_execute): Call read_handler_list to parse handler.lst.
32301 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
32303 * term/efi/console.c (grub_console_init): Add name parameter for auto
32304 generation of handler.lst.
32305 * term/gfxterm.c: Likewise.
32306 * term/i386/pc/at_keyboard.c: Likewise.
32307 * term/i386/pc/console.c: Likewise.
32308 * term/i386/pc/serial.c: Likewise.
32309 * term/i386/pc/vesafb.c: Likewise.
32310 * term/i386/pc/vga.c: Likewise.
32311 * term/i386/pc/vga_text.c: Likewise.
32312 * term/ieee1275/ofconsole.c: Likewise.
32313 * term/usb_keyboard.c: Likewise.
32315 2009-04-14 Bean <bean123ch@gmail.com>
32317 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
32318 properly with null character.
32320 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
32322 * configure: Remove.
32323 * config.h.in: Likewise.
32324 * stamp-h.in: Likewise.
32325 * DISTLIST: Likewise.
32326 * conf/common.mk: Likewise.
32327 * conf/i386-coreboot.mk: Likewise.
32328 * conf/i386-efi.mk: Likewise.
32329 * conf/i386-ieee1275.mk: Likewise.
32330 * conf/i386.mk: Likewise.
32331 * conf/i386-pc.mk: Likewise.
32332 * conf/powerpc-ieee1275.mk: Likewise.
32333 * conf/sparc64-ieee1275.mk: Likewise.
32334 * conf/x86_64-efi.mk: Likewise.
32336 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
32339 2009-04-14 John Stanley <jpsinthemix@verizon.net>
32340 David S. Miller <davem@davemloft.net>
32342 * util/hostdisk.c (make_device_name): Fix buffer length
32345 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
32347 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
32348 <sys/param.h> and <sys/sysctl.h>.
32349 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
32350 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
32351 opening the device and reset them afterwards.
32353 2009-04-13 Pavel Roskin <proski@gnu.org>
32355 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
32356 Reported by John Stanley <jpsinthemix@verizon.net>
32358 2009-04-13 Robert Millan <rmh@aybabtu.com>
32360 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
32361 that name for menuentries when appropriate.
32363 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32365 * util/grub.d/10_freebsd.in: Add a missing `fi'.
32367 2009-04-13 Robert Millan <rmh@aybabtu.com>
32369 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
32370 to Linux, simply abort telling the user it's no longer supported.
32372 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32374 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
32375 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
32376 `freebsd_loadenv' only when devices.hints exist.
32378 2009-04-13 Pavel Roskin <proski@gnu.org>
32380 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
32382 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32384 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
32386 (grub_drive): Likewise.
32388 2009-04-13 David S. Miller <davem@davemloft.net>
32390 * kern/sparc64/ieee1275/ieee1275.c: New file.
32391 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
32392 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
32393 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
32394 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
32395 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
32396 grub_ieee1275_alloc_physmem): Declare new exported functions.
32398 * include/grub/sparc64/ieee1275/loader.h: New file.
32399 * include/grub/sparc64/ieee1275/memory.h: Likewise.
32400 * include/grub/sparc64/kernel.h: Likewise.
32401 * loader/sparc64/ieee1275/linux.c: Likewise.
32403 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
32404 (grub_fstest_SOURCES): Likewise.
32406 * util/hostdisk.c (make_device_name): Do not make any assumptions
32407 about the length of drive names.
32409 * kern/dl.c (grub_dl_load_file): Close file immediately when
32410 we are done using it.
32412 2009-04-12 David S. Miller <davem@davemloft.net>
32414 * kern/misc.c (grub_ltoa): Fix cast when handling negative
32415 values. Noticed by Pavel Roskin.
32417 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
32420 * genmk.rb: Add more flexible image type specification, also
32421 pass --strip-unneeded to objcopy.
32422 * conf/i386-pc.rmk: Use *_FORMAT.
32423 * conf/i386-pc.mk: Rebuilt.
32425 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
32426 (OFDISK_HASH_SZ): Define.
32427 (ofdisk_hash): New hash table.
32428 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
32429 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
32430 instead of device phandle which is not unique.
32432 * kern/sparc64/ieee1275/init.c: Delete, replace with...
32433 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
32434 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
32435 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
32436 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
32437 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
32438 GRUB_KERNEL_MACHINE_DATA_END): Define.
32439 (grub_kernel_image_size, grub_total_module_size): Declare.
32441 2009-04-12 Pavel Roskin <proski@gnu.org>
32443 * configure.ac: Change the logic when we check for target tools.
32444 Do it when the target is specified and it's different from the
32445 specified value of the host.
32447 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
32449 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
32450 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
32451 GNU/kFreeBSD. Check if a device is a character device. Use
32452 DIOCGMEDIASIZE to get the size.
32453 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
32454 support for GNU/kFreeBSD.
32455 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
32456 is a character device instead of a block device. Add support for
32457 FreeBSD device names.
32459 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
32460 is a character device instead of a block device.
32462 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
32463 is a character device instead of a block device.
32465 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
32467 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
32468 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
32469 FreeBSD. Check if a device is a character device. Use
32470 DIOCGMEDIASIZE to get the size.
32471 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
32472 support for FreeBSD.
32473 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
32474 is a character device instead of a block device. Add support for
32475 FreeBSD device names.
32477 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
32478 a character device instead of a block device.
32479 (grub_util_check_char_device): New function.
32481 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
32482 a character device instead of a block device.
32484 * include/grub/util/getroot.h (grub_util_check_char_device): New
32487 2009-04-11 David S. Miller <davem@davemloft.net>
32489 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
32491 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
32492 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
32493 function, if present.
32494 (__bswapdi2): Likewise.
32496 * include/grub/sparc64/ieee1275/boot.h: New file.
32497 * boot/sparc64/ieee1275/boot.S: Likewise.
32498 * boot/sparc64/ieee1275/diskboot.S: Likewise.
32500 * kern/misc.c (grub_ltoa): New function.
32501 (grub_vsprintf): Use it to format 'long' integers.
32503 2009-04-10 David S. Miller <davem@davemloft.net>
32505 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
32506 slots are of type grub_ieee1275_cell_t.
32507 (grub_nand_read): Likewise.
32508 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
32509 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
32510 macros are used to compare values in arg/ret block of the call.
32511 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
32512 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
32513 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
32514 grub_ieee1275_instance_to_path, grub_ieee1275_write,
32515 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
32516 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
32517 grub_ieee1275_close, grub_ieee1275_set_property,
32518 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
32519 grub_ieee1275_cell_t.
32520 * kern/ieee1275/openfw.c (grub_map): Likewise.
32521 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
32522 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
32524 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
32525 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
32526 (grub_devalias_iterate): Likewise.
32528 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
32532 * fs/ufs.c (INODE_NBLOCKS): new definition
32533 (struct grub_ufs_dirent): added fields for non-BSD dirents
32534 (grub_ufs_get_file_block): fixed double indirect handling
32535 (grub_ufs_lookup_symlink): use more robust way to determine whether
32537 (grub_ufs_find_file): support for non-BSD dirents
32538 (grub_ufs_dir): support for non-BSD dirents
32540 2009-04-10 Bean <bean123ch@gnail.com>
32542 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
32543 attribute, otherwise the size would be wrong for i386 platform.
32545 * include/grub/pci.h (grub_pci_read_word): New inline function.
32546 (grub_pci_read_byte): Likewise.
32547 (grub_pci_write): Likewise.
32548 (grub_pci_write_word): Likewise.
32549 (grub_pci_write_byte): Likewise.
32551 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
32553 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
32554 (find_framebuf): Scan pci to locate the frame buffer address.
32556 * commands/efi/fixvideo.c: New file.
32558 * commands/efi/loadbios.c: Likewise.
32560 * commands/memrw.c: Likewise.
32562 * util/grub-dumpbios.in: Likewise.
32564 * conf/common.rmk (grub-dumpbios): New utility.
32565 (pkglib_MODULES): New module memrw.mod.
32566 (memrw_mod_SOURCE): New macro.
32567 (memrw_mod_CFLAGS): Likewise.
32568 (memrw_mod_LDFLAGS): Likewise.
32570 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
32572 (loadbios_mod_SOURCE): New macro.
32573 (loadbios_mod_CFLAGS): Likewise.
32574 (loadbios_mod_LDFLAGS): Likewise.
32575 (fixvideo_mod_SOURCE): Likewise.
32576 (fixvideo_mod_CFLAGS): Likewise.
32577 (fixvideo_mod_LDFLAGS): Likewise.
32579 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
32581 (loadbios_mod_SOURCE): New macro.
32582 (loadbios_mod_CFLAGS): Likewise.
32583 (loadbios_mod_LDFLAGS): Likewise.
32584 (fixvideo_mod_SOURCE): Likewise.
32585 (fixvideo_mod_CFLAGS): Likewise.
32586 (fixvideo_mod_LDFLAGS): Likewise.
32588 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
32590 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
32592 2009-04-07 David S. Miller <davem@davemloft.net>
32594 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
32595 support for R_SPARC_OLO10 relocations. Fix compile warning for
32596 R_SPARC_WDISP30 case.
32597 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
32599 2009-04-06 Pavel Roskin <proski@gnu.org>
32601 * include/grub/misc.h (ARRAY_SIZE): New macro.
32602 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
32604 * loader/i386/linux.c (allocate_pages): Use free_pages().
32605 (grub_linux_unload): Don't use free_pages().
32606 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
32607 wrong index. Treat all other modes as text modes.
32608 (grub_cmd_linux): Initialize vid_mode unconditionally to
32609 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
32611 * commands/help.c (print_command_help): Use cmd->prio, not
32612 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
32614 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
32618 * parttool/pcpart.c: new file
32619 * commands/parttool.c: likewise
32620 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
32621 (parttool_mod_SOURCES): new variable
32622 (parttool_mod_CFLAGS): likewise
32623 (parttool_mod_LDFLAGS): likewise
32624 (pcpart_mod_SOURCES): likewise
32625 (pcpart_mod_CFLAGS): likewise
32626 (pcpart_mod_LDFLAGS): likewise
32627 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
32628 and parttool/pcpart.c
32629 * conf/i386-efi.rmk: likewise
32630 * conf/i386-ieee1275.rmk: likewise
32631 * conf/i386-pc.rmk: likewise
32632 * conf/powerpc-ieee1275.rmk: likewise
32633 * conf/sparc64-ieee1275.rmk: likewise
32634 * conf/x86_64-ieee1275.rmk: likewise
32636 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
32638 Support for mtime and further expandability of dir command
32640 * include/grub/lib/datetime.h: moved to ...
32641 * include/grub/datetime.h: ... moved here and added
32642 declaration of grub_unixtime2datetime. All users updated
32643 * include/grub/fs.h: new syntax for dir and mtime functions in
32645 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
32646 and GRUB_FSHELP_FLAGS_MASK
32647 * commands/ls.c (grub_ls_list_files): Write mtime in long format
32648 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
32649 (grub_ext2_mtime): new function
32650 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
32651 (grub_hfsplus_mtime): new function
32652 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
32653 (GRUB_UFS_ATTR_FILE): likewise
32654 (GRUB_UFS_ATTR_LNK): likewise
32655 (struct grub_ufs_sblock): new fields mtime
32656 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
32658 (grub_ufs_dir): mtime support
32659 (grub_ufs_mtime): new function
32660 * fs/affs.c (grub_affs_dir): use new dir syntax
32661 * fs/afs.c (grub_afs_dir): likewise
32662 * fs/cpio.c (grub_cpio_dir): likewise
32663 * fs/fat.c (grub_fat_find_dir): likewise
32664 * fs/hfs.c (grub_hfs_dir): likewise
32665 * fs/iso9660.c (grub_iso9660_dir): likewise
32666 * fs/jfs.c (grub_jfs_dir): likewise
32667 * fs/minix.c (grub_minix_dir): likewise
32668 * fs/ntfs.c (grub_ntfs_dir): likewise
32669 * fs/reiserfs.c (grub_reiserfs_dir): likewise
32670 * fs/sfs.c (grub_sfs_dir): likewise
32671 * fs/xfs.c (grub_xfs_dir): likewise
32672 * util/hostfs.c (grub_hostfs_dir): likewise
32673 * lib/datetime.c: moved to ...
32674 * normal/datetime.c: ... moved here
32675 (grub_unixtime2datetime): new function
32676 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
32677 * normal/completion.c (iterate_dir): use new dir syntax
32678 * normal/misc.c (grub_normal_print_device_info): tell the
32679 last modification time of a volume
32680 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
32681 * conf/common.rmk: added lib/datetime.c to ls.mod
32682 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
32683 (normal_mod_SOURCES): likewise
32684 (datetime_mod_SOURCES): Removed lib/datetime.c
32685 * conf/i386-efi.rmk: likewise
32686 * conf/i386-ieee1275.rmk: likewise
32687 * conf/i386-pc.rmk: likewise
32688 * conf/powerpc-ieee1275.rmk: likewise
32689 * conf/sparc64-ieee1275.rmk: likewise
32690 * conf/x86_64-efi.rmk: likewise
32692 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
32694 Trim trailing spaces in FAT label and support mtools-like labels
32696 * fs/fat.c (grub_fat_iterate_dir): New function based
32697 on grub_fat_find_dir
32698 (grub_fat_find_dir): use grub_fat_iterate_dir
32699 (grub_fat_label): likewise
32701 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
32703 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
32705 remove extraneous kernel_elf_HEADERS
32707 2009-04-04 Bean <bean123ch@gnail.com>
32709 * include/grub/util/misc.h: Add dummy function fsync for mingw.
32711 * util/misc.c: Likewise.
32713 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
32715 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
32716 instead of grub_printf.
32718 2009-04-03 Robert Millan <rmh@aybabtu.com>
32720 * loader/i386/linux.c (grub_linux_setup_video): Fill
32721 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
32722 values from `mode info' structure instead of hardcoded
32725 2009-04-01 Pavel Roskin <proski@gnu.org>
32727 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
32729 * genmk.rb: Likewise.
32730 * configure.ac: Likewise.
32732 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
32734 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
32735 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
32737 2009-04-01 David S. Miller <davem@davemloft.net>
32739 * normal/sparc64/setjmp.S: Fix setjmp implementation.
32740 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
32741 (grub_setjmp): Mark with 'returns_twice' attribute.
32742 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
32743 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
32744 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
32746 2009-04-01 Robert Millan <rmh@aybabtu.com>
32748 Reapply fix from 2008-07-28 which was accidentally reverted; also
32749 perform the same fix to a similar check in same function.
32751 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
32752 with the same number are found, just use issue a warning with
32753 grub_dprintf(), as this error has been reported to be non-fatal.
32755 2009-03-31 Pavel Roskin <proski@gnu.org>
32757 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
32758 for cross-compilation.
32760 2009-03-30 Robert Millan <rmh@aybabtu.com>
32762 Fix i386-ieee1275 build.
32764 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
32765 Remove declaration.
32767 2009-03-30 Pavel Roskin <proski@gnu.org>
32769 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
32770 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
32771 zero-terminated, rely only on the strlen value. Fix comparison
32772 of strings differing in length.
32774 2009-03-30 Robert Millan <rmh@aybabtu.com>
32776 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
32777 checking for abi version. Improve error messages on BIOS to notify
32778 user about `linux16' command.
32780 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
32784 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
32785 in case of collision
32786 * disk/scsi.c (grub_scsi_open): free scsi in case of error
32788 2009-03-29 Robert Millan <rmh@aybabtu.com>
32790 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
32791 set `vid_mode' accordingly.
32792 (grub_linux_boot): Process `vid_mode' and set video mode.
32794 2009-03-29 Robert Millan <rmh@aybabtu.com>
32796 * util/grub.d/10_linux.in (linux_entry): New function.
32797 Factorize generation of Linux boot entries.
32799 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
32801 Make the format of Environment Block plain text. The boot loader
32802 part is not tested well yet.
32804 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
32806 (envblk): Likewise.
32807 (usage): Remove "info" and "clear". Add "unset". Update the
32808 description of "set", as this does not delete variables any
32810 (create_envblk_file): Complete rewrite.
32811 (open_envblk_file): Likewise.
32812 (cmd_info): Removed.
32813 (cmd_list): Likewise.
32814 (cmd_set): Likewise.
32815 (cmd_clear): Likewise.
32816 (list_variables): New function.
32817 (write_envblk): Likewise.
32818 (set_variables): Likewise.
32819 (unset_variables): Likewise.
32820 (main): Complete rewrite.
32822 * commands/loadenv.c (buffer): Removed.
32823 (envblk): Likewise.
32824 (open_envblk_file): New function.
32825 (read_envblk_file): Complete rewrite.
32826 (grub_cmd_load_env): Likewise.
32827 (grub_cmd_list_env): Likewise.
32828 (struct blocklist): New struct.
32829 (free_blocklists): New function.
32830 (check_blocklists): Likewise.
32831 (write_blocklists): Likewise.
32832 (grub_cmd_save_env): Complete rewrite.
32834 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
32835 a plain text signature.
32836 (GRUB_ENVBLK_MAXLEN): Removed.
32837 (struct grub_envblk): Complete rewrite.
32838 (grub_envblk_find): Removed.
32839 (grub_envblk_insert): Likewise.
32840 (grub_envblk_open): New prototype.
32841 (grub_envblk_set): Likewise.
32842 (grub_envblk_delete): Put const to VALUE.
32843 (grub_envblk_iterate): Put const to NAME and VALUE.
32844 (grub_envblk_close): New prototype.
32845 (grub_envblk_buffer): New inline function.
32846 (grub_envblk_size): Likewise.
32848 * lib/envblk.c: Include grub/mm.h.
32849 (grub_env_find): Removed.
32850 (grub_envblk_open): New function.
32851 (grub_envblk_close): Likewise.
32852 (escaped_value_len): Likewise.
32853 (find_next_line): Likewise.
32854 (grub_envblk_insert): Removed.
32855 (grub_envblk_set): New function.
32856 (grub_envblk_delete): Complete rewrite.
32857 (grub_envblk_iterate): Likewise.
32859 2009-03-28 Robert Millan <rmh@aybabtu.com>
32861 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
32862 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
32863 variables. Use 16-bit loader.
32864 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
32866 * kern/i386/loader.S (grub_linux_boot): Rename to ...
32867 (grub_linux16_boot): ... this. Update all users.
32868 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
32869 (grub_linux_boot): ... this. Update all users.
32871 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
32872 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
32873 commands to `linux16' and `initrd16'.
32874 (GRUB_MOD_FINI(linux)): Rename to ...
32875 (GRUB_MOD_FINI(linux16)): ... this.
32877 2009-03-24 Pavel Roskin <proski@gnu.org>
32879 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
32880 not just for compilation.
32882 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
32884 Move multiboot helper out of kernel
32886 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
32887 `loader/i386/multiboot_helper.S'.
32888 * conf/i386-coreboot.rmk: Likewise
32889 * conf/i386-ieee1275.rmk: Likewise
32891 * kern/i386/loader.S: Move multiboot helpers from here...
32892 * loader/i386/multiboot_helper.S: ...moved here
32893 * include/grub/i386/loader.h: Move declarations of multiboot
32894 helpers from here...
32895 * include/grub/i386/multiboot.h: ...moved here
32896 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
32898 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
32900 * kern/env.c (grub_env_context_open): Added an argument to specify
32901 whether a new context inherits exported variables from current
32902 one. This is useful when making a sandbox to interpret a config
32904 All callers updated.
32906 * include/grub/env.h (grub_env_context_open): Updated the prototype.
32908 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
32910 * kern/env.c (grub_env_context_close): Fix memory leaks.
32912 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
32914 * normal/main.c (grub_normal_execute): Added an argument
32915 BATCH to specify if an interactive interface should be provided
32916 after reading a config file.
32917 All callers updated.
32918 (read_command_list): Prevent being executed twice.
32919 (read_fs_list): Likewise.
32921 * include/grub/normal.h (grub_normal_execute): Updated the
32924 2009-03-22 Pavel Roskin <proski@gno.org>
32926 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
32928 * kern/i386/pc/startup.S: Likewise.
32929 * kern/i386/efi/startup.S: Likewise.
32930 * kern/i386/ieee1275/startup.S: Likewise.
32931 * kern/i386/coreboot/startup.S: Likewise.
32932 * kern/x86_64/efi/startup.S: Likewise.
32934 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
32935 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
32936 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
32938 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
32940 Bugfixes in multiboot for bugs uncovered by solaris kernel.
32942 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
32944 Use vaddr of correct segment for entry_point.
32946 2009-03-21 Bean <bean123ch@gmail.com>
32948 * commands/blocklist.c: Add include file <grub/command.h>, remove
32949 <grub/normal.h> and <grub/arg.h>.
32950 (grub_cmd_blocklist): Use the new command interface.
32951 (GRUB_MOD_INIT): Likewise.
32952 (GRUB_MOD_FINI): Likewise.
32953 * commands/boot.c: Likewise.
32954 * commands/cat.c: Likewise.
32955 * commands/cmp.c: Likewise.
32956 * commands/configfile.c: Likewise.
32957 * commands/crc.c: Likewise.
32958 * commands/echo.c: Likewise.
32959 * commands/halt.c: Likewise.
32960 * commands/handler.c: Likewise.
32961 * commands/hdparm.c: Likewise.
32962 * commands/help.c: Likewise.
32963 * commands/hexdump.c: Likewise.
32964 * commands/loadenv.c: Likewise.
32965 * commands/ls.c: Likewise.
32966 * commands/lsmmap.c: Likewise.
32967 * commands/lspci.c: Likewise.
32968 * commands/loadenv.c: Likewise.
32969 * commands/read.c: Likewise.
32970 * commands/reboot.c: Likewise.
32971 * commands/search.c: Likewise.
32972 * commands/sleep.c: Likewise.
32973 * commands/test.c: Likewise.
32974 * commands/usbtest.c: Likewise.
32975 * commands/videotest.c: Likewise.
32976 * commands/i386/cpuid.c: Likewise.
32977 * commands/i386/pc/halt.c: Likewise.
32978 * commands/i386/pc/play.c: Likewise.
32979 * commands/i386/pc/pxecmd.c: Likewise.
32980 * commands/i386/pc/vbeinfo.c: Likewise.
32981 * commands/i386/pc/vbetest.c: Likewise.
32982 * commands/ieee1275/suspend.c: Likewise.
32983 * disk/loopback.c: Likewise.
32984 * font/font_cmd.c: Likewise.
32985 * hello/hello.c: Likewise.
32986 * loader/efi/appleloader.c: Likewise.
32987 * loader/efi/chainloader.c: Likewise.
32988 * loader/i386/bsd.c: Likewise.
32989 * loader/i386/efi/linux.c: Likewise.
32990 * loader/i386/ieee1275/linux.c: Likewise.
32991 * loader/i386/linux.c: Likewise.
32992 * loader/i386/pc/chainloader.c: Likewise.
32993 * loader/i386/pc/linux.c: Likewise.
32994 * loader/powerpc/ieee1275/linux.c: Likewise.
32995 * loader/multiboot_loader.c: Likewise.
32996 * term/gfxterm.c: Likewise.
32997 * term/i386/pc/serial.c: Likewise.
32998 * term/terminfo.c: Likewise.
33000 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
33001 * term/i386/pc/vga.c: Likewise.
33002 * video/readers/jpeg.c: Likewise.
33003 * video/readers/png.c: Likewise.
33004 * video/readers/tga.c: Likewise.
33006 * util/grub-fstest (cmd_loopback): Removed.
33007 (cmd_blocklist): Likewise.
33008 (cmd_ls): Likewise.
33009 (grub_register_command): Likewise.
33010 (grub_unregister_command): Likewise.
33011 (execute_command): Use grub_command_find to locate command and execute
33014 * include/grub/efi/chainloader.h: Removed.
33015 * loader/efi/chainloader_normal.c: Likewise.
33016 * loader/i386/bsd_normal.c: Likewise.
33017 * loader/i386/pc/chainloader_normal.c: Likewise.
33018 * loader/i386/pc/multiboot_normal.c: Likewise.
33019 * loader/linux_normal.c: Likewise.
33020 * loader/multiboot_loader_normal.c: Likewise.
33021 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
33023 * gencmdlist.sh: Scan new registration command grub_register_extcmd
33024 and grub_register_command_p1.
33026 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
33027 kern/command.c, lib/arg.c and commands/extcmd.c.
33028 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
33029 (minicmd_mod_SOURCES): New variable.
33030 (minicmd_mod_CFLAGS): Likewise.
33031 (minicmd_mod_LDFLAGS): Likewise.
33032 (extcmd_mod_SOURCES): Likewise.
33033 (extcmd_mod_CFLAGS): Likewise.
33034 (extcmd_mod_LDFLAGS): Likewise.
33035 (boot_mod_SOURCES): Removed.
33036 (boot_mod_CFLAGS): Likewise.
33037 (boot_mod_LDFLAGS): Likewise.
33039 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
33041 (kernel_img_HEADERS): Add command.h.
33042 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
33043 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
33045 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
33046 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
33047 remove the corresponding normal mode command.
33048 (normal_mod_SOURCES): Remove normal/arg.c.
33049 * conf/i386-coreboot.rmk: Likewise.
33050 * conf/i386-efi.rmk: Likewise.
33051 * conf/i386-ieee1275.rmk: Likewise.
33052 * conf/powerpc-ieee1275.rmk: Likewise.
33053 * conf/x86_64-efi.rmk: Likewise.
33055 * include/grub/arg.h: Move from here ...
33056 * include/grub/lib/arg.h: ... to here.
33058 * normal/arg.c: Move from here ...
33059 * lib/arg.c: ... to here.
33061 * commands/extcmd.c: New file.
33062 * commands/minicmd.c: Likewise.
33063 * include/grub/command.h: Likewise.
33064 * include/grub/extcmd.h: Likewise.
33065 * kern/command.c: Likewise.
33066 * kern/corecmd.c: Likewise.
33068 * kern/list.c (grub_list_iterate): Return int instead of void.
33069 (grub_list_insert): New function.
33070 (grub_prio_list_insert): Likewise.
33072 * kern/rescue.c (grub_rescue_command): Removed.
33073 (grub_rescue_command_list): Likewise.
33074 (grub_rescue_register_command): Likewise.
33075 (grub_rescue_unregister_command): Likewise.
33076 (grub_rescue_cmd_boot): Move to minicmd.c
33077 (grub_rescue_cmd_help): Likewise.
33078 (grub_rescue_cmd_info): Likewise.
33079 (grub_rescue_cmd_boot): Likewise.
33080 (grub_rescue_cmd_testload): Likewise.
33081 (grub_rescue_cmd_dump): Likewise.
33082 (grub_rescue_cmd_rmmod): Likewise.
33083 (grub_rescue_cmd_lsmod): Likewise.
33084 (grub_rescue_cmd_exit): Likewise.
33085 (grub_rescue_print_devices): Moved to corecmd.c.
33086 (grub_rescue_print_files): Likewise.
33087 (grub_rescue_cmd_ls): Likewise.
33088 (grub_rescue_cmd_insmod): Likewise.
33089 (grub_rescue_cmd_set): Likewise.
33090 (grub_rescue_cmd_unset): Likewise.
33091 (attempt_normal_mode): Use grub_command_find to get normal module.
33092 (grub_enter_rescue_mode): Use grub_register_core_commands to register
33093 commands, remove grub_rescue_register_command calls.
33095 * normal/command.c (grub_register_command): Removed.
33096 (grub_unregister_command): Likewise.
33097 (grub_command_find): Likewise.
33098 (grub_iterate_commands): Likewise.
33099 (rescue_command): Likewise.
33100 (export_command): Moved to corecmd.c.
33101 (set_command): Removed.
33102 (unset_command): Likewise.
33103 (insmod_command): Likewise.
33104 (rmmod_command): Likewise.
33105 (lsmod_command): Likewise.
33106 (grub_command_init): Likewise.
33108 * normal/completion.c (iterate_command): Use cmd->prio to check for
33110 (complete_arguments): Use grub_extcmd_t structure to find options.
33111 (grub_normal_do_completion): Change function grub_iterate_commands to
33112 grub_command_iterate.
33114 * normal/execute.c (grub_script_execute_cmd): No need to parse
33117 * normal/main.c (grub_dyncmd_dispatcher): New function.
33118 (read_command_list): Register unload commands as dyncmd.
33119 (grub_cmd_normal): Use new command interface, register rescue,
33120 unregister normal at entry, register normal, unregister rescue at exit.
33122 * include/grub/list.h (grub_list_test_t): New type.
33123 (grub_list_iterate): Return int instead of void.
33124 (grub_list_insert): New function.
33125 (GRUB_AS_NAMED_LIST_P): New macro.
33126 (GRUB_AS_PRIO_LIST): Likewise.
33127 (GRUB_AS_PRIO_LIST_P): Likewise.
33128 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
33129 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
33130 (grub_prio_list): New structure.
33131 (grub_prio_list_insert): New function.
33132 (grub_prio_list_remove): New inline function.
33134 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
33135 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
33136 (GRUB_COMMAND_FLAG_MENU): Likewise.
33137 (GRUB_COMMAND_FLAG_BOTH): Likewise.
33138 (GRUB_COMMAND_FLAG_TITLE): Likewise.
33139 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
33140 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
33141 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
33142 (grub_command): Likewise.
33143 (grub_register_command): Likewise.
33144 (grub_command_find): Likewise.
33145 (grub_iterate_commands): Likewise.
33146 (grub_command_init): Likewise.
33147 (grub_arg_parse): Likewise.
33148 (grub_arg_show_help): Likewise.
33150 * include/grub/rescue.h (grub_rescue_register_command): Removed.
33151 (grub_rescue_unregister_command): Likewise.
33153 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
33154 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
33155 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
33157 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
33158 grub_rescue_cmd_initrd.
33159 * include/grub/i386/loader.h: Likewise.
33160 * include/grub/x86_64/loader.h: Likewise.
33162 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
33164 2009-03-21 Bean <bean123ch@gmail.com>
33166 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
33167 instead of stat in mingw environment.
33169 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
33171 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
33173 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
33176 2009-03-21 Bean <bean123ch@gmail.com>
33178 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
33179 out of range error.
33181 2009-03-18 Michel Dänzer <michel@daenzer.net>
33183 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
33184 checking inode flags for EXT4_EXTENTS_FLAG.
33186 2009-03-18 Robert Millan <rmh@aybabtu.com>
33188 * loader/i386/linux.c: Include `<grub/video.h>' and
33189 `<grub/i386/pc/vbe.h>'..
33190 (grub_linux_setup_video): New function. Loosely based on the EFI one.
33191 (grub_linux32_boot): Attempt to configure video settings with
33192 grub_linux_setup_video().
33193 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
33194 to avoid grub_console_fini() which would step out of graphical mode
33197 2009-03-14 Robert Millan <rmh@aybabtu.com>
33199 Fix build on powerpc.
33200 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
33202 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
33204 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
33205 background image command.
33207 2009-03-12 Colin D Bennett <colin@gibibit.com>
33209 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
33210 (grub_gfxterm_putchar): Extract pairs of identical calls to
33211 draw_cursor out of conditional blocks.
33213 2009-03-11 Pavel Roskin <proski@gnu.org>
33215 * fs/hfs.c (grub_hfs_strncasecmp): New function.
33216 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
33218 2009-03-11 Robert Millan <rmh@aybabtu.com>
33220 * loader/i386/multiboot_elfxx.c
33221 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
33223 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
33225 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
33228 2009-03-11 Robert Millan <rmh@aybabtu.com>
33230 * loader/i386/multiboot.c (code_size): New variable.
33231 (grub_multiboot): Define offsets by adding to `code_size' rather
33232 than subtracting from `grub_multiboot_payload_size'. Provide
33233 4-byte alignment to MBI and others by increasing
33234 `boot_loader_name_length' appropriately.
33236 * loader/i386/multiboot_elfxx.c
33237 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
33239 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
33241 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
33244 2009-03-08 Robert Millan <rmh@aybabtu.com>
33246 Make loader/i386/linux.c usable on i386-pc again.
33248 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
33250 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
33253 2009-03-07 Bean <bean123ch@gmail.com>
33255 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
33258 2009-03-06 Robert Millan <rmh@aybabtu.com>
33260 Fix display issue on terminals with screen size other than 80x25
33261 (e.g. gfxterm with resolution higher than 640x480).
33263 * normal/main.c (grub_normal_init_page): Display title text in a
33264 position relative to the center of the terminal instead of relying
33265 on a hardcoded offset.
33267 2009-03-04 Robert Millan <rmh@aybabtu.com>
33269 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
33272 * Makefile.in (host_kernel): New variable.
33273 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
33274 scripts instead of just the windows one.
33275 * configure.ac: Initialize and AC_SUBST `host_kernel'.
33277 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33279 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
33281 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33282 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33283 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33284 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33285 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33286 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33288 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33290 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
33291 or if there's no space for the disk label and print the partition number on a
33294 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33296 * util/misc.c: Include <time.h>.
33297 (grub_millisleep): New function.
33299 2009-03-04 Bean <bean123ch@gmail.com>
33301 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
33302 another option -mno-red-zone.
33304 * commands/handler.c: Change module description.
33306 * kern/handler.c: Add missing space at the end of description line.
33308 * kern/list.c: Likewise.
33310 2009-03-03 Robert Millan <rmh@aybabtu.com>
33312 Move more components to the relocation area, and fix mbi pointer
33313 handling to use the destination rather than the origin (thanks to
33314 Vladimir Serbinenko for spotting).
33316 * loader/i386/multiboot.c (mbi_dest): New variable.
33317 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
33318 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
33321 2009-03-01 Bean <bean123ch@gmail.com>
33323 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
33324 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
33325 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
33326 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
33328 * loader/i386/efi/linux.c (acpi_guid): New variable.
33329 (acpi_guid): Likewise.
33330 (EBDA_SEG_ADDR): New constant.
33331 (LOW_MEM_ADDR): Likewise.
33332 (FAKE_EBDA_SEG): Likewise.
33333 (fake_bios_data): New function.
33334 (grub_linux_boot): Call fake_bios_data.
33336 2009-03-01 Bean <bean123ch@gmail.com>
33338 * commands/terminal.c: Removed.
33340 * commands/handler.c: New file.
33342 * include/grub/list.h: Likewise.
33344 * include/grub/handler.h: Likewise.
33346 * kern/list.c: Likewise.
33348 * kern/handler.c: Likewise.
33350 * kern/term.h: Include header file <grub/handler.h>.
33351 (grub_term_input): Move next field to the beginning.
33352 (grub_term_output): Likewise.
33353 (grub_term_input_class): New variable.
33354 (grub_term_output_class): Likewise.
33355 (grub_term_register_input): Changed to inline function.
33356 (grub_term_register_output): Likewise.
33357 (grub_term_unregister_input): Likewise.
33358 (grub_term_unregister_output): Likewise.
33359 (grub_term_set_current_input): Likewise.
33360 (grub_term_set_current_output): Likewise.
33361 (grub_term_get_current_input): Likewise.
33362 (grub_term_get_current_output): Likewise.
33363 (grub_term_iterate_input): Removed.
33364 (grub_term_iterate_output): Likewise.
33366 * kern/term.c (grub_term_list_input): Removed.
33367 (grub_term_list_output): Likewise.
33368 (grub_term_input_class): New variable.
33369 (grub_term_output_class): Likewise.
33370 (grub_cur_term_input): Change variable as macro.
33371 (grub_cur_term_output): Likewise.
33372 (grub_term_register_input): Removed.
33373 (grub_term_register_output): Likewise.
33374 (grub_term_unregister_input): Likewise.
33375 (grub_term_unregister_output): Likewise.
33376 (grub_term_set_current_input): Likewise.
33377 (grub_term_set_current_output): Likewise.
33378 (grub_term_iterate_input): Likewise.
33379 (grub_term_iterate_output): Likewise.
33380 (grub_term_get_current_input): Likewise.
33381 (grub_term_get_current_output): Likewise.
33383 * util/grub-editenv.c: Include header file <grub/handler.h>.
33384 (grub_term_get_current_input): Removed.
33385 (grub_term_get_current_output): Likewise.
33386 (grub_term_input_class): New variable.
33387 (grub_term_output_class): Likewise.
33389 * util/grub-fstest.c (grub_term_get_current_input): Removed.
33390 (grub_term_get_current_output): Likewise.
33391 (grub_term_input_class): New variable.
33392 (grub_term_output_class): Likewise.
33394 * util/grub-probe.c (grub_term_get_current_input): Removed.
33395 (grub_term_get_current_output): Likewise.
33396 (grub_term_input_class): New variable.
33397 (grub_term_output_class): Likewise.
33399 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
33400 (grub_term_get_current_output): Likewise.
33401 (grub_term_input_class): New variable.
33402 (grub_term_output_class): Likewise.
33404 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
33405 (terminal_mod_SOURCES): Likewise.
33406 (terminal_mod_CFLAGS): Likewise.
33407 (terminal_mod_LDFLAGS): Likewise.
33409 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
33411 (kernel_img_SOURCES): Add list.c and handler.c.
33412 (kernel_img_HEADERS): Add list.h and handler.h.
33414 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
33416 (kernel_mod_SOURCES): Add list.c and handler.c.
33417 (kernel_mod_HEADERS): Add list.h and handler.h.
33419 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
33421 (kernel_elf_SOURCES): Add list.c and handler.c.
33422 (kernel_elf_HEADERS): Add list.h and handler.h.
33424 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
33426 (kernel_elf_SOURCES): Add list.c and handler.c.
33427 (kernel_elf_HEADERS): Add list.h and handler.h.
33429 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
33431 (kernel_mod_SOURCES): Add list.c and handler.c.
33432 (kernel_mod_HEADERS): Add list.h and handler.h.
33434 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
33436 (kernel_elf_SOURCES): Add list.c and handler.c.
33437 (kernel_elf_HEADERS): Add list.h and handler.h.
33439 2009-02-27 Robert Millan <rmh@aybabtu.com>
33441 Factorize elf32 / elf64 code in Multiboot loader. This will
33442 prevent it from getting out of sync again.
33444 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
33445 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
33446 grub_multiboot_load_elf64): Move from here ...
33447 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
33448 grub_multiboot_load_elf): ... to here (new file).
33450 2009-02-27 Robert Millan <rmh@aybabtu.com>
33452 * util/grub.d/10_linux.in: Rename "single-user mode" to
33455 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
33457 Don't leak in SCSI code.
33458 * disk/scsi.c (grub_scsi_close): free `scsi'.
33460 2009-02-27 Robert Millan <rmh@aybabtu.com>
33462 * loader/i386/pc/multiboot.c: Move from here ...
33463 * loader/i386/multiboot.c: ... to here. Update all users.
33465 2009-02-27 Robert Millan <rmh@aybabtu.com>
33467 Patch from Alexandre Bique <bique.alexandre@gmail.com>
33468 * util/i386/pc/grub-setup.c (setup): Fix directory path.
33470 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
33472 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
33475 2009-02-27 Robert Millan <rmh@aybabtu.com>
33477 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
33478 `0x' qualifier as 0 when base is specified as parameter).
33480 2009-02-24 Bean <bean123ch@gmail.com>
33482 * configure.ac: Check for -mcmodel=large in x86_64 target.
33484 * include/grub/efi/api.h (efi_call_10): New macro.
33485 (efi_wrap_10): New function.
33487 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
33488 (GRUB_PE32_REL_BASED_HIGH): Likewise.
33489 (GRUB_PE32_REL_BASED_LOW): Likewise.
33490 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
33491 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
33492 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
33493 (GRUB_PE32_REL_BASED_SECTION): Likewise.
33494 (GRUB_PE32_REL_BASED_REL): Likewise.
33495 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
33496 (GRUB_PE32_REL_BASED_DIR64): Likewise.
33497 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
33499 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
33502 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
33503 (efi_wrap_10): New function.
33505 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
33507 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
33508 MB/MBP model (NV chipset).
33509 (devdata_devs): Add devpath_5 to the list.
33511 * load/i386/efi/linux.c (video_base): Remove variable.
33512 (RGB_MASK): New macro.
33513 (RGB_MAGIC): Likewise.
33514 (LINE_MIN): Likewise.
33515 (LINE_MAX): Likewise.
33516 (FBTEST_STEP): Likewise.
33517 (FBTEST_COUNT): Likewise.
33518 (fb_list): New variable.
33519 (grub_find_video_card): Remove function.
33520 (find_framebuf): New function.
33521 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
33524 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
33525 problem for x86_64.
33527 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
33529 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
33531 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
33534 2009-02-22 Robert Millan <rmh@aybabtu.com>
33536 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
33537 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
33538 in our relocation, instead of using it directly from heap. Also
33539 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
33541 2009-02-21 Robert Millan <rmh@aybabtu.com>
33543 Implement USB keyboard support (based on patch by Marco Gerards)
33545 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
33546 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
33547 (usb_keyboard_mod_LDFLAGS): New variables.
33549 * term/usb_keyboard.c: New file.
33551 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
33553 Corrected wrong declaration
33555 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
33557 2009-02-14 Christian Franke <franke@computer.org>
33559 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
33560 (grub_lspci_iter): Print class code and programming interface byte.
33562 2009-02-14 Christian Franke <franke@computer.org>
33564 * gendistlist.sh: Ignore `.svn' directories.
33566 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
33568 * fs/fat.c: Add 2009 to Copyright line.
33570 2009-02-14 Christian Franke <franke@computer.org>
33572 * commands/hdparm.c: New file. Provides `hdparm' command
33573 which sends ATA commands via grub_disk_ata_pass_through ().
33575 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
33577 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
33578 and <grub/cpu/io.h> to include/grub/ata.h.
33579 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
33580 (GRUB_CDROM_SECTOR_SIZE): Remove.
33581 (GRUB_ATA_*): Move to include/grub/ata.h.
33582 (GRUB_ATAPI_*): Likewise.
33583 (enum grub_ata_commands): Likewise.
33584 (enum grub_ata_timeout_milliseconds): Likewise.
33585 (struct grub_ata_device): Likewise.
33586 (grub_ata_regset): Likewise.
33587 (grub_ata_regget): Likewise.
33588 (grub_ata_regset2): Likewise.
33589 (grub_ata_regget2): Likewise.
33590 (grub_ata_check_ready): Likewise.
33591 (grub_ata_wait_not_busy): Remove static, exported in
33592 include/grub/ata.h.
33593 (grub_ata_wait_drq): Likewise.
33594 (grub_ata_pio_read): Likewise.
33596 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
33597 function for hdparm.mod.
33599 * include/grub/ata.h: New file, contains declarations from
33601 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
33603 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
33604 (grub_disk_ata_pass_through): New exported variable.
33606 * kern/disk.c (grub_disk_ata_pass_through): New variable.
33608 2009-02-13 Colin D Bennett <colin@gibibit.com>
33610 Support multiple fallback entries, and provide an API to support
33611 executing default+fallback menu entries. Renamed the `terminal' menu
33614 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
33615 variable declaration.
33616 (grub_menu_execute_callback): New structure declaration.
33617 (grub_menu_execute_callback_t): New typedef.
33618 (grub_menu_execute_with_fallback): New function declaration.
33619 (grub_menu_get_entry): Likewise.
33620 (grub_menu_get_timeout): Likewise.
33621 (grub_menu_set_timeout): Likewise.
33623 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
33625 * normal/menu.c (grub_wait_after_message): Moved to
33626 `normal/menu_text.c'.
33627 (draw_border): Likewise.
33628 (print_message): Likewise.
33629 (print_entry): Likewise.
33630 (print_entries): Likewise.
33631 (grub_menu_init_page): Likewise.
33632 (get_entry_number): Likewise.
33633 (print_timeout): Likewise.
33634 (run_menu): Likewise.
33635 (grub_menu_execute_entry): Likewise.
33636 (show_text_menu): Likewise.
33637 (get_and_remove_first_entry_number): New function.
33638 (grub_menu_execute_with_fallback): Likewise.
33639 (get_entry): Renamed to ...
33640 (grub_menu_get_entry): .. this and made it global.
33641 (get_timeout): Renamed to ...
33642 (grub_menu_get_timeout): ... this and made it global.
33643 (set_timeout): Renamed to ...
33644 (grub_menu_set_timeout): ... this and made it global.
33645 (grub_normal_terminal_menu_viewer): Renamed to ...
33646 (grub_normal_text_menu_viewer): ... this.
33648 * normal/menu_text.c: New file. Extracted text-menu-specific code
33649 from normal/menu.c.
33651 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
33652 (normal_mod_SOURCES): Likewise.
33654 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33655 (normal_mod_SOURCES): Likewise.
33657 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33658 (normal_mod_SOURCES): Likewise.
33660 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
33661 (normal_mod_SOURCES): Likewise.
33663 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33664 (normal_mod_SOURCES): Likewise.
33666 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33667 (normal_mod_SOURCES): Likewise.
33669 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33670 (normal_mod_SOURCES): Likewise.
33672 2009-02-11 Robert Millan <rmh@aybabtu.com>
33674 * util/grub.d/00_header.in: Update old reference to `font' command.
33676 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
33678 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
33680 Based on patch from Javier Martín.
33682 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
33684 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
33685 to avoid false positives with FAT.
33686 (grub_fstest_SOURCES): Likewise.
33687 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33688 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33689 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33690 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33691 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33692 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33694 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
33696 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
33697 bpb.version_specific.fat12_or_fat16.fstype and
33698 bpb.version_specific.fat32.fstype.
33700 2009-02-08 Robert Millan <rmh@aybabtu.com>
33702 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
33704 2009-02-08 Robert Millan <rmh@aybabtu.com>
33706 * Makefile.in (host_os, host_cpu): New variables.
33707 (target_os): Remove. Update all users.
33709 2009-02-08 Marco Gerards <marco@gnu.org>
33711 * Makefile.in (enable_grub_emu_usb): New variable.
33712 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
33713 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
33714 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
33715 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
33716 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
33717 `usbtest.mod' and `usbms.mod'.
33718 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
33719 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
33720 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
33721 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
33722 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
33725 * disk/usbms.c: New file.
33727 * include/grub/usb.h: Likewise.
33729 * include/grub/usbtrans.h: Likewise.
33731 * include/grub/usbdesc.h: Likewise.
33733 * bus/usb/usbtrans.c: Likewise.
33735 * bus/usb/ohci.c: Likewise.
33737 * bus/usb/uhci.c: Likewise.
33739 * bus/usb/usbhub.c: Likewise.
33741 * bus/usb/usb.c: Likewise.
33743 * commands/usbtest.c: Likewise.
33745 * util/usb.c: Likewise.
33747 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
33749 * configure.ac: Test for libusb presence.
33751 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
33753 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
33755 * kern/mm.c: Add more comments.
33757 2009-02-08 Robert Millan <rmh@aybabtu.com>
33759 Patch from Javier Martín.
33760 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
33761 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
33763 2009-02-08 Robert Millan <rmh@aybabtu.com>
33765 * fs/cpio.c: Split tar functionality to ...
33766 * fs/tar.c: ... here (new file). Update all users.
33768 2009-02-07 Robert Millan <rmh@aybabtu.com>
33770 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
33771 backward-incompatible features.
33773 Based on patch from Javier Martín, with some adjustments.
33775 2009-02-07 Michael Scherer <misc@mandriva.org>
33777 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
33779 2009-02-07 Robert Millan <rmh@aybabtu.com>
33781 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
33782 position of `disk/lvm.c' to ensure grub_init_all() always picks it
33783 after the RAID stuff.
33785 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
33787 Fixes problem when running vbetest command as reported by
33788 Vladimir Serbinenko <phcoder@gmail.com>.
33790 * (grub_vbe_set_video_mode): Fixed problem with text modes.
33792 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
33794 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
33795 /dev/md/NpN style mdraid devices.
33797 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
33799 * util/unifont2pff.rb: Remove.
33801 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
33803 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
33806 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
33808 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
33809 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33810 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33811 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33812 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33813 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33814 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33816 2009-02-02 Christian Franke <franke@computer.org>
33818 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
33820 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
33822 * INSTALL: Note that we now require at least autoconf 2.59 and
33823 that LZO is optional.
33825 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
33827 Base on patch on bug #24154 created by Tomas Tintera
33828 <trosos@seznam.cz>.
33830 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
33832 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
33834 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
33835 <bero@arklinux.org>.
33837 * normal/parser.y (script_init): Add missing semicolon.
33839 2009-01-31 Colin D Bennett <colin@gibibit.com>
33841 * normal/main.c: Add include to grub/menu_viewer.h.
33842 (free_menu_entry_classes): Added.
33843 (grub_normal_menu_addentry): Added class property handling.
33844 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
33845 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
33847 * normal/menu_viewer.c: New file.
33849 * normal/menu.c (run_menu_entry): Renamed to ...
33850 (grub_menu_execute_entry): ... this and made it as global.
33851 (grub_menu_run): Renamed to ...
33852 (show_text_menu): ... this and made it local.
33853 (show_text_menu): Adapt to new function names.
33854 (grub_normal_terminal_menu_viewer): New global variable.
33856 * include/grub/menu.h: New file.
33858 * include/grub/menu_viewer.h: New file.
33860 * include/grub/normal.h: Added include to grub/menu.h.
33861 (grub_menu_entry): Moved to include/grub/menu.h.
33862 (grub_menu_entry_t): Likewise.
33863 (grub_menu): Likewise.
33864 (grub_menu_t): Likewise.
33865 (grub_normal_terminal_menu_viewer): Added.
33866 (grub_menu_execute_entry): Likewise.
33867 (grub_menu_run): Removed.
33869 * DISTLIST: Added include/grub/menu.h.
33870 Added include/grub/menu_viewer.h.
33871 Added normal/menu_viewer.c.
33873 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
33875 * normal/execute.c (grub_script_execute_menuentry): Changed to use
33876 arglist for menutitle arguments.
33878 * normal/main.c (grub_normal_menu_addentry): Likewise.
33880 * normal/parser.y (menuentry): Likewise.
33882 * normal/script.c (grub_script_create_cmdmenu): Likewise.
33884 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
33885 (grub_script_create_cmdmenu): Likewise.
33887 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
33889 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
33892 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
33894 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
33896 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
33898 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
33900 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
33902 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
33904 2009-01-30 Christian Franke <franke@computer.org>
33906 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
33907 in option help text.
33909 2009-01-27 Pavel Roskin <proski@gnu.org>
33911 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
33913 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
33915 * commands/lsmmap.c: Add include to grub/machine/memory.h.
33917 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
33919 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
33920 unregister function.
33922 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
33924 * disk/scsi.c (grub_scsi_read): Fix sign problem.
33926 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
33928 * util/grub-mkfont.c (usage): Fix typo.
33930 * util/elf/grub-mkimage.c (load_modules): Fix warning.
33932 2009-01-26 Daniel Mierswa <impulze@impulze.org>
33934 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
33936 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
33938 * kern/misc.c (grub_strcasecmp): New function.
33939 (grub_strcasecmp): Use grub_size_t instead of int for length.
33941 * include/grub/misc.h: Update function prototypes.
33943 2009-01-26 Robert Millan <rmh@aybabtu.com>
33945 * configure.ac: Fix cross-compilation check.
33947 2009-01-22 Christian Franke <franke@computer.org>
33949 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
33950 (precision) digit string. Allow `.format2' without `format1' (width).
33951 Limit input chars for `%s' output to `format2' if specified. This is
33952 compatible with standard printf ().
33954 2009-01-22 Christian Franke <franke@computer.org>
33956 * disk/ata.c (grub_ata_wait_status): Replace by ...
33957 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
33958 other status bits may be invalid while BSY is asserted.
33959 (grub_ata_check_ready): New function.
33960 (grub_ata_cmd): Removed.
33961 (grub_ata_wait_drq): New function.
33962 (grub_ata_strncpy): Remove inline.
33963 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
33964 and error check now done by grub_ata_wait_drq ().
33965 (grub_ata_pio_write): Likewise.
33966 (grub_atapi_identify): Set DEV before check for !BSY. Use
33967 grub_ata_wait_drq () to wait for data.
33968 (grub_ata_device_initialize): Add status register check to
33969 detect missing SATA slave devices. Add debug messages.
33970 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
33971 (grub_atapi_packet): Set DEV before check for !BSY. Replace
33972 transfer loop by grub_ata_pio_write ().
33973 (grub_ata_identify): Set DEV before check for !BSY. Use
33974 grub_ata_wait_drq () to wait for data.
33975 (grub_ata_setaddress): Set DEV before check for !BSY.
33976 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
33977 read/write in one loop. Fix invalid command on write. Fix incomplete
33978 command on (size % batch) == 0. Add missing error check after write of
33979 last block. Add debug messages.
33980 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
33982 2009-01-19 Christian Franke <franke@computer.org>
33984 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
33985 (GRUB_ATAPI_IREASON_*): Likewise.
33986 (grub_ata_pio_write): Fix timeout error return.
33987 (grub_atapi_identify): Add grub_ata_wait () after cmd.
33988 (grub_atapi_wait_drq): New function.
33989 (grub_atapi_packet): New parameter `size'.
33990 Use grub_atapi_wait_drq () and direct write instead of
33991 grub_ata_pio_write ().
33992 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
33993 reads the number of bytes requested by the device for each DRQ
33995 (grub_atapi_write): Remove old implementation, return not
33996 implemented instead.
33998 2009-01-19 Christian Franke <franke@computer.org>
34000 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
34001 of 512 to calculate data size.
34002 (grub_scsi_read12): Likewise.
34003 (grub_scsi_write10): Likewise.
34004 (grub_scsi_write12): Likewise.
34005 (grub_scsi_read): Adjust size according to blocksize.
34006 Add checks for invalid blocksize and unaligned transfer.
34008 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
34010 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
34012 * term/gfxterm.c (write_char): Fix background rendering for wide
34015 2009-01-19 Robert Millan <rmh@aybabtu.com>
34017 * config.guess: Update to latest version from config git.
34018 * config.sub: Likewise.
34020 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
34022 * Makefile.in: Change font compilation to use new grub-mkfont instead
34025 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
34026 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34027 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34028 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34029 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34030 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34031 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34032 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34033 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
34035 2009-01-16 Christian Franke <franke@computer.org>
34037 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
34038 (enum grub_ata_timeout_milliseconds): New enum.
34039 (grub_ata_wait_status): Add parameter milliseconds.
34040 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
34041 recovery from timed-out commands.
34042 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
34043 return grub_errno instead of REG_ERROR.
34044 (grub_ata_pio_write): Add parameter milliseconds.
34045 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
34046 Pass milliseconds to grub_ata_wait_status () and
34047 grub_ata_pio_read ().
34048 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
34049 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
34050 grub_ata_wait_status (). Fix IDENTIFY timeout check.
34051 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
34052 It is not suitable for device detection, because DEV bit is ignored,
34053 the command may run too long, and not all devices set the signature
34055 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
34056 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
34057 Fix device selection, DEV bit must be set first to address the registers
34058 of the correct device.
34059 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
34060 grub_ata_pio_read/write ().
34061 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
34062 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
34064 2009-01-13 Carles Pina i Estany <carles@pina.cat>
34066 * util/grub-editenv.c (main): Use fseeko(), not fseek().
34068 2009-01-13 Bean <bean123ch@gmail.com>
34070 * util/grub-mkfont.c (write_font): forget to remove some debug code.
34072 2009-01-13 Bean <bean123ch@gmail.com>
34074 * Makefile.in: (enable_grub_mkfont): New variable.
34075 (freetype_cflags): Likewise.
34076 (freetype_libs): Likewise.
34078 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
34079 (grub_mkfont_SOURCES): New variable.
34080 (grub_mkfont_CFLAGS): Likewise.
34081 (grub_mkfont_LDFLAGS): Likewise.
34083 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
34084 library if `--enable-grub-mkfont' is requested.
34085 (enable_grub_mkfont): New variable.
34086 (freetype_cflags): Likewise.
34087 (freetype_libs): Likewise.
34089 * util/grub-mkfont.c: New file.
34091 2009-01-12 Christian Franke <franke@computer.org>
34093 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
34094 mode check. Fix setting of compat_use[].
34096 2009-01-10 Robert Millan <rmh@aybabtu.com>
34098 Update a few copyright years which we forgot to do in 2008 (only for
34099 files whose changes made in 2008 were copyright-significant)
34101 * Makefile.in: Add 2008 to Copyright line.
34102 * disk/ieee1275/ofdisk.c: Likewise.
34103 * disk/efi/efidisk.c: Likewise.
34104 * kern/dl.c: Likewise.
34105 * kern/sparc64/ieee1275/init.c: Likewise.
34106 * kern/mm.c: Likewise.
34107 * kern/efi/mm.c: Likewise.
34108 * boot/i386/pc/boot.S: Likewise.
34109 * genfslist.sh: Likewise.
34110 * fs/iso9660.c: Likewise.
34111 * fs/hfs.c: Likewise.
34112 * fs/jfs.c: Likewise.
34113 * fs/minix.c: Likewise.
34114 * fs/ufs.c: Likewise.
34115 * gensymlist.sh.in: Likewise.
34116 * genkernsyms.sh.in: Likewise.
34117 * include/grub/misc.h: Likewise.
34118 * include/grub/types.h: Likewise.
34119 * include/grub/symbol.h: Likewise.
34120 * include/grub/elf.h: Likewise.
34121 * include/grub/kernel.h: Likewise.
34122 * include/grub/disk.h: Likewise.
34123 * include/grub/dl.h: Likewise.
34124 * include/grub/i386/linux.h: Likewise.
34125 * include/grub/i386/pc/biosdisk.h: Likewise.
34126 * include/grub/efi/api.h: Likewise.
34127 * include/grub/efi/pe32.h: Likewise.
34128 * include/grub/util/misc.h: Likewise.
34129 * normal/execute.c: Likewise.
34130 * normal/arg.c: Likewise.
34131 * normal/completion.c: Likewise.
34132 * normal/lexer.c: Likewise.
34133 * normal/parser.y: Likewise.
34134 * normal/misc.c: Likewise.
34135 * commands/i386/pc/vbeinfo.c: Likewise.
34136 * commands/hexdump.c: Likewise.
34137 * commands/terminal.c: Likewise.
34138 * commands/ls.c: Likewise.
34139 * commands/help.c: Likewise.
34140 * partmap/pc.c: Likewise.
34141 * loader/efi/chainloader.c: Likewise.
34142 * loader/multiboot_loader.c: Likewise.
34143 * loader/i386/pc/multiboot2.c: Likewise.
34144 * term/efi/console.c: Likewise.
34145 * term/i386/pc/serial.c: Likewise.
34146 * util/lvm.c: Likewise.
34147 * util/console.c: Likewise.
34148 * util/i386/efi/grub-mkimage.c: Likewise.
34149 * util/raid.c: Likewise.
34151 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
34153 * commands/videotest.c: Removed include to grub/machine/memory.h.
34155 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
34156 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
34157 (video_mod_SOURCES): Removed.
34158 (video_mod_CFLAGS): Likewise.
34159 (video_mod_LDFLAGS): Likewise.
34160 (gfxterm_mod_SOURCES): Likewise.
34161 (gfxterm_mod_CFLAGS): Likewise.
34162 (gfxterm_mod_LDFLAGS): Likewise.
34163 (videotest_mod_SOURCES): Likewise.
34164 (videotest_mod_CFLAGS): Likewise.
34165 (videotest_mod_LDFLAGS): Likewise.
34166 (bitmap_mod_SOURCES): Likewise.
34167 (bitmap_mod_CFLAGS): Likewise.
34168 (bitmap_mod_LDFLAGS): Likewise.
34169 (tga_mod_SOURCES): Likewise.
34170 (tga_mod_CFLAGS): Likewise.
34171 (tga_mod_LDFLAGS): Likewise.
34172 (jpeg_mod_SOURCES): Likewise.
34173 (jpeg_mod_CFLAGS): Likewise.
34174 (jpeg_mod_LDFLAGS): Likewise.
34175 (png_mod_SOURCES): Likewise.
34176 (png_mod_CFLAGS): Likewise.
34177 (png_mod_LDFLAGS): Likewise.
34179 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
34180 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
34181 (video_mod_SOURCES): Added.
34182 (video_mod_CFLAGS): Likewise.
34183 (video_mod_LDFLAGS): Likewise.
34184 (videotest_mod_SOURCES): Likewise.
34185 (videotest_mod_CFLAGS): Likewise.
34186 (videotest_mod_LDFLAGS): Likewise.
34187 (bitmap_mod_SOURCES): Likewise.
34188 (bitmap_mod_CFLAGS): Likewise.
34189 (bitmap_mod_LDFLAGS): Likewise.
34190 (tga_mod_SOURCES): Likewise.
34191 (tga_mod_CFLAGS): Likewise.
34192 (tga_mod_LDFLAGS): Likewise.
34193 (jpeg_mod_SOURCES): Likewise.
34194 (jpeg_mod_CFLAGS): Likewise.
34195 (jpeg_mod_LDFLAGS): Likewise.
34196 (png_mod_SOURCES): Likewise.
34197 (png_mod_CFLAGS): Likewise.
34198 (png_mod_LDFLAGS): Likewise.
34199 (gfxterm_mod_SOURCES): Likewise.
34200 (gfxterm_mod_CFLAGS): Likewise.
34201 (gfxterm_mod_LDFLAGS): Likewise.
34203 * term/gfxterm.c: Removed include to grub/machine/memory.h,
34204 grub/machine/console.h.
34206 2009-01-04 Jerone Young <jerone@gmail.com>
34208 Make on screen instructions clearer
34210 Based on patch created by Jidanni <jidanni@jidanni.org>
34212 * normal/menu.c: print clearer instructions on the screen
34214 2009-01-02 Colin D Bennett <colin@gibibit.com>
34218 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
34219 build system and fixed gfxterm.c to work with different sized fonts.
34221 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34223 * configure: Re-generated.
34225 * DISTLIST: Removed font/manager.c.
34227 Added font/font_cmd.c.
34229 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
34232 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34234 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
34236 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34238 * normal/menu.c: Likewise.
34240 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
34241 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34243 * include/grub/font.h: Replaced with new file.
34245 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
34246 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
34247 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
34248 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
34249 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34250 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
34251 fg_red, fg_green, fg_blue, fg_alpha.
34252 (grub_video_adapter): Removed blit_glyph.
34253 (grub_video_blit_glyph): Removed.
34255 * font/manager.c: Removed file.
34257 * font/font.c: New file.
34259 * font/font_cmd.c: Likewise.
34261 * video/video.c (grub_video_blit_glyph): Removed.
34263 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
34264 (grub_video_vbe_map_rgba): Likewise.
34265 (grub_video_vbe_unmap_color_int): Likewise.
34266 (grub_video_vbe_blit_glyph): Removed.
34267 (grub_video_vbe_adapter): Removed blit_glyph.
34269 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
34270 (get_pixel): Likewise.
34271 (set_pixel): Likewise.
34273 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34275 * term/gfxterm.c: Adapted to new font engine.
34277 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34279 * term/i386/pc/vga.c: Likewise.
34281 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34283 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34285 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34287 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34289 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34291 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34293 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34295 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34297 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
34299 * util/grub.d/00_header.in: Changed to use new loadfont command.
34301 * util/grub-mkconfig_lib.in: Changed font extension.
34303 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
34305 * util/getroot.c (grub_util_get_grub_dev): Add support for
34306 /dev/md/dNNpNN style partitionable mdraid devices.
34308 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
34310 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
34311 at a time limit of the PXE TFTP API correctly.
34312 (grub_pxefs_close): Likewise.
34314 2008-11-29 Robert Millan <rmh@aybabtu.com>
34316 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
34317 grub_ata_device_initialize() calls.
34319 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
34321 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
34323 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
34325 2008-11-28 Robert Millan <rmh@aybabtu.com>
34327 Fix build on powerpc-ieee1275. Based on patch created by
34328 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
34329 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
34330 `kern/ieee1275/mmap.c'.
34331 * include/grub/powerpc/ieee1275/memory.h: New file.
34333 Provide grub-install on coreboot.
34334 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
34335 (grub_install_SOURCES): New variable.
34336 * util/i386/pc/grub-install.in: Add a few condition checks to make it
34337 usable on coreboot.
34339 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
34341 * util/grub-fstest.c (grub_term_get_current_input): Change return type
34342 to `grub_term_input_t'.
34343 (grub_term_get_current_output): Change return type to
34344 `grub_term_output_t'.
34346 2008-11-22 Robert Millan <rmh@aybabtu.com>
34348 Fix breakage on coreboot due to declaration mismatch.
34349 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
34350 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
34351 grub_vga_text_cls().
34353 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34354 comments. Avoid copying one more byte than necessary (just in case).
34356 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
34357 to 0x200000 (avoids trouble with some OFW implementations, and matches
34358 with the one in Yaboot).
34359 Reported by Manoel Abranches
34361 2008-11-20 Robert Millan <rmh@aybabtu.com>
34363 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
34364 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
34366 * util/grub-mkconfig_lib.in (grub_warn): New function.
34367 (convert_system_path_to_grub_path): Use grub_warn() when issuing
34368 warnings, to obtain consistent formatting.
34369 * util/grub.d/00_header.in: Likewise.
34370 * util/update-grub_lib.in: Likewise.
34372 * loader/i386/linux.c (allocate_pages): Fix a warning.
34373 Move comment text to `#error' stanza.
34375 Harmonize ieee1275's grub_available_iterate() with the generic
34376 grub_machine_mmap_iterate() interface (fixes a recently-introduced
34377 build problem on i386-ieee1275):
34378 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
34379 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
34380 parameter `type'. Update all users of this function.
34381 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
34382 `kern/ieee1275/mmap.c'.
34383 * kern/ieee1275/init.c
34384 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
34386 (grub_machine_mmap_iterate): ... this.
34387 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
34388 return type to `grub_err_t'. Update all implementations of this
34389 function prototype.
34390 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
34393 Add `lsmmap' command (lists firmware-provided memory map):
34394 * commands/lsmmap.c: New file.
34395 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
34396 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
34398 * conf/powerpc-ieee1275.rmk: Likewise.
34399 * conf/i386-coreboot.rmk: Likewise.
34400 * conf/i386-ieee1275.rmk: Likewise.
34402 2008-11-19 Robert Millan <rmh@aybabtu.com>
34404 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
34405 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
34406 constraints to initrd allocation (based on code from
34407 loader/i386/pc/linux.c). Without them, initrd was allocated too high
34408 for Linux to find it.
34410 2008-11-14 Robert Millan <rmh@aybabtu.com>
34412 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
34413 order to cope with duplicate slashes.
34415 2008-11-14 Robert Millan <rmh@aybabtu.com>
34417 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
34418 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
34419 don't want to mess with lower memory, because it is used in the Linux
34422 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34423 an appropriate place in lower memory, between 0x10000 and 0x90000,
34424 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
34425 is in our heap (probably as a result of it being corrupted during
34426 decompression). Add #error instance with comment to explain why this
34427 loader isn't currently usable on PC/BIOS.
34429 2008-11-14 Robert Millan <rmh@aybabtu.com>
34431 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34432 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
34434 2008-11-12 Robert Millan <rmh@aybabtu.com>
34436 Make loader/i386/linux.c buildable on i386-pc (although disabled).
34438 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
34439 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
34441 * include/grub/i386/pc/memory.h: ... to here.
34443 2008-11-12 Robert Millan <rmh@aybabtu.com>
34445 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
34448 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
34449 (grub_console_cur_color, grub_console_real_putchar)
34450 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
34451 (grub_console_setcolorstate, grub_console_setcolor)
34452 (grub_console_getcolor): Move from here ...
34453 * include/grub/i386/vga_common.h: ... to here (new file).
34455 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
34456 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
34457 `<grub/i386/io.h>'.
34458 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
34459 `<grub/i386/vga_common.h>'.
34461 2008-11-12 Robert Millan <rmh@aybabtu.com>
34463 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
34464 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
34465 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
34467 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
34468 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
34470 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
34471 grub_console_init() with call to grub_vga_text_init().
34472 (grub_machine_fini): Replace call to
34473 grub_console_fini() with call to grub_vga_text_fini() and
34474 grub_at_keyboard_fini().
34476 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
34477 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
34478 (grub_console_setcolorstate, grub_console_setcolor)
34479 (grub_console_getcolor): New function prototypes.
34481 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
34482 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
34483 (grub_vga_text_setcursor): Static-ize.
34484 (grub_vga_text_term): New structure.
34485 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
34487 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
34488 (grub_console_cur_color, grub_console_standard_color)
34489 (grub_console_normal_color, grub_console_highlight_color)
34490 (map_char, grub_console_putchar, grub_console_getcharwidth)
34491 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
34492 (grub_console_getcolor): Move from here ...
34493 * term/i386/vga_common.c: ... to here (same function names).
34495 2008-11-12 Robert Millan <rmh@aybabtu.com>
34497 Use newly-added Multiboot support in coreboot.
34499 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
34500 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
34502 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
34503 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
34504 (codestart): Store the MBI in `startup_multiboot_info' when we're
34505 being loaded using Multiboot.
34507 * kern/i386/coreboot/init.c (grub_machine_init): Move
34508 grub_at_keyboard_init() call to beginning of function (useful for
34509 debugging). Call grub_machine_mmap_init() before attempting to use
34510 grub_machine_mmap_iterate().
34511 (grub_lower_mem, grub_upper_mem): Move from here ...
34512 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
34515 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
34516 function prototype.
34518 2008-11-12 Robert Millan <rmh@aybabtu.com>
34520 Fix a regression introduced by the at_keyboard.mod split. Because
34521 some terminals are default on some platforms and non-default on
34522 others, the first terminal being registered determines which is
34523 going to be default.
34525 * kern/term.c (grub_term_register_input): If this is the first
34526 terminal being registered, set it as the current one.
34527 (grub_term_register_output): Likewise.
34529 * term/efi/console.c (grub_console_init): Do not call
34530 grub_term_set_current_output() or grub_term_set_current_input().
34531 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
34532 * term/i386/pc/console.c (grub_console_init): Likewise.
34533 (grub_console_fini): Do not call grub_term_set_current_input()
34534 (but leave grub_term_set_current_output() to restore text mode).
34536 2008-11-10 Robert Millan <rmh@aybabtu.com>
34538 * util/grub.d/00_header.in: Add backward compatibility check for
34539 versions of terminal.mod that don't understand `terminal_input' or
34542 2008-11-09 Robert Millan <rmh@aybabtu.com>
34544 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
34545 `terminal_input' / `terminal_output', not `terminal'.
34547 2008-11-08 Robert Millan <rmh@aybabtu.com>
34549 * Makefile.in (include_DATA): Fix srcdir=. assumption.
34550 (DISTCLEANFILES): Add `build_env.mk'.
34552 2008-11-08 Robert Millan <rmh@aybabtu.com>
34554 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
34555 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34556 members. Update all users.
34557 * util/console.c (grub_ncurses_term): Split in ...
34558 (grub_ncurses_term_input): ... this, and ...
34559 (grub_ncurses_term_output): ... this. Update all users.
34560 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
34562 2008-11-08 Robert Millan <rmh@aybabtu.com>
34564 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
34565 (PKGDATA): Add $(pkgdata_SRCDIR).
34566 (pkglib_BUILDDIR): New variable.
34567 (pkgdata_SRCDIR): New variable.
34568 (build_env.mk): New target.
34569 (include_DATA): New variable.
34570 (install-local): Install $(include_DATA) files in $(includedir).
34572 2008-11-07 Pavel Roskin <proski@gnu.org>
34574 * gendistlist.sh: Use C locale for sorting to ensure consistent
34575 output on all systems.
34577 * util/grub.d/00_header.in: Remove incorrect space before
34580 2008-11-07 Robert Millan <rmh@aybabtu.com>
34582 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
34584 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
34585 * loader/multiboot_loader.c (find_multi_boot2_header): New function
34586 (based on find_multi_boot1_header).
34587 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
34588 using find_multi_boot2_header(), and abort if neither Multiboot or
34589 Multiboot headers were found.
34591 2008-11-07 Robert Millan <rmh@aybabtu.com>
34593 Modularize at_keyboard.mod:
34595 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
34596 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
34597 (at_keyboard_mod_LDFLAGS): New variables.
34599 Actual terminal split:
34601 * include/grub/term.h (struct grub_term): Split in ...
34602 (struct grub_term_input): ... this, and ...
34603 (struct grub_term_output): ... this. Update all users.
34604 (grub_term_set_current): Split in ...
34605 (grub_term_set_current_input): ... this, and ...
34606 (grub_term_set_current_output): ... this.
34607 (grub_term_get_current): Split in ...
34608 (grub_term_get_current_input): ... this, and ...
34609 (grub_term_get_current_output): ... this.
34610 (grub_term_register): Split in ...
34611 (grub_term_register_input): ... this, and ...
34612 (grub_term_register_output): ... this.
34613 (grub_term_unregister): Split in ...
34614 (grub_term_unregister_input): ... this, and ...
34615 (grub_term_unregister_output): ... this.
34616 (grub_term_iterate): Split in ...
34617 (grub_term_iterate_input): ... this, and ...
34618 (grub_term_iterate_output): ... this.
34620 * kern/term.c (grub_term_list): Split in ...
34621 (grub_term_list_input): ... this, and ...
34622 (grub_term_list_output): ... this. Update all users.
34623 (grub_cur_term): Split in ...
34624 (grub_cur_term_input): ... this, and ...
34625 (grub_cur_term_output): ... this. Update all users.
34626 (grub_term_set_current): Split in ...
34627 (grub_term_set_current_input): ... this, and ...
34628 (grub_term_set_current_output): ... this.
34629 (grub_term_get_current): Split in ...
34630 (grub_term_get_current_input): ... this, and ...
34631 (grub_term_get_current_output): ... this.
34632 (grub_term_register): Split in ...
34633 (grub_term_register_input): ... this, and ...
34634 (grub_term_register_output): ... this.
34635 (grub_term_unregister): Split in ...
34636 (grub_term_unregister_input): ... this, and ...
34637 (grub_term_unregister_output): ... this.
34638 (grub_term_iterate): Split in ...
34639 (grub_term_iterate_input): ... this, and ...
34640 (grub_term_iterate_output): ... this.
34642 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
34643 a check for input and one for output (and only attempt to get keys
34644 from user when input works).
34646 * util/grub-probe.c (grub_term_get_current): Split in ...
34647 (grub_term_get_current_input): ... this, and ...
34648 (grub_term_get_current_output): ... this.
34649 * util/grub-fstest.c: Likewise.
34650 * util/i386/pc/grub-setup.c: Likewise.
34651 * util/grub-editenv.c: Likewise.
34653 Portability adjustments:
34655 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
34656 `term/i386/pc/at_keyboard.c'.
34657 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
34658 grub_keyboard_controller_init() (now handled by terminal .init).
34659 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
34660 grub_at_keyboard_init().
34661 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
34662 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
34663 at_keyboard.mod via input terminal interface).
34664 * include/grub/i386/coreboot/console.h: Convert into a stub for
34665 `<grub/i386/pc/console.h>'.
34667 Migrate full terminals to new API:
34669 * term/efi/console.c (grub_console_term): Split into ...
34670 (grub_console_term_input): ... this, and ...
34671 (grub_console_term_output): ... this. Update all users.
34672 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
34673 (grub_ofconsole_init): Split into ...
34674 (grub_ofconsole_init_input): ... this, and ...
34675 (grub_ofconsole_init_output): ... this.
34676 (grub_ofconsole_term): Split into ...
34677 (grub_ofconsole_term_input): ... this, and ...
34678 (grub_ofconsole_term_output): ... this. Update all users.
34679 * term/i386/pc/serial.c (grub_serial_term): Split into ...
34680 (grub_serial_term_input): ... this, and ...
34681 (grub_serial_term_output): ... this. Update all users.
34682 * term/i386/pc/console.c (grub_console_term): Split into ...
34683 (grub_console_term_input): ... this, and ...
34684 (grub_console_term_output): ... this. Update all users.
34685 (grub_console_term_input): Only enable it on PC/BIOS platform.
34686 (grub_console_init): Remove grub_keyboard_controller_init() call.
34688 Migrate input terminals to new API:
34690 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
34691 `i386' and `i386/pc' to enable build on x86_64 (this driver is
34692 i386-specific anyway).
34693 (grub_console_checkkey): Rename to ...
34694 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
34696 (grub_keyboard_controller_orig): New variable.
34697 (grub_console_getkey): Rename to ...
34698 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
34700 (grub_keyboard_controller_init): Static-ize. Save original
34701 controller value so that it can be restored ...
34702 (grub_keyboard_controller_fini): ... here (new function).
34703 (grub_at_keyboard_term): New structure.
34704 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
34707 Migrate output terminals to new API:
34709 * term/i386/pc/vga.c (grub_vga_term): Change type to
34710 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34711 members. Update all users.
34712 * term/gfxterm.c (grub_video_term): Change type to
34713 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34714 members. Update all users.
34715 * include/grub/i386/pc/console.h (grub_console_checkkey)
34716 (grub_console_getkey): Do not export (no longer needed by gfxterm,
34719 Migrate `terminal' command and userland tools to new API:
34721 * commands/terminal.c (grub_cmd_terminal): Split into ...
34722 (grub_cmd_terminal_input): ... this, and ...
34723 (grub_cmd_terminal_output): ... this.
34724 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
34725 `terminal_input' and `terminal_output'.
34726 * util/grub.d/00_header.in: Adjust `terminal' calls to new
34727 `terminal_input' / `terminal_output' API.
34728 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
34729 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
34730 provided ${GRUB_TERMINAL}, convert it).
34732 2008-11-04 Robert Millan <rmh@aybabtu.com>
34734 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
34736 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
34738 2008-11-03 Bean <bean123ch@gmail.com>
34740 * kern/elf.c (grub_elf32_load): Revert to previous code.
34741 (grub_elf64_load): Likewise.
34743 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
34745 2008-11-01 Robert Millan <rmh@aybabtu.com>
34747 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
34748 (TARGET_CPPFLAGS): Likewise.
34749 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
34751 2008-11-01 Carles Pina i Estany <carles@pina.cat>
34753 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
34755 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
34757 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
34758 addition of objects until the code is not going to be able to fail.
34760 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
34762 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
34763 (add a missing NULL check, and correct them by moving the pointer
34764 operations after the actual check).
34766 2008-10-29 Robert Millan <rmh@aybabtu.com>
34768 * util/i386/pc/grub-install.in: Handle empty string as output from
34769 make_system_path_relative_to_its_root().
34771 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
34773 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
34774 circular metadata worst case scenario. If the metadata is circular
34775 then copy the wrap in place.
34776 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
34777 project lib/format_text/layout.h
34778 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
34780 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
34782 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
34784 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
34786 * util/update-grub_lib.in: Mention filename in warning message.
34788 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
34790 * NEWS: Update for rename of update-grub to grub-mkconfig.
34792 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
34794 * util/update-grub_lib.in: Copy to ...
34795 * util/grub-mkconfig_lib.in: ... this. Update all users.
34796 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
34797 * util/update-grub.in: Rename to ...
34798 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
34799 option. Add `--output' option to allow users to specify the generated
34800 configuration file. Default to stdout.
34801 (update_grub_dir): Rename to ...
34802 (grub_mkconfig_dir): ... this.
34803 (grub_cfg): Default to an empty string.
34804 * conf/common.rmk (update-grub): Rename to ...
34805 (grub-mkconfig): ... this.
34806 (update-grub_lib): Copy to ...
34807 (grub-mkconfig_lib): ... this.
34808 (update-grub_SCRIPTS): Copy to ...
34809 (grub-mkconfig_SCRIPTS): ... this. Update all users.
34810 (update-grub_DATA): Rename to ...
34811 (grub-mkconfig_DATA): ... this.
34813 2008-09-28 Robert Millan <rmh@aybabtu.com>
34815 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
34816 to `modified'. Add the real `created' field.
34817 (grub_iso9660_uuid): Use `modified' rather than `created' for
34818 constructing the UUID.
34820 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
34822 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
34823 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
34825 2008-09-28 Bean <bean123ch@gmail.com>
34827 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
34828 Thanks to Christian Franke for finding this bug.
34830 2008-09-25 Robert Millan <rmh@aybabtu.com>
34832 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
34833 instances of grub_util_get_disk_name() (see previous commit).
34835 2008-09-25 Robert Millan <rmh@aybabtu.com>
34837 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
34838 `util/i386/get_disk_name.c'.
34839 * conf/i386-efi.rmk: Likewise.
34840 * conf/x86_64-efi.rmk: Likewise.
34841 * conf/i386-coreboot.rmk: Likewise.
34842 * conf/i386-ieee1275.rmk: Likewise.
34843 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
34844 `util/ieee1275/get_disk_name.c'.
34845 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
34846 * util/ieee1275/get_disk_name.c: Remove file.
34847 * util/i386/get_disk_name.c: Remove file.
34848 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
34849 "hd%d" for device.map entries, rather than using
34850 grub_util_get_disk_name().
34852 2008-09-24 Carles Pina i Estany <carles@pina.cat>
34854 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
34856 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
34858 2008-09-24 Carles Pina i Estany <carles@pina.cat>
34860 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
34862 (GRUB_TERM_PPAGE): Changed to 0x4900.
34864 2008-09-24 Robert Millan <rmh@aybabtu.com>
34866 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
34867 macros (they were i386-pc specific).
34868 * include/grub/sparc64/ieee1275/console.h: Likewise.
34869 * include/grub/efi/console.h: Likewise.
34871 2008-09-22 Bean <bean123ch@gmail.com>
34873 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
34874 resident and in attribute list.
34876 * include/grub/ntfs.h (BMP_LEN): Removed.
34878 2008-09-22 Bean <bean123ch@gmail.com>
34880 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
34881 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
34883 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
34884 error occurs, as grub_disk_open will call grub_disk_close, which will
34885 call p->close (scsi).
34887 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
34889 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
34890 (AC_PREREQ): Bumped to 2.59.
34891 (AC_TRY_COMPILE): Replace obsolete macro with ...
34892 (AC_COMPILE_IFELSE): ... this.
34893 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
34894 (AC_LINK_IFELSE): ... this.
34896 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
34898 * autogen.sh: Add a call to `gendistlist.sh'.
34900 2008-09-19 Christian Franke <franke@computer.org>
34902 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
34903 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
34904 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
34905 Export __enable_execute_stack() to modules.
34906 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
34909 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
34911 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
34914 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
34916 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
34917 #include <grub/util/hostdisk.h>.
34919 2008-09-08 Robert Millan <rmh@aybabtu.com>
34921 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
34922 segments when their filesz is zero (grub_file_read() interprets
34923 zero-size as "read until EOF", which results in memory corruption).
34924 Use `lowest_segment' rather than 0 for calculating the current
34925 segment load address.
34927 2008-09-08 Robert Millan <rmh@aybabtu.com>
34929 * util/hostdisk.c (open_device): Replace a grub_util_info() call
34930 with grub_dprintf("hostdisk", ...), as it was so verbose that it
34931 clobbered useful information.
34933 2008-09-08 Robert Millan <rmh@aybabtu.com>
34935 * include/grub/util/biosdisk.h: Move to ...
34936 * include/grub/util/hostdisk.h: ... here. Update all users.
34937 * util/biosdisk.c: Move to ...
34938 * util/hostdisk.c: ... here. Update all users.
34940 2008-09-07 Robert Millan <rmh@aybabtu.com>
34942 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
34944 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
34945 and length can be stored directly in the `mbi->mmap_addr' and
34946 `mbi->mmap_length' struct fields.
34948 2008-09-07 Robert Millan <rmh@aybabtu.com>
34950 * conf/i386.rmk: New file. Provides declaration for building
34952 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
34953 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
34955 Include `conf/i386.mk'.
34956 * conf/i386-efi.rmk: Likewise.
34957 * conf/x86_64-efi.rmk: Likewise.
34958 * conf/i386-coreboot.rmk: Likewise.
34959 * conf/i386-ieee1275.rmk: Likewise.
34961 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
34963 Based on patch created by Colin D Bennett <colin@gibibit.com>.
34964 Adds optimization support for BGR based modes.
34966 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
34967 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
34968 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
34969 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
34970 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
34971 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
34972 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
34973 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
34974 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
34975 (grub_video_i386_vbeblit_index_index): Likewise.
34976 (grub_video_i386_vbeblit_replace_directN): Added.
34977 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
34978 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
34979 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
34980 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
34981 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
34982 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
34983 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
34984 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
34985 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
34986 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
34987 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
34988 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
34989 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
34991 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
34992 (grub_video_i386_vbefill_R8G8B8): Likewise.
34993 (grub_video_i386_vbefill_index): Likewise.
34994 (grub_video_i386_vbefill_direct32): Added.
34995 (grub_video_i386_vbefill_direct24): Likewise.
34996 (grub_video_i386_vbefill_direct16): Likewise.
34997 (grub_video_i386_vbefill_direct8): Likewise.
34999 * include/grub/video.h (grub_video_blit_format): Removed
35000 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
35001 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
35002 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
35003 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
35004 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
35006 * video/video.c (grub_video_get_blit_format): Updated to use new
35007 blit formats. Added handling for 16 bit color modes.
35009 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
35011 (common_blitter): Updated to use new blitters.
35013 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
35015 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
35016 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
35017 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
35018 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
35019 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
35020 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
35021 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
35022 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
35023 (grub_video_i386_vbeblit_index_index): Likewise.
35024 (grub_video_i386_vbeblit_replace_directN): Added.
35025 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
35026 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
35027 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
35028 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
35029 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
35030 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
35031 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
35032 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
35033 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
35034 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
35035 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
35036 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
35037 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
35039 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
35040 (grub_video_i386_vbefill_R8G8B8): Likewise.
35041 (grub_video_i386_vbefill_index): Likewise.
35042 (grub_video_i386_vbefill_direct32): Added.
35043 (grub_video_i386_vbefill_direct24): Likewise.
35044 (grub_video_i386_vbefill_direct16): Likewise.
35045 (grub_video_i386_vbefill_direct8): Likewise.
35047 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
35050 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
35053 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
35056 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
35059 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
35061 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
35064 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
35066 * fs/iso9660.c (grub_iso9660_date): New structure.
35067 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
35068 (grub_iso9660_uuid): New function.
35070 2008-09-05 Bean <bean123ch@gmail.com>
35072 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
35074 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
35075 insensitive bit for names in Win32 and Win32 & DOS namespace.
35077 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
35079 * include/grub/types.h (LONG_MAX): Likewise.
35081 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
35083 * util/getroot.c: Include <config.h>.
35084 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
35085 add support for /dev/md/N devices and handle LVM double dash escaping.
35087 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
35089 * config.guess: Update to latest version from config git.
35090 * config.sub: Likewise.
35092 2008-09-03 Robert Millan <rmh@aybabtu.com>
35094 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
35095 `disk->total_sectors'.
35097 2008-09-01 Colin D Bennett <colin@gibibit.com>
35099 * include/grub/normal.h: Fixed incorrect comment for
35100 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
35102 2008-09-01 Colin D Bennett <colin@gibibit.com>
35104 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
35105 values with defines.
35107 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
35108 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
35109 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
35110 (GRUB_VBE_MODEATTR_COLOR): Likewise.
35111 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
35112 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
35113 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
35114 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
35115 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
35116 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
35117 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
35118 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
35119 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
35120 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
35121 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
35122 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
35123 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
35124 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
35125 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
35127 2008-08-31 Robert Millan <rmh@aybabtu.com>
35129 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
35131 (grub_multiboot): Fix a few warnings.
35133 2008-08-31 Robert Millan <rmh@aybabtu.com>
35135 * loader/i386/pc/multiboot.c: Update comment not to say that
35136 boot_device support is unimplemented.
35138 2008-08-31 Robert Millan <rmh@aybabtu.com>
35140 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
35141 or memory map support are unimplemented.
35143 2008-08-31 Colin D Bennett <colin@gibibit.com>
35145 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
35147 2008-08-31 Colin D Bennett <colin@gibibit.com>
35149 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
35150 total video memory in 'vbeinfo' output; show color format details for
35153 2008-08-30 Pavel Roskin <proski@gnu.org>
35155 * util/genmoddep.c: Remove for real this time.
35156 * DISTLIST: Remove util/genmoddep.c.
35158 2008-08-30 Robert Millan <rmh@aybabtu.com>
35160 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
35161 as required by Multiboot spec (it was already 4-byte aligned, but
35164 2008-08-29 Pavel Roskin <proski@gnu.org>
35166 * kern/powerpc/ieee1275/crt0.S: Rename to ...
35167 * kern/powerpc/ieee1275/startup.S: ... this.
35168 * conf/powerpc-ieee1275.rmk: Adjust for the above.
35169 * DISTLIST: Likewise.
35171 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
35172 grub/cpu/kernel.h. Add start label for consistency with other
35173 platforms. Add grub_prefix immediately after start. Add jump
35174 to the code after grub_prefix.
35175 * include/grub/powerpc/kernel.h: Provide valid values for
35176 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
35178 2008-08-29 Bean <bean123ch@gmail.com>
35180 * configure.ac: Change host_os to cygwin for mingw.
35181 (asprintf): New check for function.
35183 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
35184 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
35186 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
35187 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
35188 sync, sleep and grub_util_get_disk_size for mingw.
35190 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
35191 to get size in mingw.
35192 (open_device): Use flag O_BINARY if it's defined.
35193 (find_root_device): Add dummy code for mingw.
35195 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
35196 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
35197 (get_scsi_disk_name): Return 0 for mingw.
35199 * util/hostfs.c: #include <grub/util/misc.h>.
35200 (grub_hostfs_open): Use "rb" flag to open file, use
35201 grub_util_get_disk_size to get disk size for mingw.
35203 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
35204 (asprintf): New function if HAVE_ASPRINTF is not set.
35205 (sync): New function for mingw.
35207 (grub_util_get_disk_size): Likewise.
35209 2008-08-28 Pavel Roskin <proski@gnu.org>
35211 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
35214 2008-08-28 Robert Millan <rmh@aybabtu.com>
35216 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
35218 2008-08-28 Robert Millan <rmh@aybabtu.com>
35220 Change find_grub_drive() syntax so it doesn't prevent it from
35221 detecting NULL names as errors.
35223 * util/biosdisk.c (find_grub_drive): Move free slot search code
35225 (find_free_slot): ... to here.
35226 (read_device_map): Use find_free_slot() to search for free slots.
35228 2008-08-27 Marco Gerards <marco@gnu.org>
35230 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
35231 (scsi_mod_SOURCES): New variable.
35232 (scsi_mod_CFLAGS): Likewise
35233 (scsi_mod_LDFLAGS): Likewise.
35235 * disk/scsi.c: New file.
35237 * include/grub/scsi.h: Likewise.
35239 * include/grub/scsicmd.h: Likewise.
35241 * disk/ata.c: Include <grub/scsi.h>.
35242 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
35244 (grub_ata_iterate): Skip ATAPI devices.
35245 (grub_ata_open): Only handle ATAPI devices.
35246 (struct grub_atapi_read): Removed.
35247 (grub_atapi_readsector): Likewise.
35248 (grub_ata_read): No longer handle ATAPI devices.
35249 (grub_ata_write): Likewise.
35250 (grub_atapi_iterate): New function.
35251 (grub_atapi_read): Likewise.
35252 (grub_atapi_write): Likewise.
35253 (grub_atapi_open): Likewise.
35254 (grub_atapi_close): Likewise.
35255 (grub_atapi_dev): New variable.
35256 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
35257 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
35259 * include/grub/disk.h (enum grub_disk_dev_id): Add
35260 `GRUB_DISK_DEVICE_SCSI_ID'.
35262 2008-08-26 Robert Millan <rmh@aybabtu.com>
35264 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
35265 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
35268 2008-08-23 Bean <bean123ch@gmail.com>
35270 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
35271 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
35272 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
35273 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
35275 (raid5rec_mod_SOURCES): New macro.
35276 (raid5rec_mod_CFLAGS): Likewise.
35277 (raid5rec_mod_LDFLAGS): Likewise.
35278 (raid6rec_mod_SOURCES): Likewise.
35279 (raid6rec_mod_CFLAGS): Likewise.
35280 (raid6rec_mod_LDFLAGS): Likewise.
35281 (mdraid_mod_SOURCES): Likewise.
35282 (mdraid_mod_CFLAGS): Likewise.
35283 (mdraid_mod_LDFLAGS): Likewise.
35284 (dm_nv_mod_SOURCES): Likewise.
35285 (dm_nv_mod_CFLAGS): Likewise.
35286 (dm_nv_mod_LDFLAGS): Likewise.
35288 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
35289 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
35290 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
35292 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
35293 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
35295 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35297 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35299 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35301 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35303 * disk/raid5_recover.c: New file.
35305 * disk/raid6_recover.c: Likewise.
35307 * disk/mdraid_linux.c: Likewise.
35309 * disk/dmraid_nvidia.c: Likewise.
35311 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
35314 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
35315 calculate the size of raid device.
35316 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
35317 different layout of raid5.
35318 (grub_raid_scan_device): Remove code specific to mdraid.
35319 (grub_raid_list): New variable.
35320 (free_array): New function.
35321 (grub_raid_register): Likewise.
35322 (grub_raid_unregister): Likewise.
35323 (grub_raid_rescan): Likewise.
35324 (GRUB_MOD_INIT): Don't iterate device here.
35325 (GRUB_MOD_FINI): Use free_array to release resource.
35327 * include/grub/raid.h: Remove macro and structure specific to mdraid.
35328 (grub_raid5_recover_func_t): New function variable type.
35329 (grub_raid6_recover_func_t): Likewise.
35330 (grub_raid5_recover_func): New variable.
35331 (grub_raid6_recover_func): Likewise.
35332 (grub_raid_register): New function.
35333 (grub_raid_unregister): Likewise.
35334 (grub_raid_rescan): Likewise.
35335 (grub_raid_block_xor): Likewise.
35337 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
35338 (CMD_CRC): New macro.
35340 (read_file): Handle device as well as file.
35341 (cmd_crc): New function.
35342 (fstest): Handle multiple disks.
35343 (options): Remove part, raw and long, add root and diskcount.
35344 (usage): Add crc, remove -p, -r, -l, add -r and -c.
35345 (main): Find the first non option entry and ignore subsequent options,
35346 add handling for the new options, support multiple disks.
35348 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
35350 2008-08-23 Bean <bean123ch@gmail.com>
35352 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
35354 * genfslist.sh: Ignore kernel.mod.
35356 * genpartmaplist.sh: Likewise.
35358 2008-08-23 Robert Millan <rmh@aybabtu.com>
35360 * util/getroot.c (find_root_device): Skip anything that starts with
35361 a dot, not just directories. This avoids things like /dev/.tmp.md0.
35363 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
35365 * util/update-grub.in (GRUB_GFXMODE): Export variable.
35366 * util/grub.d/00_header.in: Allow the administrator to change default
35367 gfxmode via ${GRUB_GFXMODE}.
35369 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
35371 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
35373 2008-08-21 Robert Millan <rmh@aybabtu.com>
35375 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
35377 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
35378 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
35380 2008-08-20 Carles Pina i Estany <carles@pina.cat>
35382 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
35383 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
35385 2008-08-19 Robert Millan <rmh@aybabtu.com>
35387 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
35388 (struct grub_virtual_screen): Remove `cursor_color'.
35389 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
35391 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
35393 2008-08-18 Robert Millan <rmh@aybabtu.com>
35395 Unify (identical) linux_normal.c files.
35396 * loader/i386/efi/linux_normal.c: Move from here ...
35397 * loader/linux_normal.c: ... to here. Update all users.
35398 * loader/i386/pc/linux_normal.c: Delete. Update all users.
35399 * loader/i386/ieee1275/linux_normal.c: Likewise.
35401 2008-08-18 Robert Millan <rmh@aybabtu.com>
35403 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
35404 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
35405 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
35406 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
35407 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
35409 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
35410 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
35411 (GRUB_LINUX_CL_END_OFFSET): ... to here.
35412 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
35413 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
35414 (GRUB_EFI_CL_END_OFFSET): Rename to ...
35415 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
35416 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
35417 Initialize `params->video_cursor_x' and `params->video_cursor_y'
35418 portably using grub_getxy().
35419 Replace `-EFI' with `-bzImage' in boot message.
35421 2008-08-17 Robert Millan <rmh@aybabtu.com>
35423 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
35425 2008-08-17 Robert Millan <rmh@aybabtu.com>
35427 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
35429 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
35430 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
35431 (grub_machine_mmap_iterate): New function declaration.
35432 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
35434 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
35437 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
35438 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
35439 Move e820 parsing from here ...
35440 * kern/i386/pc/mmap.c: New file.
35441 (grub_machine_mmap_iterate): ... to here.
35443 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
35444 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
35445 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
35446 (grub_available_iterate): Redeclare to return `void', and redeclare
35447 its hook to use grub_uint64_t as addr and size parameters, and rename
35449 (grub_machine_mmap_iterate): ... this. Update all users.
35451 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
35452 to make it more readable. Rename to ...
35453 (grub_machine_mmap_iterate): ... this.
35455 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
35456 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
35457 (grub_multiboot): Allocate an extra region after the payload, and fill
35458 it with a Multiboot memory map. Adjust a.out loader to calculate size
35459 with the extra space.
35460 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
35461 with the extra space.
35463 2008-08-17 Carles Pina i Estany <carles@pina.cat>
35465 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
35467 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
35469 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
35470 mdate-sh to the list `find' searches for.
35471 * DISTLIST: Regenerated.
35473 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
35475 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
35476 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
35477 genmoddep.awk, gensymlist.sh.in.
35478 (DISTDIRS): Add bus, docs, hook, lib.
35479 * DISTLIST: Regenerated.
35480 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
35482 2008-08-16 Robert Millan <rmh@aybabtu.com>
35484 * disk/raid.c (grub_raid_init): Handle/report errors set by
35485 grub_device_iterate().
35486 * disk/lvm.c (grub_lvm_init): Likewise.
35488 2008-08-15 Bean <bean123ch@gmail.com>
35490 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35492 (datetime_mod_SOURCES): New macro.
35493 (datetime_mod_CFLAGS): Likewise.
35494 (datetime_mod_LDFLAGS): Likewise.
35495 (date_mod_SOURCES): Likewise.
35496 (date_mod_CFLAGS): Likewise.
35497 (date_mod_LDFLAGS): Likewise.
35498 (datehook_mod_SOURCES): Likewise.
35499 (datehook_mod_CFLAGS): Likewise.
35500 (datehook_mod_LDFLAGS): Likewise.
35502 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35504 (datetime_mod_SOURCES): New macro.
35505 (datetime_mod_CFLAGS): Likewise.
35506 (datetime_mod_LDFLAGS): Likewise.
35507 (date_mod_SOURCES): Likewise.
35508 (date_mod_CFLAGS): Likewise.
35509 (date_mod_LDFLAGS): Likewise.
35510 (datehook_mod_SOURCES): Likewise.
35511 (datehook_mod_CFLAGS): Likewise.
35512 (datehook_mod_LDFLAGS): Likewise.
35514 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35516 (datetime_mod_SOURCES): New macro.
35517 (datetime_mod_CFLAGS): Likewise.
35518 (datetime_mod_LDFLAGS): Likewise.
35519 (date_mod_SOURCES): Likewise.
35520 (date_mod_CFLAGS): Likewise.
35521 (date_mod_LDFLAGS): Likewise.
35522 (datehook_mod_SOURCES): Likewise.
35523 (datehook_mod_CFLAGS): Likewise.
35524 (datehook_mod_LDFLAGS): Likewise.
35526 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35528 (datetime_mod_SOURCES): New macro.
35529 (datetime_mod_CFLAGS): Likewise.
35530 (datetime_mod_LDFLAGS): Likewise.
35531 (date_mod_SOURCES): Likewise.
35532 (date_mod_CFLAGS): Likewise.
35533 (date_mod_LDFLAGS): Likewise.
35534 (datehook_mod_SOURCES): Likewise.
35535 (datehook_mod_CFLAGS): Likewise.
35536 (datehook_mod_LDFLAGS): Likewise.
35538 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35540 (datetime_mod_SOURCES): New macro.
35541 (datetime_mod_CFLAGS): Likewise.
35542 (datetime_mod_LDFLAGS): Likewise.
35543 (date_mod_SOURCES): Likewise.
35544 (date_mod_CFLAGS): Likewise.
35545 (date_mod_LDFLAGS): Likewise.
35546 (datehook_mod_SOURCES): Likewise.
35547 (datehook_mod_CFLAGS): Likewise.
35548 (datehook_mod_LDFLAGS): Likewise.
35550 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
35552 * commands/date.c: New file.
35554 * hook/datehook.c: Likewise.
35556 * include/grub/lib/datetime.h: Likewise.
35558 * include/grub/i386/cmos.h: Likewise.
35560 * lib/datetime.c: Likewise.
35562 * lib/i386/datetime.c: Likewise.
35564 * lib/efi/datetime.c: Likewise.
35566 2008-08-14 Robert Millan <rmh@aybabtu.com>
35568 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
35569 (grub_mkelfimage_SOURCES): New variable.
35570 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
35572 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
35573 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
35574 * conf/powerpc-ieee1275.rmk: Likewise.
35575 * conf/i386-ieee1275.rmk: Likewise.
35577 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
35578 * kern/i386/coreboot/init.c: Likewise.
35580 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
35581 with `<grub/cpu/kernel.h>'.
35582 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
35584 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
35585 * kern/i386/coreboot/startup.S: Likewise.
35587 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
35588 (GRUB_MOD_GAP): Remove.
35589 * include/grub/powerpc/kernel.h: New file.
35590 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
35591 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
35592 * include/grub/i386/kernel.h: New file.
35593 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
35594 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
35595 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
35597 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
35599 Use --directory when invoking grub_mkimage.
35601 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
35602 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
35603 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
35604 and GRUB_KERNEL_CPU_PREFIX.
35606 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
35608 * include/grub/err.h (grub_err_printf): New function prototype.
35609 * util/misc.c (grub_err_printf): New function.
35610 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
35612 * kern/err.c (grub_print_error): Use grub_err_printf.
35614 2008-08-13 Robert Millan <rmh@aybabtu.com>
35616 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
35618 2008-08-13 Robert Millan <rmh@aybabtu.com>
35620 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
35623 2008-08-12 Robert Millan <rmh@aybabtu.com>
35625 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
35626 of the relocation code from here ...
35627 (grub_multiboot): ... to here.
35628 (forward_relocator, backward_relocator): Move from here ...
35629 * kern/i386/loader.S (grub_multiboot_forward_relocator)
35630 (grub_multiboot_backward_relocator): ... to here.
35631 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
35632 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
35633 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
35634 (grub_multiboot_forward_relocator_end)
35635 (grub_multiboot_backward_relocator)
35636 (grub_multiboot_backward_relocator_end): New variables.
35638 2008-08-12 Bean <bean123ch@gmail.com>
35640 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
35642 2008-08-11 Robert Millan <rmh@aybabtu.com>
35644 * kern/i386/linuxbios/startup.S: Move from here ...
35645 * kern/i386/coreboot/startup.S: ... to here.
35647 * kern/i386/linuxbios/init.c: Move from here ...
35648 * kern/i386/coreboot/init.c: ... to here.
35650 * kern/i386/linuxbios/table.c: Move from here ...
35651 * kern/i386/coreboot/mmap.c: ... to here.
35653 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
35655 2008-08-11 Robert Millan <rmh@aybabtu.com>
35657 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
35658 errors. Leave it to the upper layer to handle them.
35660 2008-08-09 Christian Franke <franke@computer.org>
35662 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
35663 * conf/common.rmk: Install `grub-pe2elf' only if requested.
35664 Install `grub.d/10_windows' only on Cygwin.
35665 * configure.ac: Add subst of `target_os'.
35666 Check `target_os' also before setting TARGET_OBJ2ELF.
35667 Add `--enable-grub-pe2elf'.
35669 2008-08-08 Robert Millan <rmh@aybabtu.com>
35671 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
35672 (grub_last_time): Change type to grub_uint64_t.
35673 (grub_disk_open): Migrate code from to using grub_get_time_ms().
35674 (grub_disk_close): Likewise.
35676 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
35677 (run_menu): Migrate code from to using grub_get_time_ms().
35679 * util/misc.c (grub_get_time_ms): New function.
35681 2008-08-08 Marco Gerards <marco@gnu.org>
35683 * disk/ata.c (grub_ata_regget): Change return type to
35685 (grub_ata_regget2): Likewise.
35686 (grub_ata_wait_status): New function.
35687 (grub_ata_wait_busy): Removed function, updated all users to use
35688 `grub_ata_wait_status'.
35689 (grub_ata_wait_drq): Likewise.
35690 (grub_ata_cmd): New function.
35691 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
35693 (grub_ata_pio_write): Add error handling.
35694 (grub_atapi_identify): Likewise.
35695 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
35697 (grub_ata_identify): Use `grub_ata_cmd' and improve error
35698 handling. Actually use the detected registers. Reorder the
35699 detection logic such that it is easier to read.
35700 (grub_ata_pciinit): Do not assign the same ID to each controller.
35701 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
35703 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
35705 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
35707 2008-08-08 Marco Gerards <marco@gnu.org>
35711 2008-08-07 Bean <bean123ch@gmail.com>
35713 * include/grub/x86_64/pci.h: New file.
35715 2008-08-07 Christian Franke <franke@computer.org>
35717 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
35718 (TIMER2_GATE): Likewise.
35719 (grub_pit_wait): Add enable/disable of the timer2 gate
35720 bit of port 0x61. This fixes a possible infinite loop.
35722 2008-08-07 Bean <bean123ch@gmail.com>
35724 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
35725 kern/i386/tsc.c and kern/i386/pit.c.
35727 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
35730 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
35733 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
35735 2008-08-07 Bean <bean123ch@gmail.com>
35737 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
35739 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
35741 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
35742 multiple inclusion. Add #include <grub/types.h>.
35744 2008-08-06 Christian Franke <franke@computer.org>
35746 * conf/common.rmk: Build and install `10_windows'.
35747 * util/grub.d/10_windows.in: New script.
35749 2008-08-06 Pavel Roskin <proski@gnu.org>
35751 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
35753 2008-08-06 Robert Millan <rmh@aybabtu.com>
35755 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
35756 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
35758 2008-08-06 Bean <bean123ch@gmail.com>
35760 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
35761 (grub_pxefs_fs_int): Remove dummy definition.
35762 (grub_pxefs_open): Use data->block_size to store the current block
35764 (grub_pxefs_read): Use block size stored in data->block_size. As the
35765 value of grub_pxe_blksize can be changed after the file is opened.
35767 2008-08-06 Bean <bean123ch@gmail.com>
35769 * fs/i386/pc/pxe.c (curr_file): new variable.
35770 (grub_pxefs_open): Simply the handling of pxe file system. Don't
35771 require the dummy internal file system anymore.
35772 (grub_pxefs_read): Removed.
35773 (grub_pxefs_close): Likewise.
35774 (grub_pxefs_fs_int): Likewise.
35775 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
35776 connection when we switch file.
35777 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
35779 2008-08-06 Robert Millan <rmh@aybabtu.com>
35781 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
35783 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
35784 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
35786 * kern/i386/halt.c: New file.
35787 * kern/i386/reboot.c: Likewise.
35788 * include/grub/i386/reboot.h: Likewise.
35789 * include/grub/i386/halt.h: Likewise.
35791 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
35792 Include `<grub/cpu/halt.h>'.
35793 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
35794 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
35796 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
35797 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
35798 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
35799 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
35800 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
35801 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
35803 * include/grub/i386/at_keyboard.h: ... to here.
35805 2008-08-05 Robert Millan <rmh@aybabtu.com>
35807 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
35808 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
35809 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
35810 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
35811 `kern/generic/millisleep.c'.
35813 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
35814 instead of grub_get_rtc().
35815 (grub_tsc_init): Initialize `tsc_boot_time'.
35817 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
35818 (grub_machine_init): Use grub_tsc_init() rather than
35819 installing an RTC-based handler via grub_install_get_time_ms().
35821 * kern/i386/pit.c: New file.
35822 * include/grub/i386/pit.h: Likewise.
35824 2008-08-05 Bean <bean123ch@gmail.com>
35826 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
35828 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
35829 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
35830 (pxe_mod_SOURCES): New macro.
35831 (pxe_mod_CFLAGS): Likewise.
35832 (pxe_mod_LDFLAGS): Likewise.
35833 (pxecmd_mod_SOURCES): Likewise.
35834 (pxecmd_mod_CFLAGS): Likewise.
35835 (pxecmd_mod_LDFLAGS): Likewise.
35837 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
35838 (grub_pxe_call): Likewise.
35840 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
35842 * commands/i386/pc/pxecmd.c: New file.
35844 * fs/i386/pc/pxe.c: Likewise.
35846 * include/grub/i386/pc/pxe.h: Likewise.
35848 2008-08-05 Bean <bean123ch@gmail.com>
35850 * util/console.c (grub_console_cur_color): New variable.
35851 (grub_console_standard_color): Likewise.
35852 (grub_console_normal_color): Likewise.
35853 (grub_console_highlight_color): Likewise.
35854 (color_map): Likewise.
35855 (use_color): Likewise.
35856 (NUM_COLORS): New macro.
35857 (grub_ncurses_setcolorstate): Handle color properly.
35858 (grub_ncurses_setcolor): Don't change color here, just remember the
35859 settings, color will be set in grub_ncurses_setcolorstate.
35860 (grub_ncurses_getcolor): New function.
35861 (grub_ncurses_init): Initialize color pairs.
35862 (grub_ncurses_term): New member grub_ncurses_getcolor.
35864 2008-08-05 Colin D Bennett <colin@gibibit.com>
35866 High resolution timer support. Implemented for x86 CPUs using TSC.
35867 Extracted generic grub_millisleep() so it's linked in only as needed.
35868 This requires a Pentium compatible CPU; if the RDTSC instruction is
35869 not supported, then it falls back on the generic grub_get_time_ms()
35870 implementation that uses the machine's RTC.
35872 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
35873 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
35874 `kern/generic/millisleep.c'.
35876 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
35877 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
35879 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
35880 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
35882 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
35884 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
35885 `kern/generic/millisleep.c'.
35887 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
35889 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
35891 * kern/generic/rtc_get_time_ms.c: New file.
35893 * kern/generic/millisleep.c: New file.
35895 * kern/misc.c: Don't include
35896 <kern/time.h> anymore.
35897 (grub_millisleep_generic): Removed.
35899 * commands/sleep.c (grub_interruptible_millisleep): Uses
35900 grub_get_time_ms() instead of grub_get_rtc().
35902 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
35904 (grub_cpu_is_cpuid_supported): New inline function.
35905 (grub_cpu_is_tsc_supported): New inline function.
35906 (grub_tsc_init): New function prototype.
35907 (grub_tsc_get_time_ms): New function prototype.
35909 * kern/i386/tsc.c (grub_get_time_ms): New file.
35911 * include/grub/time.h: Include <grub/types.h.
35912 (grub_millisleep_generic): Removed.
35913 (grub_get_time_ms): New prototype.
35914 (grub_install_get_time_ms): New prototype.
35915 (grub_rtc_get_time_ms): New prototype.
35917 * kern/time.c (grub_get_time_ms): New function.
35918 (grub_install_get_time_ms): New function.
35920 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
35921 <grub/time.h> anymore.
35922 (grub_millisleep): Removed.
35923 (grub_machine_init): Call grub_tsc_init.
35925 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
35926 get_time_ms() implementation.
35928 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
35929 (ieee1275_get_time_ms): New function.
35930 (grub_machine_init): Install get_time_ms() implementation.
35932 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
35933 (grub_machine_init): Call grub_tsc_init().
35934 (grub_millisleep): Removed.
35936 * kern/ieee1275/init.c (grub_millisleep): Removed.
35937 (grub_machine_init): Install ieee1275_get_time_ms()
35939 (ieee1275_get_time_ms): New function.
35940 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
35943 2008-08-05 Marco Gerards <marco@gnu.org>
35945 * disk/ata.c: Include <grub/pci.h>.
35946 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
35947 (grub_ata_initialize): Rewritten.
35948 (grub_ata_device_initialize): New function.
35950 2008-08-04 Pavel Roskin <proski@gnu.org>
35952 * kern/main.c: Include grub/mm.h.
35954 2008-08-04 Robert Millan <rmh@aybabtu.com>
35956 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
35957 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
35958 corruption problem).
35960 2008-08-04 Robert Millan <rmh@aybabtu.com>
35962 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
35963 warnings introduced in my last commit.
35965 2008-08-03 Robert Millan <rmh@aybabtu.com>
35967 Make PCI available on all i386 architectures.
35969 * include/grub/i386/pc/pci.h: Move from here ...
35970 * include/grub/i386/pci.h: ... to here.
35972 * include/grub/i386/pc/pci.h: Remove.
35973 * include/grub/i386/efi/pci.h: Remove.
35974 * include/grub/x86_64/efi/pci.h: Remove.
35976 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
35977 `<grub/cpu/pci.h>'.
35979 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
35980 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
35981 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
35983 * conf/i386-ieee1275.rmk: Likewise.
35985 2008-08-03 Robert Millan <rmh@aybabtu.com>
35987 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
35988 (grub_console_setcursor): Make it possible to set cursor off.
35990 2008-08-03 Robert Millan <rmh@aybabtu.com>
35992 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
35993 of modules instead of assuming which platform provides what.
35994 * util/update-grub.in: Likewise.
35996 2008-08-03 Robert Millan <rmh@aybabtu.com>
35998 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
35999 instead of `grub_install_dos_part' to determine whether a drive needs
36000 to be prepended to prefix (`grub_install_dos_part' is not reliable,
36001 because it can be overridden when loading GRUB via Multiboot).
36003 2008-08-02 Robert Millan <rmh@aybabtu.com>
36005 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
36007 2008-08-02 Robert Millan <rmh@aybabtu.com>
36009 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
36010 of informational grub_dprintf() calls.
36012 2008-08-02 Robert Millan <rmh@aybabtu.com>
36014 * disk/memdisk.c (memdisk_size): Don't initialize.
36015 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
36017 * include/grub/i386/pc/kernel.h
36018 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
36019 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
36020 (grub_memdisk_image_size, grub_arch_memdisk_addr)
36021 (grub_arch_memdisk_size): Remove.
36023 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
36024 field (was only used to transfer a constant). Add `type' field to
36025 support multiple module types.
36026 (grub_module_iterate): New function.
36028 * kern/device.c (grub_device_open): Do not hide error messages
36029 when grub_disk_open() fails. Use grub_print_error() instead.
36031 * kern/i386/pc/init.c (grub_arch_modules_addr)
36032 (grub_arch_memdisk_size): Remove functions.
36033 (grub_arch_modules_addr): Return the module address in high memory
36034 (now that it isn't copied anymore).
36036 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
36037 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
36038 decompression routine (grub_total_module_size already includes that
36039 now). Don't copy modules back to low memory.
36041 * kern/main.c: Include `<grub/mm.h>'.
36042 (grub_load_modules): Split out (and use) ...
36043 (grub_module_iterate): ... this function, which iterates through
36044 module objects and runs a hook.
36045 Comment out grub_mm_init_region() call, as it would cause non-ELF
36046 modules to be overwritten.
36048 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
36049 the memdisk image in its own region, make it part of the module list.
36050 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
36051 (main): Parse --memdisk|-m option, and pass user-provided path as
36052 parameter to generate_image().
36053 (add_segments): Pass `memdisk_path' down to load_modules().
36054 (load_modules): Embed memdisk image in module section when requested.
36055 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
36056 `header.type' instead of `header.offset'.
36058 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
36059 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
36060 (memdisk_mod_LDFLAGS): New variables.
36061 * conf/i386-coreboot.rmk: Likewise.
36062 * conf/i386-ieee1275.rmk: Likewise.
36064 2008-08-02 Robert Millan <rmh@aybabtu.com>
36066 * loader/i386/pc/multiboot.c (playground, forward_relocator)
36067 (backward_relocator): New variables. Used to allocate and relocate
36068 the payload, respectively.
36069 (grub_multiboot_load_elf32): Load into heap instead of requested
36070 address, install the appropriate relocator code in each bound of
36071 the payload, and set the entry point such that
36072 grub_multiboot_real_boot() will jump to one of them.
36074 * kern/i386/loader.S (grub_multiboot_payload_size)
36075 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
36076 (grub_multiboot_payload_entry_offset): New variables.
36077 (grub_multiboot_real_boot): Set cpu context to what the relocator
36078 expects, and jump to the relocator instead of the payload.
36080 * include/grub/i386/loader.h (grub_multiboot_payload_size)
36081 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
36082 (grub_multiboot_payload_entry_offset): Export.
36084 2008-08-01 Bean <bean123ch@gmail.com>
36086 * normal/menu_entry.c (editor_getline): Don't return the original
36087 string as result, as it will be released by lexer once it has done
36090 2008-08-01 Robert Millan <rmh@aybabtu.com>
36092 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
36093 within menuentries, not before them.
36094 util/grub.d/10_hurd.in: Likewise.
36096 2008-08-01 Bean <bean123ch@gmail.com>
36098 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
36099 (bufio_mod_SOURCES): New macro.
36100 (bufio_mod_CFLAGS): Likewise.
36101 (bufio_mod_LDFLAGS): Likewise.
36103 * include/grub/bufio.h: New file.
36105 * io/bufio.c: Likewise.
36107 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
36108 (grub_video_reader_png): Use grub_buffile_open to open file.
36110 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
36111 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
36113 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
36114 (grub_video_reader_tga): Use grub_buffile_open to open file.
36116 * font/manager.c: Include <grub/bufio.h>.
36117 (add_font): Use grub_buffile_open to open file.
36119 2008-07-31 Robert Millan <rmh@aybabtu.com>
36121 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
36122 ELF segments, use a macro for arbitrarily accessing any of them instead
36123 of preparing a pointer that allows access to one at a time.
36124 (grub_multiboot_load_elf64): Likewise.
36126 2008-07-31 Bean <bean123ch@gmail.com>
36128 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
36129 GRUB_KERNEL_MACHINE_DATA_END.
36131 2008-07-30 Robert Millan <rmh@aybabtu.com>
36133 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
36134 Increase from 0x50 to 0x60.
36135 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
36136 use UUIDs to identify the root drive for them. If that's not
36138 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
36139 check, for cross-disk installs.
36141 2008-07-30 Robert Millan <rmh@aybabtu.com>
36143 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
36144 is non-empty, use it to set the `prefix' environment variable instead
36145 of the usual approach.
36146 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
36147 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
36148 environment variable instead of dummy make_install_device().
36150 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
36151 (start): Insert a data section, with `grub_prefix' variable.
36152 * kern/i386/linuxbios/startup.S: Likewise.
36154 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
36155 New variable reference.
36156 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
36157 New macro. Defines offset of `grub_prefix' within startup.S (relative
36159 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
36160 section within startup.S (relative to `start').
36161 * include/grub/i386/coreboot/kernel.h: Likewise.
36163 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
36164 Overwrite grub_prefix with its contents, at the beginning of the
36166 (main): Understand -p|--prefix.
36168 2008-07-30 Robert Millan <rmh@aybabtu.com>
36170 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
36172 2008-07-30 Robert Millan <rmh@aybabtu.com>
36174 * term/i386/pc/vga_text.c (grub_console_cls): Use
36175 grub_console_gotoxy() to go back to beginning of the screen.
36176 Found by Patrick Georgi <patrick.georgi@coresystems.de>
36178 2008-07-29 Christian Franke <franke@computer.org>
36180 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
36181 Add conversion of emulated mount points on Cygwin.
36183 2008-07-29 Christian Franke <franke@computer.org>
36185 * util/update-grub.in: Add a check for admin
36187 Remove old `grub.cfg.new' before creation.
36188 Add `-f' to `mv' to handle the different filesystem
36189 semantics of Windows.
36191 2008-07-29 Bean <bean123ch@gmail.com>
36193 * normal/main.c (get_line): Fix buffer overflow bug.
36195 2008-07-28 Robert Millan <rmh@aybabtu.com>
36197 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
36198 (struct grub_apple_header): New struct. Describes the layout of
36199 the partmap header.
36200 (apple_partition_map_iterate): Check the header magic as well as the
36201 partition magic (which was already being checked).
36203 2008-07-28 Pavel Roskin <proski@gnu.org>
36205 * genmk.rb: Add a warning to the beginning of the output that
36206 it's a generated file and should not be edited.
36208 2008-07-28 Robert Millan <rmh@aybabtu.com>
36210 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
36211 with the same number are found, just use issue a warning with
36212 grub_dprintf(), as this error has been reported to be non-fatal.
36214 2008-07-27 Robert Millan <rmh@aybabtu.com>
36216 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
36219 2008-07-27 Bean <bean123ch@gmail.com>
36221 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
36222 (grub_fat_find_dir): Ignore case when comparing filename.
36224 2008-07-27 Bean <bean123ch@gmail.com>
36226 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
36227 smallino, as it's more descriptive, and i8count can be confused with
36228 the other field count.
36229 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
36232 2008-07-27 Bean <bean123ch@gmail.com>
36234 * commands/crc.c: New file.
36236 * lib/crc.c: Likewise.
36238 * include/grub/lib/crc.h: Likewise.
36240 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
36242 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
36243 (hexdump): Move this function to ...
36245 * lib/hexdump.c: ... here.
36247 * include/grub/hexdump.h: Renamed to ...
36249 * include/grub/lib/hexdump.h: ... this.
36251 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
36253 * util/grub-editenv.c: Likewise.
36255 * include/envblk.h: Renamed to ...
36257 * include/lib/envblk.h: ... this.
36259 * util/envblk.c: Renamed to ...
36261 * lib/envblk.c: ... this.
36263 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
36265 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
36266 (pkglib_MODULES): Add crc.mod.
36267 (hexdump_mod_SOURCES): Add lib/hexdump.c.
36268 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
36269 (crc_mod_SOURCES): New macro.
36270 (crc_mod_CFLAGS): Likewise.
36271 (crc_mod_LDFLAGS): Likewise.
36273 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
36275 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36277 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36279 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36281 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36283 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
36285 * commands/help.c: Include <grub/term.h>.
36286 (TERM_WIDTH): Removed. Updated all users.
36288 2008-07-27 Pavel Roskin <proski@gnu.org>
36290 * util/getroot.c (find_root_device): Rephrase a comment to avoid
36291 spurious warnings about a comment within a comment.
36293 2008-07-25 Robert Millan <rmh@aybabtu.com>
36295 * util/getroot.c (find_root_device): Skip devices that match
36296 /dev/dm-[0-9]. This lets the real device be found for any type of
36297 abstraction (LVM, EVMS, RAID..).
36298 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
36299 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
36300 device is found first, find_root_device() will now skip it.
36302 2008-07-24 Pavel Roskin <proski@gnu.org>
36304 * include/grub/types.h: Use __builtin_bswap32() and
36305 __builtin_bswap64() with gcc 4.3 and newer.
36307 2008-07-24 Christian Franke <franke@computer.org>
36309 * util/i386/pc/grub-install.in: If `--debug' is specified,
36310 pass `--verbose' to grub-setup.
36311 Abort script if make_system_path_relative_to_its_root() fails.
36313 2008-07-24 Bean <bean123ch@gmail.com>
36315 * configure.ac: Fixed a bug caused by the previous cygwin patch,
36316 variable `target_platform' should be `platform'.
36318 2008-07-24 Bean <bean123ch@gmail.com>
36320 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
36321 (grub_png_init_fixed_block): New function.
36322 (grub_png_decode_image_data): Handle fixed huffman code compression.
36324 2008-07-24 Bean <bean123ch@gmail.com>
36326 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
36327 (grub_pe2elf_SOURCES): New macro.
36328 (CLEANFILES): Add grub-pe2elf.
36330 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
36331 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
36332 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
36333 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
36334 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
36335 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
36336 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
36337 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
36338 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
36339 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
36340 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
36341 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
36342 (GRUB_PE32_DT_FUNCTION): Likewise.
36343 (GRUB_PE32_REL_I386_DIR32): Likewise.
36344 (GRUB_PE32_REL_I386_REL32): Likewise.
36345 (grub_pe32_symbol): New structure.
36346 (grub_pe32_reloc): Likewise.
36348 * util/grub-pe2elf.c: New file.
36350 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
36351 start symbol in non pc platform.
36353 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
36355 The following patches are from Christian Franke.
36357 * include/grub/dl.h: Remove .previous, gas supports this only
36360 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
36361 Remove .type, gas supports this only for ELF format.
36363 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
36364 nullbytes in symbol table. This fixes an infinite loop if table is
36367 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
36368 TARGET_IMG_LDFLAGS and EXEEXT.
36370 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
36371 TARGET_IMG_LDFLAGS_AC.
36372 (grub_CHECK_STACK_ARG_PROBE): New function.
36374 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
36376 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
36378 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
36379 to set TARGET_IMG_LD* accordingly.
36380 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
36381 Add call to grub_CHECK_STACK_ARG_PROBE.
36382 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
36384 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
36386 * genmk.rb: Add EXEEXT to CLEANFILES.
36388 2008-07-23 Robert Millan <rmh@aybabtu.com>
36390 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
36391 define the codes for arrows and lines used for the menu).
36392 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
36395 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
36396 fonts, because the latter are too slow.
36398 2008-07-21 Bean <bean123ch@gmail.com>
36400 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
36401 a20. Run keyboard test last, as it will cause macbook to halt.
36403 2008-07-18 Pavel Roskin <proski@gnu.org>
36405 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
36406 load foreign architecture modules correctly anyway. Keep
36407 support for loading host architecture modules, whether we
36408 compile them or not.
36410 2008-07-17 Pavel Roskin <proski@gnu.org>
36412 * configure.ac: Use -m32 or -m64 regardless of whether we had to
36413 change target_cpu. The compiler default can mismatch target_cpu
36416 * disk/efi/efidisk.c: Fix format warnings on x86_64.
36417 * kern/efi/efi.c: Likewise.
36419 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
36420 target compiler is functional.
36421 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
36424 * configure.ac: Default to efi platform for x86_64-apple. Allow
36425 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
36426 adjustments from the rest, only do them if target is not
36427 explicitly given. Merge other adjustments with the final sanity
36428 check. Remove an extraneous check for supported CPU. Be
36429 specific which CPU and which platform is not supported.
36431 * configure.ac: Default to pc platform for x86_64.
36433 2008-07-17 Robert Millan <rmh@aybabtu.com>
36435 Partial LinuxBIOS -> Coreboot rename.
36437 * conf/i386-linuxbios.rmk: Renamed to ...
36438 * conf/i386-coreboot.rmk: ... this.
36439 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
36440 * configure.ac: Accept "coreboot" as input platform (but maintain
36441 compatibility with "linuxbios").
36442 * include/grub/i386/linuxbios: Renamed to ...
36443 * include/grub/i386/coreboot: ... this.
36445 2008-07-17 Bean <bean123ch@gmail.com>
36447 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
36448 (appleldr_mod_SOURCE): New variable.
36449 (appleldr_mod_CFLAGS): Likewise.
36450 (appleldr_mod_LDFLAGS): Likewise.
36451 (pci_mod_SOURCES): Likewise.
36452 (pci_mod_CFLAGS): Likewise.
36453 (pci_mod_LDFLAGS): Likewise.
36454 (lspci_mod_SOURCES): Likewise.
36455 (lspci_mod_CFLAGS): Likewise.
36456 (lspci_mod_LDFLAGS): Likewise.
36458 * conf/x86_64-efi.rmk: New file.
36460 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
36462 (grub_efidisk_write): Likewise.
36464 * include/efi/api.h (efi_call_0): New macro.
36465 (efi_call_1): Likewise.
36466 (efi_call_2): Likewise.
36467 (efi_call_3): Likewise.
36468 (efi_call_4): Likewise.
36469 (efi_call_5): Likewise.
36470 (efi_call_6): Likewise.
36472 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
36473 grub_rescue_cmd_chainloader.
36475 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
36476 (grub_pe32_optional_header): Change some fields based on i386 or
36478 (GRUB_PE32_PE32_MAGIC): Likewise.
36480 * include/grub/efi/uga_draw.h: New file.
36482 * include/grub/elf.h (STN_ABS): New constant.
36483 (R_X86_64_NONE): Relocation constant for x86_64.
36484 (R_X86_64_64): Likewise.
36485 (R_X86_64_PC32): Likewise.
36486 (R_X86_64_GOT32): Likewise.
36487 (R_X86_64_PLT32): Likewise.
36488 (R_X86_64_COPY): Likewise.
36489 (R_X86_64_GLOB_DAT): Likewise.
36490 (R_X86_64_JUMP_SLOT): Likewise.
36491 (R_X86_64_RELATIVE): Likewise.
36492 (R_X86_64_GOTPCREL): Likewise.
36493 (R_X86_64_32): Likewise.
36494 (R_X86_64_32S): Likewise.
36495 (R_X86_64_16): Likewise.
36496 (R_X86_64_PC16): Likewise.
36497 (R_X86_64_8): Likewise.
36498 (R_X86_64_PC8): Likewise.
36500 * include/grub/i386/efi/pci.h: New file.
36502 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
36503 Change it value based on platform.
36504 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
36505 (GRUB_E820_RAM): Likewise.
36506 (GRUB_E820_RESERVED): Likewise.
36507 (GRUB_E820_ACPI): Likewise.
36508 (GRUB_E820_NVS): Likewise.
36509 (GRUB_E820_EXEC_CODE): Likewise.
36510 (GRUB_E820_MAX_ENTRY): Likewise.
36511 (grub_e820_mmap): New structure.
36512 (linux_kernel_header): Change the efi field according to different
36513 kernel version, also field from linux_kernel_header.
36515 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
36517 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
36518 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
36519 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
36520 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
36521 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
36522 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
36523 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
36524 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
36525 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
36526 (GRUB_PCI_ADDR_IO_MASK): Likewise.
36528 * include/grub/x86_64/efi/kernel.h: New file.
36530 * include/grub/x86_64/efi/loader.h: Likewise.
36532 * include/grub/x86_64/efi/machine.h: Likewise.
36534 * include/grub/x86_64/efi/pci.h: Likewise.
36536 * include/grub/x86_64/efi/time.h: Likewise.
36538 * include/grub/x86_64/linux.h: Likewise.
36540 * include/grub/x86_64/setjmp.h: Likewise.
36542 * include/grub/x86_64/time.h: Likewise.
36544 * include/grub/x86_64/types.h: Likewise.
36546 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
36547 GRUB_TARGET_SIZEOF_VOID_P.
36549 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
36550 (grub_efi_locate_handle): Likewise.
36551 (grub_efi_open_protocol): Likewise.
36552 (grub_efi_set_text_mode): Likewise.
36553 (grub_efi_stall): Likewise.
36554 (grub_exit): Likewise.
36555 (grub_reboot): Likewise.
36556 (grub_halt): Likewise.
36557 (grub_efi_exit_boot_services): Likewise.
36558 (grub_get_rtc): Likewise.
36560 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
36561 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
36562 (grub_efi_allocate_pages): Wrap efi calls.
36563 (grub_efi_free_pages): Wrap efi calls.
36564 (grub_efi_get_memory_map): Wrap efi calls.
36566 * kern/x86_64/dl.c: New file.
36568 * kern/x86_64/efi/callwrap.S: Likewise.
36570 * kern/x86_64/efi/startup.S: Likewise.
36572 * loader/efi/appleloader.c: Likewise.
36574 * loader/efi/chainloader.c (cmdline): New variable.
36575 (grub_chainloader_unload): Wrap efi calls.
36576 (grub_chainloader_boot): Likewise.
36577 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
36580 * loader/efi/chainloader_normal.c (chainloader_command):
36581 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
36584 * loader/i386/efi/linux.c (allocate_pages): Change allocation
36586 (grub_e820_add_region): New function.
36587 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
36589 (grub_find_video_card): New function.
36590 (grub_linux_setup_video): New function.
36591 (grub_rescue_cmd_linux): Probe for video information.
36593 * normal/x86_64/setjmp.S: New file.
36595 * term/efi/console.c (map_char): New function.
36596 (grub_console_putchar): Map unicode char.
36597 (grub_console_checkkey): Wrap efi calls.
36598 (grub_console_getkey): Likewise.
36599 (grub_console_getwh): Likewise.
36600 (grub_console_gotoxy): Likewise.
36601 (grub_console_cls): Likewise.
36602 (grub_console_setcolorstate): Likewise.
36603 (grub_console_setcursor): Likewise.
36605 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
36607 2008-07-16 Pavel Roskin <proski@gnu.org>
36609 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
36612 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
36613 pointer, not an integer. This fixes a warning and prevents
36614 precision loss on 64-bit systems.
36615 (relocate_addresses): Remove unneeded cast.
36617 2008-07-15 Pavel Roskin <proski@gnu.org>
36619 * kern/i386/ieee1275/init.c: Include grub/cache.h.
36621 * term/ieee1275/ofconsole.c: Disable code unused on i386.
36623 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
36624 Fix comparison between signed and unsigned.
36626 * include/grub/i386/ieee1275/console.h: Declare
36627 grub_console_init() and grub_console_fini().
36629 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
36630 It's empty and unused.
36632 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
36633 beginning to avoid warnings with some compilers.
36635 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
36636 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
36638 2008-07-14 Pavel Roskin <proski@gnu.org>
36640 * kern/env.c (grub_register_variable_hook): Don't copy empty
36641 string, it leaks memory. Pass "" to grub_env_set(), it should
36642 handle constant strings.
36644 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
36645 * commands/cmp.c (grub_cmd_cmp): Likewise.
36646 * kern/dl.c (grub_dl_flush_cache): Likewise.
36647 (grub_dl_load_core): Likewise.
36648 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
36649 (grub_elf64_load_phdrs): Likewise.
36651 2008-07-13 Pavel Roskin <proski@gnu.org>
36653 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
36654 between signed and unsigned.
36655 (LzmaEnc_Finish): Fix warning about an unused parameter.
36657 2008-07-13 Bean <bean123ch@gmail.com>
36659 * Makefile.in (enable_lzo): New rule.
36661 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
36663 * configure.ac (ENABLE_LZO): New option --enable-lzo.
36665 * boot/i386/pc/lnxboot.S: #include <config.h>.
36667 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
36668 its value according to the compression algorithm used, lzo or lzma.
36670 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
36671 compression algorithm according to configure macro.
36673 * kern/i386/pc/startup.S (codestart): Likewise.
36675 * kern/i386/pc/lzma_decode.S: New file.
36677 * include/grub/lib/LzFind.h: Likewise.
36679 * include/grub/lib/LzHash.h: Likewise.
36681 * include/grub/lib/LzmaDec.h: Likewise.
36683 * include/grub/lib/LzmaEnc.h: Likewise.
36685 * include/grub/lib/LzmaTypes.h: Likewise.
36687 * lib/LzFind.c: Likewise.
36689 * lib/LzmaDec.c: Likewise.
36691 * lib/LzmaEnc.c: Likewise.
36693 2008-07-13 Bean <bean123ch@gmail.com>
36695 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
36696 (grub_ext4_extent_header): New structure.
36697 (grub_ext4_extent): Likewise.
36698 (grub_ext4_extent_idx): Likewise.
36699 (grub_ext4_find_leaf): New function.
36700 (grub_ext2_read_block): Handle extents.
36702 2008-07-12 Robert Millan <rmh@aybabtu.com>
36704 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
36706 2008-07-11 Robert Millan <rmh@aybabtu.com>
36708 * util/grub.d/40_custom.in: New file. Example on how to add custom
36709 entries to /etc/grub.d.
36710 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
36711 40_custom (implicitly, by merging all the grub.d rules).
36713 2008-07-11 Pavel Roskin <proski@gnu.org>
36715 * commands/read.c (grub_getline): Fix invalid memory access.
36716 Don't add newline to the variable value.
36718 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
36719 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
36720 (serial_hw_get_port): Check validity of the port number.
36721 (grub_cmd_serial): Check return value of serial_hw_get_port().
36723 2008-07-07 Pavel Roskin <proski@gnu.org>
36725 * boot/i386/pc/diskboot.S (notification_string): Replace
36726 "Loading kernel" with just "loading". This is shorter, less
36727 confusing and saves a few bytes for possible future changes.
36729 2008-07-05 Pavel Roskin <proski@gnu.org>
36731 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
36732 size for ATAPI devices, they are undefined. Output sector
36733 number in decimal form.
36735 * disk/ata.c: Use named constants for status bits.
36737 2008-07-04 Pavel Roskin <proski@gnu.org>
36739 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
36740 grub_addr_t before casting it to the void pointer to fix a
36741 warning. Non-addressable regions are discarded earlier.
36742 (grub_arch_modules_addr): Cast _end to grub_addr_t.
36743 * kern/i386/linuxbios/table.c: Include grub/misc.h.
36744 (check_signature): Don't shadow table_header.
36745 (grub_linuxbios_table_iterate): Cast numeric constants to
36746 grub_linuxbios_table_header_t.
36747 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
36750 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
36753 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
36754 pointer, which can cause warnings. Support 64-bit addresses.
36756 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
36757 of sizeof(long). This fixes PowerPC image generation on x86_64.
36759 2008-07-04 Robert Millan <rmh@aybabtu.com>
36761 This fixes a performance issue when pc & gpt partmap iterators
36762 didn't abort iteration even after our hook found what it was
36763 looking for (often causing expensive probes of non-existent drives).
36765 Some callers relied on previous buggy behaviour, since they would
36766 raise an error when their own hooks caused early abortion of its
36769 * kern/device.c (grub_device_open): Improve error message.
36770 * disk/lvm.c (grub_lvm_open): Likewise.
36771 * disk/raid.c (grub_raid_open): Likewise.
36773 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
36774 when hook requests it, independently of grub_errno.
36775 (pc_partition_map_probe): Do not fail when find_func() caused
36776 early abortion of pc_partition_map_iterate().
36778 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
36779 when hook requests it, independently of grub_errno.
36780 (gpt_partition_map_probe): Do not fail when find_func() caused
36781 early abortion of gpt_partition_map_iterate().
36783 * kern/partition.c (grub_partition_iterate): Abort parent iteration
36784 when hook requests it, independently of grub_errno. Do not fail when
36785 part_map_iterate_hook() caused early abortion of p->iterate().
36787 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
36788 when grub_partition_iterate() returned with non-zero.
36790 2008-07-03 Pavel Roskin <proski@gnu.org>
36792 * disk/ata.c (grub_ata_pio_write): Check status before writing,
36793 like we do in grub_ata_pio_read().
36794 (grub_ata_readwrite): Always write individual sectors. Fix the
36795 sector count for the remainder.
36796 (grub_ata_write): Enable writing to ATA devices. Correctly
36797 report error for ATAPI devices.
36799 2008-07-02 Pavel Roskin <proski@gnu.org>
36801 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
36804 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
36805 for every read sector, we already increment it for the whole
36806 batch. This fixes reading more than 256 sectors at once.
36808 * util/grub-editenv.c (cmd_info): Cast argument to long
36809 explicitly. ptrdiff_t reduces to int on i386.
36811 * util/grub-editenv.c (main): Be specific which parameter is
36814 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
36815 (memdisk): Make memdisk_orig_addr a pointer.
36817 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
36818 for file offsets, use grub_off_t instead. Fix printf format
36821 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
36822 there. Real unexpected warnings should not drown in the noise
36823 about known problems.
36825 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
36826 grub_disk_addr_t for memory addresses.
36828 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
36829 explicitly to fix a warning.
36831 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
36833 * Makefile.in (MODULE_LDFLAGS): New variable.
36834 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
36835 the linker accepts --build-id=none.
36836 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
36838 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
36840 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
36841 those in Linux XFS code. Provide a way to access 64-bit parent
36843 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
36844 the end of struct grub_xfs_dir_header.
36846 2008-07-02 Bean <bean123ch@gmail.com>
36848 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
36849 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
36850 and GRUB_IEEE1275_FLAG_NO_ANSI.
36852 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
36853 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
36854 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
36856 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
36857 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
36859 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
36860 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
36862 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
36863 esc sequence on non ANSI terminal.
36864 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
36866 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
36869 2008-07-02 Bean <bean123ch@gmail.com>
36871 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
36872 (grub_editenv_SOURCES): New variable.
36873 (pkglib_MODULES): Add loadenv.mod.
36874 (loadenv_mod_SOURCES): New variable.
36875 (loadenv_mod_CFLAGS): Likewise.
36876 (loadenv_mod_LDFLAGS): Likewise.
36878 * include/grub/envblk.h: New file.
36880 * util/envblk.c: New file.
36882 * util/grub-editenv.c: New file.
36884 * commands/loadenv.c: New file.
36886 2008-07-01 Pavel Roskin <proski@gnu.org>
36888 * include/multiboot2.h (struct multiboot_tag_module): Use char,
36889 not unsigned char. This fixes warnings and is consistent with
36892 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
36894 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
36896 * term/tparm.c (analyze): Always set *popcount.
36898 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
36899 cast to fix a warning.
36901 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
36902 cast to suppress a warning.
36904 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
36905 grub_fshelp_read_file() expects.
36907 * fs/fat.c: Fix UUID calculation on big-endian systems. We
36908 write uuid as a 32-bit value in CPU byte order, so declare and
36911 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
36912 long if the format specifier expects it.
36913 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
36914 * partmap/pc.c (pc_partition_map_iterate): Likewise.
36915 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
36916 long to fix a warning.
36917 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
36918 grub_dprintf() arguments to fix warnings.
36920 2008-06-30 Pavel Roskin <proski@gnu.org>
36922 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
36923 install_bsd_part immediately before core.img is embedded or
36924 modified on disk. This fixes core.img verification if core.img
36925 cannot be embedded.
36927 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
36928 core_path to calculate the blocklist.
36929 Patch from Javier Martín <lordhabbit@gmail.com>
36931 2008-06-29 Robert Millan <rmh@aybabtu.com>
36933 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
36934 block to disk block.
36935 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
36936 Patch from Niels Böhm <bitbucket@arcor.de>
36938 2008-06-29 Robert Millan <rmh@aybabtu.com>
36940 * util/update-grub_lib.in (font_path): Search for fonts in
36941 /boot/grub first, which is more likely to be readable (we aren't
36942 deciding where fonts live, just looking for them).
36944 2008-06-26 Pavel Roskin <proski@gnu.org>
36946 * util/biosdisk.c (read_device_map): Don't leave dead map
36947 entries for devices failing stat() check.
36949 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
36950 core_path_dev for the core.img path on the target device.
36952 2008-06-26 Robert Millan <rmh@aybabtu.com>
36954 * disk/fs_uuid.c: New file.
36955 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
36956 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
36957 (fs_uuid_mod_LDFLAGS): New variables.
36958 * include/grub/disk.h (grub_disk_dev_id): Add
36959 `GRUB_DISK_DEVICE_UUID_ID'.
36960 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
36961 implement iterate().
36963 2008-06-26 Robert Millan <rmh@aybabtu.com>
36965 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
36966 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
36967 Linux image includes no initrd.
36969 2008-06-21 Javier Martín <lordhabbit@gmail.com>
36971 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
36972 call to resolve the core image location that effectively appended the
36975 2008-06-21 Robert Millan <rmh@aybabtu.com>
36977 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
36980 * util/grub.d/10_hurd.in: ... to here ...
36981 * util/grub.d/10_linux.in: ... and here.
36983 2008-06-19 Robert Millan <rmh@aybabtu.com>
36985 * kern/main.c (grub_main): Export `prefix' variable immediately
36986 after it has been set by grub_machine_set_prefix().
36988 2008-06-19 Robert Millan <rmh@aybabtu.com>
36990 * commands/search.c (search_label, search_fs_uuid, search_file): Print
36991 search result when not saving to variable, not the other way around.
36992 When saving to variable, abort iteration as soon as a match is found.
36994 2008-06-19 Robert Millan <rmh@aybabtu.com>
36996 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
36997 check for partition that provides /boot/grub. Its logic is flawed,
36998 as it prevents prepare_grub_to_access_device() from being called
37001 2008-06-19 Robert Millan <rmh@aybabtu.com>
37003 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
37004 "insmod" command directly when abstraction modules are needed,
37005 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
37006 since it had already been processed).
37008 2008-06-19 Pavel Roskin <proski@gnu.org>
37010 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
37011 changed. This is needed in case GRUB_LIBDIR changes.
37012 * conf/i386-ieee1275.rmk: Likewise.
37013 * conf/i386-linuxbios.rmk: Likewise.
37014 * conf/i386-pc.rmk: Likewise.
37015 * conf/powerpc-ieee1275.rmk: Likewise.
37017 2008-06-18 Pavel Roskin <proski@gnu.org>
37019 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
37020 kernel_elf_symlist.c to symlist.c for consistency with other
37021 architectures. Update all users.
37022 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
37024 2008-06-18 Robert Millan <rmh@aybabtu.com>
37026 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
37029 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
37030 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
37031 a RAID device, run setup() for all members independently on whether
37032 LVM abstraction is being used.
37033 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
37034 If grub-mkimage has set `*install_dos_part == -2', don't override this
37036 Perform *install_dos_part adjustments independently on whether
37037 we're embedding or not.
37038 Clarify error message when image is too big for embedding.
37039 Remove duplicate *install_dos_part stanza.
37041 2008-06-17 Robert Millan <rmh@aybabtu.com>
37043 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
37044 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
37046 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
37047 values in grub_ofconsole_normal_color and
37048 grub_ofconsole_highlight_color (they're not directly related to
37049 background and foreground).
37050 (grub_ofconsole_setcolorstate): Extract background and foreground
37051 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
37053 2008-06-17 Robert Millan <rmh@aybabtu.com>
37055 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
37056 /boot/grub for the check in last commit, not /boot (they could be
37057 different partitions).
37059 2008-06-16 Robert Millan <rmh@aybabtu.com>
37061 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
37062 asked to setup access for the same partition that provides /boot,
37063 don't bother using UUIDs since our root already has the value we
37066 2008-06-16 Robert Millan <rmh@aybabtu.com>
37068 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
37070 Patch from Sven Mueller <sven@debian.org>.
37072 2008-06-16 Robert Millan <rmh@aybabtu.com>
37074 * util/update-grub.in: Check for $EUID instead of $UID.
37075 Reported by Vincent Zweije.
37077 2008-06-16 Bean <bean123ch@gmail.com>
37079 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
37080 (grub_ext2_read_block): Likewise.
37081 (grub_ext2_read_inode): Likewise.
37082 (grub_ext2_mount): Likewise.
37083 (grub_ext2_close): Likewise.
37084 (grub_ext3_get_journal): Removed.
37086 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
37087 (grub_reiserfs_read_symlink): Likewise.
37088 (grub_reiserfs_mount): Likewise.
37089 (grub_reiserfs_open): Likewise.
37090 (grub_reiserfs_read): Likewise.
37091 (grub_reiserfs_close): Likewise.
37092 (grub_reiserfs_get_journal): Removed.
37094 * fs/fshelp.c (grub_fshelp_read): Removed.
37095 (grub_fshelp_map_block): Likewise.
37097 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
37098 (grub_fshelp_journal): Likewise.
37099 (grub_fshelp_read): Likewise.
37100 (grub_fshelp_map_block): Likewise.
37102 2008-06-16 Pavel Roskin <proski@gnu.org>
37104 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
37105 floating point anymore.
37106 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
37108 2008-06-15 Pavel Roskin <proski@gnu.org>
37110 * commands/ls.c (grub_ls_list_files): Use integer calculations
37111 for human readable format, avoid floating point use.
37112 * kern/misc.c (grub_ftoa): Remove.
37113 (grub_vsprintf): Remove floating point support.
37115 2008-06-15 Robert Millan <rmh@aybabtu.com>
37117 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
37119 Reported by Max Vozeler.
37121 2008-06-15 Robert Millan <rmh@aybabtu.com>
37123 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
37124 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
37126 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
37127 the beginning of the prefix.
37129 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
37130 It is assumed that if we have a memdisk, grub-mkimage has set
37131 grub_prefix to include the "(memdisk)" drive in it.
37133 2008-06-15 Robert Millan <rmh@aybabtu.com>
37135 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
37136 Initialize keyboard controller after registering the terminal, so that
37137 grub_printf() can be called from grub_keyboard_controller_init().
37139 2008-06-15 Robert Millan <rmh@aybabtu.com>
37141 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
37142 extent-btree which is written as big endian on disk.
37143 Reported by Alain Greppin <al@chilibi.org>.
37145 2008-06-14 Robert Millan <rmh@aybabtu.com>
37147 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
37148 * util/i386/pc/grub-install.in (modules): Likewise.
37150 2008-06-13 Pavel Roskin <proski@gnu.org>
37152 * commands/ls.c (grub_ls_list_files): Fix format warnings.
37154 2008-06-13 Bean <bean123ch@gmail.com>
37156 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
37158 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
37160 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
37161 to indicate sparse block.
37163 2008-06-12 Pavel Roskin <proski@gnu.org>
37165 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
37166 number, grub_fshelp_read() does it for us.
37168 * fs/fshelp.c (grub_fshelp_read): New function. Implement
37169 linear disk read with journal translation.
37170 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
37171 * include/grub/fshelp.h: Declare grub_fshelp_read().
37173 2008-06-09 Pavel Roskin <proski@gnu.org>
37175 * fs/minix.c (grub_minix_mount): Handle error reading
37178 2008-06-08 Robert Millan <rmh@aybabtu.com>
37180 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
37181 don't append the RAID prefix afterwards.
37182 Reported by Clint Adams.
37184 2008-06-08 Robert Millan <rmh@aybabtu.com>
37186 Based on description from Pavel:
37187 * kern/disk.c (grub_disk_check_range): Rename to ...
37188 (grub_disk_adjust_range): ... this. Add a comment explaining the
37189 tasks performed by this function.
37191 2008-06-08 Robert Millan <rmh@aybabtu.com>
37193 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
37194 `num_serial' (for consistency with other variables).
37195 (struct grub_ntfs_data): Add `uuid' member.
37196 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
37197 (grub_ntfs_uuid): New function.
37198 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
37200 2008-06-07 Pavel Roskin <proski@gnu.org>
37202 * util/biosdisk.c (open_device): Revert last change to the
37203 function, it broke installation. The sector needs to be
37204 different dependent on which device is opened.
37206 2008-06-06 Robert Millan <rmh@aybabtu.com>
37208 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
37209 rest of GRUB, and breakage doesn't happen if its value were modified.
37211 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
37212 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
37213 a constant (same value).
37214 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
37215 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
37217 2008-06-06 Robert Millan <rmh@aybabtu.com>
37219 * util/biosdisk.c (open_device): Do not modify sector offset when
37220 accessing a partition. kern/disk.c already handles this for us.
37222 2008-06-06 Robert Millan <rmh@aybabtu.com>
37224 * util/grub-emu.c (grub_machine_init): Move code in this function from
37226 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
37227 segfault in case grub_printf() is called).
37229 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
37230 grub_probe. Update all users not to explicitly add it again.
37231 (grub_device): New variable; contains corresponding device for grubdir.
37232 (fs_module, partmap_module, devabstraction_module): Pass
37233 `--device ${grub_device}' to grub_probe to avoid traversing /dev
37236 2008-06-05 Robert Millan <rmh@aybabtu.com>
37238 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
37239 is found, print it (same layout as with labels).
37241 2008-06-04 Robert Millan <rmh@aybabtu.com>
37243 * util/biosdisk.c (get_drive): Rename to ...
37244 (find_grub_drive): ... this. Update all users.
37246 (get_os_disk): Rename to ...
37247 (convert_system_partition_to_system_disk): ... this. Update all users.
37249 (find_drive): Rename to ...
37250 (find_system_device): ... this. Update all users.
37252 2008-06-04 Robert Millan <rmh@aybabtu.com>
37254 * util/biosdisk.c (get_os_disk): Handle IDA devices.
37255 * util/grub-mkdevicemap.c (get_mmc_disk_name)
37256 (make_device_map): Likewise.
37258 2008-06-01 Robert Millan <rmh@aybabtu.com>
37260 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
37261 before dereferencing it.
37263 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
37264 union with fat12/fat16-specific ones. Add some new fields, including
37265 `num_serial' for both versions.
37266 (struct grub_fat_data): Add `uuid' member.
37267 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
37268 names. Initialize `data->uuid' using `num_serial'.
37269 (grub_fat_uuid): New function.
37270 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
37272 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
37273 (grub_reiserfs_uuid): New function.
37274 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
37277 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
37278 (grub_xfs_uuid): New function.
37279 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
37281 2008-06-01 Robert Millan <rmh@aybabtu.com>
37283 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
37284 code that is backward compatible with pre-uuid search command.
37286 2008-05-31 Robert Millan <rmh@aybabtu.com>
37288 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
37289 floppies after everything else, to ensure floppy drive isn't accessed
37290 unnecessarily (patch from Bean).
37292 2008-05-31 Robert Millan <rmh@aybabtu.com>
37294 * commands/search.c (search_label, search_fs_uuid, search_file): Do
37295 not print device names when we were asked to set a variable.
37297 2008-05-31 Robert Millan <rmh@aybabtu.com>
37299 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
37300 using "cursor-on" and "cursor-off" commands (understood at least by
37301 the Open Firmware flavour on OLPC).
37303 2008-05-31 Michael Gorven <michael@gorven.za.net>
37305 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
37306 on and off sequences.
37308 2008-05-31 Robert Millan <rmh@aybabtu.com>
37310 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
37311 * util/update-grub.in: Likewise.
37313 2008-05-30 Pavel Roskin <proski@gnu.org>
37315 * util/biosdisk.c (linux_find_partition): Simplify logic and
37316 make the code more universal. Keep special processing for
37317 devfs, but use a simple rule for all other devices. If the
37318 device ends with a number, append 'p' and the partition number.
37319 Otherwise, append only the partition number.
37321 2008-05-30 Robert Millan <rmh@aybabtu.com>
37323 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
37324 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
37325 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
37326 the `root' parameter to Linux.
37328 2008-05-30 Robert Millan <rmh@aybabtu.com>
37330 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
37331 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
37332 --fs_uuid with --fs-uuid.
37333 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
37334 all filesystems support them).
37336 2008-05-30 Robert Millan <rmh@aybabtu.com>
37338 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
37339 grub_printf() flags, since we're printing in units of 2 bytes.
37341 2008-05-30 Robert Millan <rmh@aybabtu.com>
37343 * util/grub.d/00_header.in: Remove obsolete comment referencing
37344 convert_system_path_to_grub_path().
37345 * util/update-grub.in: Likewise.
37346 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
37347 (convert_system_path_to_grub_path): Add a warning message explaining
37348 that this function is deprecated. Rely on is_path_readable_by_grub()
37349 for the readability checks.
37350 (font_path): Use is_path_readable_by_grub() for the readability
37351 check rather than convert_system_path_to_grub_path().
37353 2008-05-30 Robert Millan <rmh@aybabtu.com>
37355 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
37356 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
37357 converting it first.
37358 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
37359 grub.cfg for access to font file, and afterwards call it again to set
37362 2008-05-30 Robert Millan <rmh@aybabtu.com>
37364 * commands/search.c (options): Add --fs_uuid option.
37365 (search_fs_uuid): New function.
37366 (grub_cmd_search): Fix --set argument passing.
37367 Use search_fs_uuid() when requested via --fs_uuid.
37368 (grub_search_init): Update help message.
37369 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
37370 and redeclare it as an array of 16-bit words.
37371 (grub_ext2_uuid): New function.
37372 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
37373 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
37374 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
37375 (GRUB_DEVICE_BOOT_UUID): New variables.
37376 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
37377 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
37379 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
37380 just assume `root' variable has the right value.
37381 * util/grub.d/10_linux.in: Likewise.
37382 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
37384 (main): Recognise `-t fs_uuid' argument.
37386 2008-05-30 Robert Millan <rmh@aybabtu.com>
37388 * util/biosdisk.c (map): Redefine structure to hold information
37389 about GRUB drive name.
37390 (get_drive): Reimplement without assuming (and verifying) BIOS-like
37392 (call_hook): Remove.
37393 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
37394 member. Assume drive has partitions.
37395 (grub_util_biosdisk_open): Access device names via `.device' struct
37397 (open_device): Likewise.
37398 (find_drive): Likewise.
37399 (read_device_map): Adjust map[] usage to match the new struct
37400 definition. Don't check for duplicates (still possible, but not cheap
37402 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
37403 (make_device_name): Remove assumption of BIOS-like drive names.
37405 2008-05-30 Pavel Roskin <proski@gnu.org>
37407 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
37408 compiling execute.c doesn't need grub_script.tab.h anymore.
37409 (normal/command.c_DEPENDENCIES): Likewise.
37410 (normal/function.c_DEPENDENCIES): Likewise.
37411 * conf/i386-ieee1275.rmk: Likewise.
37412 * conf/i386-linuxbios.rmk: Likewise.
37413 * conf/i386-pc.rmk: Likewise.
37414 * conf/powerpc-ieee1275.rmk: Likewise.
37415 * conf/sparc64-ieee1275.rmk: Likewise.
37417 2008-05-29 Pavel Roskin <proski@gnu.org>
37419 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
37420 when scanning metadata for volume group name.
37422 * include/grub/script.h: Don't include grub_script.tab.h. It's
37423 a generated file, which may only be included from the files with
37424 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
37425 use union YYSTYPE, as the later allows forward declaration.
37426 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
37428 2008-05-29 Robert Millan <rmh@aybabtu.com>
37430 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
37431 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
37432 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
37433 (grub_console_checkkey): Add grub_dprintf() call to report unknown
37436 2008-05-29 Robert Millan <rmh@aybabtu.com>
37438 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
37439 control key combinations.
37441 2008-05-29 Robert Millan <rmh@aybabtu.com>
37443 * util/powerpc/ieee1275/grub-install.in: Move from here ...
37444 * util/ieee1275/grub-install.in: ... to here.
37445 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
37446 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
37447 (grub_install_SOURCES): Likewise.
37449 2008-05-29 Robert Millan <rmh@aybabtu.com>
37451 * fs/affs.c: Update copyright year.
37452 * fs/ext2.c: Likewise.
37453 * fs/fshelp.c: Likewise.
37454 * fs/hfsplus.c: Likewise.
37455 * fs/ntfs.c: Likewise.
37456 * fs/xfs.c: Likewise.
37457 * include/grub/fshelp.h: Likewise.
37458 * util/grub-mkdevicemap.c: Likewise.
37460 2008-05-28 Robert Millan <rmh@aybabtu.com>
37462 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
37463 might need to be fatfs to support some firmware implementations
37466 2008-05-28 Robert Millan <rmh@aybabtu.com>
37468 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
37470 * util/grub-mkdevicemap.c (get_mmc_disk_name)
37471 (make_device_map): Likewise.
37473 2008-05-20 Bean <bean123ch@gmail.com>
37475 * fs/fshelp.c (grub_fshelp_map_block): New function.
37476 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
37477 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
37479 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
37480 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
37481 (grub_fshelp_journal): New structure.
37482 (grub_fshelp_map_block): New function prototype.
37483 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
37484 (grub_fshelp_map_block): Likewise.
37486 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
37487 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
37488 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
37489 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
37490 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
37491 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
37492 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
37493 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
37494 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
37495 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
37496 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
37497 (grub_ext2_sblock): New members for journal support.
37498 (grub_ext3_journal_header): New structure.
37499 (grub_ext3_journal_revoke_header): Likewise.
37500 (grub_ext3_journal_block_tag): Likewise.
37501 (grub_ext3_journal_sblock): Likewise.
37502 (grub_fshelp_node): New members logfile and journal.
37503 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
37504 grub_fshelp_map_block to get real block number.
37505 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
37507 (grub_ext2_read_inode): Likewise.
37508 (grub_ext3_get_journal): New function.
37509 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
37510 (grub_ext2_close): Release memory used by journal.
37512 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
37513 (REISERFS_MAGIC_DESC_BLOCK): New macro.
37514 (grub_reiserfs_transaction_header): Renamed to
37515 grub_reiserfs_description_block, replace field data with real_blocks.
37516 (grub_reiserfs_commit_block): New structure.
37517 (grub_reiserfs_data): New member journal.
37518 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
37520 (grub_reiserfs_read_symlink): Likewise.
37521 (grub_reiserfs_iterate_dir): Likewise.
37522 (grub_reiserfs_open): Likewise.
37523 (grub_reiserfs_read): Likewise.
37524 (grub_reiserfs_get_journal): New function.
37525 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
37526 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
37527 using grub_reiserfs_get_journal.
37528 (grub_reiserfs_close): Release memory used by journal.
37530 * fs/affs.c (grub_affs_read_block): Change block type to
37531 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
37533 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
37535 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
37537 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
37539 * fs/udf.c (grub_udf_read_block): Change block type to
37540 grub_disk_addr_t. Use type cast to avoid warning.
37542 * fs/xfs.c (grub_xfs_read_block): Likewise.
37544 2008-05-16 Christian Franke <franke@computer.org>
37546 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
37547 to ensure that break with ESC will always work.
37548 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
37549 Remove ESC from keyboard queue.
37551 2008-05-16 Christian Franke <franke@computer.org>
37553 * util/biosdisk.c: [__CYGWIN__] Add includes.
37554 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
37555 (get_os_disk): Move variable declarations to OS specific
37556 parts to avoid warning.
37557 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
37558 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
37559 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
37561 * util/getroot.c: [__CYGWIN__] Add includes.
37562 (strip_extra_slashes): Fix "/" case.
37563 [__CYGWIN__] (get_win32_path): New function.
37564 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
37565 [__CYGWIN__] (find_root_device): Disable.
37566 [__CYGWIN__] (get_bootsec_serial): New function.
37567 [__CYGWIN__] (find_cygwin_root_device): Likewise.
37568 [__linux__] (grub_guess_root_device): Add early returns to simplify
37570 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
37571 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
37572 check for Linux only.
37574 2008-05-15 Bean <bean123ch@gmail.com>
37576 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
37577 keyboard hang problem in apple's intel mac.
37579 2008-05-09 Robert Millan <rmh@aybabtu.com>
37581 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
37583 * util/grub-mkdevicemap.c (get_virtio_disk_name)
37584 (make_device_map): Likewise.
37585 Reported by Aurelien Jarno <aurel32@debian.org>
37587 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
37589 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
37590 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
37591 (make_device_map): Output entries for xvd type disks.
37593 2008-05-07 Robert Millan <rmh@aybabtu.com>
37595 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
37597 * util/grub-mkdevicemap.c (get_cciss_disk_name)
37598 (make_device_map): Likewise.
37599 Reported by Roland Dreier <rdreier@cisco.com>
37601 2008-05-07 Robert Millan <rmh@aybabtu.com>
37603 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
37604 grub_strstr() call. Correct a few mistakes in failure path handling.
37606 2008-05-06 Robert Millan <rmh@aybabtu.com>
37608 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
37609 Do not print a trailing slash (therefore, the root directory is an
37611 (convert_system_path_to_grub_path): Do not remove trailing slash
37612 from make_system_path_relative_to_its_root() output.
37614 * util/i386/pc/grub-install.in: Add trailing slash to output from
37615 make_system_path_relative_to_its_root().
37617 2008-05-06 Robert Millan <rmh@aybabtu.com>
37619 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
37620 ensures that output lines aren't intermangled with those sent to
37621 stderr (via grub_util_info()).
37622 * util/grub-probe.c (grub_refresh): Likewise.
37623 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
37625 2008-05-05 Christian Franke <franke@computer.org>
37627 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
37628 Add Cygwin device names.
37629 (get_ide_disk_name) [__CYGWIN__]: Likewise.
37630 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
37631 (check_device): Return error instead of success on empty name.
37632 (make_device_map): Move label inside linux specific code to
37633 prevent compiler warning.
37635 2008-04-30 Robert Millan <rmh@aybabtu.com>
37637 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
37638 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
37640 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
37642 2008-04-29 Robert Millan <rmh@aybabtu.com>
37644 * docs/grub.cfg: New file (example GRUB configuration).
37646 2008-04-26 Robert Millan <rmh@aybabtu.com>
37648 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
37649 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
37650 and `disk/ieee1275/nand.c'.
37652 2008-04-25 Bean <bean123ch@gmail.com>
37654 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
37657 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
37658 change the buffer size to 4096 for cdrom device.
37660 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
37662 (_linux_mod_SOURCES): New variable.
37663 (_linux_mod_CFLAGS): Likewise.
37664 (_linux_mod_LDFLAGS): Likewise.
37665 (linux_mod_SOURCES): Likewise.
37666 (linux_mod_CFLAGS): Likewise.
37667 (linux_mod_LDFLAGS): Likewise.
37668 (nand_mod_SOURCES): Likewise.
37669 (nand_mod_CFLAGS): Likewise.
37670 (nand_mod_LDFLAGS): Likewise.
37672 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
37673 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
37674 type property. (nand device in olpc don't have this property)
37676 * include/grub/disk.h (grub_disk_dev_id): New macro
37677 GRUB_DISK_DEVICE_NAND_ID.
37679 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
37680 function prototype.
37681 (grub_rescue_cmd_initrd): Likewise.
37683 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
37684 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
37685 ofw_cif_handler and ofw_idt, adjust padding number.
37687 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
37688 GRUB_MACHINE_IEEE1275 is defined.
37690 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
37691 Use NESTED_FUNC_ATTR attribute on the hook parameter.
37693 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
37694 on nested function heap_init.
37695 (grub_upper_mem): New variable for i386-ieee1275.
37696 (grub_get_extended_memory): New function for i386-ieee1275.
37697 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
37699 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
37700 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
37703 * loader/i386/ieee1275/linux.c: New file.
37705 * loader/i386/ieee1275/linux_normal.c: New file.
37707 * disk/ieee1275/nand.c: New file.
37709 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
37711 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
37713 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
37715 2008-04-18 Robert Millan <rmh@aybabtu.com>
37717 Restructures early code path on ieee1275 to unify grub_main() as
37718 the first C function that is executed in every platform.
37720 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
37721 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
37723 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
37724 * kern/ieee1275/cmain.c (cmain): Rename to ...
37725 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
37726 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
37729 2008-04-18 Robert Millan <rmh@aybabtu.com>
37731 * util/update-grub.in: Fix syntax error when setting
37732 `GRUB_PRELOAD_MODULES'.
37733 Reported by Stephane Chazelas <stephane@artesyncp.com>
37735 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
37737 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
37738 section into account, newer toolchains generate unique build ids
37739 * configure.ac: remove the test for --build-id=none acceptance,
37740 we want build ids to be preserved
37741 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
37742 far from other sections don't cause the raw binary images grow
37745 2008-04-15 Robert Millan <rmh@aybabtu.com>
37747 * disk/lvm.c: Update copyright year.
37748 * kern/misc.c: Likewise.
37750 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
37752 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
37753 there is no memory left for physical volume name.
37755 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
37757 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
37758 volume name mapping to support bigger than 9 character names properly.
37760 2008-04-13 Robert Millan <rmh@aybabtu.com>
37762 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
37763 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
37765 2008-04-13 Christian Franke <franke@computer.org>
37767 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
37768 to create a floppy emulation boot CD when non emulation mode
37770 Enable Joliet CD filesystem extension.
37772 2008-04-13 Robert Millan <rmh@aybabtu.com>
37774 * kern/misc.c (grub_strncat): Fix off-by-one error.
37775 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
37777 * kern/env.c (grub_env_context_close): Clear current context, not
37779 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
37781 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
37783 2008-04-13 Robert Millan <rmh@aybabtu.com>
37785 Improve robustness when handling LVM.
37787 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
37788 (and leave `*p' unmodified).
37789 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
37791 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
37792 iterating through it.
37793 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
37795 (grub_lvm_scan_device): Check the return value (and fail gracefully
37796 when due) on each grub_lvm_getvalue() or grub_strstr() call.
37797 Don't assume `vg->pvs != NULL' when iterating through it.
37799 2008-04-13 Robert Millan <rmh@aybabtu.com>
37801 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
37802 * genmk.rb (partmap): New variable.
37803 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
37804 (#{partmap}): New target rule.
37805 * genpartmaplist.sh: New file.
37806 * Makefile.in (pkglib_DATA): Add partmap.lst.
37807 (partmap.lst): New target rule.
37808 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
37809 modules (including all partition maps), instead of preloading them.
37811 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
37813 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
37814 `linux-boot-prober' (if installed) to detect other operating
37815 systems which are installed on the computer and add them to
37817 * conf/common.rmk: Build and install 30_os-prober.
37819 2008-04-12 Robert Millan <rmh@aybabtu.com>
37821 * kern/powerpc/ieee1275/init.c: Move from here ...
37822 * kern/ieee1275/init.c: ... to here. Update all users.
37824 * kern/powerpc/ieee1275/cmain.c: Move from here ...
37825 * kern/ieee1275/cmain.c: ... to here. Update all users.
37827 * kern/powerpc/ieee1275/openfw.c: Move from here ...
37828 * kern/ieee1275/openfw.c: ... to here. Update all users.
37830 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
37831 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
37833 2008-04-10 Pavel Roskin <proski@gnu.org>
37835 * configure.ac: Always use "_cv_" in cache variables for
37836 compatibility with Autoconf 2.62.
37838 2008-04-07 Robert Millan <rmh@aybabtu.com>
37840 Revert grub/machine/init.h addition by Pavel (since it breaks on
37841 i386-ieee1275 and others):
37842 * util/i386/pc/misc.c: Remove grub/machine/init.h.
37843 * util/powerpc/ieee1275/misc.c: Likewise.
37845 2008-04-07 Robert Millan <rmh@aybabtu.com>
37847 * util/grub-probe.c (probe): Improve error message.
37849 2008-04-07 Robert Millan <rmh@aybabtu.com>
37851 * util/biosdisk.c (read_device_map): Skip devices that don't exist
37852 (this prevents the presence of a bogus entry from ruining the whole
37855 2008-04-06 Pavel Roskin <proski@gnu.org>
37857 * util/biosdisk.c: Include grub/util/biosdisk.h.
37858 * util/grub-fstest.c (execute_command): Make static.
37859 * util/grub-mkdevicemap.c (check_device): Likewise.
37860 * util/i386/pc/misc.c: Include grub/machine/init.h.
37861 * util/powerpc/ieee1275/misc.c: Likewise.
37862 * util/lvm.c: Include grub/util/lvm.h.
37863 * util/misc.c: Include grub/kernel.h, grub/misc.h and
37865 * util/raid.c: Include grub/util/raid.h.
37866 (grub_util_getdiskname): Make static.
37868 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
37869 grub_hostfs_fini(), as they are called from grub_init_all() and
37870 grub_fini_all() respectively. This fixes an infinite loop in
37871 grub-fstest due to double registration of hostfs.
37872 Reported by Christian Franke <Christian.Franke@t-online.de>
37874 2008-04-05 Pavel Roskin <proski@gnu.org>
37876 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
37877 all 8 functions. Otherwise, probe function 0 only.
37879 2008-04-04 Pavel Roskin <proski@gnu.org>
37881 * commands/lspci.c (grub_lspci_iter): Print the bus number
37884 * commands/lspci.c (grub_pci_classes): Fix typos.
37885 (grub_lspci_iter): Don't print func twice. Print vendor ID
37886 before device ID, as it's normally done.
37888 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
37889 Fix signedness warnings.
37890 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
37892 * util/ieee1275/get_disk_name.c: Include config.h so that
37893 _GNU_SOURCE is defined and getline() is declared. Mark an
37894 unused argument as such. Fix a signedness warning.
37896 2008-04-02 Pavel Roskin <proski@gnu.org>
37898 * genkernsyms.sh.in: Use more robust assignments for CC and
37899 srcdir. Quote srcdir.
37900 * gensymlist.sh.in: Likewise. Assert at the compile time that
37901 the symbol table is not empty.
37903 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
37904 * fs/cpio.c (grub_cpio_read): Likewise.
37906 2008-04-01 Pavel Roskin <proski@gnu.org>
37908 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
37909 * disk/host.c (grub_host_open): Likewise.
37910 * disk/loopback.c (grub_loopback_open): Likewise.
37911 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
37912 disk->id as in disk/host.c, not a multi-character constant.
37914 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
37915 later is obsolete, potentially dangerous and sets a bad example.
37916 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
37917 * util/misc.c (grub_util_get_image_size): Likewise.
37919 * disk/loopback.c (options): Improve help for "--partitions".
37921 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
37922 options to align them with the short options, e.g. "echo -e".
37924 2008-03-31 Bean <bean123ch@gmail.com>
37926 * video/reader/png.c (grub_png_data): New member is_16bit and
37928 (grub_png_decode_image_header): Detect 16 bit png image.
37929 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
37930 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
37931 (grub_video_reader_png): Release memory occupied by image_data.
37933 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
37935 (grub_nfs_mount): Skip the test for sector per cluster.
37937 * include/grub/ntfs.h (MAX_SPC): Removed.
37939 2008-03-31 Bean <bean123ch@gmail.com>
37941 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
37942 (grub_probe_SOURCES): Add fs/afs.c.
37943 (grub_fstest_SOURCES): Likewise.
37944 (afs_mod_SOURCES): New variable.
37945 (afs_mod_CFLAGS): Likewise.
37946 (afs_mod_LDFLAGS): Likewise.
37948 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
37949 (grub_emu_SOURCES): Likewise.
37951 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37953 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37955 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
37957 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37959 * fs/afs.c: New file.
37961 2008-03-30 Pavel Roskin <proski@gnu.org>
37963 * disk/host.c: Include grub/misc.h to fix a warning.
37964 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
37965 warnings about implicit declarations.
37967 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
37969 * include/grub/i386/loader.h: Change declaration of
37970 grub_linux_boot() to match what grub_loader_set() expects.
37971 * util/getroot.c (grub_guess_root_device): Return const char* to
37973 * util/grub-probe.c (probe): Fix a warning about uninitialized
37974 abstraction_name variable.
37975 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
37976 second argument as unused to fix a warning.
37978 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
37979 missing grub_error() call.
37981 * util/update-grub_lib.in: Define datarootdir, since Autoconf
37982 2.60 and newer uses it to define datadir.
37984 * commands/sleep.c: Fix warning about implicit declaration.
37985 * disk/memdisk.c: Likewise.
37986 * loader/aout.c: Likewise.
37987 * loader/i386/bsd_normal.c: Likewise.
37988 * util/grub-probe.c: Likewise.
37990 * commands/i386/cpuid.c (has_longmode): Make static.
37991 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
37992 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
37994 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
37995 GDT. This is more robust, as %ds can change.
37996 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
37997 calling real_to_prot().
37998 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
38000 2008-03-28 Pavel Roskin <proski@gnu.org>
38002 * kern/i386/pc/startup.S: Assert that uncompressed functions
38003 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
38004 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
38005 code, as they push parts of the code (error handlers) beyond
38006 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
38007 code as correctness and size.
38009 2008-03-28 Pavel Roskin <proski@gnu.org>
38011 * kern/i386/pc/startup.S
38012 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
38013 data block address to the real mode, keep offset minimal. This
38014 works around a bug in AWARD BIOS on old Athlon systems, which
38015 makes CD detection hang.
38017 2008-03-26 Pavel Roskin <proski@gnu.org>
38019 * normal/color.c (grub_parse_color_name_pair): Make `name' a
38021 * include/grub/normal.h: Add grub_parse_color_name_pair()
38024 2008-03-24 Bean <bean123ch@gmail.com>
38026 * disk/i386/pc/biosdisk.c (cd_start): Removed.
38027 (cd_count): Removed.
38028 (cd_drive): New variable.
38029 (grub_biosdisk_get_drive): Don't check for (cdN) device.
38030 (grub_biosdisk_call_hook): Likewise.
38031 (grub_biosdisk_iterate): Change cdrom detection method.
38032 (grub_biosdisk_open): Replace cd_start with cd_drive.
38033 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
38034 detect cdrom device.
38036 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
38038 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
38039 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
38040 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
38041 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
38042 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
38043 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
38044 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
38045 (grub_biosdisk_cdrp): New structure.
38046 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
38048 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
38050 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
38053 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
38056 2008-03-20 Robert Millan <rmh@aybabtu.com>
38058 Remove 2 TiB limit in ata.mod.
38059 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
38060 (grub_ata_dumpinfo): Print sector count with 0x%llx.
38061 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
38062 grub_uint64_t instead of grub_uint32_t.
38064 2008-03-05 Bean <bean123ch@gmail.com>
38066 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
38067 (grub_multiboot): Set boot device.
38069 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
38071 2008-03-02 Bean <bean123ch@gmail.com>
38073 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
38076 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
38078 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
38081 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
38084 * docs/fdl.texi: New file.
38086 * docs/mdate-sh: New file. Copied from gnulib.
38087 * docs/texinfo.tex: Likewise.
38089 * config.guess: Updated from gnulib.
38090 * install-sh: Likewise.
38092 2008-02-28 Robert Millan <rmh@aybabtu.com>
38094 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
38095 (aout_mod_SOURCES): New variable.
38096 (aout_mod_CFLAGS): Likewise.
38097 (aout_mod_LDFLAGS): Likewise.
38099 * conf/i386-ieee1275.rmk: Likewise.
38101 2008-02-28 Robert Millan <rmh@aybabtu.com>
38103 * util/update-grub.in: Reorganise terminal validity check. Accept
38104 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
38105 Based on suggestion by Franklin PIAT.
38107 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
38109 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
38111 * util/getroot.c (grub_util_check_block_device): New function that
38112 returns the given argument if it is a block device and returns NULL else.
38113 * util/grub-probe.c (argument_is_device): New variable.
38114 (probe): Promote device_name from a variable to an argument. Receive
38115 device_name from grub_util_check_block_device() if path is NULL and from
38116 grub_guess_root_device() else. Do not free() device_name anymore.
38117 (options): Introduce new parameter '-d, --device'.
38118 (main): Add description of the new parameter to the help screen.
38119 Rename path variable to argument. Set argument_is_device if the '-d'
38120 option is given. Pass argument to probe() depending on
38121 argument_is_device.
38123 2008-02-24 Bean <bean123ch@gmail.com>
38125 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
38126 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
38127 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
38128 (GRUB_ISO9660_VOLDESC_PART): Likewise.
38129 (GRUB_ISO9660_VOLDESC_END): Likewise.
38130 (grub_iso9660_primary_voldesc): New member escape.
38131 (grub_iso9660_data): New member joliet.
38132 (grub_iso9660_convert_string): New function.
38133 (grub_iso9660_mount): Detect joliet extension.
38134 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
38135 (grub_iso9660_iso9660_label): Likewise.
38137 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
38138 (grub_setup_SOURCES): Add fs/udf.c.
38139 (grub_fstest_SOURCES): Likewise.
38140 (udf_mod_SOURCES): New variable.
38141 (udf_mod_CFLAGS): Likewise.
38142 (udf_mod_LDFLAGS): Likewise.
38144 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
38145 (grub_emu_SOURCES): Likewise.
38147 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38149 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38151 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38153 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38155 * fs/udf.c: New file.
38157 2008-02-24 Robert Millan <rmh@aybabtu.com>
38159 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
38160 (normal/lexer.c_DEPENDENCIES): New variables.
38161 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38162 (normal/lexer.c_DEPENDENCIES): Likewise.
38163 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
38164 (normal/lexer.c_DEPENDENCIES): Likewise.
38165 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
38166 (normal/lexer.c_DEPENDENCIES): Likewise.
38167 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38168 (normal/lexer.c_DEPENDENCIES): Likewise.
38169 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38170 (normal/lexer.c_DEPENDENCIES): Likewise.
38172 2008-02-23 Robert Millan <rmh@aybabtu.com>
38174 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
38175 since they were intended to be in hex. This didn't break previously
38176 because of a bug in gpt_partition_map_iterate() (see below).
38178 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
38179 when checking the validity of GPT header.
38180 Remove `partno', since it always provides the same information as `i'.
38182 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
38184 * include/grub/efi/time.h: Fix a wrong comment.
38186 2008-02-19 Pavel Roskin <proski@gnu.org>
38188 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
38191 2008-02-19 Bean <bean123ch@gmail.com>
38193 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
38194 (aout_mod_SOURCES): New variable.
38195 (aout_mod_CFLAGS): Likewise.
38196 (aout_mod_LDFLAGS): Likewise.
38197 (_bsd_mod_SOURCES): New variable.
38198 (_bsd_mod_CFLAGS): Likewise.
38199 (_bsd_mod_LDFLAGS): Likewise.
38200 (bsd_mod_SOURCES): New variable.
38201 (bsd_mod_CFLAGS): Likewise.
38202 (bsd_mod_LDFLAGS): Likewise.
38204 * include/grub/aout.h: New file.
38206 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
38208 * include/grub/i386/bsd.h: New file.
38210 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
38213 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
38214 function is called, so that it's possible to change it inside the hook.
38215 (grub_elf64_load): Likewise.
38216 (grub_elf_file): Don't close the file if elf header is not found.
38217 (grub_elf_close): Close the file if grub_elf_file fails (The new
38218 grub_elf_file won't close it).
38219 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
38220 (grub_elf64_size): Likewise.
38222 * kern/i386/loader.S (grub_unix_real_boot): New function.
38224 * loader/aout.c: New file.
38226 * loader/i386/bsd.c: New file.
38228 * loader/i386/bsd_normal.c: New file.
38230 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
38232 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
38233 can test other formats.
38235 2008-02-19 Robert Millan <rmh@aybabtu.com>
38237 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
38238 (grub_gpt_partition_type_empty): Redefine with macro from
38239 `<grub/gpt_partition.h>'.
38240 (gpt_partition_map_iterate): Adjust partition type comparison.
38242 Export `entry' as partmap-specific `part.data' struct.
38243 (grub_gpt_header, grub_gpt_partentry): Move from here ...
38245 * include/grub/gpt_partition.h (grub_gpt_header)
38246 (grub_gpt_partentry): ... to here (new file).
38248 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
38250 (grub_gpt_partition_type_bios_boot): New const variable, defined
38251 with macro from `<grub/gpt_partition.h>'.
38253 (setup): Replace `first_start' with `embed_region', which keeps
38254 track of the embed region (and is partmap-agnostic).
38256 Replace find_first_partition_start() with find_usable_region(),
38257 which finds a usable region for embedding using partmap-specific
38258 knowledge (supports PC/MSDOS and GPT).
38260 Fix all assumptions that the embed region start at sector 1, using
38261 `embed_region.start' from now on. Similarly, use `embed_region.end'
38262 rather than `first_start' to calculate available size.
38264 In grub_util_info() message, replace "into after the MBR" with an
38265 indication of the specific sector our embed region starts at.
38267 2008-02-19 Robert Millan <rmh@aybabtu.com>
38269 * DISTLIST: Replace `commands/ieee1275/halt.c' and
38270 `commands/ieee1275/reboot.c' with `commands/halt.c' and
38271 `commands/reboot.c'.
38272 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
38273 (halt_mod_SOURCES): Likewise.
38274 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
38275 (halt_mod_SOURCES): Likewise.
38277 2008-02-17 Christian Franke <franke@computer.org>
38279 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
38281 2008-02-17 Robert Millan <rmh@aybabtu.com>
38283 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
38284 set `first_start' to 0 for non-PC/MSDOS partition maps.
38286 2008-02-16 Robert Millan <rmh@aybabtu.com>
38288 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
38289 do not assume partition map is PC/MSDOS before performing checks that
38290 are specific to that layout.
38292 2008-02-13 Robert Millan <rmh@aybabtu.com>
38294 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
38295 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
38296 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
38298 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
38300 * configure.ac: Only a cosmetic change on the handling of
38301 -fno-stack-protector.
38303 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
38305 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
38306 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
38308 (grub_install_SOURCES): Add halt.mod and reboot.mod.
38309 (halt_mod_SOURCES): New variable.
38310 (halt_mod_CFLAGS): Likewise.
38311 (halt_mod_LDFLAGS): Likewise.
38312 (reboot_mod_SOURCES): Likewise.
38313 (reboot_mod_CFLAGS): Likewise.
38314 (reboot_mod_LDFLAGS): Likewise.
38316 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
38317 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
38319 (halt_mod_SOURCES): Likewise.
38320 (reboot_mod_SOURCES): Likewise.
38322 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
38323 commands/i386/pc/reboot.c by commands/reboot.c.
38324 (reboot_mod_SOURCES): Likewise.
38326 * commands/i386/pc/reboot.c: merge this file ...
38328 * commands/ieee1275/reboot.c: ... and this file ...
38330 * commands/reboot.c: ... to this file.
38331 Add some precompiler directive to include the correct header for
38334 * commands/ieee1275/halt.c: move this file ...
38336 * commands/halt.c: ... to here.
38337 Add some precompiler directive to include the correct header for
38340 * include/grub/efi/efi.h (grub_reboot): New function declaration.
38341 (grub_halt): Likewise.
38343 * kern/efi/efi.c (grub_reboot): New function.
38344 (grub_halt): Likewise.
38346 2008-02-12 Robert Millan <rmh@aybabtu.com>
38348 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
38349 /dev (like it is done for /dev/mapper). This doesn't provide support
38350 for EVMS, but at least it is now easy to identify the problem when it
38353 2008-02-11 Robert Millan <rmh@aybabtu.com>
38355 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
38356 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
38357 comparing it with -1, not 0.
38359 2008-02-10 Robert Millan <rmh@aybabtu.com>
38361 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
38363 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38364 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
38366 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
38367 `disk/lvm.c' to the end of the list.
38368 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38369 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
38371 2008-02-10 Robert Millan <rmh@aybabtu.com>
38373 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
38374 grub_print_error() instead. This will let user know why we're entering
38376 Based on suggestions from Sam Morris.
38378 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
38380 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
38381 on remaining N args, instead of "--" arg N times.
38383 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
38385 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
38386 (fill_with_default_glyph): Changed to use unknown_glyph for fill
38387 pattern for unknown glyphs.
38389 2008-02-09 Robert Millan <rmh@aybabtu.com>
38391 * configure.ac: Probe for `help2man'.
38392 * Makefile.in (builddir): New variable.
38393 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
38394 or otherwise add a few flags/options to it.
38395 (install-local): For every executable utility or script that is
38396 installed, invoke $(HELP2MAN) to install a manpage based on --help
38399 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
38400 that it doesn't prevent --help from working in build tree.
38402 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
38403 with `bug-grub@gnu.org'.
38404 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
38405 * util/update-grub.in (usage): New function.
38406 Implement proper argument check, with support for --help and --version
38407 (as well as existing -y).
38409 2008-02-09 Christian Franke <franke@computer.org>
38411 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
38412 avoid overwriting previous output.
38413 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
38415 2008-02-09 Robert Millan <rmh@aybabtu.com>
38417 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
38420 2008-02-09 Robert Millan <rmh@aybabtu.com>
38422 * commands/sleep.c: New file.
38423 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
38424 (sleep_mod_SOURCES): New variable.
38425 (sleep_mod_CFLAGS): Likewise.
38426 (sleep_mod_LDFLAGS): Likewise.
38428 2008-02-09 Robert Millan <rmh@aybabtu.com>
38430 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
38431 situations in which we can deduce the RAID size and the superblock
38434 2008-02-09 Robert Millan <rmh@aybabtu.com>
38436 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
38437 and return a grub_diskmemberlist_t composed of LVM physical volumes.
38438 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
38440 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
38441 and return a grub_diskmemberlist_t composed of physical array members.
38442 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
38444 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
38446 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
38447 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
38448 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
38450 * util/grub-probe.c (probe): Move partmap probing code from here ...
38451 (probe_partmap): ... to here.
38452 (probe): Use probe_partmap() once for the disk we're probing, and
38453 additionally, when such disk contains a memberlist() struct member,
38454 once for each disk that is contained in the structure returned by
38457 2008-02-09 Robert Millan <rmh@aybabtu.com>
38459 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
38460 environment variable to 'all' in order to obtain debug output from
38462 * util/i386/pc/grub-setup.c (main): Likewise.
38464 2008-02-08 Robert Millan <rmh@aybabtu.com>
38466 * disk/raid.c (grub_raid_scan_device): Check for
38467 `array->device[sb.this_disk.number]' rather than for
38468 `array->device[sb.this_disk.number]->name', since the latter is not
38469 guaranteed to be accessible.
38471 2008-02-08 Robert Millan <rmh@aybabtu.com>
38473 * disk/raid.c: Update copyright.
38474 * fs/cpio.c: Likewise.
38475 * include/grub/raid.h: Likewise.
38476 * loader/i386/pc/multiboot.c: Likewise.
38477 * util/hostfs.c: Likewise.
38479 2008-02-08 Robert Millan <rmh@aybabtu.com>
38481 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
38482 to a grub_disk_t array.
38483 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
38485 (grub_raid_scan_device): Replace `device[x].name' accesses with
38486 `device[x]->name'. Simplify initialization of `array->device[x]'.
38488 2008-02-08 Robert Millan <rmh@aybabtu.com>
38490 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
38491 grub_dprintf() calls.
38492 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
38495 2008-02-07 Christian Franke <franke@computer.org>
38497 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
38498 instead of fseek and ftell to support large files.
38499 (grub_hostfs_read): Likewise.
38501 2008-02-07 Robert Millan <rmh@aybabtu.com>
38503 Patch from Jeroen Dekkers.
38504 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
38505 failure, since successfully reading all array members might not be
38508 2008-02-06 Robert Millan <rmh@aybabtu.com>
38510 * util/grub-probe.c (probe): Simplify partmap probing (with the
38511 assumption that the first word up to the underscore equals to
38514 2008-02-06 Christian Franke <franke@computer.org>
38516 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
38517 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
38518 last block of a cpio or tar stream.
38519 Check for "TRAILER!!!" instead of any empty data
38520 block to detect last block of a cpio stream.
38521 (grub_cpio_dir): Fix constness of variable np.
38522 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
38523 cpio or tar trailer is detected. This fixes a crash
38524 on open of a non existing file.
38526 2008-02-05 Bean <bean123ch@gmail.com>
38528 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
38530 (grub_multiboot_load_elf64): Likewise.
38531 (grub_multiboot): Initialize mbi structure.
38533 * util/grub-fstest.c: Don't include unused header file script.h.
38535 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
38537 (grub_fstest_SOURCES): Likewise.
38539 2008-02-05 Robert Millan <rmh@aybabtu.com>
38541 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
38542 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
38543 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
38544 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
38546 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
38547 (translation_table): Replace hardcoded values with macros
38548 provided by `<grub/term.h>'.
38550 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
38551 (keyboard_map): Correct/add a few values, with macros provided
38552 by `<grub/term.h>'.
38553 (keyboard_map_shift): Zero values that don't differ from their
38554 `keyboard_map' equivalents.
38555 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
38556 Discard the second scan code that is always sent by Caps lock.
38557 Only use `keyboard_map_shift' when it provides a non-zero value,
38558 otherwise fallback to `keyboard_map'.
38560 2008-02-04 Bean <bean123ch@gmail.com>
38562 * Makefile.in (enable_grub_fstest): New variable.
38564 * conf/common.rmk (grub_fstest_init.lst): New rule.
38565 (grub_fstest_init.h): Likewise.
38566 (grub_fstest_init.c): Likewise.
38567 (util/grub-fstest.c_DEPENDENCIES): New variable.
38568 (grub_fstest_SOURCES): Likewise.
38570 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
38572 * util/grub-fstest.c: New file.
38574 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38576 Make grub-setup handle a separate root device.
38578 * util/i386/pc/grub-setup.c (setup): Always open the root device,
38579 so that the root device can be compared with the destination
38581 When embedding the core image, if the root and destination devices
38582 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
38584 When not embedding, set ROOT_DRIVE to 0xFF.
38586 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38588 Add support for having a grub directory in a different drive. This
38589 is still only the data handling part.
38591 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
38592 (codestart): Save %dh in GRUB_ROOT_DRIVE.
38593 (grub_root_drive): New variable.
38595 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
38596 instead of GRUB_BOOT_DRIVE to construct a device name. Set
38597 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
38600 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
38602 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
38604 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
38606 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
38607 is bogus, because PXE booting does not specify any drive
38610 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
38611 am not sure if this is really correct.
38613 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
38614 is always identical to the boot drive when booting from a CD.
38616 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
38618 (root_drive): New variable.
38619 (real_start): Unconditionally set %dh to ROOT_DRIVE.
38620 (setup_sectors): Push %dx right after popping it, because %dh will
38622 (copy_buffer): Restore %dx.
38624 2008-02-03 Robert Millan <rmh@aybabtu.com>
38626 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
38627 use `cdboot.img' for cdrom images.
38629 2008-02-03 Robert Millan <rmh@aybabtu.com>
38631 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
38632 only setup gfxterm when `font' command has succeeded.
38634 2008-02-03 Robert Millan <rmh@aybabtu.com>
38636 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
38637 (grub_rescue_cmd_multiboot_loader)
38638 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
38640 2008-02-03 Pavel Roskin <proski@gnu.org>
38642 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
38643 %edx and %esi from stack only after grub_gate_a20() is called.
38644 grub_gate_a20() clobbers %edx.
38646 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38648 * configure.ac (AC_INIT): Bumped to 1.96.
38650 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
38651 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
38652 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
38653 video/readers/png.c.
38655 2008-02-03 Bean <bean123ch@gmail.com>
38657 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
38658 (cdboot_img_SOURCES): New variable.
38659 (cdboot_img_ASFLAGS): New variable.
38660 (cdboot_img_LDFLAGS): New variable.
38662 * boot/i386/pc/cdboot.S: New file.
38664 * disk/i386/pc/biosdisk.c (cd_start): New variable.
38665 (cd_count): Likewise.
38666 (grub_biosdisk_get_drive): Add support for cd device.
38667 (grub_biosdisk_call_hook): Likewise.
38668 (grub_biosdisk_iterate): Likewise.
38669 (grub_biosdisk_open): Likewise.
38670 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
38671 (grub_biosdisk_rw): Support reading from cd device.
38672 (GRUB_MOD_INIT): Iterate cd devices.
38674 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
38675 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
38676 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
38678 * kern/i386/pc/init.c (make_install_device): Check for cd device.
38680 2008-02-02 Robert Millan <rmh@aybabtu.com>
38682 * commands/read.c: New file.
38683 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
38684 (read_mod_SOURCES): New variable.
38685 (read_mod_CFLAGS): Likewise.
38686 (read_mod_LDFLAGS): Likewise.
38688 2008-02-02 Robert Millan <rmh@aybabtu.com>
38690 * normal/main.c (grub_normal_execute): Check for `menu->size' when
38691 determining whether menu has to be displayed.
38693 2008-02-02 Marco Gerards <marco@gnu.org>
38695 * bus/pci.c: New file.
38697 * include/grub/pci.h: Likewise.
38699 * include/grub/i386/pc/pci.h: Likewise.
38701 * commands/lspci.c: Likewise.
38703 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
38705 (pci_mod_SOURCES): New variable.
38706 (pci_mod_CFLAGS): Likewise.
38707 (pci_mod_LDFLAGS): Likewise.
38708 (lspci_mod_SOURCES): Likewise.
38709 (lspci_mod_CFLAGS): Likewise.
38710 (lspci_mod_LDFLAGS): Likewise.
38712 2008-02-02 Bean <bean123ch@gmail.com>
38714 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
38715 (grub_ufs_get_file_block): Fix indirect block calculation problem.
38717 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
38718 (grub_xfs_btree_node): New structure.
38719 (grub_xfs_btree_root): New structure.
38720 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
38721 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
38722 (GRUB_XFS_EXTENT_BLOCK): Likewise.
38723 (GRUB_XFS_EXTENT_SIZE): Likewise.
38724 (grub_xfs_read_block): Support btree format type.
38725 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
38726 Use directory block as basic unit.
38728 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
38730 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
38731 __attribute__ ((__regparm__ (1))).
38733 2008-02-01 Robert Millan <rmh@aybabtu.com>
38735 Correct a mistake in previous commit.
38737 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
38739 (normal/command.c_DEPENDENCIES): New variable.
38741 2008-02-01 Robert Millan <rmh@aybabtu.com>
38743 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
38745 (normal/command.c_DEPENDENCIES): New variable.
38746 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
38747 * conf/i386-ieee1275.rmk: Likewise.
38748 * conf/i386-linuxbios.rmk: Likewise.
38749 * conf/i386-pc.rmk: Likewise.
38750 * conf/sparc64-ieee1275.rmk: Likewise.
38751 * conf/powerpc-ieee1275.rmk: Likewise.
38752 (grub_emu_SOURCES): Add `fs/fshelp.c'.
38754 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
38756 2008-02-01 Robert Millan <rmh@aybabtu.com>
38758 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
38759 call at beginning of function.
38761 2008-01-31 Pavel Roskin <proski@gnu.org>
38763 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
38764 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
38765 (grub_mkrescue_SOURCES): Likewise.
38766 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
38768 2008-01-30 Robert Millan <rmh@aybabtu.com>
38770 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
38771 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
38772 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
38773 (grub_probe_SOURCES): ... to here.
38775 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
38776 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
38777 * conf/i386-ieee1275.rmk: Likewise.
38778 * conf/i386-linuxbios.rmk: Likewise.
38779 * conf/powerpc-ieee1275.rmk: Likewise.
38781 2008-01-30 Tristan Gingold <gingold@free.fr>
38783 * kern/rescue.c: Silently accept empty lines.
38785 2008-01-29 Bean <bean123ch@gmail.com>
38787 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
38788 (real_code_2): Code cleanup and change comment style.
38789 (move_memory): Avoid using 32-bit address mode.
38791 2008-01-29 Bean <bean123ch@gmail.com>
38793 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
38794 (png_mod_SOURCES): New variable.
38795 (png_mod_CFLAGS): Likewise.
38796 (png_mod_LDFLAGS): Likewise.
38798 * video/readers/png.c: New file.
38800 2008-01-28 Robert Millan <rmh@aybabtu.com>
38802 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
38803 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
38804 `ifndef GRUB_MOD_GAP' hack.
38805 * util/elf/grub-mkimage.c (add_segments): Likewise.
38807 2008-01-27 Robert Millan <rmh@aybabtu.com>
38809 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
38810 `GRUB_MOD_GAP' for platforms in which it's not defined.
38811 * util/elf/grub-mkimage.c (add_segments): Likewise.
38813 2008-01-27 Robert Millan <rmh@aybabtu.com>
38815 Get grub-emu to build again (including parallel builds).
38817 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
38819 (util/grub-emu.c_DEPENDENCIES): ... this, ...
38820 (normal/execute.c_DEPENDENCIES): ... this, ...
38821 (grub-emu_DEPENDENCIES): ... and this.
38823 * conf/i386-efi.rmk: Likewise.
38824 * conf/i386-linuxbios.rmk: Likewise.
38825 * conf/i386-ieee1275.rmk: Likewise.
38826 * conf/powerpc-ieee1275.rmk: Likewise.
38827 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
38829 2008-01-27 Robert Millan <rmh@aybabtu.com>
38831 * NEWS: Add a few items.
38833 2008-01-27 Robert Millan <rmh@aybabtu.com>
38835 Fix parallel builds with grub-emu. Based on earlier commit for
38836 grub-probe and grub-setup.
38838 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38839 (util/grub-emu.c_DEPENDENCIES): ... this.
38840 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38841 (util/grub-emu.c_DEPENDENCIES): ... this.
38842 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38843 (util/grub-emu.c_DEPENDENCIES): ... this.
38844 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38845 (util/grub-emu.c_DEPENDENCIES): ... this.
38846 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38847 (util/grub-emu.c_DEPENDENCIES): ... this.
38849 2008-01-27 Pavel Roskin <proski@gnu.org>
38851 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
38852 to create a gap between _end and the modules added to the image
38853 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
38854 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
38855 * util/elf/grub-mkimage.c (add_segments): Likewise.
38857 2008-01-26 Pavel Roskin <proski@gnu.org>
38859 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
38860 just return an error.
38862 2008-01-26 Bean <bean123ch@gmail.com>
38864 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
38865 (grub_reiserfs_get_item): Save offset of the next item.
38866 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
38868 2008-01-25 Robert Millan <rmh@aybabtu.com>
38870 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
38871 make all filesystem sources appear together (possibly fixing omissions
38873 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38874 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38875 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38876 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38878 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
38880 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
38881 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
38882 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
38883 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
38885 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
38886 (probe): Add a sanity check to make sure of our ability to read
38887 requested files when probing for filesystem type.
38889 * genmk.rb: Update copyright year (2007).
38891 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
38892 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
38893 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
38894 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
38895 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
38896 : Remove function prototypes.
38898 2008-01-25 Robert Millan <rmh@aybabtu.com>
38900 Revert my previous commits (based on wrong assumption of how grub_errno
38903 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
38904 * kern/file.c (grub_file_open): Likewise.
38906 2008-01-24 Pavel Roskin <proski@gnu.org>
38908 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
38909 that hang if GRUB tries to setup colors.
38910 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
38911 colors for firmwares that don't support it.
38912 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
38913 Recognize Open Hack'Ware, set flags to work around its
38916 2008-01-24 Robert Millan <rmh@aybabtu.com>
38918 * kern/file.c (grub_file_open): Do not account previous failures of
38919 unrelated functions when grub_errno is checked for.
38920 Reported by Oleg Strikov.
38922 2008-01-24 Bean <bean123ch@gmail.com>
38924 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
38925 (grub_ufs_sblock): New member volume name.
38926 (grub_ufs_find_file): Fix string copy bug.
38927 (grub_ufs_label): Implement this function properly.
38929 * fs/hfs.c (grub_hfs_cnid_type): New enum.
38930 (grub_hfs_iterate_records): Use the correct file number for extents
38931 and catalog file. Fix problem in next index calculation.
38932 (grub_hfs_find_node): Replace recursive function call with loop.
38933 (grub_hfs_iterate_dir): Replace recursive function call with loop.
38935 2008-01-23 Robert Millan <rmh@aybabtu.com>
38937 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
38938 `<grub/symbol.h>' and `<grub/multiboot.h>'.
38939 (grub_multiboot2_real_boot): New function prototype.
38941 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
38942 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
38944 * kern/i386/ieee1275/init.c (grub_os_area_addr)
38945 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
38947 2008-01-23 Robert Millan <rmh@aybabtu.com>
38949 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
38950 #ifdef'ed out grub_printf().
38952 2008-01-23 Robert Millan <rmh@aybabtu.com>
38954 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
38955 grub_dprintf calls, since they make "debug=all" mode unusable.
38956 (grub_console_checkkey): Likewise.
38958 2008-01-23 Robert Millan <rmh@aybabtu.com>
38960 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
38961 `term/i386/pc/at_keyboard.c'.
38962 (pkglib_MODULES): Add `serial.mod'.
38963 (serial_mod_SOURCES): New variable.
38964 (serial_mod_CFLAGS): Likewise.
38965 (serial_mod_LDFLAGS): Likewise.
38967 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
38968 `<grub/powerpc/ieee1275/console.h>'.
38969 (grub_keyboard_controller_init): New function prototype.
38970 (grub_console_checkkey): Likewise.
38971 (grub_console_getkey): Likewise.
38973 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
38976 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
38977 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
38979 2008-01-23 Robert Millan <rmh@aybabtu.com>
38981 * kern/i386/pc/init.c (make_install_device): When memdisk image is
38982 present, "(memdisk)/boot/grub" becomes the default prefix.
38984 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
38985 a memdisk tarball with all the modules. Add --overlay=DIR option that
38986 allows users to overlay additional files into the image.
38988 2008-01-23 Robert Millan <rmh@aybabtu.com>
38990 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
38991 and `machine/memory.h'.
38992 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
38993 (_multiboot_mod_SOURCES): New variable.
38994 (_multiboot_mod_CFLAGS): Likewise.
38995 (_multiboot_mod_LDFLAGS): Likewise.
38996 (multiboot_mod_SOURCES): Likewise.
38997 (multiboot_mod_CFLAGS): Likewise.
38998 (multiboot_mod_LDFLAGS): Likewise.
39000 * include/grub/i386/ieee1275/loader.h: New file.
39002 * include/grub/i386/ieee1275/machine.h: Likewise.
39004 * include/grub/i386/ieee1275/memory.h: Likewise.
39006 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
39007 variable declaration.
39008 (grub_os_area_size): Likewise.
39010 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
39011 (grub_lower_mem, grub_upper_mem): New variables.
39012 (grub_stop_floppy): New function (just to make
39013 grub_multiboot2_real_boot() happy).
39015 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
39016 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
39017 (grub_stop): New function.
39018 Include `"../realmode.S"' and `"../loader.S"'.
39020 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
39021 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
39023 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
39024 rely on grub_multiboot2_real_boot() for final boot.
39026 2008-01-22 Robert Millan <rmh@aybabtu.com>
39028 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
39029 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
39030 device that doesn't look like an SD card.
39031 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
39032 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
39033 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
39034 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
39037 2008-01-22 Robert Millan <rmh@aybabtu.com>
39039 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
39040 avoid claiming over our own code.
39042 2008-01-22 Bean <bean123ch@gmail.com>
39044 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
39045 (jpeg_mod_SOURCES): New variable.
39046 (jpeg_mod_CFLAGS): Likewise.
39047 (jpeg_mod_LDFLAGS): Likewise.
39049 * video/readers/jpeg.c : New file.
39051 2008-01-22 Bean <bean123ch@gmail.com>
39053 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
39054 there are no more items.
39056 2008-01-21 Robert Millan <rmh@aybabtu.com>
39058 * kern/mm.c (grub_mm_init_region): Improve debug message.
39060 2008-01-21 Robert Millan <rmh@aybabtu.com>
39062 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
39063 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
39065 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
39067 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
39068 Indicates start of upper memory.
39069 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
39070 (generate_image): Abort when image size is big enough to corrupt
39073 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
39074 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
39075 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
39076 instead of hardcoding 0xA0000.
39077 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
39078 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
39079 instead of hardcoding 0xA0000.
39081 2008-01-21 Robert Millan <rmh@aybabtu.com>
39083 * disk/memdisk.c (memdisk_size): New variable.
39084 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
39086 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
39087 image to dynamic memory.
39088 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
39089 `memdisk_size'. Free memdisk block.
39091 2008-01-21 Robert Millan <rmh@aybabtu.com>
39093 Fix detection of very small filesystems (like tar).
39095 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
39096 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
39097 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
39098 a problem with this disk).
39100 2008-01-21 Robert Millan <rmh@aybabtu.com>
39102 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
39103 on grub_biosdisk_rw_standard() error.
39105 2008-01-21 Robert Millan <rmh@aybabtu.com>
39107 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
39109 * kern/elf.c: Likewise.
39110 * kern/ieee1275/ieee1275.c: Likewise.
39111 * kern/powerpc/ieee1275/openfw.c: Likewise.
39112 * term/ieee1275/ofconsole.c: Likewise.
39114 2008-01-21 Robert Millan <rmh@aybabtu.com>
39116 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
39118 * include/grub/kernel.h (grub_arch_memdisk_addr)
39119 (grub_arch_memdisk_size): Moved from here ...
39121 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
39122 (grub_arch_memdisk_size): ... to here.
39124 2008-01-21 Robert Millan <rmh@aybabtu.com>
39126 Mostly based on bugfix from Bean.
39128 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
39129 attribute with hook() parameter.
39130 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
39132 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
39133 attribute with hook() parameter.
39134 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
39137 2008-01-21 Robert Millan <rmh@aybabtu.com>
39139 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
39140 (pkglib_MODULES): Add `memdisk.mod'.
39141 (memdisk_mod_SOURCES): New variable.
39142 (memdisk_mod_CFLAGS): Likewise.
39143 (memdisk_mod_LDFLAGS): Likewise.
39145 * disk/memdisk.c: New file.
39147 * include/grub/disk.h (grub_disk_dev_id): Add
39148 `GRUB_DISK_DEVICE_MEMDISK_ID'.
39150 * include/grub/i386/pc/kernel.h
39151 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
39152 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
39153 (grub_kernel_image_size): New variable declaration.
39154 (grub_total_module_size): Likewise.
39155 (grub_memdisk_image_size): Likewise.
39157 * include/grub/i386/pc/memory.h
39158 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
39160 * include/grub/kernel.h: Include `<grub/symbol.h>'.
39161 (grub_arch_memdisk_addr): New variable declaration.
39162 (grub_arch_memdisk_size): Likewise.
39164 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
39165 (grub_arch_memdisk_size): Likewise.
39167 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
39168 (codestart): Replace hardcoded `0x100000' with
39169 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
39171 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
39172 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
39173 not NULL, append the contents of the file it refers to, at the end of
39174 the compressed kernel image. Initialize `grub_memdisk_image_size'
39175 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
39176 (options): Add "memdisk"|'m' option.
39177 (main): Parse --memdisk|-m option, and pass user-provided path as
39178 parameter to generate_image().
39180 2008-01-20 Robert Millan <rmh@aybabtu.com>
39182 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
39183 grub_dprintf() calls from here ...
39184 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
39186 2008-01-20 Robert Millan <rmh@aybabtu.com>
39188 Fix detection of "real mode" when /options/real-mode? doesn't exist.
39190 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
39192 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
39193 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
39194 `GRUB_IEEE1275_FLAG_REAL_MODE'.
39195 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
39197 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
39198 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
39200 2008-01-19 Robert Millan <rmh@aybabtu.com>
39202 Get rid of confusing function (superseded by
39203 `grub_ieee1275_get_integer_property')
39204 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
39206 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
39208 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
39209 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
39210 in native endianness from grub_ieee1275_get_integer_property().
39212 2008-01-19 Robert Millan <rmh@aybabtu.com>
39214 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
39215 command after "shut-down", since implementations differ on which
39216 the command for halt is.
39218 2008-01-19 Robert Millan <rmh@aybabtu.com>
39220 * include/grub/i386/linuxbios/console.h: Add header protection.
39221 (grub_keyboard_controller_init): New function prototype.
39222 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
39223 (KEYBOARD_COMMAND_READ): Likewise.
39224 (KEYBOARD_COMMAND_WRITE): Likewise.
39225 (KEYBOARD_SCANCODE_SET1): Likewise.
39226 (grub_keyboard_controller_write): New function.
39227 (grub_keyboard_controller_read): Likewise.
39228 (grub_keyboard_controller_init): Likewise.
39230 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
39231 (grub_console_init): On coreboot/LinuxBIOS, call
39232 grub_keyboard_controller_init().
39234 2008-01-19 Robert Millan <rmh@aybabtu.com>
39236 PowerPC changes provided by Pavel Roskin.
39238 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
39239 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
39240 don't rely on cmain() doing it.
39241 * kern/i386/ieee1275/startup.S (_start): Store %eax in
39242 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
39244 2008-01-16 Robert Millan <rmh@aybabtu.com>
39246 * include/grub/i386/linuxbios/memory.h
39247 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
39248 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
39249 receive `table_header' as argument. Instead, probe for it in the
39250 known memory ranges where it can be present.
39251 (grub_available_iterate): Do not pass a fixed `table_header' address
39252 to grub_linuxbios_table_iterate().
39254 2008-01-15 Robert Millan <rmh@aybabtu.com>
39256 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
39257 * conf/i386-ieee1275.rmk: New file.
39258 * include/grub/i386/ieee1275/console.h: Likewise.
39259 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
39260 * include/grub/i386/ieee1275/kernel.h: Likewise.
39261 * include/grub/i386/ieee1275/time.h: Likewise.
39262 * kern/i386/ieee1275/init.c: Likewise.
39263 * kern/i386/ieee1275/startup.S: Likewise.
39265 2008-01-15 Robert Millan <rmh@aybabtu.com>
39267 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
39268 when pointers are 32-bit (but still do set it to one when they are
39271 2008-01-15 Robert Millan <rmh@aybabtu.com>
39273 * include/grub/ieee1275/ieee1275.h
39274 (grub_ieee1275_get_integer_property): New function prototype.
39276 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
39277 (grub_ieee1275_get_integer_property): New function. Wraps around
39278 grub_ieee1275_get_property() to handle endianness.
39280 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
39281 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
39283 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
39284 (grub_map): Likewise.
39285 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
39287 2008-01-15 Bean <bean123ch@gmail.com>
39289 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
39290 (grub_script_execute_cmdline): Reset grub_errno.
39292 * normal/main.c (read_config_file): Reset grub_errno.
39294 * normal/parse.y (script_init): New.
39295 (script): Move function and menuentry here.
39297 (command): Add delimiter at the end of command.
39298 (commands): Adjust to match the new command.
39299 (commandblock): Remove grub_script_lexer_record_start.
39300 (menuentry): Add grub_script_lexer_record_start, use the new commands.
39301 (if): Use the new commands.
39303 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
39305 2008-01-15 Robert Millan <rmh@aybabtu.com>
39307 * normal/menu.c (run_menu): Move timeout message from here ...
39308 (print_timeout): ... to here.
39309 (run_menu): Use print_timeout() once during initial draw to print
39310 the whole message, and again in every clock tick to update only
39311 the number of seconds.
39313 2008-01-15 Robert Millan <rmh@aybabtu.com>
39315 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
39316 actual size of `available' from grub_ieee1275_get_property(), and
39317 restrict parsing to that bound.
39319 2008-01-15 Christian Franke <franke@computer.org>
39321 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
39322 (argp_program_version): Remove variable.
39323 (argp_program_bug_address): Likewise.
39324 (options): Convert from struct argp_option to struct option.
39325 (struct arguments): Remove.
39326 (parse_opt): Remove.
39327 (usage): New function.
39328 (main): Replace struct args members by simple variables.
39329 Replace argp_parse() by getopt_long().
39330 Add switch to evaluate options.
39331 Add missing "(...)" around root_dev in prefix string.
39333 2008-01-14 Robert Millan <rmh@aybabtu.com>
39335 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
39336 for grub_ieee1275_exit(), in order to improve portability.
39338 2008-01-14 Robert Millan <rmh@aybabtu.com>
39340 * util/grub.d/10_linux.in (prefix): Define.
39341 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
39343 2008-01-13 Pavel Roskin <proski@gnu.org>
39345 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
39346 grub_errno if no errors have been detected.
39348 2008-01-12 Robert Millan <rmh@aybabtu.com>
39350 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
39351 (grub_util_get_dev_abstraction): New function prototype.
39353 * util/getroot.c: Include `<grub/util/getroot.h>'
39354 (grub_util_get_grub_dev): Move detection of abstraction type to ...
39355 (grub_util_get_dev_abstraction): ... here (new function).
39357 * util/grub-probe.c: Convert PRINT_* to an enum. Add
39358 `PRINT_ABSTRACTION'.
39359 (probe): Probe for abstraction type when requested.
39360 (main): Understand `--target=abstraction'.
39362 * util/i386/efi/grub-install.in: Add abstraction module to core
39363 image when it is found to be necessary.
39364 * util/i386/pc/grub-install.in: Likewise.
39365 * util/powerpc/ieee1275/grub-install.in: Likewise.
39367 * util/update-grub_lib.in (font_path): Return system path without
39368 converting to GRUB path.
39369 * util/update-grub.in: Convert system path returned by font_path()
39370 to a GRUB path. Use `grub-probe -t abstraction' to determine what
39371 abstraction module is needed for loading fonts (if any). Export
39372 that as `GRUB_PRELOAD_MODULES'.
39373 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
39376 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
39378 Remove some unused code from reiserfs.
39380 * fs/reiserfs.c (struct grub_reiserfs_key)
39381 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
39382 (struct grub_reiserfs_node_body): Removed.
39383 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
39385 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39387 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39389 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39391 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
39393 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
39395 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39396 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39397 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39399 2008-01-10 Robert Millan <rmh@aybabtu.com>
39401 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
39402 Determines if a file is garbage left by packaging systems, etc.
39403 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
39404 for processing /etc/grub.d scripts.
39405 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
39406 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
39407 as a condition for processing Linux images.
39409 2008-01-10 Pavel Roskin <proski@gnu.org>
39411 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
39412 to compile reiserfs.c on PowerPC.
39414 2008-01-10 Robert Millan <rmh@aybabtu.com>
39416 * kern/device.c (grub_device_iterate): Do not abort device iteration
39417 when one of the devices cannot be opened.
39418 * kern/disk.c (grub_disk_open): Do not account previous failures of
39419 unrelated functions when grub_errno is checked for.
39421 2008-01-08 Robert Millan <rmh@aybabtu.com>
39423 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
39424 `! grub_linux_is_bzimage', change order of address comparison to make
39425 it more intuitive, and improve "too big zImage" error message.
39427 2008-01-08 Robert Millan <rmh@aybabtu.com>
39429 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
39430 `$(update-grub_DATA)'.
39431 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
39434 2008-01-07 Robert Millan <rmh@aybabtu.com>
39436 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
39437 which instruction is modified by grub-setup during installation
39438 (since it wasn't obvious by only looking at this file).
39440 2008-01-07 Robert Millan <rmh@aybabtu.com>
39442 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
39443 listing actual TODO items.
39445 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39447 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
39449 (grub_reiserfs_get_key_offset): Likewise.
39450 (grub_reiserfs_set_key_offset): Likewise.
39451 (grub_reiserfs_set_key_type): Likewise.
39452 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
39454 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
39455 better to remove the bitfield version completely.
39457 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39459 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
39460 allocated from the heap, due to the fshelp implementation.
39461 (grub_reiserfs_dir): Free NODE, due to the same reason.
39463 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39465 Mostly from Vincent Pelletier:
39467 * fs/reiserfs.c: New file.
39469 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
39470 (reiserfs_mod_SOURCES): New variable.
39471 (reiserfs_mod_CFLAGS): Likewise.
39472 (reiserfs_mod_LDFLAGS): Likewise.
39474 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
39475 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
39476 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
39479 2008-01-06 Robert Millan <rmh@aybabtu.com>
39481 * normal/color.c: Remove `<grub/env.h>'.
39483 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
39485 * include/grub/normal.h: Include <grub/env.h>.
39487 2008-01-05 Robert Millan <rmh@aybabtu.com>
39489 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
39490 usage example with `(hd0,1)'.
39491 Reported by Samuel Thibault.
39493 2008-01-05 Robert Millan <rmh@aybabtu.com>
39495 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
39496 (grub_linux_boot_zimage): Rename to ...
39497 (grub_linux_boot): ... this.
39498 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
39499 (grub_linux_boot_zimage): Conditionalize zImage copy.
39501 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
39502 (grub_linux_boot_bzimage): Remove prototype.
39503 (grub_linux_boot_zimage): Rename to ...
39504 (grub_linux_boot): ... this.
39506 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
39507 (grub_linux_boot): Remove function.
39509 2008-01-05 Robert Millan <rmh@aybabtu.com>
39511 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
39512 (grub_env_write_color_highlight): Likewise.
39513 (grub_wait_after_message): Likewise.
39515 * normal/color.c: New file.
39517 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39518 (normal_mod_DEPENDENCIES): Likewise.
39520 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39521 (normal_mod_DEPENDENCIES): Likewise.
39523 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39524 (normal_mod_DEPENDENCIES): Likewise.
39526 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39527 (normal_mod_DEPENDENCIES): Likewise.
39529 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
39530 for waiting after a message is printed.
39531 * normal/main.c (read_config_file): Likewise.
39532 (grub_normal_init): Register grub_env_write_color_normal() and
39533 grub_env_write_color_highlight() hooks. Mark `color_normal' and
39534 `color_highlight' variables as global.
39536 * normal/menu.c (grub_wait_after_message): New function.
39537 (grub_color_menu_normal): New variable. Replaces ...
39538 (GRUB_COLOR_MENU_NORMAL): ... this macro.
39539 (grub_color_menu_highlight): New variable. Replaces ...
39540 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
39541 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
39542 `GRUB_TERM_COLOR_STANDARD'.
39543 (print_message): Use `grub_setcolorstate' to reload colors. Rename
39544 `normal_code' and `highlight_code' to `old_color_normal' and
39545 `old_color_highlight', respectively.
39546 (grub_menu_init_page): Update colors when drawing the menu, based on
39547 `menu_color_normal' and `menu_color_highlight' variables.
39548 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
39549 a message is printed.
39551 2008-01-05 Robert Millan <rmh@aybabtu.com>
39553 * kern/env.c (grub_env_context_open): Propagate hooks for global
39554 variables to new context.
39556 * kern/main.c (grub_set_root_dev): Export `root' variable.
39558 2008-01-05 Robert Millan <rmh@aybabtu.com>
39560 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
39561 discs unconditionally, since udev and others have options to provide
39564 2008-01-05 Robert Millan <rmh@aybabtu.com>
39566 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
39568 2008-01-04 Christian Franke <franke@computer.org>
39570 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
39573 2008-01-03 Pavel Roskin <proski@gnu.org>
39575 * kern/i386/linuxbios/init.c: Put "void" to all function
39576 declarations with no arguments.
39577 * kern/powerpc/ieee1275/init.c: Likewise.
39578 * term/i386/pc/at_keyboard.c: Likewise.
39579 * term/i386/pc/vga_text.c: Likewise.
39580 * util/grub-mkdevicemap.c: Likewise.
39582 2008-01-02 Robert Millan <rmh@aybabtu.com>
39584 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
39585 message when loaded image is out of bounds.
39586 (grub_multiboot_load_elf64): Likewise.
39588 2008-01-02 Pavel Roskin <proski@gnu.org>
39590 * util/grub.d/10_linux.in: Try version without ".old" when
39591 looking for initrd. It's better to use initrd from the newer
39592 kernel of the same version than no initrd at all.
39594 2008-01-01 Robert Millan <rmh@aybabtu.com>
39596 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
39598 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
39600 * include/grub/video.h: Added grub_video_unmap_color and
39601 grub_video_get_active_render_target.
39602 (grub_video_adapter): Added unmap_color and get_active_render_target.
39604 * video/video.c: Added grub_video_unmap_color and
39605 grub_video_get_active_render_target.
39606 (grub_video_get_info): Changed method to accept NULL pointer as an
39607 argument to allow detection of active video adapter.
39609 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
39610 grub_video_vbe_unmap_color_int.
39611 Added grub_video_vbe_unmap_color and
39612 grub_video_vbe_get_active_render_target.
39613 (grub_video_vbe_adapter): Added unmap_color and
39614 get_active_render_target.
39616 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
39617 with grub_video_vbe_unmap_color_int.
39619 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
39620 (DEFAULT_NORMAL_COLOR): Likewise.
39621 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
39622 (DEFAULT_FG_COLOR): Removed.
39623 (DEFAULT_BG_COLOR): Likewise.
39624 (DEFAULT_CURSOR_COLOR): Changed value.
39625 (grub_virtual_screen): Added standard_color_setting,
39626 normal_color_setting, highlight_color_setting and term_color.
39627 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
39628 (bitmap_width): Added.
39629 (bitmap_height): Likewise.
39630 (bitmap): Likewise.
39631 (set_term_color): Likewise.
39632 (grub_virtual_screen_setup): Changed to use new terminal coloring
39634 (grub_gfxterm_init): Added init for bitmap.
39635 (grub_gfxterm_fini): Added destroy for bitmap.
39636 (redraw_screen_rect): Updated to use background bitmap and new
39638 (scroll_up): Added optimization for case when there is no bitmap.
39639 (grub_gfxterm_cls): Fixed to use correct background color.
39640 (grub_virtual_screen_setcolorstate): Changed to use new terminal
39642 (grub_virtual_screen_setcolor): Likewise.
39643 (grub_virtual_screen_getcolor): Added.
39644 (grub_gfxterm_background_image_cmd): Likewise.
39645 (grub_video_term): Added setcolor and getcolor.
39646 (MOD_INIT): Added registration of background_image command.
39647 (MOD_TERM): Added unregistration for background_image command.
39649 2007-12-30 Pavel Roskin <proski@gnu.org>
39651 * loader/multiboot_loader.c: Fix multiboot command
39652 unregistration. Fix all typos in the word "multiboot".
39654 2007-12-29 Pavel Roskin <proski@gnu.org>
39656 * util/grub.d/10_linux.in: Refactor search for initrd. Add
39657 support for initrd names used in Fedora.
39659 2007-12-26 Bean <bean123ch@gmail.com>
39661 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
39662 (cpio_mod_SOURCES): New variable.
39663 (cpio_mod_CFLAGS): Likewise.
39664 (cpio_mod_LDFLAGS): Likewise.
39666 * fs/cpio.c: New file.
39668 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
39670 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39672 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39674 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39676 2007-12-25 Robert Millan <rmh@aybabtu.com>
39678 * include/grub/term.h (struct grub_term): Add `getcolor' function.
39679 (grub_getcolor): New function.
39681 * kern/term.c (grub_getcolor): New function.
39682 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
39683 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
39684 (print_entry): Set normal and highlight colors to
39685 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
39686 respectively, before printing and restore them to old
39688 (grub_menu_init_page): Likewise. Fill an additional colored space
39689 that would otherwise be left blank.
39691 * term/efi/console.c (grub_console_getcolor): New function.
39692 (struct grub_console_term.getcolor): New variable.
39693 * term/i386/pc/console.c (grub_console_getcolor): New function.
39694 (struct grub_console_term.getcolor): New variable.
39695 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
39696 (struct grub_console_term.getcolor): New variable.
39698 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
39699 (struct grub_console_term.setcolor): Remove variable.
39700 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
39701 (struct grub_console_term.setcolor): Remove variable.
39702 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
39703 (struct grub_console_term.setcolor): Remove variable.
39704 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
39705 (struct grub_console_term.setcolor): Remove variable.
39707 2007-12-25 Robert Millan <rmh@aybabtu.com>
39709 * configure.ac: Search for possible unifont.hex locations, and
39710 define UNIFONT_HEX if found.
39712 * Makefile.in (UNIFONT_HEX): Define variable.
39713 (DATA): Rename to ...
39714 (PKGLIB): ... this. Update all users.
39715 (PKGDATA): New variable.
39716 (pkgdata_IMAGES): Rename to ...
39717 (pkglib_IMAGES): ... this. Update all users.
39718 (pkgdata_MODULES): Rename to ...
39719 (pkglib_MODULES): ... this. Update all users.
39720 (pkgdata_PROGRAMS): Rename to ...
39721 (pkglib_PROGRAMS): ... this. Update all users.
39722 (pkgdata_DATA): Rename to ...
39723 (pkglib_DATA): ... this. Update all users.
39724 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
39725 (unicode.pff, ascii.pff): New rules.
39726 (all-local): Add `$(PKGDATA)' dependency.
39727 (install-local): Process `$(PKGDATA)'.
39729 * util/update-grub_lib.in (font_path): Search for *.pff files in
39730 a few more locations, including `${pkgdata}'.
39732 2007-12-23 Robert Millan <rmh@aybabtu.com>
39734 Patch from Bean <bean123ch@gmail.com>:
39735 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
39738 2007-12-21 Bean <bean123ch@gmail.com>
39740 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
39741 (ntfscomp_mod_SOURCES): New variable.
39742 (ntfscomp_mod_CFLAGS): Likewise.
39743 (ntfscomp_mod_LDFLAGS): Likewise.
39745 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
39746 (grub_probe_SOURCES): Likewise.
39747 (grub_emu_SOURCES): Likewise.
39749 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39750 (grub_emu_SOURCES): Likewise.
39752 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39753 (grub_emu_SOURCES): Likewise.
39755 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39756 (grub_emu_SOURCES): Likewise.
39758 * fs/ntfs.c (grub_ntfscomp_func): New variable.
39759 (read_run_list): Renamed to grub_ntfs_read_run_list.
39760 (decomp_nextvcn): Moved to ntfscomp.c.
39761 (decomp_getch): Likewise.
39762 (decomp_get16): Likewise.
39763 (decomp_block): Likewise.
39764 (read_block): Likewise.
39765 (read_data): Partially moved to ntfscomp.c.
39766 (fixup): Change unsigned to grub_uint16_t.
39767 (read_mft): Change unsigned long to grub_uint32_t.
39768 (read_attr): Likewise.
39769 (read_data): Likewise.
39770 (read_run_data): Likewise.
39771 (read_run_list): Likewise.
39772 (read_mft): Likewise.
39774 * fs/ntfscomp.c: New file.
39776 * include/grub/ntfs.h: New file.
39778 2007-12-16 Robert Millan <rmh@aybabtu.com>
39780 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
39781 IDE disk check, since Linux is known to support 20 IDE disks.
39782 Reported by Colin Watson.
39784 2007-12-15 Bean <bean123ch@gmail.com>
39786 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
39787 (lnxboot_img_SOURCES): New variable.
39788 (lnxboot_img_ASFLAGS): Likewise.
39789 (lnxboot_img_LDFLAGS): Likewise.
39791 * boot/i386/pc/lnxboot.S: New file.
39793 2007-11-24 Pavel Roskin <proski@gnu.org>
39795 * configure.ac: Test if '--build-id=none' is supported by the
39796 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
39797 objcopy to generate incorrect binary files (binutils
39798 2.17.50.0.18-1 as shipped by Fedora 8).
39799 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
39800 linking, so that build ID doesn't break the test.
39802 2007-11-24 Pavel Roskin <proski@gnu.org>
39804 * include/grub/i386/time.h: use "void" in the argument list
39805 of grub_cpu_idle().
39806 * include/grub/powerpc/time.h: Likewise.
39807 * include/grub/sparc64/time.h: Likewise.
39809 2007-11-18 Christian Franke <franke@computer.org>
39811 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
39812 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
39813 This fixes the problem that function keys did not work in grub-emu.
39815 2007-11-18 Christian Franke <franke@computer.org>
39817 * disk/host.c (grub_host_open): Remove attribute unused from
39818 name parameter. Add check for "host". This fixes the problem
39819 that grub-emu does not find partitions.
39821 2007-11-18 Christian Franke <franke@computer.org>
39823 * util/hostfs.c (is_dir): New function.
39824 (grub_hostfs_dir): Handle missing dirent.d_type case.
39825 (grub_hostfs_read): Add missing fseek().
39826 (grub_hostfs_label): Clear label pointer. This fixes a crash
39827 of grub-emu on "ls (host)".
39829 2007-11-18 Christian Franke <franke@computer.org>
39831 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
39832 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
39833 to 64 bit boundary by default.
39835 2007-11-18 Bean <bean123ch@gmail.com>
39837 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
39838 (hexdump_mod_SOURCES): New variable.
39839 (hexdump_mod_CFLAGS): Likewise.
39840 (hexdump_mod_LDFLAGS): Likewise.
39842 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39844 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39846 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39848 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39850 * include/grub/hexdump.h: New file.
39852 * commands/hexdump.c: New file.
39854 2007-11-10 Robert Millan <rmh@aybabtu.com>
39856 * commands/i386/pc/play.c (beep_off): Switch order of arguments
39857 in grub_outb() calls.
39858 (beep_on): Likewise.
39860 2007-11-10 Christian Franke <franke@computer.org>
39862 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
39863 (grub_menu_run): Likewise.
39865 2007-11-10 Robert Millan <rmh@aybabtu.com>
39867 * include/grub/i386/efi/machine.h: New file.
39868 * include/grub/i386/linuxbios/machine.h: Likewise.
39869 * include/grub/i386/pc/machine.h: Likewise.
39870 * include/grub/powerpc/ieee1275/machine.h: Likewise.
39871 * include/grub/sparc64/ieee1275/machine.h: Likewise.
39873 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
39874 (serial_hw_io_addr): New variable.
39875 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
39876 instead of `(unsigned short *) 0x400'.
39878 2007-11-10 Bean <bean123ch@gmail.com>
39880 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
39882 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
39884 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
39885 (vga_mod_SOURCES): Added.
39886 (vga_mod_CFLAGS): Likewise.
39887 (vga_mod_LDFLAGS): Likewise.
39889 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
39891 (set_map_mask): Likewise.
39892 (set_read_map): Likewise.
39893 (set_read_address): Likewise.
39894 (vga_font): Removed variable.
39895 (get_vga_glyph): Removed function.
39896 (invalidate_char): Likewise.
39897 (write_char): Changed to use grub_font_get_glyph() for font
39899 (grub_vga_putchar): Likewise.
39900 (grub_vga_getcharwidth): Likewise.
39902 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
39904 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
39906 (pxeboot_img_LDFLAGS): Likewise.
39907 (diskboot_img_LDFLAGS): Likewise.
39908 (kernel_img_LDFLAGS): Likewise.
39910 2007-11-06 Robert Millan <rmh@aybabtu.com>
39912 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
39913 in grub_outb() calls.
39914 (serial_hw_init): Likewise.
39916 2007-11-05 Robert Millan <rmh@aybabtu.com>
39918 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
39919 spaces. Skip non-regular files.
39921 2007-11-05 Robert Millan <rmh@aybabtu.com>
39923 * kern/disk.c (grub_disk_firmware_fini)
39924 (grub_disk_firmware_is_tainted): New variables.
39926 * include/grub/disk.h (grub_disk_firmware_fini)
39927 (grub_disk_firmware_is_tainted): Likewise.
39929 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
39930 (grub_disk_biosdisk_fini): ... to here.
39931 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
39932 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
39933 is set. Register grub_disk_biosdisk_fini() in
39934 `grub_disk_firmware_fini'.
39936 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
39937 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
39938 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
39939 to finish existing firmware disk interface.
39941 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
39942 (ata_mod_SOURCES): New variable.
39943 (ata_mod_CFLAGS): Likewise.
39944 (ata_mod_LDFLAGS): Likewise.
39946 2007-11-05 Robert Millan <rmh@aybabtu.com>
39948 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
39949 (grub_ata_wait): Reimplement using grub_millisleep().
39951 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
39952 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
39954 2007-11-03 Marco Gerards <marco@gnu.org>
39956 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
39957 (CRTC_ADDR_PORT): New macro.
39958 (CRTC_DATA_PORT): Likewise.
39959 (CRTC_CURSOR): Likewise.
39960 (CRTC_CURSOR_ADDR_HIGH): Likewise.
39961 (CRTC_CURSOR_ADDR_LOW): Likewise.
39962 (update_cursor): New function.
39963 (grub_console_real_putchar): Call `update_cursor'.
39964 (grub_console_gotoxy): Likewise.
39965 (grub_console_cls): Set the default color when clearing the
39967 (grub_console_setcursor): Implemented.
39969 2007-11-03 Marco Gerards <marco@gnu.org>
39971 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
39973 (grub_ata_pio_write): Likewise.
39975 (grub_atapi_identify): Wait after issuing an ATA command.
39976 (grub_atapi_packet): Likewise.
39977 (grub_ata_identify): Likewise.
39978 (grub_ata_readwrite): Likewise.
39980 2007-11-03 Marco Gerards <marco@gnu.org>
39982 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
39983 (grub_ata_pio_write): Likewise.
39984 (grub_ata_readwrite): Use `grub_error', instead of
39985 returning `grub_errno'.
39987 2007-11-03 Marco Gerards <marco@gnu.org>
39989 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
39990 grub_ata_pio_write once for every single sector, instead of for
39993 2007-10-31 Robert Millan <rmh@aybabtu.com>
39995 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
39997 * conf/i386-linuxbios.rmk: New file.
39999 * kern/i386/pc/hardware.c: Likewise.
40000 * term/i386/pc/at_keyboard.c: Likewise.
40001 * term/i386/pc/vga_text.c: Likewise.
40003 * include/grub/i386/linuxbios/boot.h: Likewise.
40004 * include/grub/i386/linuxbios/console.h: Likewise.
40005 * include/grub/i386/linuxbios/init.h: Likewise.
40006 * include/grub/i386/linuxbios/kernel.h: Likewise.
40007 * include/grub/i386/linuxbios/loader.h: Likewise.
40008 * include/grub/i386/linuxbios/memory.h: Likewise.
40009 * include/grub/i386/linuxbios/serial.h: Likewise.
40010 * include/grub/i386/linuxbios/time.h: Likewise.
40012 * kern/i386/linuxbios/init.c: Likewise.
40013 * kern/i386/linuxbios/startup.S: Likewise.
40014 * kern/i386/linuxbios/table.c: Likewise.
40016 2007-10-31 Marco Gerards <marco@gnu.org>
40018 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
40019 (ata_mod_SOURCES): New variable.
40020 (ata_mod_CFLAGS): Likewise.
40021 (ata_mod_LDFLAGS): Likewise.
40023 * disk/ata.c: New file.
40025 * include/grub/disk.h (grub_disk_dev_id): Add
40026 `GRUB_DISK_DEV_ATA_ID'.
40028 2007-10-31 Robert Millan <rmh@aybabtu.com>
40030 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
40031 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
40033 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
40034 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
40036 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
40039 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
40041 2007-10-27 Robert Millan <rmh@aybabtu.com>
40043 * include/grub/types.h (ULONG_MAX): Define macro.
40045 2007-10-22 Robert Millan <rmh@aybabtu.com>
40047 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
40049 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
40051 2007-10-22 Robert Millan <rmh@aybabtu.com>
40053 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
40054 (pkgdata_MODULES): Add `biosdisk.mod'.
40055 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
40058 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
40059 (grub_biosdisk_init): Replace with ...
40060 (GRUB_MOD_INIT(biosdisk)): ... this.
40061 (grub_biosdisk_fini): Replace with ...
40062 (GRUB_MOD_FINI(biosdisk)): ... this.
40064 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
40065 (grub_machine_init): Remove call to grub_biosdisk_init().
40066 (grub_machine_fini): Remove call to grub_machine_fini().
40068 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
40070 2007-10-22 Robert Millan <rmh@aybabtu.com>
40072 * include/grub/time.h: New file.
40073 * include/grub/i386/time.h: Likewise.
40074 * include/grub/powerpc/time.h: Likewise.
40075 * include/grub/sparc64/time.h: Likewise.
40077 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
40079 (KERNEL_MACHINE_TIME_HEADER): ... this.
40080 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
40082 (KERNEL_MACHINE_TIME_HEADER): ... this.
40083 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
40085 (KERNEL_MACHINE_TIME_HEADER): ... this.
40087 * kern/i386/efi/init.c: Include `<grub/time.h>'.
40088 (grub_millisleep): New function.
40089 * kern/i386/pc/init.c: Include `<grub/time.h>'.
40090 (grub_millisleep): New function.
40091 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
40092 Remove `grub/machine/time.h' include.
40093 (grub_millisleep): New function.
40094 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
40095 Remove `grub/machine/time.h' include.
40096 (grub_millisleep): New function.
40098 * include/grub/misc.h (grub_div_roundup): New function.
40100 * kern/misc.c: Include `<grub/time.h>'.
40101 (grub_millisleep_generic): New function.
40103 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
40105 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
40107 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
40108 `machine/time.h'. Add `time.h'.
40109 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
40111 2007-10-21 Robert Millan <rmh@aybabtu.com>
40113 * include/grub/misc.h (grub_max): New function.
40115 2007-10-21 Robert Millan <rmh@aybabtu.com>
40117 * util/misc.c (grub_util_info): Call fflush() before returning.
40119 2007-10-20 Robert Millan <rmh@aybabtu.com>
40121 * genmk.rb (Image): Copy `extra_flags' from here ...
40122 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
40124 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
40125 to `argc' and `args' arguments.
40127 2007-10-17 Robert Millan <rmh@aybabtu.com>
40129 * kern/i386/loader.S: New file.
40131 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
40132 * kern/i386/loader.S (grub_linux_prot_size)... to here.
40133 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
40134 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
40135 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
40136 * kern/i386/loader.S (grub_linux_real_addr)... to here.
40137 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
40138 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
40139 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
40140 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
40141 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
40142 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
40143 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
40144 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
40146 * kern/i386/realmode.S: New file.
40148 * kern/i386/pc/startup.S (protstack): Moved from here ...
40149 * kern/i386/realmode.S (protstack)... to here.
40150 * kern/i386/pc/startup.S (gdt): Moved from here ...
40151 * kern/i386/realmode.S (gdt)... to here.
40152 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
40153 * kern/i386/realmode.S (prot_to_real)... to here.
40155 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
40156 `kern/i386/realmode.S'.
40158 2007-10-17 Robert Millan <rmh@aybabtu.com>
40160 * include/grub/i386/loader.h: New file.
40162 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
40163 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
40164 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
40165 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
40166 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
40167 * include/grub/i386/loader.h (grub_linux_prot_size)
40168 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
40169 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
40170 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
40171 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
40173 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
40175 2007-10-15 Robert Millan <rmh@aybabtu.com>
40177 * normal/misc.c (grub_normal_print_device_info): Do not probe for
40178 filesystem when dev->disk is unset.
40179 Do probe for filesystem even when dev->disk->has_partitions is set.
40180 In case a filesystem is found, always report it.
40181 In case it isn't, if dev->disk->has_partitions is set, report that
40182 a partition table was found instead of reporting that no filesystem
40183 could be identified.
40185 2007-10-12 Robert Millan <rmh@aybabtu.com>
40187 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
40188 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
40190 * include/grub/types.h (grub_host_to_target16): New macro.
40191 (grub_host_to_target32): Likewise.
40192 (grub_host_to_target64): Likewise.
40193 (grub_target_to_host16): Likewise.
40194 (grub_target_to_host32): Likewise.
40195 (grub_target_to_host64): Likewise.
40197 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
40198 Renamed from to ...
40199 (GRUB_MOD_ALIGN): ...this. Update all users.
40201 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
40202 grub_host_to_target32.
40203 Replace grub_be_to_cpu32 with grub_target_to_host32.
40204 (load_modules): Likewise.
40205 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
40206 Replace grub_be_to_cpu32 with grub_target_to_host32.
40207 Replace grub_cpu_to_be16 with grub_host_to_target16.
40208 Replace grub_cpu_to_be32 grub_host_to_target32.
40210 2007-10-12 Robert Millan <rmh@aybabtu.com>
40212 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
40213 * util/elf/grub-mkimage.c: ... here.
40215 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
40216 `util/powerpc/ieee1275/grub-mkimage.c'.
40218 2007-10-07 Robert Millan <rmh@aybabtu.com>
40220 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
40221 and make it easier to figure out.
40222 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
40223 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
40224 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
40225 leave us with less than HEAP_MIN_SIZE total heap.
40226 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
40228 2007-10-03 Robert Millan <rmh@aybabtu.com>
40230 * include/grub/i386/io.h: New file.
40231 * commands/i386/pc/play.c (inb): Removed.
40233 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40235 * term/i386/pc/serial.c (inb): Removed.
40237 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40239 * term/i386/pc/vga.c (inb): Removed.
40241 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40244 2007-10-02 Robert Millan <rmh@aybabtu.com>
40246 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
40247 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40248 Reported by Marcin Kurek.
40250 2007-09-07 Robert Millan <rmh@aybabtu.com>
40252 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
40253 SmartFirmware version updates (as released by Sven Luther), and avoid
40254 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
40255 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
40258 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40260 From Hitoshi Ozeki:
40261 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
40262 when merging two regions.
40264 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40266 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
40267 * normal/completion.c (grub_normal_do_completion): Likewise.
40268 Reported by Hitoshi Ozeki.
40270 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40272 Do not use devices at boot in chainloading.
40274 * loader/i386/pc/chainloader.c (boot_drive): New variable.
40275 (boot_part_addr): Likewise.
40276 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
40277 with BOOT_DRIVE and BOOT_PART_ADDR.
40278 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
40279 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
40281 2007-08-29 Robert Millan <rmh@aybabtu.com>
40283 Patch from Simon Peter <dn.tlp@gmx.net>:
40284 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
40285 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
40286 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
40287 util/i386/pc/grub-setup.c_DEPENDENCIES.
40288 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
40289 util/grub-probe.c_DEPENDENCIES.
40290 * conf/powerpc-ieee1275.rmk: Likewise.
40292 2007-08-28 Robert Millan <rmh@aybabtu.com>
40294 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
40295 to tell grub-mkdevicemap how to name devices.
40296 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
40299 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
40300 util/i386/get_disk_name.c.
40301 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
40302 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
40303 util/ieee1275/get_disk_name.c.
40305 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
40307 * DISTLIST: Add util/i386/get_disk_name.c and
40308 util/ieee1275/get_disk_name.c.
40310 * util/grub-mkdevicemap.c: Replace device naming logic with
40311 grub_util_get_disk_name() calls.
40313 2007-08-20 Robert Millan <rmh@aybabtu.com>
40315 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
40316 (so that it works for both plural and singular quantities).
40318 2007-08-05 Robert Millan <rmh@aybabtu.com>
40320 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
40321 so that [xz] isn't taken into account when determining order.
40323 2007-08-02 Marco Gerards <marco@gnu.org>
40325 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
40326 `include/multiboot2.h', `include/grub/elfload.h',
40327 `include/multiboot.h', `include/grub/multiboot.h',
40328 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
40329 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
40330 `kern/elf.c', `loader/multiboot_loader.c',
40331 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
40332 `loader/i386/pc/multiboot2.c',
40333 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
40334 `util/i386/pc/grub-mkrescue.in'. Remove
40335 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
40336 `include/grub/i386/pc/util/biosdisk.h' and
40337 `include/grub/powerpc/ieee1275/multiboot.h'.
40339 2007-08-02 Bean <bean123ch@gmail.com>
40341 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
40342 (ntfs_mod_SOURCES): New variable.
40343 (ntfs_mod_CFLAGS): Likewise.
40344 (ntfs_mod_LDFLAGS): Likewise.
40346 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
40347 (grub_probe_SOURCES): Likewise.
40348 (grub_emu_SOURCES): Likewise.
40350 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
40351 (grub_emu_SOURCES): Likewise.
40353 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
40354 (grub_emu_SOURCES): Likewise.
40356 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
40358 * fs/ntfs.c: New file.
40360 2007-08-02 Bean <bean123ch@gmail.com>
40362 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
40364 * file.h (grub_file): Likewise.
40366 * fshelp.h (grub_fshelp_read_file): Likewise.
40368 * util/i386/pc/grub-setup.c (setup): Likewise.
40369 (save_first_sector): Likewise.
40370 (save_blocklists): Likewise.
40372 * fs/affs.c (grub_affs_read_file): Likewise.
40374 * fs/ext2.c (grub_ext2_read_file): Likewise.
40376 * fs/fat.c (grub_fat_read_data): Likewise.
40378 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
40380 * fs/hfs.c (grub_hfs_read_file): Likewise.
40382 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
40384 * fs/jfs.c (grub_jfs_read_file): Likewise.
40386 * fs/minix.c (grub_minix_read_file): Likewise.
40388 * fs/sfs.c (grub_sfs_read_file): Likewise.
40390 * fs/ufs.c (grub_ufs_read_file): Likewise.
40392 * fs/xfs.c (grub_xfs_read_file): Likewise.
40394 * command/blocklist.c (read_blocklist): Likewise.
40395 (print_blocklist): Likewise.
40397 2007-08-02 Marco Gerards <marco@gnu.org>
40399 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
40402 * disk/host.c: New file.
40404 * util/hostfs.c: Likewise.
40406 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
40407 return `GRUB_ERR_BAD_FS'.
40408 * fs/sfs.c (grub_sfs_mount): Likewise.
40409 * fs/xfs.c (grub_xfs_mount): Likewise.
40411 * include/grub/disk.h (enum grub_disk_dev_id): Add
40412 `GRUB_DISK_DEVICE_HOST_ID'.
40414 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
40416 2007-07-24 Jerone Young <jerone@gmail.com>
40418 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
40419 modules for compilation.
40420 * conf/powerpc-ieee1275.rmk: Likewise.
40422 * include/multiboot.h: Move multiboot definitions to one file. Rename
40423 many definitions to not get grub specific.
40424 * include/multiboot2.h: Create header with multiboot 2 definitions.
40425 * include/grub/multiboot.h: Header for grub specific function
40426 prototypes and definitions.
40427 * include/grub/multiboot2.h: Likewise.
40428 * include/grub/multiboot_loader.h: Likewise.
40429 * include/grub/i386/pc/multiboot.h: Removed.
40430 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
40432 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
40433 and 2 to allow for one multiboot and module commands.
40434 * loader/multiboot2.c: Add multiboot2 functionality.
40435 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
40436 and definition names.
40437 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
40439 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
40440 ieee1275 specific multiboot2 code.
40442 * kern/i386/pc/startup.S: Change headers and definition names for
40443 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
40445 2007-07-22 Robert Millan <rmh@aybabtu.com>
40447 * geninitheader.sh: Process file specified in first parameter rather
40448 than hardcoding grub_modules_init.lst.
40449 * geninit.sh: Likewise. Also, construct header name dynamically rather
40450 than hardcoding grub_modules_init.h.
40452 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
40453 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
40454 grub_probe_init.[ch] and grub_setup_init.[ch].
40456 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
40457 grub_modules_init.h with grub_emu_init.h.
40458 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
40459 grub_probe_init.[ch] files.
40460 * conf/i386-efi.rmk: Likewise.
40461 * conf/i386-pc.rmk: Likewise.
40462 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
40463 grub_setup_init.[ch] files.
40465 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
40466 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
40467 to initialize modules rather than a list of hardcoded functions.
40468 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
40469 grub_init_all() to initialize modules rather than a list of hardcoded
40472 2007-07-22 Robert Millan <rmh@aybabtu.com>
40474 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
40475 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
40477 2007-07-22 Robert Millan <rmh@aybabtu.com>
40479 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
40480 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
40481 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
40482 flag when running on SmartFirmware.
40483 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
40484 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
40487 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
40488 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
40489 rather than decreasing it.
40491 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
40492 there's not enough space to do it, fail in the same way as when it
40493 can't be done because there are no partitions.
40495 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
40496 when nvsetenv failed.
40498 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
40500 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
40501 because this rule is automatically generated.
40502 (grub-mkrescue): Removed for the same reason as above.
40504 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
40506 Migrate to GNU General Public License Version 3.
40508 * COPYING: Replaced with the plain text version of GPLv3.
40510 * config.guess: Updated from gnulib.
40511 * config.sub: Likewise.
40513 * geninit.sh: Output a GPLv3 copyright notice.
40514 * geninitheader.sh: Likewise.
40515 * genmodsrc.sh: Likewise.
40516 * gensymlist.sh.in: Likewise.
40518 * boot/i386/pc/boot.S: Upgraded to GPLv3.
40519 * boot/i386/pc/diskboot.S: Likewise.
40520 * boot/i386/pc/pxeboot.S: Likewise.
40521 * commands/blocklist.c: Likewise.
40522 * commands/boot.c: Likewise.
40523 * commands/cat.c: Likewise.
40524 * commands/cmp.c: Likewise.
40525 * commands/configfile.c: Likewise.
40526 * commands/echo.c: Likewise.
40527 * commands/help.c: Likewise.
40528 * commands/ls.c: Likewise.
40529 * commands/search.c: Likewise.
40530 * commands/terminal.c: Likewise.
40531 * commands/test.c: Likewise.
40532 * commands/videotest.c: Likewise.
40533 * commands/i386/cpuid.c: Likewise.
40534 * commands/i386/pc/halt.c: Likewise.
40535 * commands/i386/pc/play.c: Likewise.
40536 * commands/i386/pc/reboot.c: Likewise.
40537 * commands/i386/pc/vbeinfo.c: Likewise.
40538 * commands/i386/pc/vbetest.c: Likewise.
40539 * commands/ieee1275/halt.c: Likewise.
40540 * commands/ieee1275/reboot.c: Likewise.
40541 * commands/ieee1275/suspend.c: Likewise.
40542 * disk/loopback.c: Likewise.
40543 * disk/lvm.c: Likewise.
40544 * disk/raid.c: Likewise.
40545 * disk/efi/efidisk.c: Likewise.
40546 * disk/i386/pc/biosdisk.c: Likewise.
40547 * disk/ieee1275/ofdisk.c: Likewise.
40548 * font/manager.c: Likewise.
40549 * fs/affs.c: Likewise.
40550 * fs/ext2.c: Likewise.
40551 * fs/fat.c: Likewise.
40552 * fs/fshelp.c: Likewise.
40553 * fs/hfs.c: Likewise.
40554 * fs/hfsplus.c: Likewise.
40555 * fs/iso9660.c: Likewise.
40556 * fs/jfs.c: Likewise.
40557 * fs/minix.c: Likewise.
40558 * fs/sfs.c: Likewise.
40559 * fs/ufs.c: Likewise.
40560 * fs/xfs.c: Likewise.
40561 * hello/hello.c: Likewise.
40562 * include/grub/acorn_filecore.h: Likewise.
40563 * include/grub/arg.h: Likewise.
40564 * include/grub/bitmap.h: Likewise.
40565 * include/grub/boot.h: Likewise.
40566 * include/grub/cache.h: Likewise.
40567 * include/grub/device.h: Likewise.
40568 * include/grub/disk.h: Likewise.
40569 * include/grub/dl.h: Likewise.
40570 * include/grub/elfload.h: Likewise.
40571 * include/grub/env.h: Likewise.
40572 * include/grub/err.h: Likewise.
40573 * include/grub/file.h: Likewise.
40574 * include/grub/font.h: Likewise.
40575 * include/grub/fs.h: Likewise.
40576 * include/grub/fshelp.h: Likewise.
40577 * include/grub/gzio.h: Likewise.
40578 * include/grub/hfs.h: Likewise.
40579 * include/grub/kernel.h: Likewise.
40580 * include/grub/loader.h: Likewise.
40581 * include/grub/lvm.h: Likewise.
40582 * include/grub/misc.h: Likewise.
40583 * include/grub/mm.h: Likewise.
40584 * include/grub/net.h: Likewise.
40585 * include/grub/normal.h: Likewise.
40586 * include/grub/parser.h: Likewise.
40587 * include/grub/partition.h: Likewise.
40588 * include/grub/pc_partition.h: Likewise.
40589 * include/grub/raid.h: Likewise.
40590 * include/grub/rescue.h: Likewise.
40591 * include/grub/script.h: Likewise.
40592 * include/grub/setjmp.h: Likewise.
40593 * include/grub/symbol.h: Likewise.
40594 * include/grub/term.h: Likewise.
40595 * include/grub/terminfo.h: Likewise.
40596 * include/grub/tparm.h: Likewise.
40597 * include/grub/types.h: Likewise.
40598 * include/grub/video.h: Likewise.
40599 * include/grub/efi/api.h: Likewise.
40600 * include/grub/efi/chainloader.h: Likewise.
40601 * include/grub/efi/console.h: Likewise.
40602 * include/grub/efi/console_control.h: Likewise.
40603 * include/grub/efi/disk.h: Likewise.
40604 * include/grub/efi/efi.h: Likewise.
40605 * include/grub/efi/pe32.h: Likewise.
40606 * include/grub/efi/time.h: Likewise.
40607 * include/grub/i386/linux.h: Likewise.
40608 * include/grub/i386/setjmp.h: Likewise.
40609 * include/grub/i386/types.h: Likewise.
40610 * include/grub/i386/efi/kernel.h: Likewise.
40611 * include/grub/i386/efi/loader.h: Likewise.
40612 * include/grub/i386/efi/time.h: Likewise.
40613 * include/grub/i386/pc/biosdisk.h: Likewise.
40614 * include/grub/i386/pc/boot.h: Likewise.
40615 * include/grub/i386/pc/chainloader.h: Likewise.
40616 * include/grub/i386/pc/console.h: Likewise.
40617 * include/grub/i386/pc/init.h: Likewise.
40618 * include/grub/i386/pc/kernel.h: Likewise.
40619 * include/grub/i386/pc/loader.h: Likewise.
40620 * include/grub/i386/pc/memory.h: Likewise.
40621 * include/grub/i386/pc/multiboot.h: Likewise.
40622 * include/grub/i386/pc/serial.h: Likewise.
40623 * include/grub/i386/pc/time.h: Likewise.
40624 * include/grub/i386/pc/vbe.h: Likewise.
40625 * include/grub/i386/pc/vbeblit.h: Likewise.
40626 * include/grub/i386/pc/vbefill.h: Likewise.
40627 * include/grub/i386/pc/vbeutil.h: Likewise.
40628 * include/grub/i386/pc/vga.h: Likewise.
40629 * include/grub/ieee1275/ieee1275.h: Likewise.
40630 * include/grub/ieee1275/ofdisk.h: Likewise.
40631 * include/grub/powerpc/libgcc.h: Likewise.
40632 * include/grub/powerpc/setjmp.h: Likewise.
40633 * include/grub/powerpc/types.h: Likewise.
40634 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
40635 * include/grub/powerpc/ieee1275/console.h: Likewise.
40636 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
40637 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
40638 * include/grub/powerpc/ieee1275/loader.h: Likewise.
40639 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
40640 * include/grub/powerpc/ieee1275/time.h: Likewise.
40641 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
40642 * include/grub/sparc64/libgcc.h: Likewise.
40643 * include/grub/sparc64/setjmp.h: Likewise.
40644 * include/grub/sparc64/types.h: Likewise.
40645 * include/grub/sparc64/ieee1275/console.h: Likewise.
40646 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
40647 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
40648 * include/grub/sparc64/ieee1275/time.h: Likewise.
40649 * include/grub/util/biosdisk.h: Likewise.
40650 * include/grub/util/getroot.h: Likewise.
40651 * include/grub/util/lvm.h: Likewise.
40652 * include/grub/util/misc.h: Likewise.
40653 * include/grub/util/raid.h: Likewise.
40654 * include/grub/util/resolve.h: Likewise.
40655 * io/gzio.c: Likewise.
40656 * kern/device.c: Likewise.
40657 * kern/disk.c: Likewise.
40658 * kern/dl.c: Likewise.
40659 * kern/elf.c: Likewise.
40660 * kern/env.c: Likewise.
40661 * kern/err.c: Likewise.
40662 * kern/file.c: Likewise.
40663 * kern/fs.c: Likewise.
40664 * kern/loader.c: Likewise.
40665 * kern/main.c: Likewise.
40666 * kern/misc.c: Likewise.
40667 * kern/mm.c: Likewise.
40668 * kern/parser.c: Likewise.
40669 * kern/partition.c: Likewise.
40670 * kern/rescue.c: Likewise.
40671 * kern/term.c: Likewise.
40672 * kern/efi/efi.c: Likewise.
40673 * kern/efi/init.c: Likewise.
40674 * kern/efi/mm.c: Likewise.
40675 * kern/i386/dl.c: Likewise.
40676 * kern/i386/efi/init.c: Likewise.
40677 * kern/i386/efi/startup.S: Likewise.
40678 * kern/i386/pc/init.c: Likewise.
40679 * kern/i386/pc/lzo1x.S: Likewise.
40680 * kern/i386/pc/startup.S: Likewise.
40681 * kern/ieee1275/ieee1275.c: Likewise.
40682 * kern/powerpc/cache.S: Likewise.
40683 * kern/powerpc/dl.c: Likewise.
40684 * kern/powerpc/ieee1275/cmain.c: Likewise.
40685 * kern/powerpc/ieee1275/crt0.S: Likewise.
40686 * kern/powerpc/ieee1275/init.c: Likewise.
40687 * kern/powerpc/ieee1275/openfw.c: Likewise.
40688 * kern/sparc64/cache.S: Likewise.
40689 * kern/sparc64/dl.c: Likewise.
40690 * kern/sparc64/ieee1275/init.c: Likewise.
40691 * kern/sparc64/ieee1275/openfw.c: Likewise.
40692 * loader/efi/chainloader.c: Likewise.
40693 * loader/efi/chainloader_normal.c: Likewise.
40694 * loader/i386/efi/linux.c: Likewise.
40695 * loader/i386/efi/linux_normal.c: Likewise.
40696 * loader/i386/pc/chainloader.c: Likewise.
40697 * loader/i386/pc/chainloader_normal.c: Likewise.
40698 * loader/i386/pc/linux.c: Likewise.
40699 * loader/i386/pc/linux_normal.c: Likewise.
40700 * loader/i386/pc/multiboot.c: Likewise.
40701 * loader/i386/pc/multiboot_normal.c: Likewise.
40702 * loader/powerpc/ieee1275/linux.c: Likewise.
40703 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40704 * normal/arg.c: Likewise.
40705 * normal/cmdline.c: Likewise.
40706 * normal/command.c: Likewise.
40707 * normal/completion.c: Likewise.
40708 * normal/execute.c: Likewise.
40709 * normal/function.c: Likewise.
40710 * normal/lexer.c: Likewise.
40711 * normal/main.c: Likewise.
40712 * normal/menu.c: Likewise.
40713 * normal/menu_entry.c: Likewise.
40714 * normal/misc.c: Likewise.
40715 * normal/parser.y: Likewise.
40716 * normal/script.c: Likewise.
40717 * normal/i386/setjmp.S: Likewise.
40718 * normal/powerpc/setjmp.S: Likewise.
40719 * normal/sparc64/setjmp.S: Likewise.
40720 * partmap/acorn.c: Likewise.
40721 * partmap/amiga.c: Likewise.
40722 * partmap/apple.c: Likewise.
40723 * partmap/gpt.c: Likewise.
40724 * partmap/pc.c: Likewise.
40725 * partmap/sun.c: Likewise.
40726 * term/gfxterm.c: Likewise.
40727 * term/terminfo.c: Likewise.
40728 * term/efi/console.c: Likewise.
40729 * term/i386/pc/console.c: Likewise.
40730 * term/i386/pc/serial.c: Likewise.
40731 * term/i386/pc/vesafb.c: Likewise.
40732 * term/i386/pc/vga.c: Likewise.
40733 * term/ieee1275/ofconsole.c: Likewise.
40734 * util/biosdisk.c: Likewise.
40735 * util/console.c: Likewise.
40736 * util/genmoddep.c: Likewise.
40737 * util/getroot.c: Likewise.
40738 * util/grub-emu.c: Likewise.
40739 * util/grub-mkdevicemap.c: Likewise.
40740 * util/grub-probe.c: Likewise.
40741 * util/lvm.c: Likewise.
40742 * util/misc.c: Likewise.
40743 * util/raid.c: Likewise.
40744 * util/resolve.c: Likewise.
40745 * util/update-grub.in: Likewise.
40746 * util/update-grub_lib.in: Likewise.
40747 * util/grub.d/00_header.in: Likewise.
40748 * util/grub.d/10_hurd.in: Likewise.
40749 * util/grub.d/10_linux.in: Likewise.
40750 * util/i386/efi/grub-install.in: Likewise.
40751 * util/i386/efi/grub-mkimage.c: Likewise.
40752 * util/i386/pc/grub-install.in: Likewise.
40753 * util/i386/pc/grub-mkimage.c: Likewise.
40754 * util/i386/pc/grub-mkrescue.in: Likewise.
40755 * util/i386/pc/grub-setup.c: Likewise.
40756 * util/i386/pc/misc.c: Likewise.
40757 * util/powerpc/ieee1275/grub-install.in: Likewise.
40758 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
40759 * util/powerpc/ieee1275/misc.c: Likewise.
40760 * video/bitmap.c: Likewise.
40761 * video/video.c: Likewise.
40762 * video/i386/pc/vbe.c: Likewise.
40763 * video/i386/pc/vbeblit.c: Likewise.
40764 * video/i386/pc/vbefill.c: Likewise.
40765 * video/i386/pc/vbeutil.c: Likewise.
40766 * video/readers/tga.c: Likewise.
40768 2007-07-02 Robert Millan <rmh@aybabtu.com>
40770 * conf/i386-efi.rmk: Replace obsolete reference to
40771 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
40772 with util/getroot.c.
40773 * conf/powerpc-ieee1275.rmk: Likewise.
40774 * conf/sparc64-ieee1275.rmk: Likewise.
40776 * util/grub-emu.c (main): Fix unchecked pointer handling.
40778 2007-07-02 Robert Millan <rmh@aybabtu.com>
40780 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
40781 invocation to fail, in order to support partition-less media.
40783 * util/i386/pc/grub-install.in: Likewise.
40785 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
40786 which fs or partmap modules are needed (akin to its sister scripts).
40788 Also use grub-probe to get rid of unportable /proc/mounts check.
40790 Print the same informational message that the other scripts do, before
40793 2007-06-23 Robert Millan <rmh@aybabtu.com>
40795 * util/update-grub_lib.in (font_path): New function. Determine whether
40796 a font file can be found and, if so, echo the GRUB path to it.
40798 * util/update-grub.in: Handle multiple terminals depending on user
40799 input, platform availability and font file presence. Propagate
40800 variables of our findings to /etc/grub.d/ children.
40802 * util/grub.d/00_header.in: Handle multiple terminals, based on
40803 environment setup by update-grub.
40805 2007-06-23 Robert Millan <rmh@aybabtu.com>
40807 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
40809 2007-06-21 Robert Millan <rmh@aybabtu.com>
40811 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
40812 indicate end of data section in kernel image.
40813 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
40814 GRUB_KERNEL_MACHINE_DATA_END.
40816 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
40818 * kern/i386/efi/startup.S: Likewise.
40820 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
40821 during image generation. Implement --prefix option to override this
40823 * util/i386/efi/grub-mkimage.c: Likewise.
40825 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
40826 code to make path relative to its root into a separate function.
40828 * util/i386/pc/grub-install.in: Use newly provided
40829 make_system_path_relative_to_its_root() to convert ${grubdir}, then
40830 pass the result to grub-install --prefix.
40832 2007-06-13 Robert Millan <rmh@aybabtu.com>
40834 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
40835 DEFAULT_DEVICE_MAP.
40836 * util/grub-emu.c: Use above definitions from misc.h instead of
40838 * util/grub-mkdevicemap.c: Likewise.
40839 * util/i386/pc/grub-setup.c: Likewise.
40840 * util/grub-probe.c: Likewise.
40841 (probe): Abort with grub_util_error() when either
40842 grub_guess_root_device or grub_util_get_grub_dev fails.
40844 2007-06-12 Robert Millan <rmh@aybabtu.com>
40846 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
40847 "pager" assignment.
40848 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
40850 * util/grub-probe.c (probe): Likewise for "drive_name".
40852 2007-06-11 Robert Millan <rmh@aybabtu.com>
40854 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
40855 not just the cdrom one.
40857 2007-06-11 Robert Millan <rmh@aybabtu.com>
40859 * util/i386/pc/grub-mkrescue.in: Add "set -e".
40860 Add --pkglibdir=DIR option to override pkglibdir.
40861 Mention --image-type=TYPE in help output.
40862 Fix --grub-mkimage (it was a no-op).
40863 Abort gracefully when no parameter is given.
40865 2007-06-11 Robert Millan <rmh@aybabtu.com>
40867 * util/i386/pc/grub-mkrescue.in: New file.
40868 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
40869 * Makefile.in: Handle bin_SCRIPTS.
40871 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
40873 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
40874 list of video modes.
40876 2007-06-06 Robert Millan <rmh@aybabtu.com>
40878 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
40879 file doesn't exist, or if it is in a filesystem grub can't read.
40881 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
40882 not abort if GRUB_DRIVE could not be defined. Rearrange generated
40883 header comment to fit in 80 columns when the variables are resolved.
40885 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
40886 could be identified by update-grub. Remove redundant check for
40887 unifont.pff existence (since convert_system_path_to_grub_path now
40890 2007-06-04 Robert Millan <rmh@aybabtu.com>
40892 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
40894 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
40896 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
40898 2007-06-04 Robert Millan <rmh@aybabtu.com>
40900 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
40902 * include/grub/partition.h: Declare grub_apple_partition_map_init and
40903 grub_apple_partition_map_fini.
40906 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
40907 to access >2 TiB disks).
40909 Print disk->total_sectors with %llu instead of %lu, since this
40910 variable is always 64-bit (prevents wrong disk size from being displayed
40911 on either >2 TiB disk or big-endian CPU).
40913 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
40914 into a generic case that supports all (sane) partition maps.
40916 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
40919 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
40920 and grub_apple_partition_map_fini() after that.
40922 2007-06-01 Robert Millan <rmh@aybabtu.com>
40924 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
40926 * util/grub.d/00_header.in: Only enable gfxterm when
40927 convert_system_path_to_grub_path() succeeds.
40929 2007-05-20 Robert Millan <rmh@aybabtu.com>
40931 * util/update-grub_lib.in: New file.
40932 * DISTLIST: Add update-grub_lib.in.
40933 * conf/common.rmk: Generate update-grub_lib and install it in
40935 * Makefile.in: Add install routine for $(lib_DATA).
40937 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
40938 function provided by update-grub_lib to support arbitrary paths of
40940 * util/update-grub.in: Use convert_system_path_to_grub_path() to
40941 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
40943 2007-05-19 Robert Millan <rmh@aybabtu.com>
40945 * commands/i386/cpuid.c: New module.
40946 * DISTLIST: Add it.
40947 * conf/i386-efi.rmk: Enable cpuid.mod.
40948 * conf/i386-pc.rmk: Likewise.
40950 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
40952 * kern/disk.c (grub_disk_read): Check return value of
40955 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
40957 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
40959 * disk/raid.c (grub_raid_open): Likewise.
40961 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
40963 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
40964 stack instead of on the heap.
40966 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
40967 before doing a read on it.
40969 * configure.ac: Only use -fno-stack-protector for the target
40972 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
40974 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
40975 __attribute_ ((unused)) to mode_type argument.
40977 * util/getroot.c (grub_guess_root_device): Fix #endif.
40979 * kern/misc.c (memcmp): Fix prototype.
40981 * include/grub/partition.h [GRUB_UTIL]
40982 (grub_gpt_partition_map_init): Add prototype.
40983 (grub_gpt_partition_map_fini): Likewise.
40985 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
40986 at the right place.
40988 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
40989 (grub_fat_read_data): Likewise.
40990 (grub_fat_find_dir): Likewise.
40992 * font/manager.c (find_glyph): Make table a const.
40993 (grub_font_get_glyph): Remove bitmap from if statement.
40995 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
40997 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
40998 code, first search for device in /dev/mapper, then in /dev.
40999 (grub_util_get_grub_dev): New function.
41000 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
41002 * util/grub-probe.c (probe): Remove check for RAID, call
41003 grub_util_get_grub_dev() instead of
41004 grub_util_biosdisk_get_grub_dev().
41005 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
41006 grub_util_biosdisk_get_grub_dev().
41007 * util/i386/pc/grub-setup.c (main): Likewise.
41009 2007-05-16 Robert Millan <rmh@aybabtu.com>
41011 * DISTLIST: Update for the latest changes.
41012 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
41013 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
41014 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
41015 grub/util/biosdisk.h.
41016 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
41017 grub/util/biosdisk.h.
41019 2007-05-16 Robert Millan <rmh@aybabtu.com>
41021 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
41023 2007-05-16 Robert Millan <rmh@aybabtu.com>
41025 * util/i386/efi/grub-install.in: New.
41026 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
41027 newly added grub-install.
41028 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
41030 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
41031 grub/util/biosdisk.h.
41032 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
41033 grub/util/biosdisk.h.
41035 2007-05-16 Robert Millan <rmh@aybabtu.com>
41037 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
41038 * include/grub/util/biosdisk.h: ... here.
41039 * util/i386/pc/biosdisk.c: Moved to ...
41040 * util/biosdisk.c: ... here.
41041 * util/i386/pc/getroot.c: Moved to ...
41042 * util/getroot.c: ... here.
41043 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
41044 * util/grub-mkdevicemap.c: ... here.
41045 * util/i386/pc/grub-probe.c: Moved to ...
41046 * util/grub-probe.c: ... here.
41048 2007-05-15 Robert Millan <rmh@aybabtu.com>
41050 * util/update-grub.in: Remove duplicated line in grub.cfg header
41053 2007-05-13 Robert Millan <rmh@aybabtu.com>
41055 * util/update-grub.in: Fix a few assumptions about the devices holding
41056 /, /boot and /boot/grub being the same.
41057 * util/grub.d/00_header.in: Likewise.
41058 * util/grub.d/10_hurd.in: Likewise.
41059 * util/grub.d/10_linux.in: Likewise.
41061 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
41062 patterns. Use that to define the `.old' suffix as older than `'.
41064 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
41066 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
41067 the grub.cfg header message.
41069 2007-05-11 Robert Millan <rmh@aybabtu.com>
41071 * util/update-grub.in: Create device.map if it doesn't already exist,
41072 before attempting to run grub-probe.
41073 Check for grub-probe and grub-mkdevicemap with the same code
41074 grub-install is using.
41077 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
41079 * Makefile.in: Add the datarootdir autoconf variable.
41081 2007-05-09 Robert Millan <rmh@aybabtu.com>
41083 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
41084 fail gracefully if dev->disk->partition == NULL.
41086 2007-05-07 Robert Millan <rmh@aybabtu.com>
41088 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
41089 determine partition map module.
41090 * util/i386/pc/grub-install.in: Use this feature to decide which
41091 partition module to load, instead of hardcoding pc and gpt.
41093 2007-05-07 Robert Millan <rmh@aybabtu.com>
41095 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
41096 source directory differs from build directory.
41098 2007-05-05 Robert Millan <rmh@aybabtu.com>
41100 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
41103 2007-05-05 Robert Millan <rmh@aybabtu.com>
41105 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
41107 2007-05-05 Robert Millan <rmh@aybabtu.com>
41109 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
41110 command-line arguments via ${GRUB_CMDLINE_LINUX}.
41112 2007-05-05 Robert Millan <rmh@aybabtu.com>
41114 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
41115 (grub_probe_SOURCES): Likewise.
41116 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
41117 GPT and initialize dos_part and bsd_part accordingly.
41118 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
41120 (main): Activate gpt module for use during partition identification,
41121 and deactivate it afterwards.
41122 * util/i386/pc/grub-install.in: Add gpt module to core.img.
41123 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
41124 partition identification, and deactivate it afterwards.
41126 2007-05-05 Robert Millan <rmh@aybabtu.com>
41128 * term/i386/pc/console.c (grub_console_fini): Call
41129 grub_term_set_current() before grub_term_unregister().
41131 2007-05-04 Robert Millan <rmh@aybabtu.com>
41133 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
41134 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
41135 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
41136 and update-grub_DATA.
41137 * conf/common.rmk: Build and install update-grub components.
41138 * conf/common.mk: Regenerate.
41139 * util/update-grub.in: New. Core of update-grub.
41140 * util/grub.d/00_header.in: New. Generates grub.cfg header.
41141 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
41142 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
41143 * util/grub.d/README: New. Document grub.d directory layout.
41145 2007-05-01 Robert Millan <rmh@aybabtu.com>
41147 * util/grub-emu.c: Move initialization functions
41148 grub_util_biosdisk_init() and grub_init_all() before
41149 grub_util_biosdisk_get_grub_dev(), which relies on them.
41151 2007-04-19 Robert Millan <rmh@aybabtu.com>
41153 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
41156 2007-04-18 Jerone Young <jerone@gmail.com>
41158 * kernel/elf.c: Add missing parenthesis for conditional statement
41161 2007-04-10 Jerone Young <jerone@gmail.com>
41163 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
41164 continue on and look for device node with real device name.
41166 2007-04-10 Jerone Young <jerone@gmail.com>
41168 * configure.ac: Add argument for autoconf to use transformation
41170 * Makefile.in: Add autoconf package transformation code.
41171 * util/i386/pc/grub-install.in: Likewise.
41172 * util/powerpc/ieee1275/grub-install.in: Likewise.
41174 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
41176 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
41177 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
41178 (EXT2_REVISION): Likewise.
41179 (EXT2_INODE_SIZE): Likewise.
41180 (struct grub_ext2_block_group): Added a missing member
41182 (grub_ext2_read_inode): Divide by the inode size in a superblock
41183 instead of 128 to obtain INODES_PER_BLOCK.
41184 Use the macro EXT2_INODE_SIZE instead of directly using
41185 SBLOCK->INODE_SIZE.
41187 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
41189 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
41190 superblock instead of the structure size to compute an
41191 offset. This fixes the problem that GRUB could not read a
41192 filesystem when inode size is different from 128-byte.
41194 2007-03-05 Marco Gerards <marco@gnu.org>
41196 * normal/main.c (read_config_file): When "menu" is not set, create
41197 an initial context.
41199 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
41201 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
41202 (HEAP_LIMIT): New macro.
41203 (grub_claim_heap): Claim memory up to `heaplimit'.
41205 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
41207 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
41208 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
41209 (_start): Likewise.
41210 (grub_arch_modules_addr): Return address after `_end'.
41211 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
41212 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
41213 (add_segments): Calculate `_end' from phdr size and location.
41214 (ALIGN_UP): Moved to ...
41215 * include/grub/misc.h: here.
41216 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
41218 (GRUB_IEEE1275_MODULE_BASE): Removed.
41220 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41222 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
41225 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41227 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
41229 (grub_elf64_load_hook_t): Likewise.
41230 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
41233 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41235 * kern/mm.c: Update copyright.
41236 (grub_mm_debug): Correct syntax error.
41237 (grub_mm_dump_free): New function.
41238 (grub_debug_free): Call `grub_free'.
41239 * include/grub/mm.h: Update copyright.
41240 (grub_mm_dump_free): Add declaration.
41242 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
41244 * include/grub/ieee1275/ieee1275.h: Update copyright.
41245 * kern/powerpc/ieee1275/init.c: Likewise.
41246 * kern/powerpc/ieee1275/openfw.c: Likewise.
41248 * loader/powerpc/ieee1275/linux.c: Likewise.
41249 * include/grub/elfload.h: Likewise.
41250 * kern/elf.c: Likewise.
41251 (grub_elf32_load): Pass `base' and `size' parameters. Update all
41253 (grub_elf64_load): Likewise.
41254 (grub_elf32_load_segment): Move to a nested function.
41255 (grub_elf64_load_segment): Likewise.
41257 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
41259 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
41261 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
41262 (grub_heap_len): Likewise.
41263 (HEAP_SIZE): New macro.
41264 (grub_claim_heap): New function.
41265 (grub_machine_init): Don't claim heap directly. Call
41267 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
41268 (grub_available_iterate): New function.
41270 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
41272 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
41273 * configure.ac: Use it for testing the HOST and TARGET compilers.
41275 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
41277 * Makefile.in (enable_grub_emu): New variable.
41278 * configure.ac (--enable-grub-emu): New option.
41279 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
41280 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
41281 * conf/i386-pc.rmk: Likewise.
41282 * conf/powerpc-ieee1275.rmk: Likewise.
41283 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
41285 2006-12-12 Marco Gerards <marco@gnu.org>
41287 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
41289 * kern/env.c (grub_env_unset): Don't free the member `value' when
41290 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
41293 * normal/main.c (current_menu): Removed.
41294 (free_menu): Unset the `menu' environment variable.
41295 (grub_normal_menu_addentry): Make use of the environment variable
41296 `menu', instead of using the global `current_menu'. Allocate
41297 memory for the sourcecode of this entry.
41298 (read_config_file): New argument `nested', changed all callers.
41299 Only in the case of a new context, initialize a new menu. Set the
41300 `menu' environment variable.
41301 (grub_normal_execute): Don't set and unset the environment
41302 variable `menu' here anymore. Only free the menu when leaving the
41305 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
41308 2006-12-11 Marco Gerards <marco@gnu.org>
41310 * normal/menu_entry.c (run): Fix off by one bug so the last line
41311 is executed. Move the loader check to outside the loop.
41313 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
41315 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
41317 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
41319 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
41320 the number of sectors. Reported by Andrey Shuvikov
41321 <mr_hyro@yahoo.com>.
41323 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
41325 * kern/disk.c (grub_disk_read): When there is a read error, always
41326 try to read only the necessary data.
41328 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
41330 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
41332 [GRUB_UTIL] (grub_raid_fini): Likewise.
41333 [GRUB_UTIL] (grub_lvm_init): Likewise.
41334 [GRUB_UTIL] (grub_lvm_fini): Likewise.
41335 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
41336 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
41337 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
41338 and grub_raid_fini().
41340 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
41342 * include/grub/types.h (__unused): Rename to UNUSED.
41343 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
41344 (grub_elf64_size): Likewise.
41346 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
41348 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
41349 grub_error_push and grub_error_pop in the error-handling path.
41350 (grub_elf32_load_segment): Only call grub_file_read with non-zero
41353 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
41355 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
41356 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41357 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41358 (kernel_elf_SOURCES): Likewise.
41359 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
41360 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
41361 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41362 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41363 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
41364 (elf_mod_SOURCES): New variable.
41365 (elf_mod_CFLAGS): Likewise.
41366 (elf_mod_LDFLAGS): Likewise.
41367 * include/grub/types.h (__unused): New macro.
41368 * include/grub/elfload.h: New file.
41369 * kern/elf.c: Likewise.
41370 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
41371 (ELF32_LOADMASK): New macro.
41372 (ELF64_LOADMASK): Likewise.
41373 (vmlinux): Removed.
41374 (grub_linux_load32): New function.
41375 (grub_linux_load64): Likewise.
41376 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
41377 Use grub_elf_t instead of grub_file_t.
41379 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
41381 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
41382 `catch_result' to struct set_color_args.
41384 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
41386 * normal/menu.c: Include grub/script.h.
41387 * normal/menu_entry.c: Likewise.
41388 * include/grub/normal.h: Do not include grub/script.h.
41390 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41392 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
41394 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41396 * kern/disk.c (grub_disk_open): Print debug messages when opening a
41398 (grub_disk_close): Print debug messages when closing a disk.
41399 (grub_disk_read): Print debug messages when disk read fails.
41400 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
41402 * kern/partition.c: Include misc.h.
41403 (grub_partition_iterate): Print debug messages when detecting
41406 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41408 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
41410 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
41412 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
41414 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
41415 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
41417 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
41419 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
41420 instead of sizeof(lv). Patch by Michael Guntsche.
41422 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
41424 * disk/lvm.c: Rename VGS to VG_LIST.
41425 (grub_lvm_iterate): Change VGS->LV to VG-LV.
41426 (grub_lvm_open): Likewise.
41427 Thanks to Michael Guntsche for finding this bug.
41429 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
41431 * configure.ac (AC_INIT): Bumped to 1.95.
41433 2006-10-14 Robert Millan <rmh@aybabtu.com>
41435 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
41436 with "/dev/.static/dev/md".
41438 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
41440 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
41441 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
41442 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
41443 DRIVE_NAME are always freed.
41445 * util/i386/pc/biosdisk.c (make_device_name): Add one into
41446 DOS_PART, as a DOS partition is counted from one instead of zero
41447 now. Reported by Robert Millan.
41449 2006-10-14 Robert Millan <rmh@aybabtu.com>
41451 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
41452 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
41453 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
41454 string returned by grub_guess_root_device.
41455 * util/i386/pc/grub-setup.c: Likewise.
41456 * util/i386/pc/grub-probefs.c: Likewise.
41458 * util/i386/pc/grub-probefs.c: Rename to ...
41459 * util/i386/pc/grub-probe.c: ... this.
41460 * DISTLIST: Remove grub-probefs, add grub-probe.
41461 * conf/i386-efi.rmk: Likewise.
41462 * conf/i386-pc.rmk: Likewise.
41463 * util/i386/pc/grub-install.in: Likewise.
41465 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
41466 choose which information we want to print.
41468 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
41470 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
41471 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
41472 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
41473 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
41474 video/readers/tga.c and video/i386/pc/vbeutil.c.
41476 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
41478 Added support for RAID and LVM.
41480 * disk/lvm.c: New file.
41481 * disk/raid.c: Likewise.
41482 * include/grub/lvm.h: Likewise.
41483 * include/grub/raid.h: Likewise.
41484 * include/grub/util/lvm.h: Likewise.
41485 * include/grub/util/raid.h: Likewise.
41486 * util/lvm.c: Likewise.
41487 * util/raid.c: Likewise.
41489 * include/grub/disk.h (grub_disk_dev_id): Add
41490 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
41491 (grub_disk_get_size): New prototype.
41492 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
41493 returns a partition.
41494 (grub_disk_get_size): New function.
41496 * kern/i386/pc/init.c (make_install_device): Copy the prefix
41497 verbatim if grub_install_dos_part is -2.
41499 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
41502 * util/i386/pc/grub-setup.c (setup): New argument
41503 MUST_EMBED. Force embedding of GRUB when the argument is
41504 true. Close FILE before returning.
41505 (main): Add support for RAID and LVM.
41507 * conf/common.rmk: Add RAID and LVM modules.
41508 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
41510 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
41512 * kern/misc.c (grub_strstr): New function.
41513 * include/grub/misc.h (grub_strstr): New prototype.
41515 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
41517 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
41519 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
41521 * kern/misc.c (grub_strtoull): Guess the base only if not
41524 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41526 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
41529 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41531 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
41533 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
41534 Remove `flags' argument. All callers changed.
41535 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
41536 (IEEE1275_IHANDLE_INVALID): New variable.
41537 (IEEE1275_CELL_INVALID): New variable.
41538 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
41539 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
41540 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
41541 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
41542 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
41543 codes from Open Firmware. All callers updated.
41544 (grub_ieee1275_next_property): Directly return Open Firmware return
41546 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
41547 Standardize error checking from `grub_ieee1275_get_property'.
41548 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
41549 `devalias' to `aliases'. Correct comments. Consolidate error paths.
41551 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41553 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
41554 `instance_to_package_args' to `instance_to_path_args'.
41556 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
41557 `grub_ieee1275_chosen'.
41559 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
41560 `grub_ieee1275_interpret'.
41562 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
41564 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
41566 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
41568 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
41569 (__cmpdi): Likewise.
41571 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
41572 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
41575 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
41577 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
41578 to type `grub_ssize_t'.
41579 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
41581 2006-09-22 Marco Gerards <marco@gnu.org>
41583 * normal/script.c (grub_script_create_cmdmenu): Skip leading
41586 2006-09-22 Marco Gerards <marco@gnu.org>
41588 * commands/echo.c: New file.
41590 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
41592 * conf/common.rmk (echo_mod_SOURCES): New variable.
41593 (echo_mod_CFLAGS): Likewise.
41594 (echo_mod_LDFLAGS): Likewise.
41596 2006-09-22 Marco Gerards <marco@gnu.org>
41598 * normal/main.c (get_line): Malloc memory instead of using
41599 preallocated memory. Removed the arguments `cmdline' and
41600 `max_len'. Updated all callers.
41602 2006-09-22 Marco Gerards <marco@gnu.org>
41604 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
41605 (normal_mod_DEPENDENCIES): Likewise.
41607 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
41608 (normal_mod_DEPENDENCIES): Likewise.
41610 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
41612 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
41614 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
41616 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
41617 (normal_mod_DEPENDENCIES): Likewise.
41618 * conf/i386-pc.mk: Regenerate.
41619 * conf/i386-efi.mk: Likewise
41620 * conf/common.mk: Likewise.
41621 * conf/powerpc-ieee1275.mk: Likewise.
41622 * conf/sparc64-ieee1275.mk: Likewise.
41624 2006-09-22 Robert Millan <rmh@aybabtu.com>
41626 Sync with i386 version.
41627 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
41628 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
41630 2006-09-21 Robert Millan <rmh@aybabtu.com>
41632 Import from GRUB Legacy (lib/device.c):
41633 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
41634 (init_device_map) [__linux__]: Add support for I2O devices.
41636 2006-09-14 Marco Gerards <marco@gnu.org>
41638 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
41641 2006-09-14 Robert Millan <rmh@aybabtu.com>
41643 * util/i386/pc/grub-install.in: Skip menu.lst when removing
41646 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
41648 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
41649 before adding it to device.map.
41651 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
41653 * genmk.rb: Let GCC generate dependencies the first time it
41654 compiles a file; using the -MD option.
41655 * conf/common.mk: Regenerate.
41656 * conf/i386-pc.mk: Likewise.
41657 * conf/i386-efi.mk: Likewise.
41658 * conf/powerpc-ieee1275.mk: Likewise.
41659 * conf/sparc64-ieee1275.mk: Likewise.
41661 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
41663 Move the prototypes of grub_setjmp and grub_longjmp to
41664 cpu/setjmp.h, so that each architecture may specify different
41667 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
41668 (grub_longjmp): Likewise.
41669 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
41670 (grub_longjmp): Likewise.
41671 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
41672 (grub_longjmp): Likewise.
41674 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
41675 [!GRUB_UTIL] (grub_longjmp): Removed.
41677 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
41679 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
41680 "color!" method does not return any value.
41682 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41684 * include/grub/bitmap.h: New file.
41686 * include/grub/i386/pc/vbeutil.h: Likewise.
41688 * video/bitmap.c: Likewise.
41690 * video/readers/tga.c: Likewise.
41692 * video/i386/pc/vbeutil.c: Likewise.
41694 * commands/videotest.c: Code cleanup and updated to reflect to new
41697 * term/gfxterm.c: Likewise.
41699 * video/video.c: Likewise.
41701 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
41702 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
41703 (bitmap_mod_SOURCES): New entry.
41704 (bitmap_mod_CFLAGS): Likewise.
41705 (bitmap_mod_LDFLAGS): Likewise.
41706 (tga_mod_SOURCES): Likewise.
41707 (tga_mod_CFLAGS): Likewise.
41708 (tga_mod_LDFLAGS): Likewise.
41710 * include/grub/video.h (grub_video_blit_operators): New enum type.
41711 (grub_video_render_target): Changed as forward declaration and moved
41712 actual definition to be video driver specific.
41713 (grub_video_adapter.blit_bitmap): Added blitting operator.
41714 (grub_video_adapter.blit_render_target): Likewise.
41715 (grub_video_blit_bitmap): Likewise.
41716 (grub_video_blit_render_target): Likewise.
41718 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
41719 driver specific render target definition.
41720 (grub_video_vbe_map_rgba): Added driver internal helper.
41721 (grub_video_vbe_unmap_color): Updated to use
41722 grub_video_i386_vbeblit_info.
41723 (grub_video_vbe_get_video_ptr): Likewise.
41725 * include/grub/i386/pc/vbeblit.h
41726 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
41727 grub_video_i386_vbeblit_info.
41728 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
41729 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
41730 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
41731 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
41732 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
41733 (grub_video_i386_vbeblit_index_index): Likewise.
41734 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
41735 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
41736 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
41737 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
41739 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
41742 * video/i386/pc/vbeblit.c: Updated to reflect changes on
41743 include/grub/i386/pc/vbeblit.h.
41745 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
41746 Updated to use grub_video_i386_vbeblit_info.
41747 (grub_video_i386_vbefill_R8G8B8): Likewise.
41748 (grub_video_i386_vbefill_index): Likewise.
41749 (grub_video_i386_vbefill): Added generic filler.
41751 * video/i386/pc/vbefill.c: Updated to reflect changes on
41752 include/grub/i386/pc/vbefill.h.
41754 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
41755 grub_video_i386_vbeblit_info.
41756 (grub_video_vbe_unmap_color): Likewise.
41757 (grub_video_vbe_blit_glyph): Likewise.
41758 (grub_video_vbe_scroll): Likewise.
41759 (grub_video_vbe_draw_pixel): Removed function.
41760 (grub_video_vbe_get_pixel): Likewise.
41761 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
41762 updated code to use it.
41763 (common_blitter): Added common blitter for render target and bitmap.
41764 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
41765 (grub_video_vbe_blit_render_target): Likewise.
41767 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
41769 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
41770 is in text mode if there is no console control protocol instance
41773 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41775 * include/grub/video.h: Code cleanup.
41777 * include/grub/i386/pc/vbe.h: Likewise.
41779 * video/i386/pc/vbe.c: Likewise.
41781 * video/i386/pc/vbeblit.c: Likewise.
41783 * video/i386/pc/vbefill.c: Likewise.
41785 * video/video.c: Likewise. Also added more comments.
41787 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41789 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
41790 (struct grub_biosdisk_dap): Likewise.
41792 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
41793 linkage settings for all functions.
41795 2006-07-12 Marco Gerards <marco@gnu.org>
41797 * configure.ac (--enable-mm-debug): Fix typo.
41799 * genkernsyms.sh.in: Use proper quoting for `CC'.
41801 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
41803 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
41804 (normal_mod_ASFLAGS): Remove "-m32".
41806 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
41808 * util/misc.c: Include config.h.
41809 [!HAVE_MEMALIGN]: Do not include malloc.h.
41810 (grub_memalign): Use posix_memalign, if present. Then, use
41811 memalign, if present. Otherwise, emit an error.
41813 * util/grub-emu.c: Do not include malloc.h.
41815 * include/grub/util/misc.h: Include unistd.h. This is required for
41816 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
41817 D. Eades III <hde@foobar-qux.org>.
41819 * configure.ac (AC_GNU_SOURCE): Added.
41820 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
41823 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
41825 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
41826 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
41828 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
41830 * include/grub/types.h (grub_host_addr_t): Rename to
41831 grub_target_addr_t.
41832 (grub_host_off_t): Rename to grub_target_off_t.
41833 (grub_host_size_t): Rename to grub_target_size_t.
41834 (grub_host_ssize_t): Rename to grub_target_ssize_t.
41835 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
41837 * include/grub/kernel.h (struct grub_module_header): Change type
41838 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
41839 (grub_module_info): Likewise.
41841 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
41843 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
41844 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
41845 Velazquez <jesus.velazquez@gmail.com>.
41847 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
41849 Count partitions from 1 instead of 0 in the string representation
41850 of partitions. Still use 0-based internally.
41852 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
41853 (sun_partition_map_iterate): Use grub_partition_t instead of
41854 struct grub_partition *. Cast DESC->START_CYLINDER to
41855 grub_uint64_t after converting the endian.
41856 (sun_partition_map_probe): Subtract 1 for PARTNUM.
41857 (sun_partition_map_get_name): Add 1 to P->INDEX.
41859 * partmap/pc.c (grub_partition_parse): Subtract 1 for
41861 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
41863 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
41864 zero instead of one.
41865 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
41866 (gpt_partition_map_get_name): Add 1 into P->INDEX.
41868 * partmap/apple.c (apple_partition_map_iterate): Change the type
41869 of POS to unsigned.
41870 (apple_partition_map_probe): Subtract 1 for PARTNUM.
41871 (apple_partition_map_get_name): Add 1 into P->INDEX.
41873 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
41874 of POS to unsigned.
41875 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
41876 calculate the offset of a partition.
41877 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
41878 (amiga_partition_map_get_name): Add 1 into P->INDEX.
41880 * partmap/acorn.c (acorn_partition_map_find): Change the type of
41881 SECTOR to grub_disk_addr_t.
41882 (acorn_partition_map_iterate): Likewise.
41883 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
41884 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
41886 (acorn_partition_map_get_name): Add 1 into P->INDEX.
41888 * kern/i386/pc/init.c (make_install_device): Add 1 into
41889 GRUB_INSTALL_DOS_PART.
41891 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
41894 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
41896 Clean up the code to support 64-bit addressing in disks and
41897 files. This change is not enough for filesystems yet.
41899 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
41900 type of "start" to grub_uint64_t.
41901 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
41902 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
41903 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
41906 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
41907 to grub_disk_addr_t.
41909 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
41912 * partmap/pc.c (pc_partition_map_iterate): Likewise.
41914 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
41917 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
41919 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
41921 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
41923 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
41924 to grub_off_t, to detect an error from grub_file_seek.
41925 (grub_multiboot_load_elf32): Likewise.
41927 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
41928 maximum unsigned long value when an overflow is detected.
41929 (grub_strtoull): New function.
41930 (grub_divmod64): Likewise.
41931 (grub_lltoa): use grub_divmod64.
41933 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
41935 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
41936 the pointer to next character. Use grub_strtoull instead of
41938 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
41939 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
41942 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
41943 return value is signed.
41944 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
41945 test if OFFSET is less than zero, as OFFSET is unsigned now.
41947 * kern/disk.c (struct grub_disk_cache): Change the type of
41948 "sector" to grub_disk_addr_t.
41949 (grub_disk_cache_get_index): Change the type of SECTOR to
41950 grub_disk_addr_t. Calculate the hash with SECTOR casted to
41951 unsigned after shifting.
41952 (grub_disk_cache_invalidate): Change the type of SECTOR to
41954 (grub_disk_cache_unlock): Likewise.
41955 (grub_disk_cache_store): Likewise.
41956 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
41957 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
41958 grub_disk_addr_t and grub_uint64_t, respectively.
41959 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
41960 body, as the value of OFFSET is tweaked by
41961 grub_disk_check_range. Change the types of START_SECTOR, LEN and
41962 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
41964 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
41965 body, as the value of OFFSET is tweaked by
41966 grub_disk_check_range. Change the types of LEN and N to
41969 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
41970 and "saved_offset" to grub_off_t.
41971 (test_header): Cast BUF to char *.
41972 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
41974 (grub_gzio_read): Change the types of OFFSET and SIZE to
41975 grub_off_t and grub_size_t, respectively.
41977 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
41979 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
41980 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
41981 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
41982 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
41983 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
41985 * include/grub/types.h (grub_off_t): Unconditionally set to
41987 (grub_disk_addr_t): Changed to grub_uint64_t.
41989 * include/grub/partition.h (struct grub_partition): Change the
41990 types of "start", "len" and "offset" to grub_disk_addr_t,
41991 grub_uint64_t and grub_disk_addr_t, respectively.
41992 (grub_partition_get_start): Return grub_disk_addr_t.
41993 (grub_partition_get_len): Return grub_uint64_t.
41995 * include/grub/misc.h (grub_strtoull): New prototype.
41996 (grub_divmod64): Likewise.
41998 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
41999 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
42000 grub_off_t, respectively.
42001 All callers and references changed.
42003 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
42004 grub_size_t in "read".
42005 All callers and references changed.
42007 * include/grub/file.h (struct grub_file): Change the types of
42008 "offset" and "size" to grub_off_t and grub_off_t,
42009 respectively. Change the type of SECTOR to grub_disk_addr_t in
42011 (grub_file_read): Change the type of LEN to grub_size_t.
42012 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
42014 (grub_file_size): Return grub_off_t.
42015 (grub_file_tell): Likewise.
42016 All callers and references changed.
42018 * include/grub/disk.h (struct grub_disk_dev): Change the types of
42019 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
42021 (struct grub_disk): Change the type of "total_sectors" to
42022 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
42024 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
42025 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
42026 (grub_disk_write): Likewise.
42027 All callers and references changed.
42029 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
42030 char * for grub_strncmp to silence gcc.
42031 (grub_iso9660_mount): Likewise.
42032 (grub_iso9660_mount): Likewise.
42033 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
42035 (grub_iso9660_iterate_dir): Likewise.
42036 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
42038 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
42039 LEN to grub_disk_addr_t and grub_size_t, respectively.
42041 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
42043 * fs/jfs.c (grub_jfs_read_file): Likewise.
42045 * fs/minix.c (grub_jfs_read_file): Likewise.
42047 * fs/sfs.c (grub_jfs_read_file): Likewise.
42049 * fs/ufs.c (grub_jfs_read_file): Likewise.
42051 * fs/xfs.c (grub_jfs_read_file): Likewise.
42053 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
42054 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
42057 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
42058 BLKNR to -1 instead of returning GRUB_ERRNO.
42059 (grub_ext2_read_file): Change the types of SECTOR and
42060 LEN to grub_disk_addr_t and grub_size_t, respectively.
42062 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
42063 LEN to grub_disk_addr_t and grub_size_t, respectively.
42065 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
42068 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
42069 string. Do not cast SECTOR explicitly.
42071 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
42072 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
42073 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
42074 grub_disk_addr_t and grub_size_t, respectively. If the sector is
42075 over 2TB and LBA mode is not supported, raise an error.
42076 (get_safe_sectors): New function.
42077 (grub_biosdisk_read): Use get_safe_sectors.
42078 (grub_biosdisk_write): Likewise.
42080 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
42081 (grub_efidisk_write): Likewise.
42083 * disk/loopback.c (delete_loopback): Cosmetic changes.
42084 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
42086 (grub_loopback_open): Likewise.
42087 (grub_loopback_read): Likewise. Also, change the type of POS to
42088 grub_off_t, and fix the usage of grub_memset.
42090 * commands/i386/pc/play.c: Include grub/machine/time.h.
42092 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
42095 * commands/configfile.c: Include grub/env.h.
42097 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
42098 GRUB_ERRNO directly instead. Change the type of POS to
42099 grub_off_t. Follow the coding standard.
42101 * commands/blocklist.c: Include grub/partition.h.
42102 (grub_cmd_blocklist): Return an error if the underlying device is
42103 not a disk. Take the starting sector of a partition into account,
42104 if a partition is used.
42106 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
42108 (lba_mode): Support 64-bit addresses.
42109 (chs_mode): Likewise.
42110 (copy_buffer): Adapted to the new offsets of a length field and a
42112 (blocklist_default_start): Allocate 64-bit space.
42114 * boot/i386/pc/boot.S (force_lba): Removed.
42115 (boot_drive): Moved to under KERNEL_SECTOR.
42116 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
42118 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
42120 (lba_mode): Refactored to support a 64-bit address. More size
42122 (setup_sectors): Likewise.
42124 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
42126 * DISTLIST: Added include/grub/i386/linux.h. Removed
42127 include/grub/i386/pc/linux.h
42129 * configure.ac (AC_INIT): Bumped to 1.94.
42131 * config.guess: Updated from gnulib.
42132 * config.sub: Likewise.
42133 * install-sh: Likewise.
42134 * mkinstalldirs: Likewise.
42136 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
42138 * conf/common.rmk (grub_modules_init.lst): Depended on
42139 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
42142 * genmk.rb (PModule::rule): Reverted the previous change.
42144 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
42146 * conf/common.rmk (grub_modules_init.lst): Depends on
42147 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
42148 that the target does not exist before producing.
42149 (grub_modules_init.h): Remove the target before generating.
42150 (grub_emu_init.c): Likewise.
42152 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
42154 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
42156 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
42157 for the target-specific tests. Make sure that we also have the
42158 up-to-date target variables for those tests.
42160 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
42162 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
42163 (PModule::rule): Likewise.
42165 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
42167 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
42168 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
42169 target-specific flags should be prefixed.
42170 (PModule::rule): Likewise.
42172 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
42174 * configure.ac (CMP): Check if cmp is available explicitly.
42176 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
42178 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
42179 (target_cpu): New variable.
42180 (pkglibdir): Use target_cpu instead of host_cpu.
42182 * util/i386/pc/grub-install.in (host_cpu): Removed.
42183 (target_cpu): New variable.
42184 (pkglibdir): Use target_cpu instead of host_cpu.
42186 * util/genmoddep.c: Removed.
42188 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
42189 instead of GRUB_HOST_SIZEOF_VOID_P.
42190 * kern/dl.c: Likewise.
42192 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
42194 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42195 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42196 (GRUB_TARGET_SIZEOF_LONG): ... this.
42197 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42198 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42199 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
42201 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42202 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42203 (GRUB_TARGET_SIZEOF_LONG): ... this.
42204 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42205 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42206 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
42208 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42209 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42210 (GRUB_TARGET_SIZEOF_LONG): ... this.
42211 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42212 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42214 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
42215 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
42216 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
42217 instead of GRUB_HOST_SIZEOF_LONG.
42218 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
42219 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
42220 GRUB_CPU_WORDS_BIGENDIAN.
42221 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
42222 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
42225 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
42226 (genmoddep_SOURCES): Likewise.
42227 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
42228 (genmoddep_SOURCES): Likewise.
42229 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
42230 (genmoddep_SOURCES): Likewise.
42231 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
42233 (genmoddep_SOURCES): Likewise.
42235 * genmoddep.awk: New file.
42237 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
42238 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
42239 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
42240 (PModule::rule): Likewise.
42241 (Program::rule): Likewise.
42242 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
42243 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
42246 * configure.ac: Rewritten intensively to use host and target
42247 instead of build and host, respectively.
42249 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
42250 (host_cpu): Removed.
42251 (target_cpu): New variable.
42252 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
42253 (BUILD_CC): Removed.
42254 (BUILD_CFLAGS): Likewise.
42255 (BUILD_CPPFLAGS): Likewise.
42256 (TARGET_CC): New variable.
42257 (TARGET_CFLAGS): Likewise.
42258 (TARGET_CPPFLAGS): Likewise.
42259 (TARGET_LDFLAGS): Likewise.
42261 (include): Use target_cpu instead of host_cpu.
42262 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
42264 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
42266 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
42268 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
42269 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
42270 field 'false' to 'exec_on_false'.
42271 (grub_script_create_cmdif): Renamed argument names to reflect above
42274 * normal/execute.c (grub_script_execute_cmdif): Likewise.
42276 * normal/script.c (grub_script_create_cmdif): Likewise.
42278 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
42280 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
42282 (grub_hfsplus_btree_recptr): Likewise.
42283 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
42284 FILEBLOCK both to pass a block number and store next block
42286 (grub_hfsplus_read_block): Rewritten heavily to support an extent
42287 overflow file correctly. Specify errors appropriately, because
42288 fshelp expects that GRUB_ERRNO is set when fails. Reuse
42289 grub_hfsplus_btree_recptr to get the pointer to a found key.
42290 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
42293 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
42295 (_linux_mod_SOURCES): New variable.
42296 (_linux_mod_CFLAGS): Likewise.
42297 (_linux_mod_LDFLAGS): Likewise.
42298 (linux_mod_SOURCES): Likewise.
42299 (linux_mod_CFLAGS): Likewise.
42300 (linux_mod_LDFLAGS): Likewise.
42302 * DISTLIST: Added loader/i386/efi/linux.c,
42303 loader/i386/efi/linux_normal.c and
42304 include/grub/i386/efi/loader.h.
42306 * loader/i386/efi/linux.c: New file.
42307 * loader/i386/efi/linux_normal.c: Likewise.
42308 * include/grub/i386/efi/loader.h: Likewise.
42310 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
42312 * commands/blocklist.c: New file.
42314 * DISTLIST: Added commands/blocklist.c.
42316 * term/efi/console.c (grub_console_highlight_color): Use a lighter
42317 color for the background, and a darker color for the foreground.
42318 (grub_console_checkkey): Return READ_KEY.
42319 (grub_console_cls): Set the background to
42320 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
42322 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
42324 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
42325 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
42327 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
42330 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
42331 BG. The spec is wrong again.
42333 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
42335 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
42337 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
42338 commands/blocklist.c.
42339 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42341 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
42342 (blocklist_mod_SOURCES): New variable.
42343 (blocklist_mod_CFLAGS): Likewise.
42344 (blocklist_mod_LDFLAGS): Likewise.
42346 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
42348 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
42350 (lba_mode): Use %eax more intensively to reduce the code size.
42352 2006-05-20 Marco Gerards <marco@gnu.org>
42354 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
42356 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
42358 (script): Accept leading newlines.
42359 (newlines): New rule to describe 0 or more newlines.
42360 (commands): Accept `command' with trailing newline. Fixed the
42361 order in which arguments were passed to `grub_script_add_cmd'.
42362 Accept commands separated by newlines.
42363 (function): Changed to accept newlines.
42364 (menuentry) Rewritten.
42366 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
42367 front of the list, instead of to the end.
42369 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
42371 * util/i386/pc/grub-install.in (bindir): New variable.
42372 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
42373 Shaver <lbgwjl@gmail.com>.
42375 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
42377 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
42378 grub/machine/linux.h
42379 * loader/i386/pc/linux.c: Likewise.
42381 * include/grub/i386/pc/linux.h: Moved to ...
42382 * include/grub/i386/linux.h: ... here.
42384 * include/grub/i386/linux.h (struct linux_kernel_params): New
42387 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
42389 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
42391 (grub_video_vbe_blit_glyph): Likewise.
42392 (grub_video_vbe_blit_bitmap): Likewise.
42393 (grub_video_vbe_blit_render_target): Likewise.
42395 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
42397 * configure.ac (--with-platform): Properly quote the square
42400 2006-05-08 Marco Gerards <marco@gnu.org>
42402 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
42404 (kernel_elf_HEADERS): ...to this. Updated all users.
42405 (grubof_symlist.c): Renamed from this...
42406 (kernel_elf_symlist.c): ...to this. Updated all users.
42407 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
42408 (grubof_SOURCES): Renamed from this...
42409 (kernel_elf_SOURCES): ...to this.
42410 (grubof_HEADERS): Renamed from this...
42411 (kernel_elf_HEADERS): ...to this.
42412 (grubof_CFLAGS): Renamed from this...
42413 (kernel_elf_CFLAGS): ...to this.
42414 (grubof_ASFLAGS): Renamed from this...
42415 (kernel_elf_ASFLAGS): ...to this.
42416 (grubof_LDFLAGS): Renamed from this...
42417 (kernel_elf_LDFLAGS): ...to this.
42419 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
42421 (kernel_elf_HEADERS): ...to this. Updated all users.
42422 (grubof_symlist.c): Renamed from this...
42423 (kernel_elf_symlist.c): ...to this. Updated all users.
42424 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
42425 (grubof_SOURCES): Renamed from this...
42426 (kernel_elf_SOURCES): ...to this.
42427 (grubof_HEADERS): Renamed from this...
42428 (kernel_elf_HEADERS): ...to this.
42429 (grubof_CFLAGS): Renamed from this...
42430 (kernel_elf_CFLAGS): ...to this.
42431 (grubof_ASFLAGS): Renamed from this...
42432 (kernel_elf_ASFLAGS): ...to this.
42433 (grubof_LDFLAGS): Renamed from this...
42434 (kernel_elf_LDFLAGS): ...to this.
42436 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
42437 `kernel.elf' instead of `grubof'.
42439 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
42441 Add --with-platform to configure. Use pkglibdir instead of
42442 pkgdatadir. This is reported by Roger Leigh.
42444 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
42445 (host_vendor): Likewise.
42446 (host_os): Likewise.
42447 (pkgdatadir): Likewise.
42448 (platform): New variable.
42449 (pkglibdir): Likewise.
42450 Use PKGLIBDIR instead of PKGDATADIR.
42452 * util/i386/pc/grub-install.in (datadir): Removed.
42453 (host_vendor): Likewise.
42454 (host_os): Likewise.
42455 (pkgdatadir): Likewise.
42456 (platform): New variable.
42457 (pkglibdir): Likewise.
42458 Use PKGLIBDIR instead of PKGDATADIR.
42460 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
42461 instead of GRUB_DATADIR.
42463 * util/i386/pc/grub-mkimage.c (usage): Likewise.
42465 * util/i386/efi/grub-mkimage.c (usage): Likewise.
42468 * configure.ac (--with-platform): New option.
42469 Use PLATFORM instead of HOST_VENDOR to specify a platform.
42471 * Makefile.in: Include a makefile based on PLATFORM instead of
42473 (pkgdatadir): Not appended by the machine type.
42474 (pkglibdir): Appended by the machine type.
42475 (host_vendor): Removed.
42476 (platform): New variable.
42477 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
42478 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
42479 (uninstall): Likewise.
42481 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
42483 Use the environment context in the menu. Remove the commands
42484 "default" and "timeout", and use variables instead.
42486 * normal/menu.c: Include grub/env.h.
42487 (print_entry): Cast TITLE to silence gcc.
42488 (get_timeout): New function.
42489 (set_timeout): Likewise.
42490 (get_entry_number): Likewise.
42491 (run_menu): Use a default entry, a fallback entry and a timeout
42492 in the environment variables "default", "fallback" and
42493 "timeout". Also, tweak the default entry if it is not within the
42494 current menu entries.
42495 (grub_menu_run): Use a fallback entry in the environment variable
42498 * normal/main.c (read_config_file): Do not initialize
42499 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
42501 (grub_normal_execute): Use a data slot to store the menu.
42503 * include/grub/normal.h (struct grub_menu): Removed default_entry,
42504 fallback_entry and timeout.
42505 (struct grub_menu_list): Removed.
42506 (grub_menu_list_t): Likewise.
42507 (struct grub_context): Likewise.
42508 (grub_context_t): Likewise.
42509 (grub_context_get): Likewise.
42510 (grub_context_get_current_menu): Likewise.
42511 (grub_context_push_menu): Likewise.
42512 (grub_context_pop_menu): Likewise.
42513 (grub_default_init): Likewise.
42514 (grub_default_fini): Likewise.
42515 (grub_timeout_init): Likewise.
42516 (grub_timeout_fini): Likewise.
42518 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
42520 (normal_mod_SOURCES): Removed normal/context.c.
42522 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
42523 commands/default.c, commands/timeout.c and normal/context.c.
42524 (normal_mod_SOURCES): Removed normal/context.c.
42526 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
42527 commands/timeout.c and normal/context.c.
42528 (normal_mod_SOURCES): Removed normal/context.c.
42530 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
42531 commands/default.c, commands/timeout.c and normal/context.c.
42532 (normal_mod_SOURCES): Removed normal/context.c.
42534 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
42536 (default_mod_SOURCES): Removed.
42537 (default_mod_CFLAGS): Likewise.
42538 (default_mod_LDFLAGS): Likewise.
42539 (timeout_mod_SOURCES): Removed.
42540 (timeout_mod_CFLAGS): Likewise.
42541 (timeout_mod_LDFLAGS): Likewise.
42543 * DISTLIST: Removed commands/default.c, commands/timeout.c and
42546 * commands/default.c: Removed.
42547 * commands/timeout.c: Likewise.
42548 * normal/context.c: Likewise.
42550 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
42552 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
42554 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
42556 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
42557 "next" to "prev" for readability.
42558 (struct grub_env_sorted_var): New struct.
42559 (grub_env_context): Renamed to ...
42560 (initial_context): ... this.
42561 (grub_env_var_context): Renamed to ...
42562 (current_context): ... this.
42563 (grub_env_find): Look only at CURRENT_CONTEXT.
42564 (grub_env_context_open): Rewritten to copy exported variables from
42566 (grub_env_context_close): Rewritten according to the new
42567 scheme. Also, add an assertion to prevent the initial context from
42569 (grub_env_insert): Removed the code for the sorted list.
42570 (grub_env_remove): Likewise.
42571 (grub_env_export): Simply mark the variable with
42572 GRUB_ENV_VAR_GLOBAL.
42573 (grub_env_set): A cosmetic change for naming consistency.
42574 (grub_env_get): Likewise.
42575 (grub_env_unset): Likewise.
42576 (grub_env_iterate): Rewritten to sort variables within this
42578 (grub_register_variable_hook): Fixed for naming consistency. Call
42579 grub_env_find again, only if NAME is not found at the first time.
42580 (mangle_data_slot_name): New function.
42581 (grub_env_set_data_slot): Likewise.
42582 (grub_env_get_data_slot): Likewise.
42583 (grub_env_unset_data_slot): Likewise.
42585 * include/grub/env.h (grub_env_var_type): New enum.
42586 (GRUB_ENV_VAR_LOCAL): New constant.
42587 (GRUB_ENV_VAR_GLOBAL): Likewise.
42588 (GRUB_ENV_VAR_DATA): Likewise.
42589 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
42591 (grub_env_set): Replace VAR with NAME for consistency.
42592 (grub_register_variable_hook): Likewise.
42593 (grub_env_export): Specify the name of the argument.
42594 (grub_env_set_data_slot): New prototype.
42595 (grub_env_get_data_slot): Likewise.
42596 (grub_env_unset_data_slot): Likewise.
42598 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
42600 Extend the loader so that GRUB can accept a loader which comes
42601 back to GRUB when a loaded image exits. Also, this change adds
42602 support for a chainloader on EFI.
42604 * term/efi/console.c: Include grub/misc.h.
42605 (grub_console_checkkey): Display a scan code on the top for
42606 debugging. This will be removed once the EFI port gets stable.
42607 Correct the scan code mapping.
42609 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
42610 allocate memory from larger regions, in order to reduce the number
42611 of allocated regions. Otherwise, the MacOSX loader panics.
42612 (filter_memory_map): Avoid less than 1MB for compatibility with
42614 (add_memory_regions): Allocate from the tail of a region, if
42615 possible, to avoid allocating a region near to 1MB, for the MacOSX
42618 * kern/efi/init.c (grub_efi_set_prefix): Specify
42619 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
42621 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
42622 argument IMAGE_HANDLE and specify it to get a loaded image.
42623 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
42624 grub_efi_get_loaded_image.
42625 (grub_efi_get_filename): Divide the length by the size of
42627 (grub_efi_get_device_path): New function.
42628 (grub_efi_print_device_path): Print End Device Path nodes. Divide
42629 the length by the size of grub_efi_char16_t for a file path device
42632 * kern/loader.c (grub_loader_noreturn): New variable.
42633 (grub_loader_set): Accept a new argument NORETURN. Set
42634 GRUB_LOADER_NORETURN to NORETURN.
42635 All callers changed.
42636 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
42639 * include/grub/efi/efi.h (grub_efi_get_device_path): New
42641 (grub_efi_get_loaded_image): Take an argument to specify an image
42644 * include/grub/loader.h (grub_loader_set): Added one more argument
42647 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
42648 instead of grub_efi_open_protocol.
42649 (grub_efidisk_get_device_name): Likewise.
42650 (grub_efidisk_close): Print a newline.
42651 (grub_efidisk_get_device_handle): Fixed to use
42652 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
42653 GRUB_EFI_DEVICE_PATH_TYPE.
42655 * disk/efi/efidisk.c (device_path_guid): Moved to ...
42656 * kern/efi/efi.c (device_path_guid): ... here.
42658 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
42660 (kernel_mod_HEADERS): Added efi/disk.h.
42661 (_chain_mod_SOURCES): New variable.
42662 (_chain_mod_CFLAGS): Likewise.
42663 (_chain_mod_LDFLAGS): Likewise.
42664 (chain_mod_SOURCES): Likewise.
42665 (chain_mod_CFLAGS): Likewise.
42666 (chain_mod_LDFLAGS): Likewise.
42668 * DISTLIST: Added include/grub/efi/chainloader.h,
42669 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
42671 * include/grub/efi/chainloader.h: New file.
42672 * loader/efi/chainloader.c: Likewise.
42673 * loader/efi/chainloader_normal.c: Likewise.
42675 2006-04-30 Marco Gerards <marco@gnu.org>
42677 * commands/configfile.c (grub_cmd_source): New function.
42678 (GRUB_MOD_INIT): Register the commands `source' and `.'.
42679 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
42681 2006-04-30 Marco Gerards <marco@gnu.org>
42683 * normal/execute.c (grub_script_execute_cmd): Change the return
42684 type to `grub_err_t'. Correctly return the error.
42685 (grub_script_execute_cmdline): In case a command line is not a
42686 command or a function, try to interpret it as an assignment.
42688 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
42690 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
42691 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
42692 skip a node whose name is obviously invalid as UTF-16,
42693 i.e. contains a NUL character. Stop the iteration when the last
42694 directory entry is found. Instead of using the return value of
42695 grub_hfsplus_btree_iterate_node, store the value in RET and use
42696 it, because the iterator can be stopped by the last directory
42699 2006-04-30 Marco Gerards <marco@gnu.org>
42701 * include/grub/env.h (grub_env_export): New prototype. Reported
42702 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
42704 2006-04-30 Marco Gerards <marco@gnu.org>
42706 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
42707 size of the extents in a catalog file record.
42709 2006-04-29 Marco Gerards <marco@gnu.org>
42711 * commands/configfile.c (grub_cmd_configfile): Execute the
42712 configfile within its own context.
42714 * include/grub/env.h (grub_env_context_open): New prototype.
42715 (grub_env_context_close): Likewise.
42717 * kern/env.c (grub_env): Removed.
42718 (grub_env_sorted): Likewise.
42719 (grub_env_context): New variable.
42720 (grub_env_var_context): Likewise.
42721 (grub_env_find): Search both the active context and the global
42723 (grub_env_context_open): New function.
42724 (grub_env_context_close): Likewise.
42725 (grub_env_insert): Likewise.
42726 (grub_env_remove): Likewise.
42727 (grub_env_export): Likewise.
42728 (grub_env_set): Changed to use helper functions to avoid code
42730 (grub_env_iterate): Rewritten so both the current context and the
42731 global context are being used.
42733 * normal/command.c (export_command): New function.
42734 (grub_command_init): Register the `export' function.
42736 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
42738 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
42739 explicitly to suppress gcc's warnings.
42740 * fs/fat.c (grub_fat_find_dir): Likewise.
42741 (grub_fat_label): Likewise.
42742 * fs/xfs.c (grub_xfs_read_inode): Likewise.
42743 (grub_xfs_mount): Likewise.
42744 (grub_xfs_label): Likewise.
42745 * fs/affs.c (grub_affs_mount): Likewise.
42746 (grub_affs_label): Likewise.
42747 (grub_affs_iterate_dir): Likewise.
42748 * fs/sfs.c (grub_sfs_mount): Likewise.
42749 (grub_sfs_iterate_dir): Likewise.
42750 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
42751 * fs/hfs.c (grub_hfs_mount): Likewise.
42752 (grub_hfs_cmp_catkeys): Likewise.
42753 (grub_hfs_find_dir): Likewise.
42754 (grub_hfs_dir): Likewise.
42755 (grub_hfs_label): Likewise.
42756 * fs/jfs.c (grub_jfs_mount): Likewise.
42757 (grub_jfs_opendir): Likewise.
42758 (grub_jfs_getent): Likewise.
42759 (grub_jfs_lookup_symlink): Likewise.
42760 (grub_jfs_label): Likewise.
42761 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
42762 (grub_hfsplus_iterate_dir): Likewise.
42763 (grub_hfsplus_btree_iterate_node): Made static.
42765 * util/grub-emu.c (prefix): New variable.
42766 (grub_machine_set_prefix): New function.
42767 (main): Do not set the environment variable "prefix" here. Only
42768 set PREFIX, which is used later by grub_machine_set_prefix.
42770 * include/grub/video.h: Do not include grub/symbol.h.
42771 (grub_video_register): Not exported. This symbol is not defined in
42773 (grub_video_unregister): Likewise.
42774 (grub_video_iterate): Likewise.
42775 (grub_video_setup): Likewise.
42776 (grub_video_restore): Likewise.
42777 (grub_video_get_info): Likewise.
42778 (grub_video_get_blit_format): Likewise.
42779 (grub_video_set_palette): Likewise.
42780 (grub_video_get_palette): Likewise.
42781 (grub_video_set_viewport): Likewise.
42782 (grub_video_get_viewport): Likewise.
42783 (grub_video_map_color): Likewise.
42784 (grub_video_map_rgb): Likewise.
42785 (grub_video_map_rgba): Likewise.
42786 (grub_video_fill_rect): Likewise.
42787 (grub_video_blit_glyph): Likewise.
42788 (grub_video_blit_bitmap): Likewise.
42789 (grub_video_blit_render_target): Likewise.
42790 (grub_video_scroll): Likewise.
42791 (grub_video_swap_buffers): Likewise.
42792 (grub_video_create_render_target): Likewise.
42793 (grub_video_delete_render_target): Likewise.
42794 (grub_video_set_active_render_target): Likewise.
42796 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
42798 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
42800 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
42801 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42802 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42803 instead of $(srcdir)/genkernsyms.sh.
42805 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
42806 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42807 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42808 instead of $(srcdir)/genkernsyms.sh.
42810 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
42811 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42812 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42813 instead of $(srcdir)/genkernsyms.sh.
42815 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
42816 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42817 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42818 instead of $(srcdir)/genkernsyms.sh.
42820 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
42823 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
42825 (gensymlist.sh): New target.
42826 (genkernsyms.sh): Likewise.
42828 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
42829 genkernsyms.sh.in and gensymlist.sh.in.
42831 * genkernsyms.sh: Removed.
42832 * gensymlist.sh: Likewise.
42834 * genkernsyms.sh.in: New file.
42835 * gensymlist.sh.in: Likewise.
42837 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
42839 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
42840 clobber "prefix", since we may have already set it manually.
42842 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
42844 * kern/misc.c (abort): New alias for grub_abort.
42846 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
42848 A new machine-specific function "grub_machine_set_prefix" is
42849 defined. This is called after loading modules, so that a prefix
42850 initialization can use modules. Also, this change adds an
42851 intensive debugging feature for the memory manager via the
42852 configure option "--enable-mm-debug".
42854 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
42857 * kern/sparc64/ieee1275/init.c (abort): Removed.
42858 (grub_stop): Likewise.
42859 (grub_exit): New function.
42860 (grub_set_prefix): Renamed to ...
42861 (grub_machine_set_prefix): ... this.
42862 (grub_machine_init): Do not call grub_set_prefix.
42864 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
42865 (grub_machine_set_prefix): ... this.
42866 (grub_machine_init): Do not call grub_set_prefix.
42868 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
42869 (grub_machine_init): Do not set the prefix here.
42871 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
42873 * kern/efi/init.c: Include grub/mm.h.
42874 (grub_efi_set_prefix): New function.
42876 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
42877 (grub_efi_get_filename): New function.
42878 (grub_print_device_path): Renamed to ...
42879 (grub_efi_print_device_path): ... this.
42881 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
42882 [MM_DEBUG] (grub_realloc): Likewise.
42883 [MM_DEBUG] (grub_free): Likewise.
42884 [MM_DEBUG] (grub_memalign): Likewise.
42885 [MM_DEBUG] (grub_mm_debug): New variable.
42886 [MM_DEBUG] (grub_debug_malloc): New function.
42887 [MM_DEBUG] (grub_debug_free): New function.
42888 [MM_DEBUG] (grub_debug_realloc): New function.
42889 [MM_DEBUG] (grub_debug_memalign): New function.
42891 * kern/misc.c (grub_abort): Print a newline to distinguish
42894 * kern/main.c (grub_main): Call grub_machine_set_prefix and
42895 grub_set_root_dev after loading modules. This is necessary when
42896 setting a prefix depends on modules.
42898 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
42899 (grub_efi_print_device_path): ... this.
42900 (grub_efi_get_filename): New prototype.
42901 (grub_efi_set_prefix): Likewise.
42903 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
42905 (grub_efidisk_get_device_handle): New prototype.
42906 (grub_efidisk_get_device_name): Likewise.
42908 * include/grub/mm.h: Include config.h.
42909 (MM_DEBUG): Removed.
42910 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
42911 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
42912 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
42913 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
42914 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
42915 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
42916 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
42917 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
42918 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
42920 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
42922 * disk/efi/efidisk.c: Include grub/partition.h.
42923 (iterate_child_devices): New function.
42924 (add_device): First, compare only last device path nodes, so that
42925 devices are sorted by the types.
42926 (grub_efidisk_get_device_handle): New function.
42927 (grub_efidisk_get_device_name): Likewise.
42929 * configure.ac (--enable-mm-debug): New option to enable the
42930 memory manager debugging feature. This makes the binary much
42931 bigger, so is disabled by default.
42933 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
42935 Use grub_abort instead of grub_stop, and grub_exit must be
42936 define in each architecture now. Also, this change adds support
42939 * util/i386/pc/grub-probefs.c: Include grub/term.h.
42940 (grub_getkey): New function.
42941 (grub_term_get_current): Likewise.
42943 * util/i386/pc/grub-setup.c: Include grub/term.h.
42944 (grub_getkey): New function.
42945 (grub_term_get_current): Likewise.
42947 * util/misc.c (grub_stop): Renamed to ...
42948 (grub_exit): ... this.
42950 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
42951 (grub_exit): ... this.
42952 (grub_machine_init): Use grub_abort instead of abort.
42953 (grub_stop): Removed.
42955 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
42958 * kern/i386/pc/startup.S (grub_exit): New function.
42959 (cold_reboot): New label.
42961 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
42962 (grub_efi_init): Call grub_efidisk_init.
42963 (grub_efi_fini): Call grub_efidisk_fini.
42965 * kern/efi/efi.c: Include grub/mm.h.
42966 (grub_efi_console_control_guid): Renamed to ...
42967 (console_control_guid): ... this.
42968 (grub_efi_loaded_image_guid): Renamed to ...
42969 (loaded_image_guid): ... this.
42970 (grub_efi_locate_handle): New function.
42971 (grub_efi_open_protocol): Likewise.
42972 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
42973 GRUB_EFI_CONSOLE_CONTROL_GUID.
42974 (grub_efi_exit): Removed.
42975 (grub_stop): Likewise.
42976 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
42977 (grub_exit): New function.
42978 (grub_print_device_path): Likewise.
42980 * kern/rescue.c (grub_rescue_cmd_exit): New function.
42981 (grub_enter_rescue_mode): Register "exit".
42983 * kern/misc.c (grub_real_dprintf): A cosmetic change.
42984 (grub_abort): New function.
42986 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
42988 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
42990 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
42992 * include/grub/efi/efi.h (grub_efi_exit): Removed.
42993 (grub_print_device_path): New prototype.
42994 (grub_efi_locate_handle): Likewise.
42995 (grub_efi_open_protocol): Likewise.
42997 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
42998 * disk/efi/efidisk.c: Likewise.
43000 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
43002 * include/grub/efi/console_control.h
43003 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
43005 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
43006 last 8 bytes as an array.
43007 (GRUB_EFI_DISK_IO_GUID): New macro.
43008 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
43009 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
43010 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
43012 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
43013 (struct grub_efi_device_path): Rename the member "sub_type" to
43015 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
43016 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
43017 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
43018 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
43019 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
43020 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
43021 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
43022 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
43023 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
43024 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
43025 (struct grub_efi_pci_device_path): New structure.
43026 (grub_efi_pci_device_path_t): New type.
43027 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
43028 (struct grub_efi_pccard_device_path): New structure.
43029 (grub_efi_pccard_device_path_t): New type.
43030 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
43031 (struct grub_efi_memory_mapped_device_path): New structure.
43032 (grub_efi_memory_mapped_device_path_t): New type.
43033 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
43034 (struct grub_efi_vendor_device_path): New structure.
43035 (grub_efi_vendor_device_path_t): New type.
43036 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
43037 (struct grub_efi_controller_device_path): New structure.
43038 (grub_efi_controller_device_path_t): New type.
43039 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
43040 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
43041 (struct grub_efi_acpi_device_path): New structure.
43042 (grub_efi_acpi_device_path_t): New type.
43043 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
43044 (struct grub_efi_expanded_acpi_device_path): New structure.
43045 (grub_efi_expanded_acpi_device_path_t): New type.
43046 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
43047 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
43048 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
43049 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
43050 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
43051 (struct grub_efi_atapi_device_path): New structure.
43052 (grub_efi_atapi_device_path_t): New type.
43053 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
43054 (struct grub_efi_fibre_channel_device_path): New structure.
43055 (grub_efi_fibre_channel_device_path_t): New type.
43056 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
43057 (struct grub_efi_1394_device_path): New structure.
43058 (grub_efi_1394_device_path_t): New type.
43059 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
43060 (struct grub_efi_usb_device_path): New structure.
43061 (grub_efi_usb_device_path_t): New type.
43062 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
43063 (struct grub_efi_usb_class_device_path): New structure.
43064 (grub_efi_usb_class_device_path_t): New type.
43065 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
43066 (struct grub_efi_i2o_device_path): New structure.
43067 (grub_efi_i2o_device_path_t): New type.
43068 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
43069 (struct grub_efi_mac_address_device_path): New structure.
43070 (grub_efi_mac_address_device_path_t): New type.
43071 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
43072 (struct grub_efi_ipv4_device_path): New structure.
43073 (grub_efi_ipv4_device_path_t): New type.
43074 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
43075 (struct grub_efi_ipv6_device_path): New structure.
43076 (grub_efi_ipv6_device_path_t): New type.
43077 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
43078 (struct grub_efi_infiniband_device_path): New structure.
43079 (grub_efi_infiniband_device_path_t): New type.
43080 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
43081 (struct grub_efi_uart_device_path): New structure.
43082 (grub_efi_uart_device_path_t): New type.
43083 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
43084 (struct grub_efi_vendor_messaging_device_path): New structure.
43085 (grub_efi_vendor_messaging_device_path_t): New type.
43086 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
43087 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
43088 (struct grub_efi_hard_drive_device_path): New structure.
43089 (grub_efi_hard_drive_device_path_t): New type.
43090 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
43091 (struct grub_efi_cdrom_device_path): New structure.
43092 (grub_efi_cdrom_device_path_t): New type.
43093 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
43094 (struct grub_efi_vendor_media_device_path): New structure.
43095 (grub_efi_vendor_media_device_path_t): New type.
43096 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
43097 (struct grub_efi_file_path_device_path): New structure.
43098 (grub_efi_file_path_device_path_t): New type.
43099 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
43100 (struct grub_efi_protocol_device_path): New structure.
43101 (grub_efi_protocol_device_path_t): New type.
43102 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
43103 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
43104 (struct grub_efi_bios_device_path): New structure.
43105 (grub_efi_bios_device_path_t): New type.
43106 (struct grub_efi_disk_io): New structure.
43107 (grub_efi_disk_io_t): New type.
43108 (struct grub_efi_block_io_media): New structure.
43109 (grub_efi_block_io_media_t): New type.
43110 (struct grub_efi_block_io): New structure.
43111 (grub_efi_block_io_t): New type.
43113 * include/grub/misc.h (grub_stop): Removed.
43114 (grub_exit): New prototype.
43115 (grub_abort): Likewise.
43117 * include/grub/disk.h (enum grub_disk_dev_id): Added
43118 GRUB_DISK_DEVICE_EFIDISK_ID.
43120 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
43121 disk/efi/efidisk.c.
43122 (kernel_syms.lst): Remove the target if an error occurs.
43124 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
43126 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
43127 as it was simply too buggy.
43129 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
43131 * kern/misc.c (grub_lltoa): New function.
43132 (grub_vsprintf): Added support for the long long suffix,
43135 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
43137 * Makefile.in (LDFLAGS): Add variable.
43138 (LD): Remove variable.
43139 * configure.ac: Add -m32 to LDFLAGS.
43140 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
43141 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
43142 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
43143 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
43144 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
43146 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
43147 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
43148 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
43150 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
43152 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
43153 length for unknown glyph.
43155 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
43157 Add support for pre-loaded modules into the EFI port.
43159 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
43160 completely. Accept one more argument DIR. The caller has changed.
43162 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
43164 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
43165 (grub_efi_loaded_image_guid): New variable.
43166 (grub_efi_get_loaded_image): New function.
43167 (grub_arch_modules_addr): Likewise.
43169 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
43172 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
43173 (struct grub_efi_loaded_image): New structure.
43174 (grub_efi_loaded_image_t): New type.
43176 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
43178 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
43179 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
43180 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
43182 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
43184 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
43186 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
43188 * DISTLIST: Added include/grub/efi/console.h,
43189 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
43190 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
43192 * include/grub/efi/console.h: New file.
43193 * include/grub/efi/time.h: Likewise.
43194 * include/grub/i386/efi/kernel.h: Likewise.
43195 * kern/efi/init.c: Likewise.
43196 * kern/efi/mm.c: Likewise.
43197 * term/efi/console.c: Likewise.
43199 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
43200 (grub_stop): Removed.
43201 (grub_get_rtc): Likewise.
43202 (grub_machine_init): Simply call grub_efi_init.
43203 (grub_machine_fini): Call grub_efi_fini.
43205 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
43206 (grub_efi_output_string): Removed.
43207 (grub_efi_stall): New function.
43208 (grub_stop): Likewise.
43209 (grub_get_rtc): Likewise.
43211 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
43212 (grub_efi_stall): New prototype.
43213 (grub_efi_allocate_pages): Likewise.
43214 (grub_efi_free_pages): Likewise.
43215 (grub_efi_get_memory_map): Likewise.
43216 (grub_efi_mm_init): Likewise.
43217 (grub_efi_mm_fini): Likewise.
43218 (grub_efi_init): Likewise.
43219 (grub_efi_fini): Likewise.
43221 * include/grub/i386/efi/time.h: Do not include
43222 grub/symbol.h. Include grub/efi/time.h.
43223 (GRUB_TICKS_PER_SECOND): Removed.
43224 (grub_get_rtc): Likewise.
43226 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
43227 Added padding. The EFI spec is buggy.
43228 (GRUB_EFI_BLACK): New macro.
43229 (GRUB_EFI_BLUE): Likewise.
43230 (GRUB_EFI_GREEN): Likewise.
43231 (GRUB_EFI_CYAN): Likewise.
43232 (GRUB_EFI_RED): Likewise.
43233 (GRUB_EFI_MAGENTA): Likewise.
43234 (GRUB_EFI_BROWN): Likewise.
43235 (GRUB_EFI_LIGHTGRAY): Likewise.
43236 (GRUB_EFI_BRIGHT): Likewise.
43237 (GRUB_EFI_DARKGRAY): Likewise.
43238 (GRUB_EFI_LIGHTBLUE): Likewise.
43239 (GRUB_EFI_LIGHTGREEN): Likewise.
43240 (GRUB_EFI_LIGHTCYAN): Likewise.
43241 (GRUB_EFI_LIGHTRED): Likewise.
43242 (GRUB_EFI_LIGHTMAGENTA): Likewise.
43243 (GRUB_EFI_YELLOW): Likewise.
43244 (GRUB_EFI_WHITE): Likewise.
43245 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
43246 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
43247 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
43248 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
43249 (GRUB_EFI_BACKGROUND_RED): Likewise.
43250 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
43251 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
43252 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
43253 (GRUB_EFI_TEXT_ATTR): Likewise.
43255 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
43256 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
43257 (kernel_mod_HEADERS): Added efi/time.h.
43259 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
43261 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
43262 include/grub/efi/api.h, include/grub/efi/console_control.h,
43263 include/grub/efi/efi.h, include/grub/efi/pe32.h,
43264 include/grub/i386/efi/time.h, kern/efi/efi.c,
43265 kern/i386/efi/init.c, kern/i386/efi/startup.S,
43266 and util/i386/efi/grub-mkimage.c.
43268 * Makefile.in (RMKFILES): Added i386-efi.rmk.
43270 * genmk.rb (PModule#rule): Do not export symbols if
43271 #{prefix}_EXPORTS is set to "no".
43273 * conf/i386-efi.mk: New file.
43274 * conf/i386-efi.rmk: Likewise.
43275 * include/grub/efi/api.h: Likewise.
43276 * include/grub/efi/console_control.h: Likewise.
43277 * include/grub/efi/efi.h: Likewise.
43278 * include/grub/efi/pe32.h: Likewise.
43279 * include/grub/i386/efi/time.h: Likewise.
43280 * kern/efi/efi.c: Likewise.
43281 * kern/i386/efi/init.c: Likewise.
43282 * kern/i386/efi/startup.S: Likewise.
43283 * util/i386/efi/grub-mkimage.c: Likewise.
43285 2006-04-17 Marco Gerards <marco@gnu.org>
43287 * include/grub/script.h: Include <grub/parser.h> and
43288 "grub_script.tab.h".
43289 (struct grub_lexer_param): New struct.
43290 (struct grub_parser_param): Likewise.
43291 (grub_script_create_arglist): Pass the state in an argument.
43292 (grub_script_add_arglist): Likewise.
43293 (grub_script_create_cmdline): Likewise.
43294 (grub_script_create_cmdblock): Likewise.
43295 (grub_script_create_cmdif): Likewise.
43296 (grub_script_create_cmdmenu): Likewise.
43297 (grub_script_add_cmd): Likewise.
43298 (grub_script_arg_add): Likewise.
43299 (grub_script_lexer_ref): Likewise.
43300 (grub_script_lexer_deref): Likewise.
43301 (grub_script_lexer_record_start): Likewise.
43302 (grub_script_lexer_record_stop): Likewise.
43303 (grub_script_mem_record): Likewise.
43304 (grub_script_mem_record_stop): Likewise.
43305 (grub_script_malloc): Likewise.
43306 (grub_script_yylex): Likewise.
43307 (grub_script_yyparse): Likewise.
43308 (grub_script_yyerror): Likewise.
43309 (grub_script_yylex): Likewise.
43310 (grub_script_lexer_init): Return the state.
43312 * normal/lexer.c (grub_script_lexer_state): Removed variable.
43313 (grub_script_lexer_done): Likewise.
43314 (grub_script_lexer_getline): Likewise.
43315 (grub_script_lexer_refs): Likewise.
43316 (script): Likewise.
43317 (newscript): Likewise.
43318 (record): Likewise.
43319 (recording): Likewise.
43320 (recordpos): Likewise.
43321 (recordlen): Likewise.
43322 (grub_script_lexer_init): Return the state instead of setting
43324 (grub_script_lexer_ref): Use the newly added argument for state
43325 instead of globals.
43326 (grub_script_lexer_deref): Likewise.
43327 (grub_script_lexer_record_start): Likewise.
43328 (grub_script_lexer_record_stop): Likewise.
43329 (recordchar): Likewise.
43330 (nextchar): Likewise.
43331 (grub_script_yylex2): Likewise.
43332 (grub_script_yylex): Likewise.
43333 (grub_script_yyerror): Likewise.
43335 * normal/parser.y (func_mem): Removed variable.
43336 (menu_entry): Likewise.
43338 (%lex-param): New parser option.
43339 (%parse-param): Likewise.
43340 (script): Always return the AST.
43341 (argument): Pass the state around.
43342 (arguments): Likewise.
43343 (grubcmd): Likewise.
43344 (commands): Likewise.
43345 (function): Likewise.
43346 (menuentry): Likewise.
43347 (if_statement): Likewise.
43350 * normal/script.c (grub_script_memused): Removed variable.
43351 (grub_script_parsed): Likewise.
43352 (grub_script_malloc): Added a state argument. Use that instead of
43354 (grub_script_mem_record): Likewise.
43355 (grub_script_mem_record_stop): Likewise.
43356 (grub_script_arg_add): Likewise.
43357 (grub_script_add_arglist): Likewise.
43358 (grub_script_create_cmdline): Likewise.
43359 (grub_script_create_cmdif): Likewise.
43360 (grub_script_create_cmdmenu): Likewise.
43361 (grub_script_add_cmd): Likewise.
43362 (grub_script_parse): Setup the state before calling the parser.
43364 2006-04-16 Marco Gerards <marco@gnu.org>
43366 * normal/command.c (grub_command_init): Remove the title command.
43368 * normal/lexer.c (grub_script_yylex): Renamed from this...
43369 (grub_script_yylex2): ... to this.
43370 (grub_script_yylex): New function. Temporary
43371 introduced to filter some tokens.
43372 (grub_script_yyerror): Print a newline.
43374 * normal/main.c (read_config_file): Output information about the
43375 lines that contain errors. Wait for a key after all lines have
43376 been processed. Don't return an empty menu.
43378 * normal/parser.y (func_mem): Don't initialize.
43379 (menu_entry): Likewise.
43380 (err): New variable.
43381 (script): Don't return anything when an error was encountered.
43382 (ws, returns): Removed rules.
43383 (argument): Disabled concatenated variable support.
43384 (arguments): Remove explicit separators.
43385 (grubcmd): Likewise.
43386 (function): Likewise.
43387 (menuentry): Likewise.
43389 (commands): Likewise. Add error handling.
43391 * normal/script.c (grub_script_create_cmdline): If
43392 `grub_script_parsed' is 0, assume the parser encountered an error.
43394 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
43396 * configure.ac: Add support for EFI. Fix the typo
43397 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
43399 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
43401 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
43402 foreign multibyte characters should be shown correctly.
43404 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
43406 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
43408 (read_config_file): Made it to close file before returning.
43410 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
43412 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
43413 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
43414 video/i386/pc/vbefill.c.
43416 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
43417 video/i386/pc/vbefill.c.
43419 * include/grub/video.h (grub_video_blit_format): New enum.
43420 (grub_video_mode_info): Added new member blit_format.
43421 (grub_video_get_blit_format): New function prototype.
43423 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
43424 function prototype.
43425 (grub_video_vbe_map_rgb): Likewise.
43426 (grub_video_vbe_unmap_color): Likewise.
43428 * include/grub/i386/pc/vbeblit.h: New file.
43430 * include/grub/i386/pc/vbefill.h: New file.
43432 * video/video.c (grub_video_get_blit_format): New function.
43433 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
43434 (grub_video_vbe_map_rgb): Likewise.
43435 (grub_video_vbe_unmap_color): Likewise.
43437 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
43439 (grub_video_vbe_blit_render_target): Changed to use more optimized
43441 (grub_video_vbe_setup): Added detection for optimized settings.
43442 (grub_video_vbe_create_render_target): Likewise.
43444 * video/i386/pc/vbeblit.c: New file.
43446 * video/i386/pc/vbefill.c: New file.
43448 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
43450 * font/manager.c (grub_font_get_glyph): Removed font fixup from
43453 * util/unifont2pff.rb: ... and moved it to here. Improved argument
43454 parsing to support both hex and dec ranges. If filename was missing
43455 show usage information.
43457 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
43459 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
43460 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
43462 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
43463 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
43464 (video_mod_SOURCES): Added.
43465 (video_mod_CFLAGS): Likewise.
43466 (video_mod_LDFLAGS): Likewise.
43467 (gfxterm_mod_SOURCES): Likewise.
43468 (gfxterm_mod_CFLAGS): Likewise.
43469 (gfxterm_mod_LDFLAGS): Likewise.
43470 (videotest_mod_SOURCES): Likewise.
43471 (videotest_mod_CFLAGS): Likewise.
43472 (videotest_mod_LDFLAGS): Likewise.
43473 (vesafb_mod_SOURCES): Removed.
43474 (vesafb_mod_CFLAGS): Likewise.
43475 (vesafb_mod_LDFLAGS): Likewise.
43476 (vga_mod_SOURCES): Likewise.
43477 (vga_mod_CFLAGS): Likewise.
43478 (vga_mod_LDFLAGS): Likewise.
43480 * commands/videotest.c: New file.
43482 * font/manager.c (fill_with_default_glyph): Modified to use
43484 (grub_font_get_glyph): Likewise.
43485 (fontmanager): Renamed from this...
43486 (font_manager): ... to this.
43488 * include/grub/font.h (grub_font_glyph): Added new structure.
43489 (grub_font_get_glyph): Modified to use grub_font_glyph.
43491 * include/grub/misc.h (grub_abs): Added as inline function.
43493 * include/grub/video.h: New file.
43495 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
43496 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
43497 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
43498 (grub_vbe_get_controller_info): Renamed from this...
43499 (grub_vbe_bios_get_controller_info): ... to this.
43500 (grub_vbe_get_mode_info): Renamed from this...
43501 (grub_vbe_bios_get_mode_info): ... to this.
43502 (grub_vbe_set_mode): Renamed from this...
43503 (grub_vbe_bios_set_mode): ... to this.
43504 (grub_vbe_get_mode): Renamed from this...
43505 (grub_vbe_bios_get_mode): ... to this.
43506 (grub_vbe_set_memory_window): Renamed from this...
43507 (grub_vbe_bios_set_memory_window): ... to this.
43508 (grub_vbe_get_memory_window): Renamed from this...
43509 (grub_vbe_bios_get_memory_window): ... to this.
43510 (grub_vbe_set_scanline_length): Renamed from this...
43511 (grub_vbe_set_scanline_length): ... to this.
43512 (grub_vbe_get_scanline_length): Renamed from this...
43513 (grub_vbe_bios_get_scanline_length): ... to this.
43514 (grub_vbe_set_display_start): Renamed from this...
43515 (grub_vbe_bios_set_display_start): ... to this.
43516 (grub_vbe_get_display_start): Renamed from this...
43517 (grub_vbe_bios_get_display_start): ... to this.
43518 (grub_vbe_set_palette_data): Renamed from this...
43519 (grub_vbe_bios_set_palette_data): ... to this.
43520 (grub_vbe_set_pixel_rgb): Removed.
43521 (grub_vbe_set_pixel_index): Likewise.
43523 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
43525 (grub_vbe_bios_get_controller_info): ... to this.
43526 (grub_vbe_get_mode_info): Renamed from this...
43527 (grub_vbe_bios_get_mode_info): ... to this.
43528 (grub_vbe_set_mode): Renamed from this...
43529 (grub_vbe_bios_set_mode): ... to this.
43530 (grub_vbe_get_mode): Renamed from this...
43531 (grub_vbe_bios_get_mode): ... to this.
43532 (grub_vbe_set_memory_window): Renamed from this...
43533 (grub_vbe_bios_set_memory_window): ... to this.
43534 (grub_vbe_get_memory_window): Renamed from this...
43535 (grub_vbe_bios_get_memory_window): ... to this.
43536 (grub_vbe_set_scanline_length): Renamed from this...
43537 (grub_vbe_set_scanline_length): ... to this.
43538 (grub_vbe_get_scanline_length): Renamed from this...
43539 (grub_vbe_bios_get_scanline_length): ... to this.
43540 (grub_vbe_set_display_start): Renamed from this...
43541 (grub_vbe_bios_set_display_start): ... to this.
43542 (grub_vbe_get_display_start): Renamed from this...
43543 (grub_vbe_bios_get_display_start): ... to this.
43544 (grub_vbe_set_palette_data): Renamed from this...
43545 (grub_vbe_bios_set_palette_data): ... to this.
43546 (grub_vbe_bios_get_controller_info): Fixed problem with registers
43547 getting corrupted after calling it. Added more pushes and pops.
43548 (grub_vbe_bios_set_mode): Likewise.
43549 (grub_vbe_bios_get_mode): Likewise.
43550 (grub_vbe_bios_get_memory_window): Likewise.
43551 (grub_vbe_bios_set_scanline_length): Likewise.
43552 (grub_vbe_bios_get_scanline_length): Likewise.
43553 (grub_vbe_bios_get_display_start): Likewise.
43554 (grub_vbe_bios_set_palette_data): Likewise.
43556 * normal/cmdline.c (cl_set_pos): Refresh the screen.
43557 (cl_insert): Likewise.
43558 (cl_delete): Likewise.
43560 * term/gfxterm.c: New file.
43562 * term/i386/pc/vesafb.c: Removed file.
43564 * video/video.c: New file.
43566 * video/i386/pc/vbe.c (real2pm): Added new function.
43567 (grub_video_vbe_draw_pixel): Likewise.
43568 (grub_video_vbe_get_video_ptr): Likewise.
43569 (grub_video_vbe_get_pixel): Likewise
43570 (grub_video_vbe_init): Likewise.
43571 (grub_video_vbe_fini): Likewise.
43572 (grub_video_vbe_setup): Likewise.
43573 (grub_video_vbe_get_info): Likewise.
43574 (grub_video_vbe_set_palette): Likewise.
43575 (grub_video_vbe_get_palette): Likewise.
43576 (grub_video_vbe_set_viewport): Likewise.
43577 (grub_video_vbe_get_viewport): Likewise.
43578 (grub_video_vbe_map_color): Likewise.
43579 (grub_video_vbe_map_rgb): Likewise.
43580 (grub_video_vbe_map_rgba): Likewise.
43581 (grub_video_vbe_unmap_color): Likewise.
43582 (grub_video_vbe_fill_rect): Likewise.
43583 (grub_video_vbe_blit_glyph): Likewise.
43584 (grub_video_vbe_blit_bitmap): Likewise.
43585 (grub_video_vbe_blit_render_target): Likewise.
43586 (grub_video_vbe_scroll): Likewise.
43587 (grub_video_vbe_swap_buffers): Likewise.
43588 (grub_video_vbe_create_render_target): Likewise.
43589 (grub_video_vbe_delete_render_target): Likewise.
43590 (grub_video_vbe_set_active_render_target): Likewise.
43591 (grub_vbe_set_pixel_rgb): Remove function.
43592 (grub_vbe_set_pixel_index): Likewise.
43593 (index_color_mode): Remove static variable.
43594 (active_mode): Likewise.
43595 (framebuffer): Likewise.
43596 (bytes_per_scan_line): Likewise.
43597 (grub_video_vbe_adapter): Added new static variable.
43598 (framebuffer): Likewise.
43599 (render_target): Likewise.
43600 (initial_mode): Likewise.
43601 (mode_in_use): Likewise.
43602 (mode_list): Likewise.
43604 2006-03-10 Marco Gerards <marco@gnu.org>
43606 * configure.ac (AC_INIT): Bumped to 1.93.
43608 * DISTLIST: Added `include/grub/hfs.h'.
43610 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
43612 * boot/i386/pc/boot.S (general_error): Before looping, try INT
43613 18H, which might help the BIOS falling back to next boot media.
43615 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
43617 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
43618 Poe Chen <poe.poechen@gmail.com>.
43620 2006-01-17 Marco Gerards <marco@gnu.org>
43622 * include/grub/normal.h: Include <grub/script.h>.
43623 (grub_command_list): Removed struct.
43624 (grub_command_list_t): Removed type.
43625 (grub_menu_entry): Remove members `num' and `command_list'. Add
43626 members `commands' and `sourcecode'.
43627 * include/grub/script.h: Add inclusion guards.
43628 (grub_script_cmd_menuentry): New struct.
43629 (grub_script_execute_menuentry): New prototype.
43630 (grub_script_lexer_record_start): Likewise.
43631 (grub_script_lexer_record_stop): Likewise.
43632 * normal/execute.c (grub_script_execute_menuentry): New function.
43633 * normal/lexer.c (record, recording, recordpos, recordlen): New
43635 (grub_script_lexer_record_start): New function.
43636 (grub_script_lexer_record_stop): Likewise.
43637 (recordchar): Likewise.
43638 (nextchar): Likewise.
43639 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
43640 2048 as the buffer size. Add the tokens `menuentry' and `@'.
43641 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
43642 (current_menu): New variable.
43643 (free_menu): Mainly rewritten.
43644 (grub_normal_menu_addentry): New function.
43645 (read_config_file): Rewritten.
43646 * normal/menu.c (run_menu_entry): Mainly rewritten.
43647 * normal/menu_entry.c (make_screen): Rewritten the code to insert
43649 (run): Mainly rewritten.
43650 * normal/parser.y (menu_entry): New variable.
43651 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
43652 (menuentry): New rule.
43653 (command): Add `menuentry'.
43654 (if_statement): Allow additional returns before `fi'.
43655 * normal/script.c (grub_script_create_cmdmenu): New function.
43657 2006-01-03 Marco Gerards <marco@gnu.org>
43659 * INSTALL: GNU Bison is required.
43660 * configure.ac: Rewritten the test to detect Bison.
43661 * Makefile.in (YACC): New variable. Reported by Xun Sun
43662 <xun.sun.cn@gmail.com>.
43664 2006-01-03 Marco Gerards <marco@gnu.org>
43666 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
43667 the HFS+ filesystem to filesystem blocks.
43668 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
43669 GCC warning is silenced.
43671 2006-01-03 Marco Gerards <marco@gnu.org>
43673 * partmap/apple.c (apple_partition_map_iterate): Convert the data
43674 read from disk from big endian to host byte order.
43676 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
43678 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
43680 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
43681 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
43682 embedded HFS+ filesystem.
43683 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
43684 (grub_hfs_sblock): Move from here...
43685 * include/grub/hfs.h: To here... New file.
43686 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
43688 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
43690 (grub_hfsplus_volheader): Change type of member `magic' to
43692 (grub_hfsplus_data): Add new member `embedded_offset'.
43693 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
43695 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
43696 Calculate the offset.
43698 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43700 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
43702 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
43704 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43706 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
43707 ENV->NAME is NULL after allocating ENV->VALUE.
43709 2005-12-25 Marco Gerards <marco@gnu.org>
43711 * kern/env.c (grub_env_set): Rewritten the error handling code.
43713 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43715 * geninit.sh: Made more robust, and more portable.
43717 2005-12-25 Marco Gerards <marco@gnu.org>
43719 Add support for Apple HFS+ filesystems.
43721 * fs/hfsplus.c: New file.
43723 * DISTLIST: Added `fs/hfsplus.c'.
43725 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
43726 (hfsplus_mod_SOURCES): New variable.
43727 (hfsplus_mod_CFLAGS): Likewise.
43728 (hfsplus_mod_LDFLAGS): Likewise.
43729 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
43730 (grub_setup_SOURCES): Likewise.
43731 (grub_mkdevicemap_SOURCES): Likewise.
43732 (grub_emu_SOURCES): Likewise.
43733 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43735 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
43737 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
43739 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43741 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
43742 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
43743 include/grub/parser.h, include/grub/script.h, kern/parser.c,
43744 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
43745 normal/lexer.c, normal/parser.y, normal/script.c, and
43747 Removed kern/sparc64/cache.c.
43749 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
43750 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
43753 * configure.ac (AC_INIT): Bumped to 1.92.
43755 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
43757 * kern/err.c (grub_error_push): Added new function to support error
43759 (grub_error_pop): Likewise.
43760 (grub_error_stack_items): New local variable to support error stacks.
43761 (grub_error_stack_pos): Likewise.
43762 (grub_error_stack_assert): Likewise.
43763 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
43765 (grub_print_error): Added support to print errors from error stack.
43767 * include/grub/err.h (grub_error_push): Added function prototype.
43768 (grub_error_pop): Likewise.
43770 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
43772 * configure.ac: Accept `powerpc64' as host_cpu.
43773 (amd64): Rename to `biarch32'.
43775 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
43776 non-cacheline-aligned addresses.
43778 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
43779 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
43780 if `size' is non-zero.
43782 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
43784 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
43785 and `cd' to make sure the filename is not prefixed with a
43787 (pkgdata_MODULES): Add `gpt.mod'.
43788 (gpt_mod_SOURCES): New variable.
43789 (gpt_mod_CFLAGS): Likewise.
43790 (gpt_mod_LDFLAGS): Likewise.
43792 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
43794 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
43797 * partmap/gpt.c: New file.
43799 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
43800 GPT partition map is detected.
43802 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
43804 * commands/i386/pc/play.c: New file.
43805 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
43806 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
43809 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
43811 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
43812 ((unused))' to silence gcc warning.
43814 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
43816 * configure.ac: Correct `AC_PROG_YACC' test.
43818 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43820 * util/powerpc/ieee1275/grub-install.in: Run the mount point
43821 check before installing files.
43823 2005-11-22 Mike Small <smallm@panix.com>
43825 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
43826 number regex so multidigit numbers are recognized correctly.
43828 2005-11-22 Mike Small <smallm@panix.com>
43830 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
43831 debugging message before attempting to claim memory.
43832 (grub_rescue_cmd_initrd): Add a claim debugging message and try
43833 multiple addresses in case of failure.
43835 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43837 * term/tparm.c (get_space): Remove empty `if' statement.
43839 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
43841 * kern/parser.c (check_varstate): Rename `state' to 's'.
43843 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43845 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
43846 variable definitions to the beginning of each function. Sort stack
43848 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
43849 `buf' argument to `char *'.
43851 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43853 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
43854 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
43855 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
43856 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
43857 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
43858 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
43859 configfile.mod, search.mod, gzio.mod and test.mod.
43860 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
43861 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
43862 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
43863 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
43864 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
43865 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
43866 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
43867 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
43868 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
43869 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
43870 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
43871 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
43872 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
43873 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
43874 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
43875 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
43876 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
43877 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
43878 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
43879 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
43880 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
43881 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
43882 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
43884 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
43886 (pkgdata_MODULES): Add test.mod.
43888 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43890 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
43891 appending to variables with "+=".
43892 (PModule): Use full pathname to generate *.lst filenames.
43894 * Makefile.in: Fixed list rules moved from genmk.rb.
43895 (.DELETE_ON_ERROR): New special target.
43896 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
43898 * conf/i386-pc.rmk: Include conf/common.mk.
43899 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
43900 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
43901 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
43902 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
43903 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
43904 configfile.mod, search.mod, gzio.mod and test.mod.
43905 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
43906 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
43907 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
43908 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
43909 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
43910 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
43911 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
43912 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
43913 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
43914 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
43915 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
43916 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
43917 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
43918 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
43919 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
43920 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
43921 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
43922 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
43923 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
43924 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
43925 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
43926 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
43927 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
43929 * conf/common.rmk: ... to here. New file.
43931 * conf/common.mk: New file.
43933 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
43935 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
43936 (grub_script.tab.c): ... here.
43938 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
43939 (grub_script.tab.c): ... here.
43941 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
43942 (grub_script.tab.c): ... here.
43944 * normal/command.c (grub_command_find): Fixed a memory leak of
43945 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
43947 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43949 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
43950 "@" which marks the start of a comment on ARM.
43951 (VARIABLE): Likewise.
43953 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43955 Add support for Linux/ADFS partition tables.
43957 * partmap/acorn.c: New file.
43959 * include/grub/acorn_filecore.h: Likewise.
43961 * DISTLIST: Added `partmap/acorn.c' and
43962 `include/grub/acorn_filecore.h'.
43964 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
43966 (pkgdata_MODULES): Add `acorn.mod'.
43967 (acorn_mod_SOURCES): New variable.
43968 (acorn_mod_CFLAGS): Likewise.
43970 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
43972 (pkgdata_MODULES): Add `acorn.mod'.
43973 (acorn_mod_SOURCES): New variable.
43974 (acorn_mod_CFLAGS): Likewise.
43976 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
43977 (pkgdata_MODULES): Add `acorn.mod'.
43978 (acorn_mod_SOURCES): New variable.
43979 (acorn_mod_CFLAGS): Likewise.
43980 (acorn_mod_LDFLAGS): Likewise.
43982 * include/types.h (grub_disk_addr_t): New typedef.
43984 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
43986 * geninit.sh: New file.
43988 * geninitheader.sh: Likewise.
43990 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
43991 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
43992 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
43993 * commands/configfile.c (grub_configfile_init)
43994 (grub_configfile_fini): Likewise.
43995 * commands/default.c (grub_default_init, grub_default_fini):
43997 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
43998 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
43999 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
44000 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
44002 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
44003 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
44005 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
44006 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
44008 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
44010 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
44012 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
44013 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
44014 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
44015 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
44016 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
44017 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
44018 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
44019 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
44020 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
44021 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
44022 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
44023 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
44024 * partmap/amiga.c (grub_amiga_partition_map_init)
44025 (grub_amiga_partition_map_fini): Likewise.
44026 * partmap/apple.c (grub_apple_partition_map_init)
44027 (grub_apple_partition_map_fini): Likewise.
44028 * partmap/pc.c (grub_pc_partition_map_init)
44029 (grub_pc_partition_map_fini): Likewise.
44030 * partmap/sun.c (grub_sun_partition_map_init,
44031 grub_sun_partition_map_fini): Likewise.
44032 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
44035 * util/grub-emu.c: Include <grub_modules_init.h>.
44036 (main): Don't initialize and de-initialize any modules directly,
44037 use `grub_init_all' and `grub_fini_all' instead.
44039 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
44040 `grub_vesafb_mod_init'.
44041 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
44043 * term/i386/pc/vga.c (grub_vga_init): Renamed to
44044 `grub_vga_mod_init'. Updated all users.
44045 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
44047 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
44048 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
44051 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
44052 Generate a function to initialize the module in utilities.
44053 Updated all callers.
44054 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
44055 initialize the module in utilities. Updated all callers.
44057 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
44059 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
44060 escape sequence and a literal ^L to clear the screen.
44062 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
44063 when returning from Open Firmware.
44065 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
44067 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
44068 (grub_ofconsole_height): Likewise.
44069 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
44070 manually insert a '\n'.
44071 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
44072 `grub_ofconsole_height'. Return early if these are already set.
44074 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
44076 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
44077 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
44078 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
44079 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
44080 and `normal/script.c'.
44081 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44082 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44083 (test_mod_SOURCES): New variable.
44084 (test_mod_CFLAGS): Likewise.
44085 (test_mod_LDFLAGS): Likewise.
44086 (pkgdata_MODULES): Add `test.mod'.
44087 (grub_script.tab.c): New rule.
44088 (grub_script.tab.h): Likewise.
44090 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
44092 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
44093 `commands/test.c', `normal/execute.c', `normal/lexer.c',
44094 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44095 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44096 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44097 (test_mod_SOURCES): New variable.
44098 (test_mod_CFLAGS): Likewise.
44099 (pkgdata_MODULES): Add `test.mod'.
44100 (grub_script.tab.c): New rule.
44101 (grub_script.tab.h): Likewise.
44103 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
44105 Add initial scripting support.
44107 * commands/test.c: New file.
44108 * include/grub/script.h: Likewise.
44109 * normal/execute.c: Likewise.
44110 * normal/function.c: Likewise.
44111 * normal/lexer.c: Likewise.
44112 * normal/parser.y: Likewise.
44113 * normal/script.c: Likewise.
44115 * configure.ac: Add `AC_PROG_YACC' test.
44117 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
44118 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
44119 `normal/function.c' and `normal/script.c'.
44120 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44121 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44122 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
44124 (pkgdata_MODULES): Add `test.mod'.
44125 (grub_script.tab.c): New rule.
44126 (grub_script.tab.h): Likewise.
44128 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
44130 * include/grub/normal.h (grub_test_init): New prototype.
44131 (grub_test_fini): Likewise.
44133 * normal/command.c: Include <grub/script.h>.
44134 (grub_command_execute): Rewritten.
44136 * util/grub-emu.c (main): Call `grub_test_init' and
44139 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44141 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
44143 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
44144 there are no pending characters.
44146 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44148 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
44149 `grub_strndup' to drop device arguments. Replace unnecessary
44150 `grub_strndup' with `grub_strdup'.
44152 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44154 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
44155 `debug' environment variable has been set.
44157 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
44159 * Makefile.in (install-local): Use $(DATA).
44160 (uninstall): Likewise.
44161 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
44162 (sbin_UTILITIES): ... to here.
44163 (sbin_SCRIPTS): New variable.
44164 (grub_install_SOURCES): New variable.
44165 * util/powerpc/ieee1275/grub-install.in: New file.
44166 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
44168 (add_segments): Call `grub_util_get_path'.
44170 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
44172 From Timothy Baldwin:
44173 * commands/ls.c (grub_ls_list_files): Close FILE with
44175 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
44177 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
44179 * include/grub/parser.h: New file.
44181 * kern/parser.c: Likewise.
44183 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
44184 (grub_setup_SOURCES): Likewise.
44185 (grub_probefs_SOURCES): Likewise.
44186 (grub_emu_SOURCES): Likewise.
44187 (kernel_img_HEADERS): Add `parser.h'.
44189 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
44190 (grub_emu_SOURCES): Add `kern/parser.c'.
44191 (grubof_SOURCES): Likewise.
44193 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
44194 (grubof_SOURCES): Add `kern/parser.c'.
44196 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
44198 * kern/misc.c (grub_split_cmdline): Removed function.
44200 * kern/rescue.c: Include <grub/parser.h>.
44201 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
44202 of `grub_split_cmdline'.
44204 * normal/command.c: Include <grub/parser.h>.
44205 (grub_command_execute): Use `grub_parser_split_cmdline' instead
44206 of `grub_split_cmdline'.
44208 * normal/completion.c: Include <grub/parser.h>.
44209 (cmdline_state): New variable.
44210 (iterate_dir): End the filename with a quote depending on the
44211 command line state.
44212 (get_state): new function.
44213 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
44214 split the arguments and determine the current argument. When the
44215 argument string is not quoted, escape all spaces.
44217 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44219 * normal/sparc64/setjmp.S: New file.
44221 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44223 * include/grub/sparc64/libgcc.h: New file.
44224 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
44225 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
44226 normal/sparc64/setjmp.c.
44228 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44230 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
44231 * kern/sparc64/cache.S: New file.
44232 * kern/sparc64/cache.c: Removed.
44233 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
44234 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
44236 (COMMON_LDFLAGS): Add -melf64_sparc.
44237 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
44238 (grubof_SOURCES): Use cache.S instead of cache.c.
44239 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
44240 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
44241 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
44243 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
44244 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
44245 (linux_mod_CFLAGS): Commented out.
44246 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
44247 out because module isn't built.
44248 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
44249 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
44250 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
44251 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
44252 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
44253 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
44254 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
44255 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
44256 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
44257 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
44258 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44259 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44260 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
44261 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
44263 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
44265 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
44266 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
44267 longer, because HFS should not be used on PC.
44269 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44271 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
44272 consistently within the loop.
44274 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
44276 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
44277 directory can not be read.
44279 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44281 * configure.ac (AC_INIT): Increase the version number to 1.91.
44283 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
44284 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
44285 term/i386/pc/serial.c.
44287 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44289 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
44290 file size must be permitted.
44292 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
44293 between %ah and %al.
44295 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44297 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
44299 Call the hook with a NUL-terminated filename.
44300 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
44303 * kern/term.c (cursor_state): New variable.
44304 (grub_term_set_current): Reset the cursor state on a new
44306 (grub_setcursor): Rewritten to use CURSOR_STATE.
44307 (grub_getcursor): New function.
44309 * include/grub/term.h (grub_getcursor): New prototype.
44311 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
44312 integers on ARM. Reported by Timothy Baldwin
44313 <T.E.Baldwin99@members.leeds.ac.uk>.
44315 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
44317 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
44319 (grub_sfs_dir): Likewise.
44321 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
44323 Add support for the SFS filesystem.
44325 * fs/sfs.c: New file.
44327 * DISTLIST: Added `fs/sfs.c'.
44329 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
44330 (grub_probefs_SOURCES): Likewise.
44331 (grub_emu_SOURCES): Likewise.
44332 (pkgdata_MODULES): Add `sfs.mod'.
44333 (sfs_mod_SOURCES): New variable.
44334 (sfs_mod_CFLAGS): Likewise.
44335 (sfs_mod_LDFLAGS): Likewise.
44337 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
44338 (pkgdata_MODULES): Add `sfs.mod'.
44339 (sfs_mod_SOURCES): New variable.
44340 (sfs_mod_CFLAGS): Likewise.
44342 * util/grub-emu.c (main): Call `grub_sfs_init' and
44345 * include/grub/fs.h (grub_sfs_init): New prototype.
44346 (grub_sfs_fini): Likewise.
44348 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
44350 Add support for the AFFS filesystem.
44352 * fs/affs.c: New file.
44354 * DISTLIST: Added `fs/affs.c'.
44356 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
44357 (grub_probefs_SOURCES): Likewise.
44358 (grub_emu_SOURCES): Likewise.
44359 (pkgdata_MODULES): Add `affs.mod'.
44360 (affs_mod_SOURCES): New variable.
44361 (affs_mod_CFLAGS): Likewise.
44362 (affs_mod_LDFLAGS): Likewise.
44364 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
44365 (pkgdata_MODULES): Add `affs.mod'.
44366 (affs_mod_SOURCES): New variable.
44367 (affs_mod_CFLAGS): Likewise.
44369 * util/grub-emu.c (main): Call `grub_affs_init' and
44372 * include/grub/fs.h (grub_affs_init): New prototype.
44373 (grub_affs_fini): Likewise.
44375 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
44377 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
44379 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
44381 * configure.ac: Accept `x86_64' as host_cpu. In that case add
44384 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
44387 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
44388 (COMMON_LDFLAGS): New variable.
44389 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
44390 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
44391 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
44392 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
44393 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
44394 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
44395 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
44396 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
44397 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
44398 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
44399 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
44400 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
44401 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
44402 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
44403 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
44405 (normal_mod_ASFLAGS): Add `-m32'.
44407 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
44408 (grub_host_size_t, grub_host_ssize_t): New types.
44409 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
44410 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
44411 `GRUB_HOST_SIZEOF_VOID_P'.
44413 * include/grub/kernel.h (struct grub_module_header): Type of
44414 member offset changed to `grub_host_off_t'. Type of member size
44415 changed to `grub_host_size_t'.
44416 (struct grub_module_info): Type of member offset changed to
44417 `grub_host_off_t'. Type of member size changed to
44418 `grub_host_size_t'.
44420 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
44422 Make GRUB's kernel compliant to Multiboot Specification.
44424 * kern/i386/pc/startup.S (multiboot_header): New label.
44425 (multiboot_entry): Likewise.
44426 (multiboot_trampoline): Likewise.
44428 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44429 Increased to 0x4A0.
44431 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
44432 put parentheses after a question mark.
44433 [!GRUB_UTIL] (my_mod): New variable.
44435 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
44437 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
44439 Adds support for the XFS filesystem. Btrees are not supported
44442 * fs/xfs.c: New file.
44444 * DISTLIST: Added `fs/xfs.c'.
44446 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
44447 (grub_probefs_SOURCES): Likewise.
44448 (grub_emu_SOURCES): Likewise.
44449 (pkgdata_MODULES): Add `xfs.mod'.
44450 (xfs_mod_SOURCES): New variable.
44451 (xfs_mod_CFLAGS): Likewise.
44453 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
44454 (pkgdata_MODULES): Add `xfs.mod'.
44455 (xfs_mod_SOURCES): New variable.
44456 (xfs_mod_CFLAGS): Likewise.
44458 * util/grub-emu.c (main): Call `grub_xfs_init' and
44461 * include/grub/fs.h (grub_xfs_init): New prototype.
44462 (grub_xfs_fini): Likewise.
44465 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
44467 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
44468 color modes, allow greater than 16 colors to be configured as
44471 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
44473 * normal/completion.c (complete_arguments): Add the qualifier
44474 const into OPTIONS.
44476 From Omniflux <omniflux+lists@omniflux.com>:
44477 * include/grub/terminfo.h: New file.
44478 * include/grub/tparm.h: Likewise.
44479 * include/grub/i386/pc/serial.h: Likewise.
44480 * term/terminfo.c: Likewise.
44481 * term/tparm.c: Likewise.
44482 * term/i386/pc/serial.c: Likewise.
44483 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
44485 (terminfo_mod_SOURCES): New variable.
44486 (terminfo_mod_CFLAGS): Likewise.
44487 (serial_mod_SOURCES): Likewise.
44488 (serial_mod_CFLAGS): Likewise.
44490 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
44492 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
44493 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
44494 and kern/powerpc/ieee1275/cmain.c, respectively.
44496 * boot/powerpc/ieee1275/crt0.S: Moved to ...
44497 * kern/powerpc/ieee1275/crt0.S: ... here.
44499 * boot/powerpc/ieee1275/cmain.c: Moved to ...
44500 * kern/powerpc/ieee1275/cmain.c: ... here.
44502 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
44503 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
44504 instead of boot/powerpc/ieee1275/crt0.S and
44505 boot/powerpc/ieee1275/cmain.c, respectively.
44507 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
44508 sectors. It was not used anyway.
44510 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
44512 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
44513 `unused parameter' warning.
44515 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
44517 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
44519 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
44522 2005-08-28 Marco Gerards <metgerards@student.han.nl>
44524 * include/grub/normal.h (enum grub_completion_type): Added
44525 `GRUB_COMPLETION_TYPE_ARGUMENT'.
44527 * normal/cmdline.c (print_completion): Handle
44528 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
44529 * normal/menu_entry.c (store_completion): Likewise.
44531 * normal/completion.c (complete_arguments): New function.
44532 (grub_normal_do_completion): Call `complete_arguments' when the
44533 current words start with a dash.
44535 2005-08-27 Marco Gerards <metgerards@student.han.nl>
44537 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
44538 `gzio.mod' instead of `io.mod').
44540 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
44542 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
44543 (DISTDIRS): Added io and video.
44544 Rewrite the search routine to make an output consistently.
44546 * DISTLIST: Added conf/sparc64-ieee1275.mk,
44547 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
44548 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
44549 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
44550 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
44551 util/powerpc/ieee1275/misc.c.
44553 * include/grub/gzio.h: New file.
44554 * io/gzio.c: Likewise.
44556 * kern/file.c (grub_file_close): Call grub_device_close only if
44557 FILE->DEVICE is not NULL.
44559 * include/grub/mm.h [!NULL] (NULL): New macro.
44561 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
44563 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
44564 (pkgdata_MODULES): Added gzio.mod.
44565 (gzio_mod_SOURCES): New variable.
44566 (gzio_mod_CFLAGS): Likewise.
44568 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
44569 (pkgdata_MODULES): Added gzio.mod.
44570 (gzio_mod_SOURCES): New variable.
44571 (gzio_mod_CFLAGS): Likewise.
44573 * commands/cat.c: Include grub/gzio.h.
44574 (grub_cmd_cat): Use grub_gzfile_open instead of
44577 * commands/cmp.c: Include grub/gzio.h.
44578 (grub_cmd_cmp): Use grub_gzfile_open instead of
44581 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
44582 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
44584 (grub_rescue_cmd_module): Likewise.
44586 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
44588 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
44589 kern/sparc64/ieee1275/init.c because it contains _start.
44590 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
44592 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
44594 * configure.ac: Add support for sparc64 host with ieee1275
44596 * configure: Generated from configure.ac.
44597 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
44599 (grub_ofdisk_read): Likewise.
44600 (grub_ofdisk_open): Use %p to print pointer values, and cast the
44601 pointers as (void *) to remove a warning.
44602 (grub_ofdisk_close): Likewise.
44603 (grub_ofdisk_read): Likewise.
44604 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
44605 returns, so make it return void to remove a warning.
44606 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
44607 Corresponding prototype change.
44608 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
44609 values, and cast the pointers as (void *) to remove a warning.
44610 (grub_mm_dump): Likewise.
44611 * conf/sparc64-ieee1275.mk: New file.
44612 * conf/sparc64-ieee1275.rmk: Likewise.
44613 * include/grub/sparc64/setjmp.h: Likewise.
44614 * include/grub/sparc64/types.h: Likewise.
44615 * include/grub/sparc64/ieee1275/console.h: Likewise.
44616 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
44617 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
44618 * include/grub/sparc64/ieee1275/time.h: Likewise.
44619 * kern/sparc64/cache.c: Likewise.
44620 * kern/sparc64/dl.c: Likewise.
44621 * kern/sparc64/ieee1275/init.c: Likewise.
44622 * kern/sparc64/ieee1275/openfw.c: Likewise.
44624 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
44626 * util/console.c (grub_ncurses_putchar): If C is greater than
44627 0x7f, set C to a question mark.
44628 (grub_ncurses_getcharwidth): New function.
44629 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
44632 * normal/menu.c (print_entry): Made aware of Unicode. First,
44633 convert TITLE to UCS-4, and predict the cursor position by
44636 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
44638 * kern/misc.c (grub_utf16_to_utf8): Likewise.
44640 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44642 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
44643 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
44646 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
44647 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
44648 grub_strcpy and grub_strlen. Take it into account that a space
44649 character is inserted as a delimiter.
44651 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44653 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
44654 invalid magic in the error.
44656 * commands/search.c: New file.
44658 * util/grub-emu.c (main): Call grub_search_init and
44661 * kern/rescue.c (grub_rescue_print_disks): Removed.
44662 (grub_rescue_print_devices): New function.
44663 (grub_rescue_cmd_ls): Use grub_device_iterate with
44664 grub_rescue_print_devices instead of grub_disk_dev_iterate with
44665 grub_rescue_print_disks.
44667 * kern/partition.c (grub_partition_iterate): Return the result of
44668 PARTMAP->ITERATE instead of GRUB_ERRNO.
44670 * kern/device.c: Include grub/partition.h.
44671 (grub_device_iterate): New function.
44673 * include/grub/partition.h (grub_partition_iterate): Return int
44674 instead of grub_err_t.
44676 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
44678 [GRUB_UTIL] (grub_search_fini): Likewise.
44680 * include/grub/device.h (grub_device_iterate): New prototype.
44682 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
44684 (pkgdata_MODULES): Added search.mod.
44685 (search_mod_SOURCES): New variable.
44686 (search_mod_CFLAGS): Likewise.
44688 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
44689 (pkgdata_MODULES): Added search.mod.
44690 (search_mod_SOURCES): New variable.
44691 (search_mod_CFLAGS): Likewise.
44693 * commands/ls.c (grub_ls_list_disks): Renamed to ...
44694 (grub_ls_list_devices): ... this, and use grub_device_iterate.
44695 All callers changed.
44697 * DISTLIST: Added commands/search.c.
44699 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44701 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
44703 (grub_getcharwidth): New function.
44705 * kern/misc.c (grub_utf8_to_ucs4): New function.
44707 * include/grub/term.h (struct grub_term): Added a new member
44709 (grub_getcharwidth): New prototype.
44711 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
44713 * term/i386/pc/console.c (map_char): New function. Segregated from
44714 grub_console_putchar.
44715 (grub_console_putchar): Use map_char.
44716 (grub_console_getcharwidth): New function.
44717 (grub_console_term): Specified grub_console_getcharwidth as
44720 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
44721 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
44723 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
44725 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
44726 on grub_strtoul completely.
44727 (write_char): Declare local variables in the beginning of the
44729 (grub_vesafb_getcharwidth): New function.
44730 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
44733 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
44735 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
44736 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
44737 commands/i386/pc/vbetest.c.
44739 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
44740 call grub_vbe_get_controller_info again, because the returned
44741 information is volatile.
44742 (grub_vbe_set_video_mode): Mostly rewritten.
44743 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
44744 grub_vbe_status_t correctly.
44745 (grub_vbe_get_video_mode_info): Likewise.
44746 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
44747 several if statements.
44749 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
44750 * commands/i386/pc/vbeinfo.c: ... this.
44752 * commands/i386/pc/vbe_test.c: Renamed to ...
44753 * commands/i386/pc/vbetest.c: ... this.
44755 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
44757 (grub_cmd_vbeinfo): ... this. Save video modes before
44758 iterating. Skip a video mode, if it is not available, not enough
44759 information is given or it is monochrome. Show the memory
44760 model. Leave the interpretation of MODEVAR to grub_strtoul
44762 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
44763 (GRUB_MOD_FINI): Likewise.
44765 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
44766 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
44767 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
44768 duplicated grub_env_get. Leave the interpretation of MODEVAR to
44769 grub_strtoul completely.
44770 (real2pm): Removed.
44771 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
44772 (GRUB_MOD_FINI): Likewise.
44774 * normal/misc.c: Include grub/mm.h.
44776 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
44777 vbe_list_modes with vbetest.mod and vbeinfo.mod.
44778 (vbe_list_modes_mod_SOURCES): Removed.
44779 (vbe_list_modes_mod_CFLAGS): Likewise.
44780 (vbe_test_mod_SOURCES): Likewise.
44781 (vbe_test_mod_CFLAGS): Likewise.
44782 (vbeinfo_mod_SOURCES): New variable.
44783 (vbeinfo_mod_CFLAGS): Likewise.
44784 (vbetest_mod_SOURCES): Likewise.
44785 (vbetest_mod_CFLAGS): Likewise.
44787 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
44789 * normal/misc.c: New file.
44791 * DISTLIST: Added normal/misc.c.
44793 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
44794 DISK to HOOK. Call HOOK with DISK.
44795 * partmap/apple.c (apple_partition_map_iterate): Likewise.
44796 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44797 * partmap/sun.c (sun_partition_map_iterate): Likewise.
44799 * normal/menu_entry.c (struct screen): Added a new member
44800 "completion_shown".
44801 (completion_buffer): New global variable.
44802 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
44803 (store_completion): New function.
44804 (complete): Likewise.
44805 (clear_completions): Likewise.
44806 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
44807 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
44808 a tab, call complete.
44810 * normal/completion.c (disk_dev): Removed.
44811 (print_simple_completion): Likewise.
44812 (print_partition_completion): Likewise.
44813 (print_func): New global variable.
44814 (add_completion): Do not take the arguments WHAT or PRINT any
44815 longer. Added a new argument TYPE. Instead of printing directly,
44816 call PRINT_FUNC if not NULL.
44817 All callers changed.
44818 (complete_device): Use a local variable DEV instead of
44819 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
44820 (grub_normal_do_completion): Take a new argument HOOK. Do not
44821 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
44822 empty string, return NULL instead.
44823 All callers changed.
44825 * normal/cmdline.c (print_completion): New function.
44827 * kern/partition.c (grub_partition_iterate): Add an argument DISK
44829 All callers changed.
44831 * kern/disk.c (grub_print_partinfo): Removed.
44833 * include/grub/partition.h (struct grub_partition_map): Add a new
44834 argument DISK into HOOK of ITERATE.
44835 (grub_partition_iterate): Add a new argument DISK to HOOK.
44837 * include/grub/normal.h (enum grub_completion_type): New enum.
44838 (grub_completion_type_t): New type.
44839 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
44840 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
44841 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
44842 (GRUB_COMPLETION_TYPE_FILE): Likewise.
44843 (grub_normal_do_completion): Added a new argument HOOK.
44844 (grub_normal_print_device_info): New prototype.
44846 * include/grub/disk.h (grub_print_partinfo): Removed.
44848 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
44849 (normal_mod_SOURCES): Likewise.
44850 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44851 (normal_mod_SOURCES): Likewise.
44853 * commands/ls.c (grub_ls_list_disks): Use
44854 grub_normal_print_device_info instead of grub_print_partinfo. Free
44856 (grub_ls_list_files): Use grub_normal_print_device_info instead of
44857 duplicating the code.
44859 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
44861 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
44862 follow GCS more precisely.
44863 * commands/i386/pc/vbe_test.c: Likewise.
44864 * include/grub/i386/pc/vbe.h: Likewise.
44865 * term/i386/pc/vesafb.c: Likewise.
44866 * video/i386/pc/vbe.c: Likewise.
44868 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
44870 * DISTLIST: Added term/i386/pc/vesafb.c
44871 DISTLIST: Added video/i386/pc/vbe.c
44872 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
44873 DISTLIST: Added commands/i386/pc/vbe_test.c.
44874 * commands/i386/pc/vbe_list_modes.c: New file.
44875 * commands/i386/pc/vbe_test.c: Likewise.
44876 * term/i386/pc/vesafb.c: Likewise.
44877 * video/i386/pc/vbe.c: Likewise.
44878 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
44879 (grub_vbe_probe) Added prototype.
44880 (grub_vbe_set_video_mode) Likewise.
44881 (grub_vbe_get_video_mode) Likewise.
44882 (grub_vbe_get_video_mode_info) Likewise.
44883 (grub_vbe_set_pixel_rgb) Likewise.
44884 (grub_vbe_set_pixel_index) Likewise.
44885 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
44886 (pkgdata_MODULES): Added vesafb.mod.
44887 (pkgdata_MODULES): Added vbe_list_modes.mod.
44888 (pkgdata_MODULES): Added vbe_test.mod.
44889 (vbe_mod_SOURCES): Added.
44890 (vbe_mod_CFLAGS): Likewise.
44891 (vesafb_mod_SOURCES): Likewise.
44892 (vesafb_mod_CFLAGS): Likewise.
44893 (vbe_list_modes_mod_SOURCES): Likewise.
44894 (vbe_list_modes_mod_CFLAGS): Likewise.
44895 (vbe_test_mod_SOURCES): Likewise.
44896 (vbe_test_mod_CFLAGS): Likewise.
44898 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
44900 * normal/command.c (grub_command_execute): If INTERACTIVE is
44901 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
44902 CMDLINE. Disable the pager if INTERACTIVE is true.
44903 All callers are changed.
44905 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
44906 before reading a config file.
44907 * normal/main.c (read_config_file): Even if a command is not
44908 found, register it if it is within an entry.
44910 * util/grub-emu.c: Include sys/types.h and unistd.h.
44911 (options): Added --hold.
44912 (struct arguments): Added a new member "hold".
44913 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
44915 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
44916 cleared by a debugger, if it is not zero.
44918 * include/grub/normal.h (grub_command_execute): Add an argument
44921 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
44923 * DISTLIST: Added include/grub/i386/pc/vbe.h.
44925 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
44927 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
44928 program with another one, because the old one didn't detect a bug
44929 in gcc-3.4. Always use regparm 2, because the new test is still
44930 not enough for gcc-4.0. Someone must investigate a simple test
44931 case which detects a bug in gcc-4.0.
44933 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
44935 * DISTLIST: Added normal/completion.c.
44937 * normal/completion.c: New file.
44939 * term/i386/pc/console.c (grub_console_getwh): New function.
44940 (grub_console_term): Assign grub_console_getwh to getwh.
44942 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
44943 function is defined in normal/completion.c as
44944 grub_normal_do_completion.
44945 (grub_cmdline_get): Use grub_normal_do_completion instead of
44948 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
44949 returns non-zero, otherwise return 0.
44950 (grub_partition_iterate): First, probe the partition map. Then,
44951 call ITERATE only for this partition map.
44953 * kern/misc.c (grub_strncmp): Rewritten.
44955 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
44956 returns non-zero. Otherwise return 0.
44958 * include/grub/partition.h (grub_partition_map_iterate): Return
44959 int instead of void.
44961 * include/grub/normal.h (grub_normal_do_completion): New prototype.
44963 * include/grub/misc.h (grub_strncmp): Change the type of N to
44966 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
44969 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
44970 unsigned explicitly before comparing it with I.
44972 * kern/main.c (grub_env_write_root): Add the attribute unused into
44975 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
44976 normal/completion.c.
44977 (normal_mod_SOURCES): Likewise.
44978 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
44979 (normal_mod_SOURCES): Likewise.
44981 * normal/command.c (grub_iterate_commands): If ITERATE returns
44982 non-zero, return one immediately.
44984 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
44986 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
44987 * kern/i386/pc/startup.S: Updated Global Descriptor table's
44989 (grub_vbe_get_controller_info): New function.
44990 (grub_vbe_get_mode_info): Likewise.
44991 (grub_vbe_set_mode): Likewise.
44992 (grub_vbe_get_mode): Likewise.
44993 (grub_vbe_set_memory_window): Likewise.
44994 (grub_vbe_get_memory_window): Likewise.
44995 (grub_vbe_set_scanline_length): Likewise.
44996 (grub_vbe_get_scanline_length): Likewise.
44997 (grub_vbe_set_display_start): Likewise.
44998 (grub_vbe_get_display_start): Likewise.
44999 (grub_vbe_set_palette_data): Likewise.
45000 * include/grub/i386/pc/vbe.h: New file.
45002 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45004 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
45005 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
45006 * DISTLIST: Likewise.
45007 * kern/ieee1275/of.c: Moved to ...
45008 * kern/ieee1275/ieee1275.c: ... here.
45010 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45012 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
45013 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
45014 Pass 0 as `end' parameter to grub_strtoul().
45016 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45018 * include/grub/powerpc/ieee1275/console.h: Do not include
45019 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
45021 (grub_console_cur_color): Remove i386-specific prototype.
45022 (grub_console_real_putchar): Likewise.
45023 (grub_console_checkkey): Likewise.
45024 (grub_console_getkey): Likewise.
45025 (grub_console_getxy): Likewise.
45026 (grub_console_gotoxy): Likewise.
45027 (grub_console_cls): Likewise.
45028 (grub_console_setcursor): Likewise.
45029 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
45030 Include <grub/machine/console.h>.
45031 * term/ieee1275/ofconsole.c: Likewise.
45033 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
45035 * Makefile.in (LIBLZO): New variable.
45037 * configure.ac: Check for LZO version 2.
45039 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
45040 lzo/lzo1x.h instead of lzo1x.h.
45042 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
45045 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
45046 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
45048 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
45049 copying the data from PARTITION to P.
45051 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45053 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
45054 negative, unload the module.
45056 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
45057 map is "pc_partition_map" but not "pc".
45058 (usage): Fix the description. The options are --boot-image and
45059 --core-image but not --boot-file or --core-file.
45060 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
45061 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
45064 * util/i386/pc/grub-install.in: Do not specify --boot-file or
45065 --core-file. Specify INSTALL_DEVICE as an argument.
45067 * util/console.c: Include config.h.
45068 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
45069 [HAVE_NCURSES_H]: Include ncurses.h.
45070 [HAVE_CURSES_H]: Include curses.h.
45071 [!A_NORMAL] (A_NORMAL): Defined as zero.
45072 [!A_STANDOUT] (A_STANDOUT): Likewise.
45074 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
45076 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
45078 * configure.ac: Check for curses libraries and headers.
45080 * Makefile.in (LIBCURSES): New variable.
45082 * genmk.rb (Script::rule): Set the executable bits.
45084 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
45085 name of the PC partition map is "pc_partition_map" but not "pc".
45087 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45089 * util/i386/pc/grub-install.in (grub_probefs): New variable.
45090 (modules): Likewise.
45091 (usage): Added descriptions for --modules and --grub-probefs.
45092 Handle --modules and --grub-probefs. Save the arguments in MODULES
45093 and GRUB_PROBEFS, respectively.
45094 Auto-detect a filesystem module against GRUBDIR. If the result is
45095 empty and modules are not specified explicitly, abort the
45096 installation. Add the result to MODULES.
45098 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
45099 disk/powerpc/ieee1275/ofdisk.c,
45100 include/grub/powerpc/ieee1275/init.h and
45101 term/powerpc/ieee1275/ofconsole.c.
45102 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
45103 term/ieee1275/ofconsole.c.
45105 * include/grub/powerpc/ieee1275/console.h: Resurrected.
45107 * COPYING: Upgraded to the latest version. Only the address of the
45108 FSF office has changed.
45110 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45112 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
45113 kern/ieee1275.c with kern/ieee1275/of.c.
45115 * kern/ieee1275.c: Moved to ...
45116 * kern/ieee1275/of.c: ... here.
45118 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
45120 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
45123 * config.guess: Updated to the latest version from gnulib.
45124 * config.sub: Likewise.
45125 * install.sh: Likewise.
45126 * mkinstalldirs: Likewise.
45128 * include/grub/console.h: Removed. This file is arch-specific. Do
45129 not put this in include/grub.
45131 * include/grub/i386/pc/console.h: Resurrected.
45133 * util/console.c: Include grub/machine/console.h instead of
45135 * util/grub-emu.c: Likewise.
45137 2005-08-04 Marco Gerards <metgerards@student.han.nl>
45139 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
45142 From Vincent Pelletier <subdino2004@yahoo.fr>
45143 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
45144 Redefined to use grub_getwh.
45145 (grub_term): New member named getwh.
45146 (grub_getwh): New prototype.
45147 * kern/term.c (grub_getwh): New function.
45148 * term/i386/pc/console.c (grub_console_getwh): New function.
45149 (grub_console_term): New member `getwh'.
45150 * term/i386/pc/vga.c (grub_vga_getwh): New function.
45151 (grub_vga_term): New member `getwh'.
45152 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
45154 (grub_ofconsole_getw): New function.
45155 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
45156 (grub_ofconsole_term): New field named getwh and new initial
45159 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
45161 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
45162 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
45163 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
45164 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
45165 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
45166 of <grub/machine/ieee1275.h>.
45167 * commands/ieee1275/reboot.c: Likewise.
45168 * boot/powerpc/ieee1275/ieee1275.c: Move ...
45169 * kern/ieee1275.c: ... to here. All users updated. Change all
45170 parameter structs to use new type `grub_ieee1275_cell_t'.
45171 * term/powerpc/ieee1275/ofconsole.c: Move ...
45172 * term/ieee1275/ofconsole.c: ... to here. All users updated.
45173 * disk/powerpc/ieee1275/ofdisk.c: Move ...
45174 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
45175 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
45177 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
45178 Remove unused prototypes. All users updated.
45179 * include/grub/powerpc/ieee1275/console.h: Removed.
45180 * include/grub/powerpc/ieee1275/ieee1275.h: Define
45181 `grub_ieee1275_cell_t'.
45182 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
45183 Cast comparisons with -1 to the correct type.
45184 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
45185 type to match `grub_ieee1275_entry_fn'.
45187 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
45189 * DISTLIST: Added util/i386/pc/grub-probefs.c.
45191 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
45192 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
45194 (grub_probefs_SOURCES): New variable.
45196 * util/i386/pc/grub-probefs.c: New file.
45198 * util/i386/pc/grub-setup.c (main): Call
45199 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
45200 grub_hfs_init and grub_jfs_init to initialize the system. Call
45201 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
45202 grub_pc_partition_map_fini to finish the system.
45204 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
45206 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
45208 (grub_multiboot_load_elf32): Likewise.
45209 (grub_multiboot_is_elf64): Likewise.
45210 (grub_multiboot_load_elf64): Likewise.
45211 (grub_multiboot_load_elf): Likewise.
45212 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
45213 an ELF32 or ELF64 file.
45214 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
45216 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
45217 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
45218 NULL before calling FS->LABEL.
45219 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
45220 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
45221 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
45222 before calling FS->LABEL.
45224 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
45226 * util/i386/pc/grub-install.in (datadir): New variable.
45228 (pkgdatadir): New variable.
45229 (pkglibdir): Removed.
45231 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
45233 * DISTLIST: Added util/i386/pc/grub-install.in.
45235 * util/i386/pc/grub-install.in: New file.
45237 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
45238 (grub_install_SOURCES): Likewise.
45240 * genmk.rb: Added support for scripts.
45241 (Script): New class.
45242 (scripts): New variable.
45244 * Makefile.in (install-local): Install sbin_SCRIPTS by
45246 (uninstall): Remove sbin_SCRIPTS.
45248 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
45249 device, try to get a GRUB device by
45250 grub_util_biosdisk_get_grub_dev.
45253 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
45254 description for --device-map.
45256 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
45258 Change the semantics of variable hooks. They now return strings
45259 instead of error values.
45261 * util/i386/pc/grub-setup.c: Include grub/env.h.
45262 (setup): Use grub_device_set_root instead of grub_env_set.
45264 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
45265 grub_env_get instead of grub_device_set_root and
45266 grub_device_get_root, respectively.
45268 * kern/main.c (grub_env_write_root): New function.
45269 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
45270 grub_env_set instead of grub_device_set_root.
45272 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
45274 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
45275 rather than calling ENV->WRITE_HOOK afterwards.
45276 (grub_env_get): Return the result of ENV->READ_HOOK rather than
45277 passing a pointer of a pointer.
45278 (grub_register_variable_hook): Change the types of "read_hook" and
45279 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
45281 Allocate the default empty string on the heap, because this string
45282 may be freed later.
45284 * kern/device.c: Include grub/env.h.
45285 (grub_device_set_root): Removed.
45286 (grub_device_get_root): Likewise.
45287 (grub_device_open): Use grub_env_get instead of
45288 grub_device_get_root.
45290 * include/grub/env.h (grub_env_read_hook_t): New type.
45291 (grub_env_write_hook_t): Likewise.
45292 (grub_env_var): Change the types of "read_hook" and "write_hook"
45293 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
45294 (grub_register_variable_hook): Likewise.
45296 * include/grub/device.h (grub_device_set_root): Removed.
45297 (grub_device_set_root): Likewise.
45299 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
45300 make sure that DIRNAME terminates with '/', so that
45301 grub_fat_find_dir will fail if PATH is not a directory.
45303 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
45305 Use the qualifier auto for print_files and print_files_long.
45306 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
45308 Put a newline only if there is no error.
45309 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
45312 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
45314 * kern/partition.c (grub_partition_probe): Initialize PART to
45315 NULL. Otherwise, when no partition map is registered, this returns
45318 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
45320 * partmap/apple.c (apple_partition_map_iterate): Check if POS
45321 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
45324 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
45326 * commands/ls.c (grub_ls_list_disks): Print the filesystem
45327 information on each device, if it does not have partitions. Print
45328 "Device" instead of "Disk", because this function is not specific
45331 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
45332 static to ensure that it is put on the memory rather than a
45335 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45337 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
45338 (grub_cat_init): Likewise.
45339 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
45340 (options): Likewise.
45341 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
45342 (grub_configfile_init): Likewise.
45343 * font/manager.c (GRUB_MOD_INIT): Likewise.
45344 * commands/help.c (GRUB_MOD_INIT): Likewise.
45345 (grub_help_init): Likewise.
45346 * normal/command.c (grub_command_init): Likewise.
45347 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
45348 * disk/loopback.c (grub_loop_init): Likewise.
45349 (GRUB_MOD_INIT): Likewise.
45350 * commands/ls.c (grub_ls_init): Likewise.
45351 (GRUB_MOD_INIT): Likewise.
45352 (options): Likewise.
45353 * commands/boot.c (grub_boot_init): Likewise.
45354 (GRUB_MOD_INIT): Likewise.
45355 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
45356 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
45357 (GRUB_MOD_INIT): Likewise.
45358 * commands/cmp.c (grub_cmp_init): Likewise.
45359 (GRUB_MOD_INIT): Likewise.
45361 * normal/arg.c: Use <> instead of "" to include header files.
45362 (SHORT_ARG_HELP): New macro.
45363 (SHORT_ARG_USAGE): Likewise.
45364 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
45365 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
45367 (find_short): Check if C is 'h' or 'u' explicitly.
45368 (grub_arg_show_help): Use space characters instead of tabs. Treat
45369 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
45370 are shown with --help and --usage only if they are not used for
45371 the command itself.
45372 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
45375 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
45376 const into "longarg". Change the type of "shortarg" to int.
45378 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45380 * boot/i386/pc/boot.S (boot_drive_check): New label.
45382 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
45385 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
45386 which do not pass a boot drive correctly. Copied from GRUB Legacy.
45388 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45390 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
45391 When turning off Gate A20, skip the check and return immediately,
45392 because this is not fatal usually.
45394 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45396 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
45397 be 0x7C00 instead of 0x8000.
45399 * boot/i386/pc/pxeboot.S: Rewritten.
45401 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
45403 (gate_a20_check_state): Read a byte from 0x108000. Invert the
45406 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
45408 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
45409 robustness. This routine now supports a BIOS call and System
45410 Control Port A to modify the gate A20.
45412 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
45413 Increased to 0x440.
45415 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
45417 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
45418 device path and resulting ihandle.
45419 (grub_ofdisk_close): dprintf the ihandle being closed.
45420 (grub_ofdisk_read): dprintf function parameters.
45421 * kern/mm.c (grub_mm_init_region): Likewise.
45422 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
45423 (grub_linux_boot): dprintf the Linux entry point, initrd address and
45424 size, and boot arguments.
45425 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
45426 before loading into memory.
45427 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
45428 before loading into memory.
45430 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
45432 * kern/mm.c: Added much documentation.
45433 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
45434 8, set to 5 instead of 8.
45436 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
45438 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
45440 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
45441 (grub_mkdevicemap_SOURCES): New variable.
45443 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
45444 lib/device.c of GRUB Legacy.
45446 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
45448 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
45449 instead of PATH is NULL.
45451 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
45453 * commands/cmp.c (BUFFER_SIZE): New macro.
45454 (grub_cmd_cmp): Close the right file at the right time. Compare
45455 only data just read. Don't report files of different size as
45456 identical. Dynamically allocate buffers. Move variable
45457 declarations at the beginning of function.
45459 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
45461 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
45464 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
45466 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
45467 when backspace is pressed at beginning of line.
45469 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
45471 * DISTLIST: Added genfslist.sh.
45473 * normal/main.c (fs_module_list): New variable.
45474 (autoload_fs_module): New function.
45475 (read_fs_list): Likewise.
45476 (grub_normal_execute): Call read_fs_list.
45478 * kern/fs.c (grub_fs_autoload_hook): New variable.
45479 (grub_fs_probe): Added support for auto-loading.
45481 * include/grub/normal.h (struct grub_fs_module_list): New struct.
45482 (grub_fs_module_list_t): New type.
45484 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
45485 (grub_fs_autoload_hook): New prototype.
45487 * genfslist.sh: New file.
45489 * genmk.rb: Added a rule to generate a filesystem list.
45491 2005-06-30 Marco Gerards <metgerards@student.han.nl>
45493 * configure.ac: Fix the test for cross-compiling.
45495 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
45496 define GRUB_UTIL anymore.
45498 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
45499 so this function works on other systems than just big endian.
45500 (load_modules): Likewise.
45501 (add_segments): Likewise.
45503 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
45505 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
45506 contains `l' modifier, get a long from va_arg().
45508 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
45510 * kern/mm.c (grub_free): If the next free block which is being
45511 merged is the first free block, set the first block to the block
45513 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
45515 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
45517 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
45518 `grub_ieee1275_chosen'.
45520 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
45522 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
45523 (grub_ieee1275_chosen): New variable.
45524 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
45526 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
45527 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
45528 Rename first argument to `phandle' for consistency.
45529 (grub_ieee1275_get_property_length): Likewise.
45530 (grub_ieee1275_next_property): Likewise. Change type of first argument
45531 to grub_ieee1275_phandle_t.
45532 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
45533 Move export next to declaration.
45534 (grub_ieee1275_chosen): New variable.
45535 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
45536 Correct cosmetic typo.
45537 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
45538 `grub_ieee1275_chosen'.
45539 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
45540 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
45541 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
45542 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
45543 `grub_ieee1275_chosen'.
45545 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
45547 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
45549 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
45550 /chosen/bootargs as "variable=value" pairs.
45552 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
45554 * include/grub/misc.h (grub_dprintf): New macro.
45555 (grub_real_dprintf): New prototype.
45556 (grub_strword): Likewise.
45557 (grub_iswordseparator): Likewise.
45558 * kern/misc.c (grub_real_dprintf): New function.
45559 (grub_strword): Likewise.
45560 (grub_iswordseparator): Likewise.
45562 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
45564 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
45565 (roundup): Remove macro.
45566 (grub_ieee1275_flags): Make static.
45567 (grub_ieee1275_realmode): Remove.
45568 (grub_ieee1275_test_flag): New function.
45569 (grub_ieee1275_set_flag): Likewise.
45570 (find_options): Rename to `grub_ieee1275_find_options'; update
45571 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
45572 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
45573 (cmain): New prototype.
45574 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
45575 `grub_ieee1275_flags' directly.
45576 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
45577 machine/biosdisk.h.
45578 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
45579 Don't include grub/machine/init.h.
45580 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
45581 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
45583 (grub_ieee1275_realmode): Likewise.
45584 (grub_ieee1275_flag): New enum.
45585 (grub_ieee1275_test_flag): New prototype.
45586 (grub_ieee1275_set_flag): New prototype.
45587 * include/grub/powerpc/ieee1275/init.h: Remove file.
45588 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
45589 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
45590 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
45591 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
45593 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
45594 `grub_ieee1275_test_flag'.
45595 (grub_ieee1275_encode_devname): Likewise.
45597 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
45599 * include/grub/powerpc/ieee1275/ieee1275.h
45600 (grub_ieee1275_encode_devname): New prototype.
45601 (grub_ieee1275_get_filename): Likewise.
45602 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
45604 (grub_set_prefix): Likewise.
45605 (grub_machine_init): Call grub_set_prefix.
45606 * kern/powerpc/ieee1275/openfw.c: Fix typos.
45607 (grub_parse_type): New enum.
45608 (grub_ieee1275_get_devargs): New function.
45609 (grub_ieee1275_get_devname): Likewise.
45610 (grub_ieee1275_parse_args): Likewise.
45611 (grub_ieee1275_get_filename): Likewise.
45612 (grub_ieee1275_encode_devname): Likewise.
45614 2005-03-30 Marco Gerards <metgerards@student.han.nl>
45616 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
45617 `grub_loader_unset'.
45619 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
45621 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
45622 instead of grub_ieee1275_interpret.
45623 (grub_halt_init): New function.
45624 (grub_halt_fini): Likewise.
45625 (GRUB_MOD_INIT): Correct message grammar.
45626 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
45627 instead of grub_ieee1275_interpret.
45628 (grub_reboot_init): New function.
45629 (grub_reboot_fini): Likewise.
45630 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
45631 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
45632 util/i386/pc/misc.c with commands/ieee1275/halt.c,
45633 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
45634 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
45636 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
45638 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
45640 (grub_halt): Likewise.
45641 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
45642 (cmain): Remove __attribute__((unused)).
45643 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
45644 (grub_heap_len): Likewise.
45645 (grub_machine_fini): New function.
45646 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
45647 (grub_halt): Likewise.
45648 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
45650 * util/powerpc/ieee1275/misc.c: New file.
45652 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
45654 * DISTLIST: New file.
45655 * gendistlist.sh: Likewise.
45657 * Makefile.in (COMMON_DISTFILES): Removed.
45658 (BOOT_DISTFILES): Likewise.
45659 (CONF_DISTFILES): Likewise.
45660 (DISK_DISTFILES): Likewise.
45661 (FS_DISTFILES): Likewise.
45662 (INCLUDE_DISTFILES): Likewise.
45663 (KERN_DISTFILES): Likewise.
45664 (LOADER_DISTFILES): Likewise.
45665 (TERM_DISTFILES): Likewise.
45666 (UTIL_DISTFILES): Likewise.
45667 (DISTFILES): Likewise.
45668 (uninstall): Uninstall files in $(pkgdata_DATA).
45669 (DISTLIST): New target.
45670 (distdir): Use the contents of the file DISTLIST to get a list of
45673 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
45675 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
45676 descriptor. This is ported from GRUB Legacy.
45678 * gencmdlist.sh: Added an extra semicolon to make it work with
45679 old sed versions. Reported by Robert Bihlmeyer
45680 <robbe@orcus.priv.at>.
45682 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
45684 Automatic loading of commands is supported.
45686 * normal/main.c (read_command_list): New function.
45687 (grub_normal_execute): Call read_command_list.
45689 * normal/command.c (grub_register_command): Return zero or CMD.
45690 Allocate CMD->NAME from the heap.
45691 Initialize CMD->MODULE_NAME to zero.
45692 Find the same name as well. If the same command is found and it is
45693 a dummy command, overwrite members. If it is not a dummy command,
45695 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
45696 (grub_command_find): If a dummy command is found, load a module
45697 and retry to find a command only once.
45699 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
45700 make sure that each command is loaded.
45702 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
45704 (struct grub_command): Remove const from the member `name'.
45705 Add a new member `module_name'.
45706 (grub_register_command): Return grub_command_t.
45708 * commands/help.c (grub_cmd_help): Call grub_command_find to make
45709 sure that each command is loaded.
45711 * genmk.rb (PModule::rule): Specify a module name without the
45712 suffix ".mod" to gencmdlist.sh.
45714 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
45716 * gencmdlist.sh: New file.
45718 * genmk.rb (PModule::rule): Generate a rule for a command list.
45720 Generate command.lst from $(COMMANDFILES).
45722 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
45723 (DATA): Added $(pkgdata_DATA).
45724 (install-local): Install files in $(pkgdata_DATA).
45726 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
45728 * term/i386/pc/vga.c (debug_command): Removed.
45729 (GRUB_MOD_INIT): Do not register the command "debug".
45731 From Hollis Blanchard:
45732 * commands/configfile.c: New file.
45733 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45734 commands/configfile.c.
45735 (pkgdata_MODULES): Added configfile.mod.
45736 (configfile_mod_SOURCES): New variable.
45737 (configfile_mod_CFLAGS): Likewise.
45738 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
45739 commands/configfile.c.
45740 (pkgdata_MODULES): Added configfile.mod.
45741 (configfile_mod_SOURCES): New variable.
45742 (configfile_mod_CFLAGS): Likewise.
45743 * util/grub-emu.c (main): Call grub_configfile_init and
45744 grub_configfile_fini.
45745 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
45747 [GRUB_UTIL] (grub_configfile_fini): Likewise.
45749 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
45751 * normal/arg.c (grub_arg_show_help): Do not show the bug report
45754 * commands/help.c (grub_cmd_help): Do not print newlines after
45755 the last command in print_command_help.
45757 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
45759 * commands/default.h: New file.
45760 * commands/timeout.h: Likewise.
45761 * normal/context.c: Likewise.
45763 * util/misc.c: Do not include sys/times.h.
45764 Include sys/time.h and grub/machine/time.h.
45765 (grub_get_rtc): Rewritten with gettimeofday.
45767 * util/grub-emu.c (main): Call grub_default_init and
45768 grub_timeout_init before grub_normal_init, and call
45769 grub_timeout_fini and grub_default_fini after grub_main.
45771 * util/console.c (grub_ncurses_checkkey): Return the read
45774 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
45777 * normal/main.c (read_config_file): Push MENU. If this fails,
45778 print an error and wait for a user input.
45779 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
45780 If a menu is empty or an error occurs, pop MENU.
45781 (grub_normal_execute): Pop and free MENU after grub_menu_run
45784 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
45786 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
45788 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
45790 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
45792 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
45795 * include/grub/normal.h (struct grub_menu_list): New struct.
45796 (grub_menu_list_t): New type.
45797 (struct grub_context): New struct.
45798 (grub_context_t): New type.
45799 (grub_register_command): Got rid of EXPORT_FUNC.
45800 (grub_unregister_command): Likewise.
45801 (grub_context_get): New prototype.
45802 (grub_context_get_current_menu): Likewise.
45803 (grub_context_push_menu): Likewise.
45804 (grub_context_pop_menu): Likewise.
45805 [GRUB_UTIL] (grub_default_init): Likewise.
45806 [GRUB_UTIL] (grub_default_fini): Likewise.
45807 [GRUB_UTIL] (grub_timeout_init): Likewise.
45808 [GRUB_UTIL] (grub_timeout_fini): Likewise.
45810 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
45811 commands/timeout.c and normal/context.c.
45812 (pkgdata_MODULES): Added default.mod and timeout.mod.
45813 (normal_mod_SOURCES): Added normal/context.c.
45814 (default_mod_SOURCES): New variable.
45815 (default_mod_CFLAGS): Likewise.
45816 (timeout_mod_SOURCES): Likewise.
45817 (timeout_mod_CFLAGS): Likewise.
45818 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
45820 (pkgdata_MODULES): Added default.mod and timeout.mod.
45821 (normal_mod_SOURCES): Added normal/context.c.
45822 (default_mod_SOURCES): New variable.
45823 (default_mod_CFLAGS): Likewise.
45824 (timeout_mod_SOURCES): Likewise.
45825 (timeout_mod_CFLAGS): Likewise.
45827 * Makefile.in (all-local): Added $(MKFILES).
45829 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
45831 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
45832 (grub_emu_SOURCES): Likewise.
45833 (pkgdata_MODULES): Add `sun.mod'.
45834 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
45835 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45837 (pkgdata_MODULES): Add `sun.mod'.
45838 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
45839 * include/grub/partition.h (grub_sun_partition_map_init): New
45841 (grub_sun_partition_map_fini): Likewise.
45842 * partmap/sun.c: New file.
45843 * util/grub-emu.c (main): Initialize and de-initialize the sun
45844 partitionmap support.
45846 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
45848 This implements an Emacs-like menu entry editor.
45850 * normal/menu_entry.c: New file.
45852 * util/console.c (grub_ncurses_putchar): Translate some Unicode
45853 characters to ASCII.
45854 (saved_char): New variable.
45855 (grub_ncurses_checkkey): Rewritten completely.
45856 (grub_ncurses_getkey): Likewise.
45857 (grub_ncurses_init): Call raw instead of cbreak.
45859 * normal/menu.c (print_entry): Do not put a space.
45860 (init_page): Renamed to ...
45861 (grub_menu_init_page): ... this. All callers changed.
45862 (edit_menu_entry): Removed.
45863 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
45865 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
45867 * kern/misc.c (grub_vprintf): Call grub_refresh.
45869 * normal/menu.c (DISP_LEFT): Renamed to ...
45870 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
45871 * normal/menu.c (DISP_UP): Renamed to ...
45872 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
45873 * normal/menu.c (DISP_RIGHT): Renamed to ...
45874 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
45875 * normal/menu.c (DISP_DOWN): Renamed to ...
45876 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
45877 * normal/menu.c (DISP_HLINE): Renamed to ...
45878 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
45879 * normal/menu.c (DISP_VLINE): Renamed to ...
45880 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
45881 * normal/menu.c (DISP_UL): Renamed to ...
45882 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
45883 * normal/menu.c (DISP_UR): Renamed to ...
45884 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
45885 * normal/menu.c (DISP_LL): Renamed to ...
45886 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
45887 * normal/menu.c (DISP_LR): Renamed to ...
45888 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
45889 * normal/menu.c (TERM_WIDTH): Renamed to ...
45890 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
45891 * normal/menu.c (TERM_HEIGHT): Renamed to ...
45892 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
45893 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
45894 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
45895 * normal/menu.c (TERM_MARGIN): Renamed to ...
45896 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
45897 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
45898 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
45899 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
45900 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
45901 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
45902 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
45903 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
45904 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
45905 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
45906 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
45907 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
45908 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
45909 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
45910 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
45911 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
45912 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
45913 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
45914 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
45915 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
45916 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
45917 All callers changed.
45919 * include/grub/normal.h: New prototype.
45921 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45922 normal/menu_entry.c.
45923 (normal_mod_SOURCES): Likewise.
45924 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45925 (normal_mod_SOURCES): Likewise.
45927 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
45929 * include/grub/normal.h (grub_halt_init): New prototype.
45930 (grub_halt_fini): Likewise.
45931 (grub_reboot_init): Likewise.
45932 (grub_reboot_fini): Likewise.
45934 * util/grub-emu.c: Include signal.h.
45935 (main_env): New global variable.
45936 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
45938 (grub_machine_fini): New function.
45939 (main): Call grub_halt_init and grub_reboot_init before
45940 grub_main, and grub_reboot_fini and grub_halt_fini after it.
45941 Call setjmp with MAIN_ENV to go back afterwards.
45942 Call grub_machine_fini right before return.
45944 * include/grub/util/misc.h: Include setjmp.h.
45945 (main_env): New prototype.
45947 * include/grub/kernel.h (grub_machine_fini): New prototype.
45948 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
45949 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
45951 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
45952 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
45953 * term/i386/pc/console.c (grub_console_fini): Likewise.
45955 * util/i386/pc/misc.c: New file.
45957 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45958 util/i386/pc/misc.c, commands/i386/pc/halt.c and
45959 commands/i386/pc/reboot.c.
45961 2005-02-14 Guillem Jover <guillem@hadrons.org>
45963 * include/grub/dl.h (grub_dl_check_header): New prototype.
45964 (grub_arch_dl_check_header): Change return type to grub_err_t,
45965 remove size parameter and export function. Update all callers.
45966 * kern/dl.c (grub_dl_check_header): New function.
45967 (grub_dl_load_core): Use `grub_dl_check_header' instead of
45968 `grub_arch_dl_check_header'. Check ELF type. Check if sections
45969 are inside the core.
45970 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
45971 independent ELF header checks.
45972 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
45973 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
45974 `grub_dl_check_header' instead of explicit checks. Check for the
45976 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
45977 `grub_dl_check_header' instead of explicit checks. Remove arch
45978 specific ELF header checks.
45980 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
45983 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
45985 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
45986 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
45988 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
45990 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
45991 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
45992 (part_map_iterate): Clear `grub_errno' and return 0 if
45993 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
45994 * partmap/amiga.c (amiga_partition_map_iterate): Return
45995 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
45996 * partmap/apple.c (apple_partition_map_iterate): Likewise.
45998 2005-02-01 Guillem Jover <guillem@hadrons.org>
46000 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
46003 2005-01-31 Marco Gerards <metgerards@student.han.nl>
46005 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
46007 (grub_rescue_cmd_linux): New prototype.
46008 (grub_rescue_cmd_initrd): Likewise.
46009 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
46011 (grub_linux_release_mem): Release the memory for the initrd.
46012 (grub_load_linux): Renamed from this...
46013 (grub_rescue_cmd_linux): ...To this. Changed all callers.
46014 Changed `entry' not to be static. Loop over memory regions to
46015 find another one when the default fails.
46016 (grub_rescue_cmd_initrd): New function.
46017 (grub_linux_init): Remove function.
46018 (grub_linux_fini): Likewise.
46019 (GRUB_MOD_INIT): Register `initrd'.
46020 (GRUB_MOD_FINI): Unregister `initrd'.
46021 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
46023 (grub_linux_normal_fini): Likewise.
46024 (GRUB_MOD_INIT): Register `initrd'.
46025 (GRUB_MOD_FINI): Unregister `initrd'.
46027 2005-01-31 Marco Gerards <metgerards@student.han.nl>
46029 * commands/help.c: New file.
46030 * normal/arg.c (show_help): Renamed to...
46031 (grub_arg_show_help): ... this.
46032 * commands/i386/pc/halt.c: New file.
46033 * commands/i386/pc/reboot.c: Likewise.
46034 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
46035 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
46036 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
46037 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
46039 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46041 (pkgdata_MODULES): Add `help.mod'.
46042 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
46043 * grub/i386/pc/init.h (grub_reboot): New prototype.
46044 (grub_halt): Likewise.
46045 * include/grub/normal.h (grub_arg_show_help): New prototype.
46046 (grub_help_init): Likewise.
46047 (grub_help_fini): Likewise.
46048 * util/grub-emu.c (main): Initialize and deinitialize the help
46051 * normal/cmdline.c (grub_cmdline_get): Doc fix.
46053 * normal/command.c (grub_command_init): Fixed the description of
46054 the `set' and `unset' commands.
46056 2005-01-31 Marco Gerards <metgerards@student.han.nl>
46058 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
46060 * commands/ieee1275/halt.c: New file.
46061 * commands/ieee1275/reboot.c: Likewise.
46062 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
46063 `__attribute__ ((unused))'. Some GCS related fixed.
46064 (grub_suspend_init) [GRUB_UTIL]: Function removed.
46065 (grub_suspend_fini): Likewise.
46066 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
46068 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
46069 (halt_mod_CFLAGS): New variables.
46070 * include/grub/powerpc/ieee1275/ieee1275.h
46071 (grub_ieee1275_interpret): New prototype.
46073 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
46075 * include/grub/misc.h (memmove): New prototype.
46076 (memcpy): Likewise.
46078 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
46080 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
46081 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
46083 2005-01-22 Marco Gerards <metgerards@student.han.nl>
46085 * kern/misc.c (grub_strndup): Function rewritten.
46087 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
46089 * normal/menu.c (TERM_WIDTH): Macro redefined.
46090 (TERM_TOP_BORDER_Y): Likewise.
46091 (draw_border): Replaced while-loop by a for-loop. Make the number
46092 of lines consistent with the number of lines displayed in
46093 print_entries. Added a margin below the rectangle.
46094 (print_entry): Make the entry fit in the rectangle.
46095 (print_entries): Display the scroll arrows next to the right
46098 2005-01-21 Marco Gerards <metgerards@student.han.nl>
46100 * fs/minix.c (grub_minix_find_file): Reserve more space for
46101 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
46102 `grub_strncpy' to copy `path' into it.
46104 2005-01-21 Marco Gerards <metgerards@student.han.nl>
46106 Add the loopback device, a device via which files can be accessed
46109 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
46110 (pkgdata_MODULES): Add loopback.mod.
46111 (loopback_mod_SOURCES): New variable.
46112 (loopback_mod_CFLAGS): Likewise.
46113 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46115 (pkgdata_MODULES): Add loopback.mod.
46116 (loopback_mod_SOURCES): New variable.
46117 (loopback_mod_CFLAGS): Likewise.
46118 * disk/loopback.c: new file.
46119 * include/grub/normal.h (grub_loop_init): New prototype.
46120 (grub_loop_fini): New prototype.
46121 * util/grub-emu.c (main): Initialize and de-initialize loopback
46123 * include/grub/disk.h (grub_disk_dev_id): Add
46124 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
46126 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
46128 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
46130 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
46131 (suspend_mod_SOURCES): New variable.
46132 (suspend_mod_CFLAGS): Likewise.
46133 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
46135 * commands/ieee1275/suspend.c: New file.
46137 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
46139 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
46140 ((unused))' to `__attribute__ ((used))'.
46141 (GRUB_MOD_FINI): Likewise.
46142 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
46143 * genmk.rb (PModule): Assign space to common symbols when linking
46146 2005-01-20 Marco Gerards <metgerards@student.han.nl>
46148 * include/grub/mm.h (grub_mm_init_region): Change the type of the
46149 `unsigned' arguments to `grub_size_t'.
46150 (grub_malloc): Likewise.
46151 (grub_realloc): Likewise.
46152 (grub_memalign): Likewise.
46153 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
46154 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
46155 * util/misc.c (grub_malloc): Likewise.
46156 (grub_realloc): Likewise.
46157 * kern/mm.c (get_header_from_pointer): Change the casts to
46158 `unsigned' into a cast to `grub_size_t'.
46160 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
46161 point to `currnode' when `currnode' is changed.
46163 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
46164 Schottelius <nico-linux@schottelius.org>.
46166 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
46168 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
46169 (note_path): Remove variable.
46170 (GRUB_IEEE1275_NOTE_NAME): New macro.
46171 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
46172 (grub_ieee1275_note_hdr): New structure.
46173 (grub_ieee1275_note_desc): Likewise.
46174 (grub_ieee1275_note): Likewise.
46175 (load_note): Remove `dir' argument. All callers updated. Remove
46176 `note_img' and `path'. Do not load a file from `note_path'.
46177 Initialize a struct grub_ieee1275_note and write that to `out'.
46178 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
46180 2005-01-05 Marco Gerards <metgerards@student.han.nl>
46182 * util/misc.c (grub_util_read_image): Revert last change. It
46183 called `grub_util_read_at', which seeks from the beginning of the
46186 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
46188 * TODO: Add note about endianness in grub-mkimage.
46189 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
46191 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
46192 (grub_mkimage_SOURCES): New target.
46193 * include/grub/kernel.h (grub_start_addr): Remove variable.
46194 (grub_end_addr): Likewise.
46195 (grub_total_module_size): Likewise.
46196 (grub_kernel_image_size): Likewise.
46197 (GRUB_MODULE_MAGIC): New constant.
46198 (grub_module_info): New structure.
46199 (grub_arch_modules_addr): New prototype.
46200 (grub_get_end_addr): Remove prototype.
46201 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
46202 * include/grub/powerpc/ieee1275/kernel.h: New file.
46203 * include/grub/util/misc.h (grub_util_get_fp_size): New
46205 (grub_util_read_at): Likewise.
46206 (grub_util_write_image_at): Likewise.
46207 * kern/main.c (grub_get_end_addr): Remove function.
46208 (grub_load_modules): Call grub_arch_modules_addr instead of using
46209 grub_end_addr. Look for a grub_module_info struct in memory. Use
46210 the grub_module_info fields instead of calling grub_get_end_addr
46211 as loop conditions. Move grub_add_unused_region code here.
46212 (grub_add_unused_region): Remove function.
46213 * kern/i386/pc/init.c: Include grub/cache.h.
46214 (grub_machine_init): Remove call to grub_get_end_addr. Remove
46215 one call to add_mem_region.
46216 (grub_arch_modules_addr): New function.
46217 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
46218 (grub_total_module_size): Likewise.
46219 Include grub/machine/kernel.h.
46220 (grub_arch_modules_addr): New function.
46221 * util/grub-emu.c (grub_end_addr): Remove variable.
46222 (grub_total_module_size): Likewise.
46223 (grub_arch_modules_addr): New function.
46224 * util/misc.c: Include unistd.h.
46225 (grub_util_get_fp_size): New function.
46226 (grub_util_read_at): Likewise.
46227 (grub_util_write_image_at): Likewise.
46228 (grub_util_read_image): Call grub_util_read_at.
46229 (grub_util_write_image): Call grub_util_write_image_at.
46230 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
46231 additional memory in kernel_img for a struct grub_module_info.
46232 Fill in that grub_module_info.
46233 * util/powerpc/ieee1275/grub-mkimage.c: New file.
46235 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
46237 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
46239 * include/grub/powerpc/ieee1275/ieee1275.h
46240 (grub_ieee1275_milliseconds): New prototype.
46241 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
46243 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
46244 grub_ieee1275_milliseconds.
46246 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
46248 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
46250 (find_options): New function.
46251 (cmain): Call find_options.
46252 * include/grub/powerpc/ieee1275/ieee1275.h
46253 (grub_ieee1275_realmode): New extern variable.
46254 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
46255 grub_map if grub_ieee1275_realmode is false.
46257 2004-12-29 Marco Gerards <metgerards@student.han.nl>
46259 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
46260 lines are inserted and make it work like readline. Reported by
46261 Vincent Pelletier <subdino2004@yahoo.fr>.
46263 2004-12-28 Marco Gerards <metgerards@student.han.nl>
46265 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
46267 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
46268 `kern/powerpc/cache.S'.
46270 2004-12-27 Marco Gerards <metgerards@student.han.nl>
46272 * genmk.rb: Handle the `Program' class in the main loop. Written
46273 by Johan Rydberg <jrydberg@gnu.org>.
46274 (Program): New class.
46275 (programs): New variable.
46276 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
46277 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
46278 instead of "grub/kernel.h". Include <grub/machine/init.h>.
46279 (help_arch): Function removed.
46280 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
46281 `powerpc/libgcc.h' and `loader.h'.
46282 (pkgdata_PROGRAMS): New variable.
46283 (sbin_UTILITIES): Variable removed.
46284 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
46285 (grubof_SOURCES): Variable re-defined so it only includes the
46286 core functionality.
46287 (grubof_CFLAGS): Remove `-DGRUBOF'.
46288 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
46289 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
46290 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
46291 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
46292 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
46293 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
46294 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
46295 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
46296 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
46297 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
46298 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
46299 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
46300 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
46301 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
46302 (pc_mod_CFLAGS): New variables.
46303 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
46304 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
46305 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
46306 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
46308 * include/grub/i386/pc/init.h (grub_os_area_addr)
46309 (rub_os_area_size): ... to here.
46310 * include/grub/powerpc/ieee1275/ieee1275.h
46311 (grub_ieee1275_entry_fn): Export symbol.
46312 * include/grub/powerpc/ieee1275/init.h: New file.
46313 * include/grub/powerpc/libgcc.h: Likewise.
46314 * include/grub/cache.h: Likewise.
46315 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
46316 <hollis@penguinppc.org>.
46317 * kern/dl.c: Include <grub/cache.h>.
46318 (grub_dl_flush_cache): New function.
46319 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
46321 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
46322 (grub_console_init): Removed prototypes.
46323 (grub_machine_init): Don't initialize the modules anymore.
46324 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
46326 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
46327 Macro undef removed.
46328 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
46329 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
46330 relocation `R_PPC_REL32'. Return an error when the relocation is
46332 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
46333 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
46334 * util/misc.c (grub_arch_sync_caches): Likewise.
46336 2004-12-19 Marco Gerards <metgerards@student.han.nl>
46338 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
46339 `symlist.c', add `grubof_symlist.c'.
46340 (symlist.c): Variable removed.
46341 (grubof_HEADERS): Variable added.
46342 (grubof_symlist.c): New target.
46343 (kernel_syms.lst): Use `grubof_HEADERS' instead of
46344 `kernel_img_HEADERS'.
46345 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
46346 * kern/powerpc/dl.c: New file.
46347 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
46349 (grub_arch_dl_relocate_symbols): Likewise.
46350 (grub_register_exported_symbols): Likewise.
46352 2004-12-13 Marco Gerards <metgerards@student.han.nl>
46354 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
46355 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
46356 to fail instead. Reported by Vincent Pelletier
46357 <subdino2004@yahoo.fr>.
46359 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
46360 it is not allocated. Reported by Vincent Pelletier
46361 <subdino2004@yahoo.fr>.
46363 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
46364 output so the output looks better.
46366 2004-12-04 Marco Gerards <metgerards@student.han.nl>
46368 Modulize the partition map support and add support for the amiga
46371 * commands/ls.c: Include <grub/partition.h> instead of
46372 <grub/machine/partition.h>.
46373 * kern/disk.c: Likewise.
46374 * kern/rescue.c: Likewise.
46375 * loader/i386/pc/chainloader.c: Likewise.
46376 * normal/cmdline.c: Likewise.
46377 * kern/powerpc/ieee1275/init.c: Likewise.
46378 (grub_machine_init): Call `grub_pc_partition_map_init',
46379 `grub_amiga_partition_map_init' and
46380 `grub_apple_partition_map_init'.
46381 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
46382 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
46383 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
46384 `partition.h' and `pc_partition.h'.
46385 (grub_setup_SOURCES): Remove
46386 `disk/i386/pc/partition.c'. Add `kern/partition.c',
46387 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
46388 (grub_emu_SOURCES): Likewise.
46389 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
46390 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
46391 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
46392 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
46393 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
46394 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
46395 (grubof_SOURCES): Likewise.
46396 * disk/i386/pc/partition.c: File removed.
46397 * disk/powerpc/ieee1275/partition.c: Likewise.
46398 * include/grub/powerpc/ieee1275/partition.h: Likewise.
46399 * include/grub/i386/pc/partition.h: Likewise.
46400 * kern/partition.c: New file.
46401 * partmap/amiga.c: Likewise.
46402 * partmap/apple.c: Likewise.
46403 * partmap/pc.c: Likewise.
46404 * include/grub/partition.h: Likewise..
46405 * include/grub/pc_partition.h: Likewise.
46406 * util/grub-emu.c: Include <grub/partition.h> instead of
46407 <grub/machine/partition.h>.
46408 (main): Call `grub_pc_partition_map_init',
46409 `grub_amiga_partition_map_init' and
46410 `grub_apple_partition_map_init' and deinitialize afterwards.
46411 * util/i386/pc/biosdisk.c: Include `#include
46412 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
46413 `<grub/machine/partition.h>'.
46414 * util/i386/pc/grub-setup.c: Likewise.
46415 * util/i386/pc/biosdisk.c: Likewise.
46416 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
46417 partition information in case of a PC partition.
46418 * util/i386/pc/grub-setup.c: Include `#include
46419 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
46420 `<grub/machine/partition.h>'.
46421 (setup): Only access the PC specific partition information in case
46424 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
46426 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
46427 (grub_longjmp): Likewise.
46428 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
46430 * normal/powerpc/setjmp.S: New file.
46431 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
46432 `normal/powerpc/setjmp.S'.
46433 (grubof_CFLAGS): Add `-DGRUBOF'.
46434 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
46435 [GRUB_UTIL && !GRUBOF].
46437 2004-11-16 Marco Gerards <metgerards@student.han.nl>
46439 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
46440 property named `name'. Correctly handle the error returned by
46441 `grub_ieee1275_finddevice' if a device can not be opened.
46443 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
46445 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
46446 `actual' for negativity.
46447 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
46450 2004-11-01 Marco Gerards <metgerards@student.han.nl>
46452 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
46453 (PAGE_OFFSET): New macro.
46454 (CRTC_ADDR_PORT): Likewise.
46455 (CRTC_DATA_PORT): Likewise.
46456 (START_ADDR_HIGH_REGISTER): Likewise.
46457 (START_ADDR_LOW_REGISTER): Likewise.
46458 (GRAPHICS_ADDR_PORT): Likewise.
46459 (GRAPHICS_DATA_PORT): Likewise.
46460 (READ_MAP_REGISTER): Likewise.
46461 (INPUT_STATUS1_REGISTER): Likewise.
46462 (INPUT_STATUS1_VERTR_BIT): Likewise.
46463 (page): New variable.
46464 (wait_vretrace): New function.
46465 (set_read_map): Likewise.
46466 (set_start_address): Likewise.
46467 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
46469 (check_vga_mem): Take the page into account.
46470 (write_char): Likewise.
46471 (write_cursor): Likewise.
46472 (scroll_up): Likewise. Copy the page to the page that is not
46473 shown and switch between both pages.
46474 (grub_vga_putchar): Fix off by one error.
46475 (grub_vga_cls): Wait for the vertical retrace. Take the page into
46478 2004-11-01 Marco Gerards <metgerards@student.han.nl>
46480 Add support for iso9660 (including rockridge).
46482 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
46483 (iso9660_mod_SOURCES): New variable.
46484 (iso9660_mod_CFLAGS): Likewise.
46485 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
46486 * include/grub/fs.h (grub_iso9660_init): New prototype.
46487 * util/grub-emu.c (main): Call `grub_iso9660_init'.
46488 * fs/iso9660.c: New file.
46490 * include/grub/misc.h (grub_strncat): New prototype.
46491 * kern/misc.c (grub_strncat): New function.
46493 * fs/hfs.c (grub_hfs_mount): Translate the error
46494 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
46495 * fs/jfs.c (grub_jfs_mount): Likewise.
46496 * fs/ufs.c (grub_ufs_mount): Likewise.
46498 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
46500 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
46501 which initialized BAT registers.
46502 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
46503 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
46505 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
46506 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
46508 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
46509 (grub_mapclaim): Likewise.
46510 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
46511 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
46514 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
46516 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
46517 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
46518 -ffreestanding and -msoft-float.
46520 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
46522 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
46523 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
46524 set in grub_ieee1275_flags.
46526 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
46528 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
46530 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
46531 grub_console_init first.
46532 Change the memory range used for grub_ieee1275_claim and
46533 grub_mm_init_region.
46534 Print an error message if the claim fails.
46535 Include <grub/misc.h>.
46537 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
46539 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
46540 Call grub_children_iterate for device nodes of type `scsi',
46542 (grub_ofdisk_open): Remove manual device alias resolution.
46543 Fix memory leak when device cannot be opened.
46544 * include/grub/powerpc/ieee1275/ieee1275.h
46545 (grub_children_iterate): New prototype.
46546 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
46548 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46549 Return -1 if args.size was -1.
46551 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
46553 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
46554 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
46555 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
46556 Open Firmware's memory for it; claim memory from _start to _end.
46557 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
46558 (_end): New extern.
46559 (_start): Zero BSS from __bss_start to _end.
46560 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
46562 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
46564 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
46566 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
46567 -1 if args.base was -1.
46569 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
46571 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
46572 escape sequence instead of a literal ^L. Also call
46573 grub_ofconsole_gotoxy.
46575 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
46577 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
46578 void * arguments to grub_addr_t. All callers updated. Also make
46579 the `result' argument optional.
46580 (grub_ieee1275_release): change void * arguments to grub_addr_t.
46581 All callers updated.
46583 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
46585 * commands/ls.c (grub_ls_list_files): Use the string following the
46586 initial ')', if present, as the filesystem path.
46587 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
46589 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
46591 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
46593 Make the source code of the menu interface more readable.
46595 * normal/menu.c: Include grub/mm.h.
46596 (TERM_WIDTH): New macro.
46597 (TERM_HEIGHT): Likewise.
46598 (TERM_INFO_HEIGHT): Likewise.
46599 (TERM_MARGIN): Likewise.
46600 (TERM_SCROLL_WIDTH): Likewise.
46601 (TERM_TOP_BORDER_Y): Likewise.
46602 (TERM_LEFT_BORDER_X): Likewise.
46603 (TERM_BORDER_WIDTH): Likewise.
46604 (TERM_MESSAGE_HEIGHT): Likewise.
46605 (TERM_BORDER_HEIGHT): Likewise.
46606 (TERM_NUM_ENTRIES): Likewise.
46607 (TERM_FIRST_ENTRY_Y): Likewise.
46608 (TERM_ENTRY_WIDTH): Likewise.
46609 (TERM_CURSOR_X): Likewise.
46610 (draw_border): Use macros instead of magic numbers.
46611 (print_entry): Likewise.
46612 (print_entries): Likewise.
46613 (run_menu): Likewise. Also, handle the key 'e'.
46614 (run_menu_entry): Ignore empty command lines.
46615 (print_message): Added a new argument EDIT. If EDIT is true,
46616 print a different message.
46617 (init_page): Likewise.
46618 (edit_menu_entry): New function. Not implemented yet.
46620 2004-09-17 Marco Gerards <metgerards@student.han.nl>
46622 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
46623 can be loaded from normal mode.
46625 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
46627 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
46628 (multiboot_mod_CFLAGS): New variables.
46629 * loader/i386/pc/linux_normal.c: New file.
46630 * loader/i386/pc/multiboot_normal.c: Likewise.
46632 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
46633 attribute `unused'.
46635 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
46636 `fdiro' to read the mode information from instead of `diro'.
46638 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
46639 looking up a symlink.
46641 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
46643 * normal/command.c (grub_command_execute): Don't parse the
46644 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
46645 flags of the command.
46647 * normal/menu.c (grub_menu_run): Fix typo.
46649 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
46651 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
46653 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
46654 `y + 1' instead of `y - 1'.
46656 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
46658 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
46660 From Hollis Blanchard <hollis@penguinppc.org>:
46661 * kern/misc.c (memmove): New alias for grub_memmove.
46662 (memcmp): New alias for grub_memcmp.
46663 (memset): New alias for grub_memset.
46664 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46665 Change "int handle" to "grub_ieee1275_phandle_t handle".
46666 * include/grub/powerpc/ieee1275/ieee1275.h
46667 (grub_ieee1275_get_property): Likewise.
46669 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
46671 Added normal mode command `chainloader' as module chain.mod, which
46672 depends on normal.mod and _chain.mod.
46674 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
46675 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
46676 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
46678 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
46679 but arguments parsing moved to ...
46680 (grub_chainloader_cmd): ... here. New function.
46681 * include/grub/i386/pc/chainloader.h: New file.
46682 * loader/i386/pc/chainloader_normal.c: Likewise.
46684 2004-09-11 Marco Gerards <metgerards@student.han.nl>
46686 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
46687 (grub_mkimage_LDFLAGS): Likewise.
46688 (grub_emu_SOURCES): Likewise.
46689 (kernel_img_HEADERS): Added fshelp.h.
46690 * fs/ext2.c: Include <grub/fshelp.h>.
46691 (FILETYPE_REG): New macro.
46692 (FILETYPE_INO_REG): Likewise.
46693 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
46695 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
46697 (grub_fshelp_node): New struct.
46698 (grub_ext2_data): Added member `diropen'. Changed member `inode'
46700 (grub_ext2_get_file_block): Removed function.
46701 (grub_ext2_read_block): New function.
46702 (grub_ext2_read_file): Replaced parameter `data' by `node'.
46703 This function was written.
46704 (grub_ext2_mount): Read the root inode. Create a diropen struct.
46705 (grub_ext2_find_file): Removed function.
46706 (grub_ext2_read_symlink): New function.
46707 (grub_ext2_iterate_dir): Likewise.
46708 (grub_ext2_open): Rewritten.
46709 (grub_ext2_dir): Rewritten.
46710 * include/grub/fshelp.h: New file.
46711 * fs/fshelp.c: Likewise.
46713 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
46715 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
46716 (print_message): Add a missing newline.
46717 (run_menu): Added timeout support.
46718 (run_menu_entry): New local function.
46719 (grub_menu_run): Added support for booting.
46721 * kern/loader.c (grub_loader_is_loaded): New function.
46723 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
46724 (grub_get_rtc): Exported.
46726 * include/grub/i386/pc/time.h: Include grub/symbol.h.
46727 (grub_get_rtc): Exported.
46729 * include/grub/normal.h (struct grub_command_list): Remove
46730 constant from the member `command'.
46732 * include/grub/loader.h (grub_loader_is_loaded): Declared.
46734 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
46736 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
46738 2004-08-28 Marco Gerards <metgerards@student.han.nl>
46740 Add support for the JFS filesystem.
46742 * fs/jfs.c: New file.
46743 * include/grub/fs.h (grub_jfs_init): New prototype.
46744 (grub_jfs_fini): New prototype.
46745 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
46746 (grub_emu_SOURCES): Likewise.
46747 (pkgdata_MODULES): Add jfs.mod.
46748 (jfs_mod_SOURCES): New variable.
46749 (jfs_mod_CFLAGS): Likewise.
46750 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
46751 (grubof_SOURCES): Likewise.
46752 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
46754 * fs/fat.c (grub_fat_find_dir): Convert the filename little
46755 endian to the host endian.
46756 (grub_fat_utf16_to_utf8): Move function from there...
46757 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
46758 the endianness of the source string anymore.
46759 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
46761 2004-08-24 Marco Gerards <metgerards@student.han.nl>
46763 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
46764 (grub_boot_fini) [GRUB_UTIL]: Likewise.
46765 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
46766 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
46768 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
46769 (grub_hfs_iterate_dir): Make the function static. Add prototypes
46770 for `node_found' and `it_dir'.
46771 (grub_hfs_dir): Add prototype for `dir_hook'.
46773 * fs/minix.c (grub_minix_get_file_block): Add prototype for
46774 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
46775 and `indir32' to silence a gcc warning.
46777 * include/grub/fs.h (grub_hfs_init): New prototype.
46778 (grub_hfs_fini): Likewise.
46781 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
46783 Each disk device has its own id now. This is useful to make use
46784 of multiple disk devices.
46786 * include/grub/disk.h (grub_disk_dev_id): New enum.
46787 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
46788 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
46790 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
46791 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
46793 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
46794 GRUB_DISK_DEVICE_OFDISK_ID as an id.
46796 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
46797 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
46799 * include/grub/disk.h (struct grub_disk_dev): Added a new member
46800 "id" which is used by the cache manager.
46802 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
46805 2004-08-18 Marco Gerards <metgerards@student.han.nl>
46807 * fs/hfs.c: New file.
46808 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
46809 (grub_emu_SOURCES): Likewise.
46810 (pkgdata_MODULES): Add hfs.mod.
46811 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
46812 (grubof_SOURCES): Likewise.
46813 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
46815 * include/grub/misc.h (grub_strncasecmp): Add prototype.
46816 * kern/misc.c (grub_strncasecmp): Add function.
46818 2004-08-14 Marco Gerards <metgerards@student.han.nl>
46820 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
46823 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
46824 (grub_ext2_dir): In case the directory entry type is unknown, read
46827 2004-08-02 Peter Bruin <pjbruin@dds.nl>
46829 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
46830 grub_load_linux instead of grub_rescue_cmd_linux as second
46831 argument of grub_rescue_register_command.
46833 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
46835 2004-07-27 Marco Gerards <metgerards@student.han.nl>
46837 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
46839 * commands/boot.c: Remove the check for `GRUB_UTIL'.
46840 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
46841 `loader/powerpc/ieee1275/linux.c',
46842 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
46843 * include/grub/powerpc/ieee1275/ieee1275.h
46844 (grub_ieee1275_release): New prototype.
46845 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
46846 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
46847 normal, boot, linux and linux_normal.
46848 * loader/powerpc/ieee1275/linux.c: New file.
46849 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
46851 2004-07-12 Marco Gerards <metgerards@student.han.nl>
46853 * normal/arg.c (grub_arg_parse): Correct error handling after
46854 reallocating the argumentlist (check if `argl' is not null instead
46855 of checking if `args' is not null).
46856 * kern/mm.c (grub_realloc): Return the same pointer when using the
46857 same region, instead of returning the header address.
46859 2004-07-11 Marco Gerards <metgerards@student.han.nl>
46861 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
46862 one block instead of two when looking for the initial partition.
46863 (grub_partition_probe): Initialize the local variable `p' with 0.
46864 Use base 10 for the grub_strtoul call.
46865 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
46866 need for one local variable.
46867 (grub_strtoul): Don't add the new value to `num', instead of that
46870 2004-07-11 Marco Gerards <metgerards@student.han.nl>
46872 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
46873 (pxeboot_img_SOURCES): New variable.
46874 (pxeboot_img_ASFLAGS): Likewise.
46875 (pxeboot_img_LDFLAGS): Likewise.
46876 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
46877 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
46878 <lode_leroy@hotmail.com>.
46880 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
46882 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
46883 there was no input.
46885 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
46887 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
46888 the history buffer logic.
46890 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
46892 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
46893 (FILETYPE_INO_SYMLINK): New macros.
46894 (grub_ext2_find_file): Check if the node is a directory using the
46895 inode stat information instead of using the filetype in the
46896 dirent. Exclude the first character of an absolute symlink.
46897 (grub_ext2_dir): Mask out the filetype part of the mode member of
46900 2004-05-24 Marco Gerards <metgerards@student.han.nl>
46902 Add support for UFS version 1 and 2. Add support for the minix
46903 filesystem version 1 and 2, both the variants with 14 and 30 long
46906 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
46908 (grub_emu_SOURCES): Likewise.
46909 (pkgdata_MODULES): Add ufs.mod and minix.mod.
46910 (ufs_mod_SOURCES): New variable.
46911 (ufs_mod_CFLAGS): Likewise.
46912 (minix_mod_SOURCES): Likewise.
46913 (minix_mod_CFLAGS): Likewise.
46914 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
46916 (grubof_SOURCES): Likewise.
46917 * fs/ufs.c: New file.
46918 * fs/minix.c: New file.
46919 * include/grub/fs.h (grub_ufs_init): New prototype.
46920 (grub_ufs_fini): Likewise.
46921 (grub_minix_init): Likewise.
46922 (grub_minix_fini): Likewise.
46923 * util/grub-emu.c (main): Initialize and deinitialize UFS and
46926 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
46928 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
46929 commands/ls.c, commands/terminal.c, commands/boot.c,
46930 commands/cmp.c and commands/cat.c.
46931 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
46933 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
46936 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
46938 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
46939 and grub_, respectively. Because the conversion is trivial and
46940 mechanical, I omit the details here. Please refer to the CVS
46941 if you need more information.
46943 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
46945 * include/pupa: Renamed to ...
46946 * include/grub: ... this.
46947 * util/i386/pc/pupa-mkimage.c: Renamed to ...
46948 * util/i386/pc/grub-mkimage.c: ... this.
46949 * util/i386/pc/pupa-setup.c: Renamed to ...
46950 * util/i386/pc/grub-setup.c: ... this.
46951 * util/pupa-emu.c: Renamed to ...
46952 * util/grub-emu.c: ... this.
46954 2004-03-29 Marco Gerards <metgerards@student.han.nl>
46956 Add support for the newworld apple macintosh (PPC). This has been
46957 tested on the powerbook 2000 only. It only adds support for
46958 generic ieee1275 functions, console and disk support. This should
46959 be easy to port to other architectures with support for Open
46962 * configure.ac: Accept the powerpc as host_cpu. In the case of
46963 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
46964 specific tests are only executed while building for the i386.
46965 Inverse test for crosscompile.
46966 * genmk.rb (Utility): Allow assembler files.
46967 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
46968 * conf/powerpc-ieee1275.rmk: New file.
46969 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
46970 * disk/powerpc/ieee1275/partition.c: Likewise.
46971 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
46972 * include/pupa/powerpc/ieee1275/console.h: Likewise.
46973 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
46974 * include/pupa/powerpc/ieee1275/time.h: Likewise.
46975 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
46976 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
46977 * include/pupa/powerpc/ieee1275/loader.h
46978 * include/pupa/powerpc/setjmp.h: Likewise.
46979 * include/pupa/powerpc/types.h: Likewise.
46980 * kern/powerpc/ieee1275/init.c: Likewise.
46981 * kern/powerpc/ieee1275/openfw.c: Likewise.
46982 * term/powerpc/ieee1275/ofconsole.c: Likewise.
46984 These files were written by Johan Rydberg
46985 (jrydberg@night.trouble.net) and I only modified them slightly.
46987 * boot/powerpc/ieee1275/cmain.c: New file.
46988 * boot/powerpc/ieee1275/crt0.S: Likewise.
46989 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
46990 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
46992 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
46994 * Makefile.in: Update copyright.
46995 * genmodsrc.sh: Likewise.
46996 * gensymlist.sh: Likewise.
46997 * term/i386/pc/vga.c: Indent correctly.
46999 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
47000 bugreporting address.
47001 * util/i386/pc/pupa-setup.c (usage): Likewise,
47002 (main): Call pupa_ext2_init and pupa_ext2_fini.
47004 * fs/fat.c (log2): Renamed to ...
47005 (fat_log2): ... this.
47006 All callers changed.
47007 * kern/misc.c (memcpy): Alias to pupa_memmove.
47008 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
47010 * util/console.c (pupa_ncurses_fini): Return 0.
47012 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
47013 Move fail label here.
47014 [__GNU__]: Don't warn when using stat.
47015 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
47016 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
47017 long int. Use strtol instead of strtoul.
47019 2004-03-14 Marco Gerards <metgerards@student.han.nl>
47021 * commands/boot.c: New file.
47022 * commands/cat.c: Likewise.
47023 * commands/cmp.c: Likewise.
47024 * commands/ls.c: Likewise.
47025 * commands/terminal.c: Likewise.
47026 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
47027 (pupa_register_command): Changed interface to match the new
47029 (pupa_command_execute): Changed (almost rewritten) so it uses
47030 pupa_split_command. Added support for setting variables using the
47032 (rescue_command): Changed to work with the new argument parser.
47033 (terminal_command): Moved from here to commands/terminal.c.
47034 (set_command): New function.
47035 (unset_command): New function.
47036 (insmod_command): New function.
47037 (rmmod_command): New function.
47038 (lsmod_command): New function.
47039 (pupa_command_init): Don't initialize the command terminal
47040 anymore. Initialize the commands set, unset, insmod, rmmod and
47042 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
47043 (kernel_img_HEADERS): Add arg.h and env.h.
47044 (pupa_mkimage_LDFLAGS): Add kern/env.c.
47045 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
47046 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
47048 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
47050 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
47051 (boot_mod_SOURCES): New variable.
47052 (terminal_mod_SOURCES): Likewise.
47053 (ls_mod_SOURCES): Likewise.
47054 (cmp_mod_SOURCES): Likewise.
47055 (cat_mod_SOURCES): Likewise.
47057 * normal/arg.c: New file.
47058 * kern/env.c: Likewise.
47059 * include/pupa/arg.h: Likewise.
47060 * include/pupa/env.h: Likewise.
47061 * font/manager.c (font_command): Changed to match argument parsing
47063 (PUPA_MOD_INIT): Likewise.
47064 * hello/hello.c (pupa_cmd_hello): Likewise.
47065 (PUPA_MOD_INIT): Likewise.
47066 * include/pupa/disk.h: Include <pupa/device.h>.
47067 (pupa_print_partinfo): New prototype.
47068 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
47069 (pupa_dl_get_prefix): Likewise.
47070 * include/pupa/misc.h: Include <pupa/err.h>.
47071 (pupa_isgraph): New prototype.
47072 (pupa_isdigit): Likewise.
47073 (pupa_split_cmdline): Likewise.
47074 * include/pupa/normal.h: Include <pupa/arg.h>.
47075 (pupa_command): Changed the prototype of the member `func' to
47076 match the argument parsing interface. Added member `options'.
47077 (pupa_register_command): Updated to match function.
47078 (pupa_arg_parse): New prototype.
47079 (pupa_hello_init) [PUPA_UTIL]: New prototype.
47080 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
47081 (pupa_ls_init) [PUPA_UTIL]: Likewise.
47082 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
47083 (pupa_cat_init) [PUPA_UTIL]: Likewise.
47084 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
47085 (pupa_boot_init) [PUPA_UTIL]: Likewise.
47086 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
47087 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
47088 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
47089 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
47090 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
47091 * kern/disk.c: Include <pupa/file.h>.
47092 (pupa_print_partinfo): New function.
47093 * kern/dl.c: Include <pupa/env.h>.
47094 (pupa_dl_dir): Variable removed.
47095 (pupa_dl_load): Use the environment variable `prefix' instead of
47096 the variable pupa_dl_dir.
47097 (pupa_dl_set_prefix): Function removed.
47098 (pupa_dl_get_prefix): Likewise.
47099 * kern/i386/pc/init.c: Include <pupa/env.h>.
47100 (pupa_machine_init): Use the environment variable `prefix' instead of
47101 using pupa_dl_set_prefix to set the prefix.
47102 * kern/main.c: Include <pupa/env.h>.
47103 (pupa_set_root_dev): Use the environment variable `prefix' instead of
47104 using pupa_dl_get_prefix to get the prefix.
47105 * kern/misc.c: Include <pupa/env.h>.
47106 (pupa_isdigit): New function.
47107 (pupa_isgraph): Likewise.
47108 (pupa_ftoa): Likewise.
47109 (pupa_vsprintf): Added support for printing values of the type
47110 `double'. Make it possible to format variable output when using
47111 formatting like `%1.2%f'.
47112 (pupa_split_cmdline): New function.
47113 * kern/rescue.c: Include <pupa/env.h>.
47114 (next_word): Removed function.
47115 (pupa_rescue_cmd_prefix): Likewise.
47116 (pupa_rescue_cmd_set): New function.
47117 (pupa_rescue_cmd_unset): New function.
47118 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
47119 split the command line instead of splitting it here. Added
47120 support for setting variables using the syntax `foo=bar'. Don't
47121 initialize the prefix command anymore. Initialized the set and
47123 * normal/cmdline.c: Include <pupa/env.h>.
47124 (pupa_tab_complete): Added prototypes for print_simple_completion,
47125 print_partition_completion, add_completion, iterate_commands,
47126 iterate_dev, iterate_part and iterate_dir. Moved code to print
47127 partition information from here to kern/disk.c.
47128 (pupa_cmdline_run): Don't check if the function exists anymore.
47129 * normal/main.c: Include <pupa/env.h>.
47130 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
47131 instead of using pupa_dl_get_prefix to get the prefix.
47132 * term/i386/pc/vga.c: Include <pupa/arg.h>.
47133 (check_vga_mem): Cast pointers to `void *' to silence a gcc
47135 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
47136 (pupa_vga_setcolor): Declare unused variables with `__attribute__
47137 ((unused))' to silence a gcc warning.
47138 (pupa_vga_setcolor): Likewise.
47139 (debug_command): Changed to match argument parsing
47141 * util/pupa-emu.c: Include <pupa/env.h>.
47142 (options): Added 0's for unused fields to silence a gcc warning.
47144 (main): Use the environment variable `prefix' instead of using
47145 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
47146 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
47149 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
47150 * util/misc.c: Include <malloc.h>.
47151 (pupa_malloc): Rewritten so errors are correctly reported.
47152 (pupa_realloc): Likewise.
47153 (pupa_memalign): Likewise.
47154 (pupa_mm_init_region): Declare unused variables with
47155 `__attribute__ ((unused))' to silence a gcc warning.
47156 * normal/i386/setjmp.S: Remove tab at the end of the file to
47157 silence a gcc warning.
47158 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
47159 variables with `__attribute__ ((unused))' to silence a gcc
47161 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
47162 local variable i unsigned to silence a gcc warning.
47164 * kern/term.c: Include <pupa/misc.h>.
47165 (pupa_more_lines): New variable.
47166 (pupa_more): Likewise.
47167 (pupa_putcode): When the pager is active pause at the end of every
47169 (pupa_set_more): New function.
47170 * include/pupa/term.h (pupa_set_more): New prototype.
47173 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
47175 Now this project is GRUB 2 rather than PUPA. The location of
47176 the CVS repository was moved to GRUB's.
47178 * configure.ac: Use bug-grub as the reporting address.
47179 Use GRUB instead of PUPA.
47180 Change the version number to 1.90.
47182 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
47184 * genkernsyms.sh: Updated copyright information.
47185 * genmk.rb: Likewise.
47186 * genmodsrc.sh: Likewise.
47187 * gensymlist.sh: Likewise.
47188 * boot/i386/pc/boot.S: Likewise.
47189 * boot/i386/pc/diskboot.S: Likewise.
47190 * disk/i386/pc/biosdisk.c: Likewise.
47191 * disk/i386/pc/partition.c: Likewise.
47192 * font/manager.c: Likewise.
47193 * fs/ext2.c: Likewise.
47194 * fs/fat.c: Likewise.
47195 * include/pupa/boot.h: Likewise.
47196 * include/pupa/device.h: Likewise.
47197 * include/pupa/disk.h: Likewise.
47198 * include/pupa/dl.h: Likewise.
47199 * include/pupa/elf.h: Likewise.
47200 * include/pupa/err.h: Likewise.
47201 * include/pupa/file.h: Likewise.
47202 * include/pupa/font.h: Likewise.
47203 * include/pupa/fs.h: Likewise.
47204 * include/pupa/kernel.h: Likewise.
47205 * include/pupa/loader.h: Likewise.
47206 * include/pupa/misc.h: Likewise.
47207 * include/pupa/mm.h: Likewise.
47208 * include/pupa/net.h: Likewise.
47209 * include/pupa/normal.h: Likewise.
47210 * include/pupa/rescue.h: Likewise.
47211 * include/pupa/setjmp.h: Likewise.
47212 * include/pupa/symbol.h: Likewise.
47213 * include/pupa/term.h: Likewise.
47214 * include/pupa/types.h: Likewise.
47215 * include/pupa/i386/setjmp.h: Likewise.
47216 * include/pupa/i386/types.h: Likewise.
47217 * include/pupa/i386/pc/biosdisk.h: Likewise.
47218 * include/pupa/i386/pc/boot.h: Likewise.
47219 * include/pupa/i386/pc/console.h: Likewise.
47220 * include/pupa/i386/pc/init.h: Likewise.
47221 * include/pupa/i386/pc/kernel.h: Likewise.
47222 * include/pupa/i386/pc/linux.h: Likewise.
47223 * include/pupa/i386/pc/loader.h: Likewise.
47224 * include/pupa/i386/pc/memory.h: Likewise.
47225 * include/pupa/i386/pc/multiboot.h: Likewise.
47226 * include/pupa/i386/pc/partition.h: Likewise.
47227 * include/pupa/i386/pc/time.h: Likewise.
47228 * include/pupa/i386/pc/vga.h: Likewise.
47229 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
47230 * include/pupa/util/getroot.h: Likewise.
47231 * include/pupa/util/misc.h: Likewise.
47232 * include/pupa/util/resolve.h: Likewise.
47233 * kern/device.c: Likewise.
47234 * kern/disk.c: Likewise.
47235 * kern/dl.c: Likewise.
47236 * kern/err.c: Likewise.
47237 * kern/file.c: Likewise.
47238 * kern/fs.c: Likewise.
47239 * kern/loader.c: Likewise.
47240 * kern/main.c: Likewise.
47241 * kern/misc.c: Likewise.
47242 * kern/mm.c: Likewise.
47243 * kern/rescue.c: Likewise.
47244 * kern/term.c: Likewise.
47245 * kern/i386/dl.c: Likewise.
47246 * kern/i386/pc/init.c: Likewise.
47247 * kern/i386/pc/lzo1x.S: Likewise.
47248 * kern/i386/pc/startup.S: Likewise.
47249 * loader/i386/pc/chainloader.c: Likewise.
47250 * loader/i386/pc/linux.c: Likewise.
47251 * loader/i386/pc/multiboot.c: Likewise.
47252 * normal/cmdline.c: Likewise.
47253 * normal/command.c: Likewise.
47254 * normal/main.c: Likewise.
47255 * normal/menu.c: Likewise.
47256 * normal/i386/setjmp.S: Likewise.
47257 * term/i386/pc/console.c: Likewise.
47258 * term/i386/pc/vga.c: Likewise.
47259 * util/console.c: Likewise.
47260 * util/genmoddep.c: Likewise.
47261 * util/misc.c: Likewise.
47262 * util/pupa-emu.c: Likewise.
47263 * util/resolve.c: Likewise.
47264 * util/unifont2pff.rb: Likewise.
47265 * util/i386/pc/biosdisk.c: Likewise.
47266 * util/i386/pc/getroot.c: Likewise.
47267 * util/i386/pc/pupa-mkimage.c: Likewise.
47268 * util/i386/pc/pupa-setup.c: Likewise.
47270 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
47272 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
47273 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
47274 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
47275 reading and reset it after reading.
47276 (pupa_ext2_close): Return PUPA_ERR_NONE.
47278 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
47280 (struct linux_kernel_header): Add kernel_version and
47282 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
47283 pupa_file_read succeeds.
47284 (pupa_rescue_cmd_initrd): Implement.
47286 2003-12-03 Marco Gerards <metgerards@student.han.nl>
47288 * fs/ext2.c (pupa_ext2_label): New function.
47289 (pupa_ext2_fs): Added label.
47290 * fs/fat.c (pupa_fat_label): New function.
47291 (pupa_fat_fs): Added label.
47292 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
47294 * kern/misc.c (pupa_strndup): New function.
47295 * include/pupa/misc.h (pupa_strndup): New prototype.
47297 * include/pupa/normal.h: Include <pupa/err.h>.
47298 (pupa_set_history): New prototype.
47299 (pupa_iterate_commands): New prototype.
47300 * normal/cmdline.c: Include <pupa/machine/partition.h>,
47301 <pupa/disk.h>, <pupa/file.h>.
47302 (hist_size): New variable.
47303 (hist_lines): Likewise.
47304 (hist_end): Likewise.
47305 (hist_used): Likewise.
47306 (pupa_set_history): New function.
47307 (pupa_history_get): Likewise.
47308 (pupa_history_add): Likewise.
47309 (pupa_history_replace): Likewise.
47310 (pupa_tab_complete): Likewise.
47311 (pupa_cmdline_run): Added tab completion and history buffer. Tab
47312 completion shows partitionnames while completing partitions, this
47313 feature was suggested by Jeff Bailey.
47314 * normal/command.c (pupa_iterate_commands): New function.
47315 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
47316 (pupa_normal_init): Initialize history buffer.
47317 (PUPA_MOD_INIT): Likewise.
47318 (pupa_normal_fini): Free the history buffer.
47319 (PUPA_MOD_FINI): Likewise.
47321 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
47324 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
47325 * configure.ac [i386]: Check for regparam bug.
47326 (NESTED_FUNC_ATTR) [! i386]: Defined.
47328 2003-11-17 Marco Gerards <metgerards@student.han.nl>
47330 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
47331 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
47332 (pupa_emu_SOURCES): New variable.
47333 (pupa_emu_LDFLAGS): Likewise.
47334 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
47335 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
47336 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
47337 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
47338 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
47339 (pupa_jmp_buf): New typedef.
47340 (pupa_setjmp) [PUPA_UTIL]: New macro.
47341 (pupa_longjmp) [PUPA_UTIL]: Likewise.
47342 * include/pupa/term.h (struct pupa_term): New member `refresh'.
47343 (pupa_refresh): New prototype.
47344 * include/pupa/util/getroot.h: New file.
47345 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
47347 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
47348 (pupa_rescue_cmd_cat): Likewise.
47349 (pupa_rescue_cmd_ls): Likewise.
47350 (pupa_rescue_cmd_testload): Likewise.
47351 (pupa_rescue_cmd_lsmod): Likewise.
47352 * normal/cmdline.c (pupa_cmdline_get): Likewise.
47353 * normal/menu.c (run_menu): Likewise.
47354 * kern/term.c (pupa_cls): Likewise.
47355 (pupa_refresh): New function.
47356 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
47357 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
47358 * util/console.c: New file.
47360 * util/i386/pc/getroot.c: New file.
47361 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
47362 (pupa_putchar): New function.
47363 (pupa_refresh): Likewise.
47364 (xgetcwd): Function moved to ...
47365 (strip_extra_slashes): Likewise.
47366 (get_prefix): Likewise.
47367 * util/i386/pc/getroot.c: ... here.
47368 (find_root_device): Function moved and renamed to...
47369 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
47370 Changed all callers.
47371 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
47373 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
47374 Changed all callers.
47375 * util/misc.c (pupa_memalign): New function.
47376 (pupa_mm_init_region): Likewise.
47377 (pupa_register_exported_symbols): Likewise.
47378 (pupa_putchar): Function removed.
47379 * util/pupa-emu.c: New file.
47381 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
47383 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
47384 (_multiboot_mod_SOURCES): New variable.
47385 (_multiboot_mod_CFLAGS): Likewise.
47386 * loader/i386/pc/multiboot.c: New file.
47387 * include/pupa/i386/pc/multiboot.h: Likewise.
47388 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
47389 (pupa_multiboot_real_boot): New function.
47390 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
47391 (pupa_multiboot_real_boot): New prototype.
47392 (pupa_rescue_cmd_multiboot): Likewise
47393 (pupa_rescue_cmd_module): Likewise.
47395 * kern/loader.c (pupa_loader_set): Continue when
47396 pupa_loader_unload_func() fails.
47397 (pupa_loader_unset): New function.
47398 * include/pupa/loader.h (pupa_loader_unset): New prototype.
47400 * kern/misc.c (pupa_stpcpy): New function.
47401 * include/pupa/misc.h (pupa_stpcpy): New prototype.
47403 2003-11-12 Marco Gerards <metgerards@student.han.nl>
47405 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
47406 for available extensions.
47408 * include/pupa/i386/pc/time.h: New file.
47409 * kern/disk.c: Include <pupa/machine/time.h>.
47410 (PUPA_CACHE_TIMEOUT): New macro.
47411 (pupa_last_time): New variable.
47412 (pupa_disk_open): Flush the cache when there was a timeout.
47413 (pupa_disk_close): Reset the timer.
47414 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
47416 * util/misc.c: Include <sys/times.h>
47417 (pupa_get_rtc): New function.
47419 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
47421 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
47423 (pupa_ext2_get_file_block): Use blocks member.
47425 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
47426 first block. Return -1 instead of pupa_errno on error.
47428 2003-10-27 Marco Gerards <metgerards@student.han.nl>
47430 * README: In the pupa-mkimage example use _chain instead of chain
47431 and ext2 instead of fat.
47432 * TODO: Replace ext2fs with jfs as an example. Add an item for
47433 adding journal playback for ext2fs.
47434 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
47435 (pkgdata_MODULES): Added ext2.mod.
47436 (ext2_mod_SOURCES): New variable.
47437 (ext2_mod_CFLAGS): Likewise.
47438 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
47439 * include/pupa/misc.h (pupa_strncpy): New prototype.
47440 (pupa_strcat): Likewise.
47441 (pupa_strncmp): Likewise.
47442 * kern/misc.c (pupa_strcat): Enable function.
47443 (pupa_strncpy): New function.
47444 (pupa_strncmp): Likewise.
47445 * fs/ext2.c: New file.
47447 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
47448 when the read failed before retrying.
47449 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
47450 (_FILE_OFFSET_BITS): Likewise.
47451 * configure.ac: Added AC_SYS_LARGEFILE.
47453 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
47455 * genmk.rb (PModule#rule): Make sure to get only symbol names
47456 from the output of nm.
47457 Reported by Robert Millan <rmh.grub@aybabtu.com>.
47459 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
47461 I forgot to check in these changes for a long time. This adds
47462 incomplete support for VGA console, and this is still very
47463 buggy. Also, a lot of consideration is required for I18N,
47464 UNICODE, and VGA font issues. Therefore, assume that this is
47465 such that "better than nothing".
47467 * font/manager.c: New file.
47468 * include/pupa/font.h: Likewise.
47469 * include/pupa/i386/pc/vga.h: Likewise.
47470 * term/i386/pc/vga.c: Likewise.
47471 * util/unifont2pff.rb: Likewise.
47473 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
47474 (pkgdata_MODULES): Added vga.mod and font.mod.
47475 (vga_mod_SOURCES): New variables.
47476 (vga_mod_CFLAGS): Likewise.
47477 (font_mod_SOURCES): Likewise.
47478 (font_mod_CFLAGS): Likewise.
47480 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
47482 * include/pupa/term.h: Include pupa/err.h.
47483 (struct pupa_term): Added init and fini.
47484 Changed the argument of putchar to pupa_uint32_t.
47486 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
47487 (pupa_console_real_putchar): New prototype.
47488 (pupa_console_putchar): Removed.
47489 (pupa_console_checkkey): Exported.
47490 (pupa_console_getkey): Likewise.
47492 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
47495 * kern/term.c (pupa_term_set_current): Rewritten.
47496 (pupa_putchar): Likewise.
47497 (pupa_putcode): New function.
47499 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
47500 (pupa_console_real_putchar): ... this.
47501 (pupa_vga_set_mode): New function.
47502 (pupa_vga_get_font): Likewise.
47504 * normal/command.c: Include pupa/term.h.
47505 (terminal_command): New function.
47506 (pupa_command_init): Register the command "terminal".
47508 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
47509 (DISP_UP): Likewise.
47510 (DISP_RIGHT): Likewise.
47511 (DISP_DOWN): Likewise.
47512 (DISP_HLINE): Likewise.
47513 (DISP_VLINE): Likewise.
47514 (DISP_UL): Likewise.
47515 (DISP_UR): Likewise.
47516 (DISP_LL): Likewise.
47517 (DISP_LR): Likewise.
47519 * term/i386/pc/console.c (pupa_console_putchar): New function.
47521 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
47523 * util/resolve.c (pupa_util_resolve_dependencies): BUG
47524 FIX. Reverse the path_list.
47526 * include/pupa/normal.h: Export pupa_register_command and
47527 pupa_unregister_command.
47529 * hello/hello.c (pupa_cmd_hello): New module.
47530 * conf/i386-pc.rmk: Added hello.mod.
47532 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
47534 * kern/i386/pc/lzo1x.S: New file.
47536 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
47537 (compress_kernel): New variable.
47538 (generate_image): Heavily modified to support compressing a
47539 large part of the core image.
47541 * util/misc.c (pupa_util_read_image): Fix a file descriptor
47543 (pupa_util_load_image): New function.
47545 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
47546 (pupa_compressed_size): New variable.
47547 (codestart): Enable Gate A20 here.
47548 Decompress the compressed part of the core image.
47549 Rearrange the code to put functions and variables which are
47550 required for initialization in the non-compressed part.
47553 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
47556 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
47558 * include/pupa/i386/pc/kernel.h
47559 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
47560 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
47561 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
47562 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
47563 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
47565 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
47567 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
47568 (Utility#rule): Likewise.
47570 * configure.ac: Check if LZO is available.
47572 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
47574 * include/pupa/normal.h: New file.
47575 * include/pupa/setjmp.h: Likewise.
47576 * include/pupa/i386/setjmp.h: Likewise.
47577 * normal/cmdline.c: Likewise.
47578 * normal/command.c: Likewise.
47579 * normal/main.c: Likewise.
47580 * normal/menu.c: Likewise.
47581 * normal/i386/setjmp.S: Likewise.
47583 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
47584 (pupa_rescue_cmd_initrd): Likewise.
47586 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
47589 * kern/i386/pc/startup.S (translation_table): New variable.
47590 (translate_keycode): New function.
47591 (pupa_console_getkey): Call translate_keycode.
47593 * kern/rescue.c (attempt_normal_mode): New function.
47594 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
47595 it failed, print a message.
47597 * kern/mm.c (pupa_real_malloc): Print more information when a
47598 free magic is broken.
47599 (pupa_free): If the first free header is not free actually, set
47602 * kern/main.c (pupa_load_normal_mode): Just load the module
47604 (pupa_main): Don't print the message
47605 "Entering into rescue mode..." here.
47607 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
47609 (pupa_rescue_cmd_initrd): Likewise.
47610 (pupa_rescue_cmd_initrd): Likewise.
47612 * include/pupa/symbol.h (FUNCTION): Specify the type.
47613 (VARIABLE): Likewise.
47615 * include/pupa/err.h (pupa_err_t): Added
47616 PUPA_ERR_UNKNOWN_COMMAND.
47618 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
47619 (pupa_dl_get_prefix): Likewise.
47621 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
47622 Added _chain.mod and _linux.mod instead of chain.mod and
47624 (chain_mod_SOURCES): Renamed to ...
47625 (_chain_mod_SOURCES): ... this.
47626 (chain_mod_CFLAGS): Renamed to ...
47627 (_chain_mod_CFLAGS): ... this.
47628 (linux_mod_SOURCES): Renamed to ...
47629 (_linux_mod_SOURCES): ... this.
47630 (linux_mod_CFLAGS): Renamed to ...
47631 (_linux_mod_CFLAGS): ... this.
47632 (normal_mod_SOURCES): New variable.
47633 (normal_mod_CFLAGS): Likewise.
47634 (normal_mod_ASFLAGS): Likewise.
47636 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
47638 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
47641 * kern/dl.c (pupa_dl_ref): Refer depending modules
47643 (pupa_dl_unref): Unrefer depending modules recursively.
47644 Don't call pupa_dl_unload implicitly, because PUPA can crash if
47645 a module is unloaded before one depending on that module is
47647 (pupa_dl_unload): Unload depending modules explicitly,
47650 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
47652 * include/pupa/i386/pc/linux.h: New file.
47653 * loader/i386/pc/linux.c: Likewise.
47655 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
47657 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
47658 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
47659 of PUPA_CHAINLOADER_BOOT_SECTOR.
47661 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
47662 (pupa_linux_prot_size): New variable.
47663 (pupa_linux_tmp_addr): Likewise.
47664 (pupa_linux_real_addr): Likewise.
47665 (pupa_linux_boot_zimage): New function.
47666 (pupa_linux_boot_bzimage): Likewise.
47668 * kern/i386/pc/init.c (struct mem_region): New structure.
47669 (MAX_REGIONS): New macro.
47670 (mem_regions): New variable.
47671 (num_regions): Likewise.
47672 (pupa_os_area_addr): Likewise.
47673 (pupa_os_area_size): Likewise.
47674 (pupa_lower_mem): Likewise.
47675 (pupa_upper_mem): Likewise.
47676 (add_mem_region): New function.
47677 (compact_mem_regions): Likewise.
47678 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
47679 the size of the conventional memory and that of so-called upper
47680 memory (before the first memory hole).
47681 Instead of adding each found region to free memory, use
47682 add_mem_region and add them after removing overlaps.
47683 Also, add only 1/4 of the upper memory to free memory. The rest
47684 is used for loading OS images. Maybe this is ad hoc, but this
47685 makes it much easier to relocate OS images when booting.
47687 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
47688 (pupa_enter_rescue_mode): Don't register initrd and module.
47690 * kern/mm.c: Include pupa/dl.h.
47692 * kern/main.c: Include pupa/file.h and pupa/device.h.
47694 * kern/loader.c (pupa_loader_load_module_func): Removed.
47695 (pupa_loader_load_module): Likewise.
47697 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
47700 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
47701 (pupa_linux_tmp_addr): Likewise.
47702 (pupa_linux_real_addr): Likewise.
47703 (pupa_linux_boot_zimage): Likewise.
47704 (pupa_linux_boot_bzimage): Likewise.
47706 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
47707 (pupa_upper_mem): Likewise.
47708 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
47709 module is too dangerous.
47711 * include/pupa/loader.h (pupa_os_area_addr): Declared.
47712 (pupa_os_area_size): Likewise.
47713 (pupa_loader_set): Remove the first argument. Loader doesn't
47714 manage modules or initrd any longer.
47715 (pupa_loader_load_module): Removed.
47717 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
47718 (linux_mod_SOURCES): New variable.
47719 (linux_mod_CFLAGS): Likewise.
47721 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
47723 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
47724 the length of a blocklist correctly.
47726 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
47727 Use ioctl only if the OS file is a block device.
47728 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
47729 not very useful for normal files.
47731 * kern/main.c (pupa_set_root_dev): New function.
47732 (pupa_load_normal_mode): Likewise.
47733 (pupa_main): Call those above.
47735 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
47738 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
47740 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
47742 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
47743 (setup): Configure the installed partition information and the
47746 * loader/i386/pc/chainloader.c (my_mod): New variable.
47747 (pupa_chainloader_unload): New function.
47748 (pupa_rescue_cmd_chainloader): Refer itself.
47749 (PUPA_MOD_INIT): Save its own module in MY_MOD.
47751 * kern/i386/pc/startup.S (install_partition): Removed.
47752 (version_string): Likewise.
47753 (config_file): Likewise.
47754 (pupa_install_dos_part): New variable.
47755 (pupa_install_bsd_part): Likewise.
47756 (pupa_prefix): Likewise.
47757 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
47759 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
47761 (make_install_device): New function.
47762 (pupa_machine_init): Set the dl prefix.
47764 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
47765 (buf): Renamed to ...
47766 (linebuf): ... this.
47767 (pupa_rescue_cmd_prefix): New function.
47768 (pupa_rescue_cmd_insmod): Likewise.
47769 (pupa_rescue_cmd_rmmod): Likewise.
47770 (pupa_rescue_cmd_lsmod): Likewise.
47771 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
47774 * kern/mm.c (pupa_memalign): If failed even after invalidating
47775 disk caches, unload unneeded modules and retry.
47777 * kern/misc.c (pupa_memmove): New function.
47778 (pupa_memcpy): Removed.
47779 (pupa_strcpy): New function.
47780 (pupa_itoa): Made static.
47782 * kern/dl.c (pupa_dl_iterate): New function.
47783 (pupa_dl_ref): Likewise.
47784 (pupa_dl_unref): Likewise.
47785 (pupa_dl_unload): Return if succeeded or not.
47786 (pupa_dl_unload_unneeded): New function.
47787 (pupa_dl_unload_all): Likewise.
47788 (pupa_dl_init): Renamed to ...
47789 (pupa_dl_set_prefix): ... this.
47790 (pupa_dl_get_prefix): New function.
47792 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
47793 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
47794 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
47795 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
47796 (pupa_install_dos_part): Declared.
47797 (pupa_install_bsd_part): Likewise.
47798 (pupa_prefix): Likewise.
47799 (pupa_boot_drive): Likewise.
47801 * include/pupa/types.h: Fix a typo.
47803 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
47805 (pupa_memmove): Declared.
47806 (pupa_strcpy): Likewise.
47808 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
47809 pupa_mod_init takes one argument, its own module.
47810 (pupa_dl_unload_unneeded): Declared.
47811 (pupa_dl_unload_all): Likewise.
47812 (pupa_dl_ref): Likewise.
47813 (pupa_dl_unref): Likewise.
47814 (pupa_dl_iterate): Likewise.
47815 (pupa_dl_init): Renamed to ...
47816 (pupa_dl_set_prefix): ... this.
47817 (pupa_dl_get_prefix): Declared.
47819 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
47820 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
47822 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
47823 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
47825 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
47826 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
47828 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
47830 * util/i386/pc/pupa-setup.c (setup): Define the internal
47831 function find_first_partition_start at the top level, because GCC
47832 3.0.x cannot compile internal functions in deeper scopes
47834 (find_root_device): Use lstat instead of stat.
47835 Don't follow symbolic links.
47836 Fix the path-constructing code.
47838 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
47839 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
47840 by a BLKGETSIZE ioctl first, because block devices don't fill
47841 the member st_mode of the structure stat on Linux.
47842 [__linux__] (linux_find_partition): Use a temporary buffer
47843 REAL_DEV for the working space. Copy it to DEV before returning.
47844 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
47845 buffer cache consistent.
47846 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
47847 strncmp. The previous value was merely wrong.
47848 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
47850 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
47851 FAT size is 12. The previous value was merely wrong.
47853 * kern/main.c (pupa_main): Don't split the starting message from
47856 * kern/term.c (pupa_putchar): Put CR after LF instead of before
47857 LF, because BIOS goes crazy about character attributes in this
47860 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
47862 * include/i386/pc/util/biosdisk.h: New file.
47863 * util/i386/pc/biosdisk.c: Likewise.
47864 * util/i386/pc/pupa-setup.c: Likewise.
47866 * Makefile.in (INCLUDE_DISTFILES): Added
47867 include/pupa/i386/pc/util/biosdisk.h.
47868 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
47869 directory util/i386/pc.
47870 (install-local): Added a rule for sbin_UTILITIES.
47871 (uninstall): Likewise.
47873 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
47875 * util/misc.c (xrealloc): New function.
47876 (pupa_malloc): Likewise.
47877 (pupa_free): Likewise.
47878 (pupa_realloc): Likewise.
47879 (pupa_stop): Likewise.
47880 (pupa_putchar): Likewise.
47882 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
47884 * include/pupa/util/misc.h (xrealloc): Declared.
47886 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
47888 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
47889 (PUPA_BOOT_MACHINE_BPB_END): ... this.
47891 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
47892 [PUPA_UTIL] (pupa_fat_fini): Likewise.
47894 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
47895 way should be implemented.
47896 [PUPA_UTIL] (pupa_fat_fini): Likewise.
47898 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
47899 the size of NAME for safety.
47900 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
47903 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
47904 (pupa_setup_SOURCES): Likewise.
47906 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
47908 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
47910 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
47911 bunch of pushl's from pusha, because this destroys the return
47914 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
47916 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
47917 This means that any missing prototypes could be fatal. Also, you
47918 must take care when writing assembly code. See the comments at
47919 the beginning of startup.S, for more details.
47921 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
47922 compilation mechanism.
47923 (pupa_chainloader_real_boot): Likewise.
47924 (pupa_biosdisk_rw_int13_extensions): Likewise.
47925 (pupa_biosdisk_rw_standard): Likewise.
47926 (pupa_biosdisk_check_int13_extensions): Likewise.
47927 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
47928 (pupa_biosdisk_get_diskinfo_standard): Likewise.
47929 (pupa_get_memsize): Likewise.
47930 (pupa_get_mmap_entry): Likewise.
47931 (pupa_console_putchar): Likewise.
47932 (pupa_console_setcursor): Likewise.
47933 (pupa_getrtsecs): Use pushl instead of push.
47935 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
47936 memory instead of the stack for a mmap entry, because some
47937 BIOSes may ignore the maximum size and overflow.
47939 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
47941 * genmk.rb (PModule#rule): Compile automatically generated
47942 sources with module-specific CFLAGS as well as other sources.
47944 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
47946 * configure.ac: Check ld.
47947 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
47948 respectively, before checking endianness and sizes.
47950 * Makefile.in (LD): New variable.
47952 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
47954 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
47956 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
47958 * Changelog: New file.