1 2013-03-19 Aleš Nesrsta <starous@volny.cz>
3 Better estimate the maximum USB transfer size.
5 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7 Resend a packet if we got the wrong buffer in status.
9 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
12 multiplication rather than division.
14 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
16 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
19 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
21 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
22 operations to have intended shifts and not divisions.
24 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
26 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
27 intended shifts rather than division.
29 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
31 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
32 computation for some years before epoch. Avode confusing division
35 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
37 * grub-core/video/i386/pc/vbe.c
38 (grub_video_vbe_print_adapter_specific_info): Replace division by
41 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
43 Adjust types in gdb module to have intended unsigned shifts rather than
46 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
48 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
49 maximum size is 4G - 1 on hfs
51 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
53 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
55 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
57 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
60 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
62 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
63 causing gcc error with gcc 4.7.1.
65 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
67 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
68 dereference null pointer. While the code is technically correct, gcc
69 may eliminate a null check if pointer is already dereferenced.
71 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
73 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
75 * grub-core/normal/term.c (read_terminal_list): Likewise.
77 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
79 Lift up core size limits on some platforms. Fix potential memory
80 corruption with big core on small memory systems. Document remaining
83 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
85 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
88 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
90 Remove all trampoline support. Add -Wtrampolines when
91 present. Remove symbols used for trampolines to make
92 link fail if trampolines are present.
94 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
96 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
97 append out of its parent.
99 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
101 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
104 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
106 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
107 all vars to a macro. All users updated.
109 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
111 * grub-core/disk/ieee1275/nand.c: Fix compilation on
114 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
116 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
118 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
120 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
122 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
124 Move to more hookless approach in IEEE1275 devices handling.
126 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
128 * grub-core/kern/term.c (grub_term_normal_color),
129 (grub_term_highlight_color): Add back lost defaults.
131 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
133 Make elfload not use hooks. Opt for flags and iterators instead.
135 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
137 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
138 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
140 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
142 * grub-core/script/execute.c (gettext_append): Remove nested functions.
144 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
146 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
147 hook pass-through parameter. All users updated and unnested.
149 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
151 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
154 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
156 * grub-core/fs/hfs.c: Remove nested functions.
158 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
160 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
162 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
164 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
166 * util/grub-editenv.c (list_variables): Move print_var out of its
169 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
171 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
174 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
176 * grub-core/gentrigtables.c: Make tables const.
178 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
180 Remove nested functions from videoinfo iterators.
182 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
184 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
185 for 64-bit platforms.
187 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
189 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
190 a FOR_CHILDREN macro.
192 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
194 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
195 platform from firmware path.
197 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
199 Enable linux16 on non-BIOS systems for i.a. memtest.
201 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
203 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
205 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
207 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
208 Fix end of table condition.
210 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
212 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
215 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
217 * grub-core/fs/jfs.c: Remove nested functions.
219 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
221 * grub-core/fs/minix.c: Remove nested functions.
223 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
225 * grub-core/fs/iso9660.c: Remove nested functions.
227 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
229 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
232 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
234 * util/grub-fstest.c: Remove nested functions.
236 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
238 * grub-core/loader/machoXX.c: Remove nested functions.
240 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
242 Remove nested functions from disk and file read hooks.
244 * include/grub/disk.h (grub_disk_read_hook_t): New type.
245 (struct grub_disk): Add read_hook_data member.
246 * include/grub/file.h (struct grub_file): Likewise.
247 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
252 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
254 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
255 Fix off by one error in enumerating extended partitions.
257 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
259 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
260 memory leak if device name is not found.
262 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
264 * grub-core/normal/menu_entry.c (update_screen): remove
265 unused variable `off' which caused scroll down arrow to be always shown.
267 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
269 * grub-core/normal/menu_entry.c (insert_string): fix off by one
270 access to unallocated memory.
272 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
274 * Makefile.util.def: Add partmap/msdos.c to common library.
275 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
276 * grub-core/disk/ldm.c: Check for existence of
277 GRUB_PC_PARTITION_TYPE_LDM.
279 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
281 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
282 sizes and display sector size.
284 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
286 Implement new command cmosdump.
288 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
290 Support Openfirmware disks with non-512B sectors.
292 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
294 * (grub_ofdisk_get_block_size): New function.
295 * (grub_ofdisk_prepare): Use the correct block size.
296 * (grub_ofdisk_read): Likewise.
297 * (grub_ofdisk_write): Likewise.
298 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
301 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
303 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
305 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
307 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
310 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
312 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
315 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
317 Implement USBDebug (full USB stack variant).
319 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
321 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
322 unless they have unexpected values.
324 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
326 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
329 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
331 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
332 zero-out of port structure.
334 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
336 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
337 of extended attributes.
339 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
341 * util/grub-install.in: change misleading comment about
344 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
346 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
347 when menu highlight color isn't set.
349 2013-01-27 C. Masloch <pushbx@38.de>
351 Improve FreeDOS direct loading support compatibility.
353 * include/grub/i386/relocator.h (grub_relocator16_state):
355 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
357 (grub_relocator16_boot): Handle %ebp.
358 * grub-core/lib/i386/relocator16.S: Likewise.
359 * grub-core/loader/i386/pc/freedos.c:
360 Load BPB to pass kernel which partition to load from.
361 Check that kernel file is not too large.
362 Set register dl to BIOS unit number as well.
364 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
366 * util/grub-reboot.in (usage): Document the need for
368 * util/grub-set-default.in (usage): Likewise.
369 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
371 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
373 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
374 than defining WORDS_BIGENDIAN manually.
376 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
378 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
381 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
383 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
385 (blit_comb: add_device_width): Likewise.
387 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
389 Remove nested functions from USB iterators.
391 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
392 (grub_usb_controller_iterate_hook_t): Likewise.
393 (grub_usb_iterate): Add hook_data argument.
394 (grub_usb_controller_iterate): Likewise.
395 (struct grub_usb_controller_dev.iterate): Likewise.
397 Update all implementations and callers.
399 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
401 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
402 margin when not needed.
404 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
406 Make color variables global instead of it being per-terminal.
408 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
410 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
413 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
415 Fix powerpc and sparc64 build failures caused by un-nesting memory
418 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
420 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
421 parameter declarations.
423 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
425 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
427 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
429 Improve spkmomdem reliability by adding a separator between bytes.
431 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
433 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
434 an Acer registration utility with several sightings in the wild.
435 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
437 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
439 Remove nested functions from filesystem directory iterators.
441 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
442 (struct grub_fs.dir): Add hook_data argument.
444 Update all implementations and callers.
446 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
448 * docs/grub.texi (Multi-boot manual config): Fix typo for
451 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
453 * util/grub-mkimage.c (main): Postpone freeing arguments.output
454 until after its use in generate_image.
456 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
458 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
459 initrd size to addr_min, since the initrd will be allocated after
462 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
464 * conf/Makefile.common: Fix autogen rules to pass definition
465 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
467 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
469 * include/grub/elf.h: Update ARM definitions based on binutils.
471 2013-01-20 Aleš Nesrsta <starous@volny.cz>
473 Split long USB transfers into short ones.
475 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
477 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
478 is interrupted by ESC.
480 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
482 * util/grub-script-check.c (main): Uniform the error message.
484 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
486 Remove nested functions from ELF iterators.
488 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
490 Remove nested functions from device iterators.
492 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
493 (grub_arc_iterate_devs): Add hook_data argument.
494 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
495 (struct grub_ata_dev.iterate): Add hook_data argument.
496 * include/grub/device.h (grub_device_iterate_hook_t): New type.
497 (grub_device_iterate): Add hook_data argument.
498 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
499 (struct grub_disk_dev.iterate): Add hook_data argument.
500 (grub_disk_dev_iterate): Likewise.
501 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
503 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
505 * include/grub/partition.h (grub_partition_iterate_hook_t): New
507 (struct grub_partition_map.iterate): Add hook_data argument.
508 (grub_partition_iterate): Likewise.
509 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
510 (struct grub_scsi_dev.iterate): Add hook_data argument.
514 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
516 Fix typos for "developer" and "development".
518 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
520 Add license header to spkmodem-recv.c.
522 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
524 Rewrite spkmodem to use PIT for timing. Double the speed.
526 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
528 Add new command pcidump.
530 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
532 New terminal outputs using serial: morse and spkmodem.
534 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
536 Improve bidi handling in entry editor.
538 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
540 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
541 argument to prevent name collision.
543 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
545 Remove nested functions from script reading and parsing.
547 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
548 getline_data argument, passed to getline.
549 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
550 getline_data argument, passed to grub_parser_split_cmdline.
551 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
552 lexerstate->getline_data to lexerstate->getline.
553 (grub_script_lexer_init): Add getline_data argument, saved in
554 lexerstate->getline_data.
555 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
556 argument, passed to grub_script_parse.
557 * grub-core/script/script.c (grub_script_parse): Add getline_data
558 argument, passed to grub_script_lexer_init.
559 * include/grub/parser.h (grub_parser_split_cmdline): Update
560 prototype. Update all callers to pass appropriate getline data.
561 (struct grub_parser.parse_line): Likewise.
562 (grub_rescue_parse_line): Likewise.
563 * include/grub/reader.h (grub_reader_getline_t): Add void *
565 * include/grub/script_sh.h (struct grub_lexer_param): Add
567 (grub_script_parse): Update prototype. Update all callers to pass
568 appropriate getline data.
569 (grub_script_lexer_init): Likewise.
570 (grub_normal_parse_line): Likewise.
572 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
574 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
575 static instead of nested. Rename to ...
576 (grub_parser_execute_getline): ... this.
577 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
579 * grub-core/normal/main.c (read_config_file: getline): Make static
580 instead of nested. Rename to ...
581 (read_config_file_getline): ... this.
582 (grub_normal_read_line): Add unused data argument.
583 * grub-core/script/execute.c (grub_script_execute_sourcecode:
584 getline): Make static instead of nested. Rename to ...
585 (grub_script_execute_sourcecode_getline): ... this.
586 * util/grub-script-check.c (main: get_config_line): Make static
589 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
591 Remove nested functions from memory map iterators.
593 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
594 argument, passed to hook.
595 * grub-core/kern/i386/coreboot/mmap.c
596 (grub_linuxbios_table_iterate): Likewise.
597 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
599 (grub_machine_mmap_iterate): Add hook_data argument.
600 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
601 Add hook_data argument, passed to hook.
602 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
604 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
606 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
608 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
610 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
612 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
614 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
615 (grub_machine_mmap_iterate): Likewise.
616 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
617 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
619 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
620 Remove NESTED_FUNC_ATTR from here and from all users.
621 (grub_mmap_iterate): Update prototype.
622 (grub_efi_mmap_iterate): Update prototype. Update all callers to
623 pass appropriate hook data.
624 (grub_machine_mmap_iterate): Likewise.
626 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
627 static instead of nested.
628 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
630 (lsmmap_hook): ... this.
631 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
633 (grub_efiemu_mmap_fill: fill_hook): Likewise.
634 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
635 heap_init): Likewise.
636 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
638 (mmap_iterate_hook): ... this.
639 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
641 * grub-core/lib/ieee1275/relocator.c
642 (grub_relocator_firmware_get_max_events: count): Likewise.
643 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
645 (grub_relocator_firmware_fill_events_iter): ... this.
646 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
647 hook): Likewise. Rename to ...
648 (grub_relocator_alloc_chunk_align_iter): ... this.
649 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
651 (generate_e820_mmap_iter): ... this.
652 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
654 (count_hook): ... this.
655 (grub_linux_boot: hook): Likewise. Rename to ...
656 (grub_linux_boot_mmap_find): ... this.
657 (grub_linux_boot: hook_fill): Likewise. Rename to ...
658 (grub_linux_boot_mmap_fill): ... this.
659 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
660 hook): Likewise. Rename to ...
661 (grub_fill_multiboot_mmap_iter): ... this.
662 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
663 hook): Likewise. Rename to ...
664 (count_hook): ... this.
665 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
666 hook): Likewise. Rename to ...
667 (grub_fill_multiboot_mmap_iter): ... this.
668 * grub-core/loader/powerpc/ieee1275/linux.c
669 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
670 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
671 Likewise. Rename to ...
672 (alloc_phys_choose): ... this.
673 (determine_phys_base: get_physbase): Likewise.
674 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
675 find_hook): Likewise.
676 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
677 (malloc_hook: count_hook): Likewise.
678 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
679 Likewise. Rename to ...
680 (lower_hook): ... this.
681 (grub_mmap_get_upper: hook): Likewise. Rename to ...
682 (upper_hook): ... this.
683 (grub_mmap_get_post64: hook): Likewise. Rename to ...
684 (post64_hook): ... this.
685 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
686 Likewise. Rename to ...
687 (lower_hook): ... this.
688 (grub_mmap_get_upper: hook): Likewise. Rename to ...
689 (upper_hook): ... this.
690 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
691 (grub_mmap_iterate: fill_hook): Likewise.
692 (fill_mask): Pass addr and mask within a single struct.
693 (grub_cmd_badram: hook): Make static instead of nested. Rename
695 (badram_iter): ... this.
696 (grub_cmd_cutmem: hook): Likewise. Rename to ...
697 (cutmem_iter): ... this.
699 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
701 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
702 delimit path in strings using quotes.
703 * util/getroot.c (grub_guess_root_devices): Likewise.
704 (grub_make_system_path_relative_to_its_root): Likewise.
705 * util/grub-probe.c (probe): Likewise.
706 * util/ieee1275/ofpath.c (find_obppath): Likewise.
707 (xrealpath): Likewise.
709 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
711 Fix compilation with older compilers.
713 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
714 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
716 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
717 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
718 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
720 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
721 * include/grub/crypto.h: Add type defines.
722 * util/import_gcrypth.sed: Remove duplicate type defines.
724 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
726 New command list_trusted.
728 * grub-core/commands/verify.c (grub_cmd_list): New function.
730 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
732 * util/grub-mkimage.c (generate_image): Fix "size of public key"
735 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
737 Remove nested functions from PCI iterators.
739 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
740 passed to hook. Update all callers to pass appropriate hook data.
741 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
742 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
743 Remove NESTED_FUNC_ATTR from here and from all users.
744 (grub_pci_iterate): Update prototype.
745 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
746 instead of nested. Rename to ...
747 (grub_cs5536_find_iter): ... this.
748 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
749 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
751 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
753 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
755 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
757 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
758 * grub-core/video/radeon_fuloong2e.c
759 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
760 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
761 find_card): Likewise.
762 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
765 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
767 * grub-core/commands/verify.c: Mark messages for translating.
769 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
771 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
774 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
776 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
779 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
781 * autogen.sh: Do not try to delete nonexistant files.
782 * util/import_gcrypth.sed: Add some missing header removals.
784 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
786 Clean up dangling references to grub-setup.
787 Fixes Ubuntu bug #1082045.
789 * docs/grub.texi (Images): Refer generally to grub-install rather
790 than directly to grub-setup.
791 (Installing GRUB using grub-install): Remove direct reference to
793 (Device map) Likewise.
794 (Invoking grub-install): Likewise.
795 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
796 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
797 * util/grub-install.in (usage): Likewise.
799 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
800 Apply to grub-bios-setup and grub-sparc64-setup rather than to
802 * configure.ac: Remove grub_setup output variable.
804 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
806 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
807 grub-setup to grub-sparc64-setup.
809 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
811 Import gcrypt public-key cryptography and implement signature checking.
813 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
815 * grub-core/fs/ntfs.c: Ue more appropriate types.
816 * grub-core/fs/ntfscomp.c: Likewise.
817 * include/grub/ntfs.h: Likewise.
819 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
821 Support Apple FAT binaries on non-Apple platforms.
823 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
824 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
826 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
829 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
831 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
834 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
836 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
837 explicitly zeroing elements.
838 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
839 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
840 of elements in a structure already allocated using grub_zalloc.
841 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
843 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
845 * docs/grub.texi (grub_cpu): New subsection.
846 (grub_platform): Likewise.
848 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
850 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
852 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
854 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
857 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
859 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
860 * grub-core/fs/ntfscomp.c: Likewise.
861 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
862 (grub_ntfs_comp): Likewise.
864 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
866 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
868 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
869 of groups_per_block. All users updated.
871 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
873 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
875 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
876 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
878 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
880 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
882 Reported by: Yuta Satoh.
884 2013-01-03 Yuta Satoh <nigoro>
886 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
889 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
891 * configure.ac: Extend -Wno-trampolines to host.
893 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
895 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
898 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
900 * docs/grub.texi (Invoking grub-mkrelpath): New section.
901 (Invoking grub-script-check): Likewise.
903 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
905 * docs/grub.texi (Invoking grub-mount): New section.
906 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
908 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
910 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
911 test failures, so that a failing unit test correctly causes 'make
914 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
916 Fix failing printf test.
918 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
919 '$' in the correct order when collecting type information.
921 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
923 * docs/grub.texi (configfile): Explain environment variable
925 (source): New section.
926 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
928 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
930 Remove several trivially-unnecessary uses of nested functions.
932 * grub-core/commands/i386/pc/sendkey.c
933 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
935 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
937 (legacy_file_getline): ... this.
938 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
940 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
941 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
943 (probe_dummy_iter): ... this.
944 * grub-core/kern/i386/coreboot/mmap.c
945 (grub_linuxbios_table_iterate: check_signature): Likewise.
946 * grub-core/kern/parser.c (grub_parser_split_cmdline:
947 check_varstate): Likewise. Mark inline.
948 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
949 an additional parameter.
950 (find_long: fnd_long): Likewise. Pass two additional parameters.
951 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
952 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
953 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
954 Likewise. Rename to ...
955 (grub_cmos_find_port_iter): ... this.
956 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
958 (find_rtc_iter): ... this.
960 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
961 function directly into the function body, since it is only called
964 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
966 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
967 __attribute__ ((unused)).
968 * grub-core/video/bochs.c (find_card): Likewise.
969 * grub-core/video/cirrus.c (find_card): Likewise.
970 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
971 * grub-core/video/sis315pro.c (find_card): Likewise.
972 * grub-core/video/sm712.c (find_card): Likewise.
974 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
976 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
977 Fixes Savannah bug #37821.
979 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
981 Apply program name transformations at build-time rather than at
982 run-time. Fixes Debian bug #696465.
984 * acinclude.m4 (grub_TRANSFORM): New macro.
985 * configure.ac: Create output variables with transformed names for
987 * util/bash-completion.d/grub-completion.bash.in: Use
988 pre-transformed variables for program names.
989 * util/grub-install.in: Likewise.
990 * util/grub-kbdcomp.in: Likewise.
991 * util/grub-mkconfig.in: Likewise.
992 * util/grub-mkconfig_lib.in: Likewise.
993 * util/grub-mknetdir.in: Likewise.
994 * util/grub-mkrescue.in: Likewise.
995 * util/grub-mkstandalone.in: Likewise.
996 * util/grub-reboot.in: Likewise.
997 * util/grub-set-default.in: Likewise.
998 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
999 * tests/util/grub-shell-tester.in: Remove unused assignment.
1000 * tests/util/grub-shell.in: Likewise.
1001 * util/grub.d/00_header.in: Likewise.
1003 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
1005 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
1007 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
1009 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
1011 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1013 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
1014 Reported by: Eriks Latosheks <foresterlv>.
1016 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1018 * docs/grub.texi (Network): Update instructions on generating netboot
1021 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1023 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
1024 around device name if necessarry.
1026 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1028 * util/grub-install.in: Follow the symbolic link parameter added
1029 to the file command.
1031 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
1033 * util/grub-install.in: Remove stale TODO.
1035 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1037 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
1038 dynamic allocation for the bootpath buffer.
1040 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
1042 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
1045 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1047 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
1048 argument rather than font name. All users updated.
1049 (grub_gfxterm_set_window): Likewise.
1051 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
1053 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
1056 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1058 * util/getroot.c (convert_system_partition_to_system_disk): Support
1061 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1063 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
1064 infinite loop on corrupted FS.
1066 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1068 Fix big-endian mtime.
1070 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
1071 together sec and usec.
1072 (grub_ufs_dir): Use correct byteswapping for UFS time.
1074 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1076 Support big-endian UFS1.
1078 * Makefile.util.def (libgrubmods): Add ufs_be.c
1079 * grub-core/Makefile.core.def (ufs1_be): New module.
1080 * grub-core/fs/ufs_be.c: New file.
1081 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
1084 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
1086 * include/grub/types.h: Fix functionality unaffecting typo in
1087 GRUB_TARGET_WORDSIZE conditional macro.
1089 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1091 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
1093 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
1095 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
1096 that /netbsd appears first (when it exists).
1098 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
1100 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
1101 Fixes Savannah bug #37558.
1103 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
1105 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
1106 description of extract_entries_configfile.
1108 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
1110 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
1112 (grub_cmd_linux): Likewise.
1113 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
1114 preferred_lifetime. Update all users.
1116 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
1118 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
1119 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
1121 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
1123 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
1124 errors from grub-probe to /dev/null, not stdout.
1126 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
1128 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
1131 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
1133 * util/grub-install.in: Make the error message if $source_dir
1134 doesn't exist more useful.
1136 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
1138 Fix grub-emu build on FreeBSD.
1140 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
1141 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
1143 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
1144 implementation is currently Linux-specific.
1145 * util/getroot.c (exec_pipe): Define only on Linux or when either
1146 libzfs or libnvpair is unavailable.
1147 (find_root_devices_from_poolname): Remove unused path variable.
1149 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
1151 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
1152 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
1153 should fit before end == 63.
1155 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
1157 * util/grub-setup.c (write_rootdev): Remove unused core_img
1158 parameter. Update all callers.
1159 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
1160 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
1163 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1165 * util/grub-mkconfig_lib.in (grub_tab): New variable.
1166 (grub_add_tab): New function.
1167 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
1168 * util/grub.d/10_illumos.in: Likewise.
1169 * util/grub.d/10_kfreebsd.in: Likewise.
1170 * util/grub.d/10_linux.in: Likewise.
1171 * util/grub.d/10_netbsd.in: Likewise.
1172 * util/grub.d/10_windows.in: Likewise.
1173 * util/grub.d/10_xnu.in: Likewise.
1174 * util/grub.d/20_linux_xen.in: Likewise.
1175 * util/grub.d/30_os-prober.in: Likewise.
1177 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1179 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1180 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
1181 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
1182 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
1183 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
1185 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
1186 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
1188 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1190 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
1192 Reported by: BURETTE, Bernard.
1194 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
1196 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
1199 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
1201 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
1202 IEEE1275 machines. Fixes powerpc-emu compilation.
1203 * include/grub/terminfo.h: Likewise.
1205 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1207 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
1209 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
1211 (efiemu_set_variable): Make vendor_guid a const pointer.
1213 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1215 Don't require grub-mkconfig_lib to generate manpages for programs.
1217 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
1218 dependencies, don't add grub-mkconfig_lib.
1219 (program): Pass empty adddeps.
1220 (script): Pass grub-mkconfig_lib as adddeps.
1222 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
1224 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
1225 * util/getroot.c (grub_find_device): Likewise.
1226 (get_mdadm_uuid): Likewise.
1227 (grub_util_is_imsm): Likewise.
1228 (grub_util_pull_device): Likewise.
1229 * util/grub-probe.c (probe): Likewise.
1231 2012-09-10 Benoit Gschwind <gschwind>
1233 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
1234 (devs): Add devpath_8.
1236 2012-09-08 Peter Jones <pjones@redhat.com>
1238 * grub-core/Makefile.core.def (efifwsetup): New module.
1239 * grub-core/commands/efi/efifwsetup.c: New file.
1240 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
1241 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
1243 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
1245 2012-09-05 Jiri Slaby <jslaby@suse.cz>
1247 * configure.ac: Add SuSe path.
1249 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
1253 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
1255 * util/import_gcry.py: Sort cipher_files, to make build system
1256 generation more deterministic.
1258 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1260 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
1261 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
1262 (grub_set_datetime): Likewise.
1264 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1266 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
1269 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1271 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
1273 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1275 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
1277 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1279 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
1280 required for checkouts from bzr, but it may be useful for users or
1281 distributors wishing to update translations against a tarball
1282 distribution, and it can be helpful for the tarball to be a superset
1285 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1287 * Makefile.am (EXTRA_DIST): Add
1288 grub-core/tests/boot/linux.init-mips.S,
1289 grub-core/tests/boot/linux.init-ppc.S, and
1290 grub-core/tests/boot/linux-ppc.cfg.
1292 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1294 * grub-core/mmap/mips/loongson: Remove empty directory.
1296 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1298 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
1301 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1303 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
1306 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
1308 * configure.ac: Strengthen the test for working -nostdinc -isystem.
1310 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
1312 * po/POTFILES.in: Regenerated.
1314 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
1316 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
1317 (NetBSD): New subsection.
1319 2012-07-22 Ales Nesrsta <starous@volny.cz>
1321 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
1322 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
1324 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1326 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
1327 * util/grub.d/10_hurd.in: Add missing quoting.
1328 * util/grub.d/10_illumos.in: Likewise.
1329 * util/grub.d/10_kfreebsd.in: Likewise.
1330 * util/grub.d/10_linux.in: Likewise.
1331 * util/grub.d/20_linux_xen.in: Likewise.
1333 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1335 New command `lsefi'.
1337 * grub-core/Makefile.core.def (lsefi): New module.
1338 * grub-core/commands/efi/lsefi.c: New file.
1339 * include/grub/efi/api.h: Add more GUIDs.
1341 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1343 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
1344 (grub_bsd_elf32_hook): Likewise.
1345 (grub_bsd_elf64_size_hook): Likewise.
1346 (grub_bsd_elf64_hook): Likewise.
1347 (grub_bsd_load_elf): Likewise.
1349 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1351 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
1352 if hash function is unavailable.
1353 (dec_stream_header): Likewise.
1355 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1357 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
1360 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1362 Fix coreboot compilation.
1364 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
1365 (grub_vga_text_init_real): ... this.
1366 (grub_vga_text_fini): Rename to ...
1367 (grub_vga_text_fini_real): ... this.
1369 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
1371 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
1373 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1375 * grub-core/lib/legacy_parse.c: Support clear and testload.
1377 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1379 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
1381 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1383 * grub-core/fs/ext2.c: Experimental support for 64-bit.
1385 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1387 * grub-core/net/tftp.c (ack): Fix endianness problem.
1388 (tftp_receive): Likewise.
1389 Reported by: Michael Davidsaver.
1391 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1393 * gentpl.py: Make mans depend on grub-mkconfig_lib.
1395 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1397 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
1398 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
1399 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
1401 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1403 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
1405 Reported by: Stuart Hayes.
1407 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
1409 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
1411 * grub-core/Makefile.core.def (mda_text): New module.
1412 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
1413 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
1414 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
1415 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
1417 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
1418 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
1419 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
1421 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
1423 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
1425 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
1427 * grub-core/term/i386/vga_common.c: Removed.
1428 * include/grub/i386/vga_common.h: Likewise.
1429 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
1430 (grub_vga_cr_bw_read): Likewise.
1431 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
1432 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
1433 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
1434 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
1435 grub_vga_cr_read/grub_vga_cr_write.
1436 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
1438 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1440 * configure.ac: Bump version to 2.00.
1441 * grub-core/normal/main.c (features): Add feature_200_final.
1443 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1444 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
1446 * NEWS: Fix unclarity and language mistakes.
1448 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1450 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
1451 additional size to 3 pages.
1452 Reported by: Stuart Hayes.
1454 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1456 * NEWS: Add 2.00 entry.
1458 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1460 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
1461 put explicit "/" for empty path.
1462 (wildcard_expand): Improve dprintf.
1464 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1466 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
1467 it's equal to currnode. This can happen with "" symlink.
1469 2012-06-27 Yves Blusseau <blusseau@zetam.org>
1471 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
1472 echo shell command by printf command.
1474 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1476 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
1477 the value returned by firmware is the maximal position, not diumension.
1478 (grub_terminfo_output_state): Use a more sane fallback.
1480 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1482 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
1484 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1486 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
1487 frequency to 150 MHz.
1489 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1493 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
1495 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
1497 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
1499 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1501 Handle slash in HFS label.
1503 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
1504 (grub_hfs_dir): Tanslate slash.
1505 (grub_hfs_label): Don't translate slash.
1507 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1509 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
1510 network protocol listing since it introduces problematic dependency on
1513 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1515 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
1517 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1519 Init video early on yeeloong to avoid being rebooted by watchdog.
1521 * grub-core/Makefile.am (gensm712): New target.
1522 (sm712_start.S): Likewise.
1523 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
1524 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
1525 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
1527 * include/grub/vga.h: Move registry definitions to...
1528 * include/grub/vgaregs.h: ... here.
1530 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1532 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
1535 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1537 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
1538 platforms with firmware disk drivers in the core.
1540 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1542 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
1543 informative verbose message.
1544 (read_lv): Handle 64-bit segment size.
1546 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1548 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
1550 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1552 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
1553 character but still remove trainling spaces.
1554 (grub_fat_label): Ignore archive flag.
1556 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1558 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
1559 cast between linux_kernel_header and linux_kernel_params.
1561 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1563 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
1565 (grub_raid6_recover_func_t): Likewise.
1566 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
1567 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
1569 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1571 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
1573 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
1577 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
1578 [__NetBSD__]: Add explicit cast before bitshift.
1580 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1582 * configure.ac: Bump to 2.00~rc1.
1584 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1586 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
1589 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1590 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
1592 * docs/grub.texi: Fix search syntax.
1593 (Multi-boot manual config): Put msdos rather than GPT example.
1594 Grammar corrections.
1596 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1598 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
1600 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1602 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
1604 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1606 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
1607 message on double free. Put the value of magic in case of mismatch.
1609 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1611 Speed-up video on yeeloong.
1613 * grub-core/video/sm712.c (framebuffer): Remove render_target and
1615 (grub_video_sm712_video_fini): Unmap cached_ptr.
1616 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
1617 (grub_video_sm712_set_active_render_target): Removed.
1618 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
1619 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
1622 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1624 Avoid flushing the same line multiple times on loongson.
1626 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
1627 Step in 32 bytes and not 1 byte.
1628 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
1631 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1633 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
1636 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1638 Implement flow control for http.
1640 * grub-core/net/http.c (parse_line): Handle response 206.
1641 (http_receive): Stall if too many packets are in the queue.
1642 (http_establish): Fix range header.
1643 (http_seek): Fix double free.
1644 (http_close): Likewise.
1645 (http_packets_pulled): New function.
1646 (grub_http_protocol): Set http_seek
1647 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
1648 (ack_real): Set window depending on i_stall.
1649 (grub_net_send_tcp_packet): Likewise.
1650 (grub_net_tcp_stall): New function.
1651 (grub_net_tcp_unstall): Likewise.
1652 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
1653 (grub_net_tcp_unstall): Likewise.
1655 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1657 * grub-core/net/tftp.c: Decrease stall to 50 packets.
1659 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1661 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
1663 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1665 * tests/util/grub-shell.in: Fix a typo.
1667 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1669 Implement flow control for tftp.
1671 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
1672 packets but stop only if stop condition is satisfied.
1673 (grub_net_fs_read_real): Call packets_pulled after real read. Use
1674 `stall' instead of `eof' as stop condition.
1675 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
1676 (http_err): Likewise.
1677 * grub-core/net/tftp.c (ack): Replace the first argument with data
1679 (tftp_receive): Stall if too many packets are in wait queue.
1680 (tftp_packets_pulled): New function.
1681 (grub_tftp_protocol): Set packets_pulled.
1682 * include/grub/net.h (grub_net_packets): New field count.
1683 (grub_net_put_packet): Increment count.
1684 (grub_net_remove_packet): Likewise.
1685 (grub_net_app_protocol): New field `packets_pulled'.
1686 (grub_net): New field `stall'.
1688 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1690 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
1691 sync part to handle them.
1693 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1695 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
1696 * grub-core/net/drivers/ieee1275/ofnet.c
1697 (grub_ieee1275_net_config_real): Likewise.
1699 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1701 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
1702 the direct route for server/gateway.
1704 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1706 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
1707 IP address to server name since we may not hame the DNS.
1709 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1711 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
1712 freeing random buffer on failure.
1713 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
1715 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1717 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
1719 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1721 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
1723 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
1724 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
1725 Handle malloc error correctly.
1727 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1729 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
1732 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1734 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
1737 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1739 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
1740 none is explicitly specified.
1742 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1744 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
1747 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1749 Respect netmask from bootp/dhcp.
1751 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
1752 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
1753 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
1755 (grub_net_add_ipv4_local): ... this.
1756 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
1757 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
1758 (grub_net_add_ipv4_local): New proto.
1760 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1762 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
1763 determining EFI memory map size.
1765 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1767 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
1769 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1771 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
1772 when looking for partition separator.
1774 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1776 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
1779 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1781 Restructure FAT driver to avoid hook in label reading as it hits a
1784 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
1785 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
1786 (grub_fat_iterate_dir): Split into ...
1787 (grub_fat_iterate_init): ... this, ...
1788 (grub_fat_iterate_fini): ... this, ...
1789 (grub_fat_iterate_dir_next): ... and this. All users updated.
1791 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1793 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
1794 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
1795 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1796 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
1797 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
1798 New fields last_key and last_key_time.
1799 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
1800 extended key-esc into extended key-extended key.
1802 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1804 Avoid unnecessary memcpy of whole video buffer.
1806 * grub-core/video/fb/video_fb.c (dirty): New struct.
1807 (framebuffer): Add members current_dirty and previous_dirty.
1808 (dirty): New function.
1809 (grub_video_fb_fill_rect): Update dirty.
1810 (common_blitter): Likewise.
1811 (grub_video_fb_scroll): Likewise.
1812 (doublebuf_blit_update_screen): Copy only dirty part.
1813 (doublebuf_pageflipping_update_screen): Likewise.
1814 (grub_video_fb_doublebuf_blit_init): Init dirty.
1815 (doublebuf_pageflipping_init): Likewise.
1816 (grub_video_fb_setup): Likewise.
1818 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1820 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
1823 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1825 Fix wildcard regexp dot and other special characters handling.
1826 Reported by: Robert Mabee.
1828 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
1829 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
1830 (split_path): Trigger expansion on '?'.
1831 (unescape): New function.
1832 (wildcard_expand): Unescape parts copied without globbing.
1833 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
1834 (grub_script_arglist_to_argv): Don't unescape expansions.
1836 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1838 * include/grub/net.h (grub_net_card): New member txbufsize.
1839 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
1840 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
1841 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
1842 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
1844 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
1845 compatible property to check for macs. Set
1846 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
1847 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
1848 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
1849 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
1850 (send_card_buffer): Use txbuf.
1851 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
1852 nested function out of the parent while on it.
1854 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1856 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
1858 (grub_ieee1275_net_config_real): Fix config pointer.
1860 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1862 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
1863 filename parsing to non-block devices.
1865 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1867 * grub-core/kern/device.c (grub_device_open): Remove dead code.
1869 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1871 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
1874 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1876 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
1877 UUID search command even if hints probing failed.
1879 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1881 * po/POTFILES.in: Regenerated.
1883 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
1885 Speed-up video on fuloong.
1887 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
1889 (grub_pci_device_unmap_range): Handle non-cached address.
1890 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
1892 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
1893 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
1894 (grub_video_sis315pro_set_active_render_target): Removed.
1895 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
1896 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
1897 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
1899 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
1902 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
1904 * docs/grub.texi (Multi-boot manual config): New section.
1906 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1908 Avoid slow read-back from VRAM.
1910 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
1912 * grub-core/video/fb/video_fb.c
1913 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
1914 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
1915 (front_target): Remove front_target. Add pages.
1916 (grub_video_fb_init): Skip setting front_pages.
1917 (grub_video_fb_fini): Likewise.
1918 (doublebuf_blit_update_screen): Use pages.
1919 (grub_video_fb_doublebuf_blit_init): Likewise.
1920 (doublebuf_pageflipping_init): Allocate offscreen buffer.
1921 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
1922 (grub_video_fb_setup): Prefer doublebuffing.
1924 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1926 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
1929 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1933 * tests/util/grub-shell.in: Handle loongson.
1934 * tests/partmap_test.in: Add loongson to the list of platform using ATA
1936 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
1937 Reboot instead of shutdown if REBOOT is defined.
1939 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1941 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
1942 sized ports since unlike on real hardware qemu supports only 32-bit
1945 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1947 * Makefile.util.def (grub-mkrescue): Enable on loongson.
1948 * util/grub-mkrescue.in: Handle loongson.
1950 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
1952 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
1953 Set is_part appropriately.
1954 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
1955 names. Canonicalize partition without full disk.
1957 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1959 Revert usb-quiesce since it's wrong.
1961 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
1962 (grub_ofdisk_init): Don't do quiesce.
1964 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1966 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
1967 PowerMac workaround to Xserves as well.
1968 Information supplied by: Benjamin Herrenschmidt.
1970 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1972 Don't assume that beginning address is also the entry point on ppc.
1974 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
1975 (grub_linux_boot): Use linux_entry.
1976 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
1977 (grub_linux_load64): Likewise.
1979 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1981 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
1983 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1985 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
1986 needlessly lose the console.
1988 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1990 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
1993 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
1995 Remove non-functional EFI grub_get_rtc. Put a better fatal message
1996 than current grub_get_rtc() not implemented when booted with
1997 coreboot without TSC.
1999 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
2000 Add machine/time.h to kernel headers on loongson.
2001 * grub-core/Makefile.core.def (kernel): Remove
2002 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
2003 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
2004 (grub_get_rtc): Likewise.
2005 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
2006 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
2007 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
2008 * grub-core/kern/i386/tsc.c (grub_tsc_init)
2009 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
2010 rather than installing known non-working time source.
2011 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
2012 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
2013 * include/grub/time.h: Don't include machine/time.h.
2014 * include/grub/efi/time.h: Removed.
2015 * include/grub/i386/efi/time.h: Likewise.
2016 * include/grub/i386/ieee1275/time.h: Likewise.
2017 * include/grub/powerpc/ieee1275/time.h: Likewise.
2018 * include/grub/sparc64/ieee1275/time.h: Likewise.
2019 * include/grub/x86_64/efi/time.h: Likewise.
2021 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2023 Remove dot on i and j when combining with above diacritics.
2025 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
2027 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
2028 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
2029 with dotless variants when any combining above is present.
2031 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2033 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
2034 text and not binary.
2036 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2038 Stop polling as soon as we have the packet we were waiting for.
2040 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
2042 * grub-core/net/arp.c (have_pending): New var.
2043 (pending_req): Likewise.
2044 (grub_net_arp_send_request): Fill pending_req and use have_pending as
2046 (grub_net_arp_receive): Set have_pending.
2047 * grub-core/net/dns.c (recv_data): New field stop.
2048 (recv_hook): Set stop.
2049 (grub_net_dns_lookup): Init stop and use as stop condition.
2050 * grub-core/net/http.c (http_establish): Use headers_recv as stop
2052 * grub-core/net/net.c (grub_net_poll_cards): New argument
2053 stop_condition. Stop when it goes true.
2054 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
2056 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
2058 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2060 Keep TX and RX buffers on EFI rather than always allocate new ones.
2062 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
2063 card. All users updated.
2064 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
2065 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
2066 (get_card_packet): Likewise.
2067 (grub_efinet_findcards): Init new fields.
2069 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2071 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
2072 compilation error on sparc64.
2074 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2076 Use ITC on IA64 rather than broken routine based on daytime.
2078 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
2080 (grub_get_rtc) [__ia64__]: Likewise.
2081 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
2082 (get_itc): New function.
2083 (grub_rtc_get_time_ms): Likewise.
2084 (grub_machine_init): Calibrate ITC.
2085 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
2086 Keep only on non-ia64. Don't export since it's broken and used only
2087 if TSC is unavailable.
2089 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2091 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
2093 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
2094 Skip if parent is unused.
2096 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2098 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
2100 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2102 Fix wildcard escaping.
2104 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
2105 * grub-core/script/execute.c (wildcard_escape): .. to here.
2107 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
2108 * grub-core/script/execute.c (wildcard_unescape): .. to here.
2110 * grub-core/script/execute.c (gettext_append): Always escape.
2111 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
2112 * grub-core/script/yylex.l: Don't cut away the escaping.
2113 * tests/grub_script_echo1.in: Add tests with wildcard.
2115 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2117 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
2118 (ftdi_hw_configure): Likewise.
2119 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
2121 (real_config): Handle 1.5 stop bits.
2122 (pl2303_hw_configure): Likewise.
2124 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2126 * Makefile.am: Add ppc linux bootcheck.
2127 * grub-core/tests/boot/linux-ppc.cfg: New file.
2128 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
2130 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2132 * tests/grub_script_expansion.in: Skip network protocols.
2134 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2136 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
2138 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2140 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
2144 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2146 ESCC serial driver for conducting sautomated tests in qemu.
2147 Not tested on real hardware.
2149 * include/grub/serial.h (grub_serial_port): New field escc_desc.
2150 * grub-core/term/ieee1275/escc.c: New file.
2151 * grub-core/Makefile.core.def (escc): New module.
2153 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2155 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
2157 (serial_hw_fetch): Don't read invalid handle.
2158 (serial_hw_put): Don't write into invalid handle.
2160 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2162 Add a 1.5 stop bits value.
2164 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
2165 * include/grub/serial.h (grub_serial_stop_bits_t): Add
2166 GRUB_SERIAL_STOP_BITS_1_5.
2168 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2170 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
2171 value rather than let it uninited.
2173 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2175 * grub-core/commands/wildcard.c (+check_file): New function.
2176 (wildcard_expand): Don't expand to non-existing files, expand with
2177 suffix and not attempt to expand if not needed.
2179 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2181 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
2182 out of partitions containing other partitions.
2184 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2186 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
2187 on some qemu versions with GRUB.
2189 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
2191 (grub_openbsd_bootarg_pcibios): New struct.
2192 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
2195 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2197 * tests/util/grub-shell.in: Trim firmware output on EFI.
2199 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2201 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
2202 and coreboot since it's already in kernel.
2204 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2206 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
2207 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
2208 to here. New return value start. All users updated.
2209 Recursively scan linear mappings.
2210 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
2212 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
2213 Use grub_util_get_dm_node_linear_info.
2214 * util/getroot.c (convert_system_partition_to_system_disk): Use
2215 grub_util_info rather than grub_dprintf.
2216 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
2218 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2220 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
2222 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
2223 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
2225 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2227 * include/grub/types.h (grub_set_unaligned64): New function.
2228 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
2231 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2233 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
2234 (grub_ofdisk_fini): Quiesce USB devices.
2236 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2238 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
2241 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2243 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
2245 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2247 * grub-core/disk/pata.c (grub_pata_pio_read)
2248 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
2249 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
2251 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2253 Extend automated tests to qemu-mips.
2255 * Makefile.am: reorganise tests and enable qemu-mips.
2256 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
2257 * grub-core/tests/boot/linux.init-mips.S: New file.
2258 * tests/partmap_test.in: Handle ata0 disks.
2259 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
2262 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2264 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
2266 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
2269 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2271 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
2272 (grub_halt): Likewise.
2273 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
2275 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2277 * grub-core/term/serial.c (grub_serial_register)
2278 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
2279 the behaviour in line with x86 platforms.
2281 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2283 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
2284 (grub_ata_strncpy): Likewise.
2285 (grub_ata_identify): Add missing byteswaps.
2287 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2289 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
2291 (screen_read_char): Likewise.
2292 (grub_vga_text_cls): Likewise.
2294 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2296 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
2298 (make_file_path): Likewise.
2300 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2302 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
2304 Tested by: Paulo Flabiano Smorigo.
2305 Crucial information about API supplied by: Coleen <Last name unknown>.
2306 Reviewed by: Coleen <Last name unknown>.
2308 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2310 * util/grub-mkimage.c: Disable -Wcast-align.
2312 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2314 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
2317 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2319 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
2321 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2323 * util/grub-probe.c (escape_of_path): Fix double free.
2325 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2327 * grub-core/commands/videoinfo.c (hook): Show pitch.
2329 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2331 * util/grub.d/20_linux_xen.in: Skip xen-syms.
2333 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2335 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
2336 (probe): Add ieee1275 to OFW devices.
2338 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2340 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
2342 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2344 Handle IBM OFW path.
2346 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
2348 (of_path_of_scsi): Handle vdevice.
2350 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
2352 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
2353 Allocate in multiples of 16 to avoid adding a few bytes free region the
2356 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
2358 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
2359 Allocate in multiples of 16 to avoid adding a few bytes free region the
2361 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
2363 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2365 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
2367 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
2368 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
2370 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
2372 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
2374 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2376 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
2377 resulted in \\ at the end of the line.
2379 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2381 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
2382 (grub_parser_cmdline_state): Likewise.
2383 (grub_parser_split_cmdline): Likewise.
2385 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2387 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
2388 /dev/root and /dev/dm-*.
2390 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2392 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
2393 fix partially stale display.
2395 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2397 * grub-core/normal/menu_entry.c (backward_char): Use right line for
2400 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2402 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
2403 Fix MBR remapping workaround.
2404 (grub_util_biosdisk_read) [__linux__]: Likewise.
2406 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
2408 * util/grub-install.in: Check for ieee1275 and not ieee1276.
2410 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2412 * configure.ac: Bump to beta6.
2414 2012-05-31 Christer Weinigel <christer@weinigel.se>
2416 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
2418 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2420 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
2421 (grub_cmd_linux): Likewise.
2423 2012-05-31 Christer Weinigel <christer@weinigel.se>
2427 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
2428 (GRUB_EHCI_MULT_TWO): Likewise.
2429 (GRUB_EHCI_MULT_THREE): Likewise.
2430 (GRUB_EHCI_CMASK_MASK): New enum value.
2431 (GRUB_EHCI_SMASK_MASK): Likewise.
2432 (GRUB_EHCI_CMASK_OFF): Likewise.
2433 (GRUB_EHCI_SMASK_OFF): Likewise.
2434 (grub_ehci_pci_iter): Enable periodic schedule.
2435 (grub_ehci_parse_notrun): Likewise.
2436 (grub_ehci_restore_hw): Likewise.
2437 (grub_ehci_setup_qh): Set flags for low speed transfers.
2438 (grub_ehci_find_qh): Use periodic list for low speed.
2439 (grub_ehci_setup_transfer): Check periodic queue as well.
2440 (grub_ehci_check_transfer): Likewise.
2441 (grub_ehci_cancel_transfer): Cancel periodic transfer.
2443 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2445 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
2448 2012-05-31 Peter Jones <pjones@redhat.com>
2450 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
2451 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
2452 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
2454 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2456 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
2457 uninited variable. Allocate at least setup_sects.
2459 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2461 Fix handling of EFI with big memory maps.
2463 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
2464 (real_mode_mem): Likewise.
2465 (real_mode_target): Likewise.
2466 (real_mode_pages): Likewise.
2467 (prot_mode_pages): Likewise.
2468 (linux_params): New var.
2469 (linux_cmdline): Likewise.
2470 (free_pages): Don't set real mode variables.
2471 (allocate_pages): Don't allocate real mode memory.
2472 (grub_e820_add_region): Remove the limit.
2473 (grub_linux_boot): Allocate and copy real mode memory.
2474 (grub_linux_unload): Free linux_cmdline.
2475 (grub_cmd_linux): Use temporary storage for parameters.
2476 (grub_cmd_initrd): Likewise.
2477 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
2478 (linux_kernel_params): Make it 1K big.
2480 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2482 * Makefile.util.def: Remove -Wno-format.
2483 * grub-core/Makefile.core.def: Likewise.
2485 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2487 * tests/cmp_unit_test.c: Add missing failure message.
2488 * tests/example_unit_test.c: Likewise.
2489 * tests/printf_unit_test.c: Likewise.
2491 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2493 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
2494 relaxation of protective MBR requirements.
2496 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2498 * configure.ac: Add condition for COND_HOST_XNU.
2499 * Makefile.util.def (10_xnu): New script.
2500 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
2502 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2504 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
2507 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2509 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
2510 Binary on other platforms stays identical.
2512 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2514 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
2517 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2519 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
2521 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2523 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
2524 rather than defining size_t ourselves to avoid conflict.
2526 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2528 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
2529 initialisation to avoid __bzero reference.
2531 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2533 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
2535 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
2536 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
2537 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
2538 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
2539 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
2541 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2543 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
2544 * grub-core/kern/misc.c: Likewise.
2545 * grub-core/loader/i386/xnu.c: Likewise.
2546 * include/grub/i386/tsc.h: Likewise.
2547 * include/grub/symbol.h: Likewise.
2549 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2551 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
2552 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
2555 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2557 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
2558 Implement Apple flavour.
2559 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
2561 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2563 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
2564 (memmove) [__APPLE__]: Likewise.
2565 (memcpy) [__APPLE__]: Likewise.
2566 (memset) [__APPLE__]: Likewise.
2567 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
2568 (memmove) [__APPLE__]: Likewise.
2569 (memcpy) [__APPLE__]: Likewise.
2570 (memset) [__APPLE__]: Likewise.
2572 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2574 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
2577 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2579 * grub-core/normal/main.c (read_config_file): Provide config_file and
2581 * util/grub.d/41_custom.in: Use config_directoy when available.
2583 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2585 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
2586 (grub_bfs_dir): Likewise.
2588 2012-05-27 Peter Jones <pjones@redhat.com>
2590 The old code gives arguments to a printf function which can't work
2591 correctly, and the compiler complains.
2593 * grub-core/tests/example_functional_test.c (example_test): Add
2595 * grub-core/tests/lib/test.c (add_failure): Rewrite.
2596 * include/grub/test.h (grub_test_assert_helper): New declaration.
2597 (grub_test_assert): Use grub_test_assert_helper.
2599 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2601 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
2602 (exfctest): ... this to avoid overlong filenames.
2605 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2607 Handle "." and ".." on squashfs.
2609 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
2610 Make inode numbers into stack.
2611 (grub_squash_read_symlink): Use stack.
2612 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
2613 (make_root_node): Fill stack.
2614 (grub_squash_open): Use stack.
2616 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2618 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
2621 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2623 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
2624 stderr on test calls.
2626 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2628 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
2630 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2632 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
2634 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2636 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
2639 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2641 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
2642 (grub_hfsplus_iterate_dir): Add "." and "..".
2644 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2646 * grub-core/fs/cpio.c (canonicalize): Handle "..".
2647 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
2649 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2651 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
2652 (find_path): Handle "." and "..".
2654 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2656 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
2657 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
2658 (grub_affs_iterate_dir): Handle hardlinks.
2660 2012-05-26 Matthew Garrett <mjg@redhat.com>
2662 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
2663 (grub_efi_console_fini): Likewise.
2664 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
2665 (grub_video_gop_fill_mode_info): Rename to ...
2666 (grub_video_gop_fill_real_mode_info): ... this.
2667 (grub_video_gop_fill_mode_info): New function.
2668 (grub_video_gop_setup): Setup double framebuffer.
2669 (grub_video_gop_get_info_and_fini): Use original framebuffer.
2671 (grub_video_gop_swap_buffers): Copy framebuffer.
2672 (grub_video_gop_fini): Free offscreen buffer.
2673 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
2675 (grub_efi_gop_blt_pixel): New struct.
2677 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2679 * gentpl.py: Remove error disabling for objconv.
2681 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2683 * configure.ac: Remove -Wunitialized as it's not available on older
2686 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2688 Fix extent overflow comparator.
2690 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
2691 (grub_hfsplus_read_block): Set type.
2692 (grub_hfsplus_cmp_extkey): Compare type.
2694 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
2696 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
2698 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2700 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
2703 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2705 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
2706 (dejavu_bold_14.pf2): New target.
2708 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2710 * configure.ac: Fix djvu font detection.
2712 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2714 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
2715 ext* instead of ext2.
2717 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2719 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
2722 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
2724 * docs/grub-dev.texi: Remove dot from .png.
2726 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2728 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
2729 protective entry in any slot.
2730 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
2731 if protective entry is found in any slot.
2733 Protective entry in non-first slot make no sense but is a widespread
2736 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2738 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
2740 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2742 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
2744 (grub_reiserfs_open): Don't free root.
2746 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2748 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
2749 after freeing for safety.
2751 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2753 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
2754 Reported by: Jordan Uggla.
2756 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
2758 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
2759 actual implementation. Specifically, clarify that the grub menu will
2760 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
2763 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
2765 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
2768 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2770 Remove unjustified hard dependency of normal.mod on gfxterm.
2772 * include/grub/term.h (grub_term_output): New member fullscreen.
2773 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
2774 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
2775 (grub_gfxterm): Set .fullscreen.
2776 * grub-core/normal/menu.c (menu_init): Use fullscreen.
2777 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
2779 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2781 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
2782 mentioning possible problems with non-ASCII (non-compliant) ISOs.
2783 Mention case-insensitive AFFS, SFS and JFS.
2785 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2787 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
2789 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2791 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
2794 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2796 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
2797 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
2799 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2801 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
2802 (grub_jfs_mount): Fill caseins.
2803 (grub_jfs_find_file): Respect caseins.
2805 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2807 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
2810 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2812 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
2813 New argument origpath. All users updated.
2815 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2817 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
2818 (read_attr): Ensure that we read start of possibly compressed block.
2820 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2822 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
2823 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
2826 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2828 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
2829 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
2830 (dejavu.pf2): Replace with ...
2831 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
2834 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2836 * util/grub.d/20_linux_xen.in: Add missing line.
2838 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2840 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
2841 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
2842 (grub_utf16_to_utf8): Likewise.
2844 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2846 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
2847 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
2848 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2849 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
2850 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
2851 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
2853 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2855 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
2858 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2860 * grub-core/fs/udf.c (read_string): Bail out on size=0.
2861 (grub_udf_read_symlink): Handle read_string failure.
2863 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2865 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
2868 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2870 Fix handling of UDF symlinks.
2872 * grub-core/fs/udf.c (read_string): New argument outbuf.
2874 (grub_ufs_read_symlink): Rename to ...
2875 (grub_udf_read_symlink): ... this. All users updated.
2876 Handle symlinks with more than one component.
2878 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2880 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
2881 symlinks. Replace leading colon with a slash.
2883 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2885 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
2888 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2890 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
2891 match in inner node.
2893 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2895 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
2896 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
2897 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
2898 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
2899 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
2900 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
2901 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
2902 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
2903 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
2905 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2907 Use grub-probe and not cmp to check that disk is empty.
2909 * util/grub-install.in: Use grub-probe for zero-check.
2910 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
2911 (probe): Handle PRINT_ZERO_CHECK.
2912 (argp_parser): Handle -t zero_check.
2914 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2916 Flush block cache on adding disk to device map.
2918 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
2919 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
2921 (read_device_map): Likewise.
2922 (open_device): Flush on opening.
2924 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2926 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
2927 (handle_symlink): Fix off-by-one error.
2928 Canonicalize the target.
2929 (grub_cpio_dir): Canonicalize the name.
2932 (grub_cpio_open): Canonicalize the name.
2934 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2936 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
2939 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2941 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
2942 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
2944 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2946 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
2947 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
2950 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2952 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
2955 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2957 Fix UFS1 big file support.
2959 * grub-core/fs/ufs.c (INODE): Removed.
2960 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
2962 (INODE_MODE): Simplify.
2963 (grub_ufs_inode): Use uint64_t for size and not int64_t.
2964 (grub_ufs_lookup_symlink): Don't use INODE.
2966 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2968 Fix minixfs with non-power-of-two blocks since it's supported by minix.
2970 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
2971 (grub_minix_data): Replace log_block_size with block_size.
2972 (grub_minix_read_file): Use block_size but avoid 64-bit division.
2973 (grub_minix_mount): Fill block_size.
2975 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2977 * configure.ac: Bump to beta5.
2979 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2981 Fix wrapped HFS+ handling.
2983 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
2984 blocks_start. All users updated.
2985 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
2987 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
2989 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2991 Fix long symlinks on reiserfs.
2993 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
2994 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
2995 (grub_reiserfs_iterate_dir): Save size for non-directories.
2996 (grub_reiserfs_open): Don't reread stat block as we already know the
2998 (grub_reiserfs_read): Split into...
2999 (grub_reiserfs_read_real): ... and ...
3000 (grub_reiserfs_read): ...this.
3002 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3004 Fix non-indexed JFS.
3006 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
3007 (grub_jfs_data): New field namecomponentlen.
3008 (grub_jfs_mount): Fill namecomponentlen.
3009 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
3011 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3013 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
3014 * tests/grub_script_echo1.in: Add tests.
3016 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3018 * util/grub-install.in: Ignore empty devicetree directory.
3020 2012-05-08 Bean <bean123ch@gmail.com>
3022 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
3024 (free_rsm): Free header as well.
3025 (free_old_fragments): Fix memory leak.
3026 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
3027 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
3028 (destroy_pq): Likewise.
3029 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
3031 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3033 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
3034 resulting hash as a precaution.
3036 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3038 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
3039 '_' in variable names.
3040 * grub-core/net/net.c (grub_net_network_level_interface_register):
3043 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3045 Fix AFFS with non-512B blocks.
3047 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
3048 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
3049 (grub_affs_data): Replace blocksize with log_blocksize.
3050 (grub_affs_read_block): Fix non-512B blocks.
3051 (grub_affs_read_symlink): Likewise.
3052 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
3053 (grub_affs_read): Fix non-512B blocks.
3054 (grub_affs_label): Likewise.
3055 (grub_affs_mtime): Likewise.
3056 (grub_affs_mount): Fix block detection routine.
3058 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3060 Add filesystem mtime to AFFS.
3062 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
3063 (aftime2ctime): New function.
3064 (grub_affs_dir): Use aftime2ctime.
3065 (grub_affs_label): Fix return value.
3066 (grub_affs_mtime): New function.
3067 (grub_affs_fs): Add mtime.
3069 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3071 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
3074 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3076 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
3079 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3081 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
3083 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3085 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
3087 (FLAGS_CASE_SENSITIVE): New enum value.
3088 (cache_entry): New struct.
3089 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
3090 cache_size and cache.
3091 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
3092 Add log_blocksize and fshelp_flags.
3093 (grub_sfs_read_extent): Handle non-512 blocks.
3094 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
3095 (grub_sfs_read_file): Handle non-512 blocks.
3096 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
3098 (grub_sfs_read_symlink): Handle non-512 blocks.
3099 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
3100 (grub_sfs_dir): Free cache.
3101 (grub_sfs_close): Likewise.
3103 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3105 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
3108 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3110 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
3112 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3114 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
3116 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3118 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
3119 (grub_sfs_read_extent): Likewise.
3120 (grub_sfs_read_block): Likewise.
3121 (grub_sfs_mount): Likewise.
3122 (grub_sfs_iterate_dir): Likewise.
3123 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
3124 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
3126 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3128 Fix errors on compressed NTFS with 512B clusters.
3130 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
3132 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
3134 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
3135 Relax check for inline extents.
3136 (ntfscomp): Return correct -1 on error and not 0.
3138 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3140 * util/grub-install.in: Fix handling of prefix containing spaces.
3142 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3144 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
3145 (grub_squash_read_data): Fix offset byte-swapping.
3147 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3149 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
3150 per common usage and preffered in several parts of code.
3151 (grub_memcmp): Likewise.
3152 (grub_strncmp): Likewise.
3153 * include/grub/misc.h (grub_strcasecmp): Likewise.
3154 (grub_strncasecmp): Likewise.
3155 * Makefile.util.def (cmp_test): New test.
3156 (grub_script_strcmp): Likewise.
3157 * tests/cmp_unit_test.c: New file.
3158 * tests/grub_script_strcmp.in: Likewise.
3159 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
3161 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3163 * include/grub/pci.h: Move enums into no-asm part.
3165 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3167 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
3169 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
3171 * util/getroot.c (find_hurd_root_device): Try to make error message
3172 and comments to translators clearer.
3174 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3176 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
3178 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3180 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
3183 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3185 * docs/grub.cfg: Update.
3187 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3189 * docs/grub.texi (PXE): Remove not present variables.
3191 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3193 * grub-core/net/net.c (defserver_set_env): New function.
3194 (defserver_get_env): Likewise.
3195 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
3197 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3199 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
3202 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3204 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
3205 * grub-core/kern/emu/hostdisk.c: Likewise.
3207 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3209 Handle hurd userspace partitions.
3211 * util/getroot.c (find_hurd_root_device): New function.
3212 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
3214 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3216 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
3218 Reported by: Bastian Blank.
3220 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3222 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
3223 crossing page boundary.
3225 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3227 Fix B-tree search in BFS, especially in presence of non-ASCII
3230 * grub-core/fs/bfs.c (bfs_strcmp): New function.
3231 (find_in_b_tree): Use standard bsearch + btree algorithm.
3233 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3235 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
3238 2012-05-03 Matthew Garrett <mjg@redhat.com>
3239 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3241 Suspend broadcom cards in order to stop their DMA.
3243 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
3244 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
3245 (pci): Don't build on x86 EFI.
3246 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
3247 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
3249 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
3250 stop_broadcom if running on EFI.
3251 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
3252 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
3253 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
3254 (grub_pci_find_capability): New proto.
3256 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3258 * docs/grub.texi: Remove dot from the extension as it apparently
3259 doesn't work with some makeinfo versions.
3261 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3263 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
3264 with GRUB expectance.
3266 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3268 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
3270 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3272 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
3273 zero after directory block since last entry may be not 0-terminated if
3274 it ends on block boundary. Use continue instead of if spanning whole
3277 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3279 Support 4K sectors UDF inline files.
3281 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
3282 (grub_udf_extended_file_entry): Likewise.
3283 (grub_fshelp_node): Name the anonymous union. Put block at the end.
3285 (get_fshelp_size): New function.
3286 (grub_udf_read_icb): Read whole block.
3287 (grub_udf_iterate_dir): Likewise.
3288 (grub_udf_dir): Likewise.
3289 (grub_udf_open): Likewise.
3291 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3293 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
3295 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3297 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
3298 inline symlinks in addition to workaround.
3300 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3302 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
3304 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3306 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
3308 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3310 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
3312 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3314 Fix reiserfs big seek times.
3316 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
3317 exact. All users updated.
3318 (grub_reiserfs_read): Use nearest btree search for seeking.
3319 Fix return value on error.
3321 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3323 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
3325 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
3326 * docs/grub.texi: Update menuentry description.
3328 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3330 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
3331 crash when embedding onto filesystem.
3333 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3335 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
3338 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3340 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
3342 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3344 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
3347 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3348 2012-05-01 Bean <bean123ch@gmail.com>
3350 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
3352 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3354 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
3355 Special behaviour for len = 0 to read whole file isn't used anywhere and
3356 can cause buffer ovewrflows in several places.
3358 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3360 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
3362 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3364 Handle RAIDZ on non-512B sectors.
3366 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
3367 max_children_ashift.
3368 (fill_vdev_info_real): Fill max_children_ashift.
3369 (read_device): Use max_children_ashift.
3371 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3373 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
3375 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3377 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
3379 * docs/grub.texi: Update device.map parts.
3381 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3383 Don't scan into non-diskfilter devices having diskfilter names.
3385 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
3386 (scan_disk): New argument accept_diskfilter. Fix recursion depth
3388 (scan_disk_hook): New function.
3390 2012-04-29 Bean <bean123ch@gmail.com>
3392 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
3395 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
3397 * configure.ac: Detect starfield theme font path
3398 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
3400 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3402 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
3403 geometry on serial consoles.
3405 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3407 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
3408 because of network consoles.
3410 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3412 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
3415 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3417 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
3420 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3422 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
3423 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
3425 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3427 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
3428 Allocate at lest 8192 for temporary buffer as required for lzo.
3430 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3432 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
3433 to cluster_bits, since it's already added in.
3434 (grub_fat_read_data): Likewise.
3436 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3438 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
3439 as long as cluster size is multiple of 512 bytes.
3441 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
3443 * util/grub-mkrescue.in: Fix locale directory.
3445 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
3447 * grub-core/kern/emu/hostdisk.c (map): Make static.
3449 2012-04-23 Bean <bean123ch@gmail.com>
3451 * util/grub-fstest.c (fstest): Add missing break.
3453 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
3457 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
3458 not define nr variable.
3459 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
3460 find_root_devices_from_poolname, find_root_devices_from_libzfs,
3461 grub_find_device): Do not define.
3463 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3465 Fix kfreebsd compile and behaviour.
3467 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
3469 * util/getroot.c: Fix wait.h include.
3470 (grub_guess_root_devices): Error if grub_find_device fails.
3471 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
3472 (grub_util_get_dev_abstraction): Likewise.
3473 (grub_util_pull_device): Likewise.
3474 (grub_util_get_grub_dev): Likewise.
3475 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
3477 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3479 Fix and unify wholedisk detection.
3481 * util/getroot.c (convert_system_partition_to_system_disk): New argument
3482 is_part. All users updated.
3483 (device_is_wholedisk): Removed.
3484 (grub_util_biosdisk_get_grub_dev): Use is_part.
3486 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3488 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
3491 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3493 * configure.ac: Bump to beta4.
3495 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3497 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
3498 --fs-uuid --set UUID syntax.
3500 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3502 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
3505 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3507 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
3509 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
3511 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
3513 2012-04-18 Mike Gilbert <floppym@gentoo.org>
3515 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
3517 2012-04-18 Bean <bean123ch@gmail.com>
3519 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
3522 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3524 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
3526 (grub_util_biosdisk_read): Handle Linux partitions not exactly
3527 corresponding to GRUB partitions.
3528 (grub_util_biosdisk_write): Likewise.
3530 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3532 Scan mdraid before LVM.
3534 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
3535 (grub_diskfilter_register_front): ... this.
3536 (grub_diskfilter_register_back): New function.
3537 All users of grub_diskfilter_register updated.
3539 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3541 * util/grub-install.in: Fix an automatic target detection bug.
3543 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3545 * util/grub-install.in: New option --efi-directory.
3547 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3549 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
3550 boot services if we have no other choice.
3552 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3554 * util/grub-mknetdir.in: Rename --override-directory to --directory and
3556 * tests/util/grub-shell.in: Update to --directory.
3558 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3560 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
3562 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3564 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
3565 (grub_minix_read_file): Likewise.
3566 (grub_minix_read_inode): Likewise.
3567 (grub_minix_find_file): Likewise.
3568 (grub_minix_dir): Likewise.
3570 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3572 * util/grub-setup.c (setup): Fix partition handling and blocklist
3575 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3577 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
3578 redundant buggy overlap check.
3580 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3582 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
3585 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3587 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
3588 kh.loadflags on pre-2.00 kernels.
3590 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3592 Terminate UNDI and PXE before launching the payload to avoid problems
3595 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
3596 (grub_loader_flags): ... this. All users updated.
3597 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
3598 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
3599 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
3600 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
3602 (grub_pxe_restore): Likewise.
3603 (fini_hnd): New var.
3604 (GRUB_MOD_INIT): Register shutdown hook.
3605 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
3606 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
3607 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
3608 (grub_loader_set): Rename second argument to flags.
3610 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3612 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
3614 (grub_get_num_of_utf8_bytes): New function.
3615 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
3616 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
3618 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
3619 (grub_ucs4_to_utf8): Change return type.
3621 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3623 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
3625 * grub-core/fs/bfs.c (hop_level): Likewise.
3626 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
3628 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3630 * grub-core/lib/adler32.c: Recode due to license unclearness.
3632 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3634 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
3635 (test_header): Likewise.
3637 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3639 Fix --help formatting.
3641 * util/grub-mkconfig_lib.in (print_option_help): New function.
3642 (grub_fmt): Likewise.
3643 * util/grub-install.in: Use print_option_help and grub_fmt.
3644 * util/grub-kbdcomp.in: Likewise.
3645 * util/grub-mkconfig.in: Likewise.
3646 * util/grub-mknetdir.in: Likewise.
3647 * util/grub-mkrescue.in: Likewise.
3648 * util/grub-mkstandalone.in: Likewise.
3649 * util/grub-reboot.in: Likewise.
3650 * util/grub-set-default.in: Likewise.
3651 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3653 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3655 * linguas.sh: Remove autogenerated *.po.
3657 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3659 * po/README: Move language fetcing to ...
3660 * linguas.sh: ... here.
3661 * po/README: Point to linguas.sh.
3663 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3665 * po/README: Exclude ko.po due to disclaimer problems.
3667 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3669 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
3671 (grub_gettext_translate_real): Handle 0th string.
3672 (grub_gettext_translate): Ensure that "" isn't translated.
3674 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3676 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
3677 TRANSLATORS comment.
3678 (grub_diskfilter_print_partmap): Propagate changing of error into
3681 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3683 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
3684 to uint64_t to prevent overflow.
3685 (grub_diskfilter_lv): Increase start_extent and extent_count
3686 to uint64_t to prevent overflow.
3688 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3690 * configure.ac: Increase version.
3692 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3694 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
3696 * po/Rules-translit: New file.
3697 * po/arabic.sed: Likewise.
3698 * po/cyrillic.sed: Likewise.
3699 * po/greek.sed: Likewise.
3700 * po/hebrew.sed: Likewise.
3701 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
3702 * po/Makefile.in.in: Add extra_dist4.
3704 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3706 Handle big-endian minixfs (fixes minixfs tests on bigendian).
3708 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
3709 modify names. Introduce MODE_BIGENDIAN.
3710 * grub-core/fs/minix_be.c: New file.
3711 * grub-core/fs/minix2_be.c: Likewise
3712 * grub-core/fs/minix3_be.c: Likewise.
3713 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
3715 * grub-core/Makefile.core.def (minix_be): New module.
3716 (minix2_be): Likewise.
3717 (minix3_be): Likewise.
3719 2012-04-01 Felix <email@hamburg.de>
3721 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
3722 (devs): Add MBP 2011.
3724 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3726 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
3728 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3730 * grub-core/normal/cmdline.c (print_completion): New field
3732 (grub_cmdline_get): Handle width properly.
3734 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3736 * grub-core/commands/lsacpi.c (options): Add missing terminator.
3738 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3740 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
3741 after 29th of February.
3743 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3745 Fix exfat endianness handling.
3747 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
3748 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
3749 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
3750 Byte-swap utf16 when necessary.
3751 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
3753 2012-03-31 Anton Blanchard <anton@samba.org>
3754 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3756 Fix btrfs endianness handling.
3758 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
3759 (lower_bound): Make root uint64_t. Use root in le.
3760 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
3761 (find_path): Fix template key init.
3762 (grub_btrfs_dir): Fix mtime byteswap.
3763 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
3765 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3767 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
3768 recursion_depth. Break infinite resursions. All users updated.
3770 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3772 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
3774 Reported by: Peter Jones.
3776 2012-03-31 Anton Blanchard <anton@samba.org>
3778 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
3781 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
3783 * util/grub-install.in: Fix nvram call for PreP.
3785 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
3787 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
3788 the error when some elements are missing into a warning.
3790 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
3792 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
3794 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
3796 * docs/grub.texi (Invoking grub-probe): New section.
3797 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
3799 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
3801 Fix tab and wide character handling in editor and menu.
3803 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
3804 agglomerate control characters with combining marks.
3805 (bidi_line_wrap): Allow break on tab.
3806 (grub_unicode_get_comb_start): New function.
3807 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
3809 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
3811 * grub-core/normal/term.c (print_ucs4_terminal): New argument
3812 fixed_tab_size. All users updated.
3813 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
3814 (grub_term_getcharwidth): Handle \t.
3815 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
3818 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3820 Handle big-endian mdraid.
3822 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
3823 * grub-core/Makefile.core.def (mdraid09_be): New module.
3824 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
3825 rather than grub_le_to_cpu* and grub_cpu_to_le*.
3826 * grub-core/disk/mdraid_linux_be.c: New file.
3828 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3830 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
3832 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3834 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
3835 missing quotes which caused confusion among translators.
3837 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3839 * util/grub-mkconfig_lib.in: Fix typo.
3841 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3843 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
3845 * tests/grub_script_leading_whitespace.in: New file.
3846 * Makefile.util.def (grub_script_leading_whitespace): New test.
3848 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3850 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
3853 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3855 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
3856 starts with control character.
3858 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3860 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
3862 (grub_gdb_outbuf): Likewise.
3864 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3866 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
3867 zero terminator. Fixes a crash.
3869 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3871 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
3873 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
3874 images independently of preffered adderss field.
3876 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3878 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
3879 * grub-core/commands/regexp.c: Likewise.
3880 * grub-core/loader/i386/linux.c: Likewise.
3881 * grub-core/partmap/msdos.c: Likewise.
3882 * grub-core/script/execute.c: Likewise.
3883 * grub-core/term/gfxterm.c: Likewise.
3885 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3887 Add variable parsing in $"..." and fix several mismatches with bash.
3889 * Makefile.util.def (grub_script_gettext): New test.
3890 * grub-core/script/execute.c (parse_string): New function.
3891 (gettext_append): Likewise.
3892 (grub_script_arglist_to_argv): Use gettext_append.
3893 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
3894 * tests/grub_script_gettext.in: New file.
3896 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3898 Fix handling of leading spaces in scripts.
3900 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
3902 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
3903 other than skipping \r. All users updated.
3904 * tests/grub_script_echo1.in: Add space-related tests.
3905 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
3907 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3909 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
3911 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3913 * configure.ac: Bump up the version to beta2.
3915 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3917 Fix gettext reload bugs (e.g. inability to disable gettext
3920 * grub-core/gettext/gettext.c: Encapsulate all static variables in
3921 main_context and secondary_context. All functions updated.
3922 (grub_gettext_translate): Rename to ...
3923 (grub_gettext_translate_real): ... this. Return NULL on failed
3925 (grub_gettext_translate): Handle secondary context.
3926 (grub_gettext_delete_list): Close file and zero-out the context.
3927 (grub_mofile_open): Don't call grub_gettext_delete_list.
3929 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
3930 if locale="" to avoid pointless error message.
3931 (grub_gettext_env_write_lang): Update lang even if load fails.
3932 Handle secondary context.
3933 (grub_gettext_reread_prefix): New function.
3934 (read_main): Likewise.
3935 (read_secondary): Likewise.
3936 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
3937 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
3938 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
3939 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
3941 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3943 * configure.ac: Decrease warning level to avoid spurious warnings and
3944 to be able to compile with GCC 4.2.
3945 * Makefile.util.def: Remove -Wno-error=logical-op.
3947 2012-03-10 William Bittner <william.bittner@gmail.com>
3949 * util/import_unicode.py: Add missing brackets around string for
3952 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3954 Fix efi chainloader on network root.
3956 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
3958 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
3961 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3963 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
3964 unused show_text member.
3965 * docs/grub.texi: Document "text" property.
3967 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3969 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
3972 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3974 Fix IMSM handling on Fedora.
3976 * util/getroot.c (grub_util_is_imsm): New function.
3977 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
3979 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3981 * Makefile.am: Strip gold section.
3982 * conf/Makefile.common: Likewise.
3983 * gentpl.py: Likewise.
3984 * grub-core/Makefile.core.def: Likewise.
3985 * grub-core/genmod.sh.in: Likewise.
3987 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3989 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
3990 * util/grub.d/20_linux_xen.in: Likewise.
3991 Based on Debian patch.
3993 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3995 * util/grub.d/10_linux.in: Fix syntax error resulting in
3996 Richard Laager's patch.
3997 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
3999 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4001 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
4004 2012-03-10 Richard Laager <rlaager@wiktel.com>
4006 * util/grub.d/10_linux.in: Fix ZFS root passing.
4008 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4010 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
4011 * grub-core/commands/xnu_uuid.c: Likewise.
4012 * grub-core/loader/efi/appleloader.c: Likewise.
4013 * grub-core/script/execute.c: Likewise.
4014 * grub-core/script/main.c: Likewise.
4015 * util/grub-mkfont.c: Likewise.
4017 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4019 * util/grub-mkfont.c (options): Use more appropriate "select" that
4020 "set" for face index.
4022 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4024 * util/grub-editenv.c (options): Gettextize command summaries.
4026 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4028 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
4029 "out of memory" error messagge.
4031 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4033 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
4034 of diskfilter for diskfilter on diskfilter support.
4036 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4038 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
4040 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4042 * util/grub-install.in: Check for themes/starfield/theme.txt and not
4045 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4047 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
4049 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4051 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
4053 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4055 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
4058 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
4060 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
4062 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
4064 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
4066 * util/grub-install.in: Fix and gettextize error message.
4068 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4070 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
4072 * util/grub-mount.c (options): Likewise.
4074 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4076 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
4078 * grub-core/commands/search_wrap.c (options): Likewise.
4080 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4082 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
4084 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4086 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
4088 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
4091 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4093 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
4094 "temporary" since it's used in identifier and is limited in space.
4096 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4098 * po/POTFILES.in: Regenerate. Include *.h since they contain
4099 translatable strings as well.
4101 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4103 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
4104 byte-swap on big-endian.
4105 Reported by: Lennart Sorensen
4107 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
4109 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
4110 (allocate_pages): Improve dprintf.
4111 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
4112 code32_start. Fill code32_start and kernel_alignment in params.
4113 (grub_cmd_initrd): Use prot_init_space.
4115 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4117 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
4119 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4121 * util/grub-install.in: Add missing dot at the end of sentence.
4123 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4125 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
4126 * grub-core/commands/videotest.c: Likewise.
4127 * grub-core/loader/i386/linux.c: Likewise.
4129 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4131 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
4133 Reported by: Milo Casagrande.
4135 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4137 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
4138 * grub-core/commands/gptsync.c: Likewise.
4139 * grub-core/commands/hashsum.c: Likewise.
4140 * grub-core/commands/i386/pc/sendkey.c: Likewise.
4141 * grub-core/commands/legacycfg.c: Likewise.
4142 * grub-core/io/gzio.c: Likewise.
4143 * grub-core/net/net.c: Likewise.
4144 * grub-core/term/gfxterm.c: Likewise.
4145 * grub-core/term/terminfo.c: Likewise.
4146 * grub-core/tests/test_blockarg.c: Likewise.
4147 * grub-core/video/video.c: Likewise.
4148 * util/grub-install.in: Likewise.
4149 * util/grub-mkfont.c: Likewise.
4151 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4153 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
4155 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4157 * grub-core/commands/search_wrap.c (options): Fix a typo.
4158 Reported by: David Prévot.
4160 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4162 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
4165 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4167 * util/grub-script-check.c (main): Fix a syntax error message which was
4170 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4172 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
4174 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4176 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
4179 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4181 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
4183 * util/grub-mount.c (options): Likewise.
4185 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4187 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
4189 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4191 * grub-core/net/http.c: Add TRANSLATORS comments.
4192 * grub-core/normal/cmdline.c: Likewise.
4193 * grub-core/normal/misc.c: Likewise.
4194 * grub-core/partmap/msdos.c: Likewise.
4195 * grub-core/parttool/msdospart.c: Likewise.
4196 * grub-core/script/execute.c: Likewise.
4197 * grub-core/script/main.c: Likewise.
4198 * grub-core/term/terminfo.c: Likewise.
4199 * grub-core/video/bitmap.c: Likewise.
4200 * util/grub-install.in: Likewise.
4201 * util/grub-mkimage.c: Likewise.
4202 * util/grub-mklayout.c: Likewise.
4203 * util/grub-setup.c: Likewise.
4205 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4207 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
4208 with similar messages in grub-fstest.
4210 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4212 * util/grub-install.in: Unify "option requires an argument" message
4213 with similar messages in other files.
4214 * util/grub-mkconfig.in: Likewise.
4216 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4218 * util/grub-set-default.in: Replace printf with gettext_printf (the
4219 string in in question is already translated from grub-reboot)
4221 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4223 * configure.ac: Bump up the version to beta1.
4225 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4227 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
4228 case when min_align = 0.
4230 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4232 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
4233 and fix a case when line_start overflows.
4235 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4237 * util/grub-reboot.in (usage): Mention id posibility.
4238 * util/grub-set-default.in (usage): Likewise.
4240 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4242 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
4243 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
4244 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
4245 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
4246 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
4247 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
4248 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
4250 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4252 * grub-core/commands/menuentry.c (options): Remove
4253 GRUB_ARG_OPTION_REPEATABLE.
4254 Reported by: Andreas Vogel
4256 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
4258 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
4260 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
4262 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
4265 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4267 Use sort -V by the idea of Georgi Georgiev.
4269 * util/grub-mkconfig_lib.in (version_sort): New function.
4270 (version_test_numeric): Use version_sort.
4272 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4274 Use submenus in grub-mkconfig.
4276 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
4277 * util/grub-mkconfig_lib.in (grub_quote): New function.
4278 (gettext_printf): Use gettext and not gettext_quoted to fix several
4280 * util/grub.d/10_hurd.in: Use submenus.
4281 * util/grub.d/10_kfreebsd.in: Likewise.
4282 * util/grub.d/10_linux.in: Likewise.
4283 * util/grub.d/10_netbsd.in: Likewise.
4284 * util/grub.d/20_linux_xen.in: Likewise.
4285 * util/grub.d/30_os-prober.in: Likewise.
4286 * util/grub.d/10_illumos.in: Add missing quoting.
4287 * util/grub.d/10_windows.in: Likewise.
4289 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4291 Fix menu title instability bug.
4293 * grub-core/commands/menuentry.c (options): New option --id.
4294 (grub_normal_add_menu_entry): New argument id. All users updated.
4295 (grub_cmd_menuentry): Handle --id.
4296 (grub_menu_init): Accept unknown arguments.
4297 * grub-core/normal/main.c (features): Add feature_menuentry_id and
4298 feature_menuentry_options.
4299 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
4301 (get_entry_number): Match with id as well.
4302 * include/grub/menu.h (grub_menu_entry): New member id.
4303 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
4304 * util/grub.d/00_header.in: Define menuentry_id_option.
4305 * util/grub.d/10_hurd.in: Define id.
4306 * util/grub.d/10_illumos.in: Likewise.
4307 * util/grub.d/10_kfreebsd.in: Likewise.
4308 * util/grub.d/10_linux.in: Likewise.
4309 * util/grub.d/10_netbsd.in: Likewise.
4310 * util/grub.d/10_windows.in: Likewise.
4311 * util/grub.d/20_linux_xen.in: Likewise.
4312 * util/grub.d/30_os-prober.in: Likewise.
4314 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4316 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
4317 "scope" with "body".
4319 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4321 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
4322 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
4323 prot_size and prot_file_size.
4325 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4327 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
4328 All users updated. If easily=1 require raid-5/-6 to be full.
4329 (is_node_readable): Likewise.
4330 (scan_devices): Scan incomplete but readable LVs at the end.
4331 (grub_diskfilter_memberlist): Pull missing devices.
4332 (insert_array): Skip scanning until device is complete or scan is
4334 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
4336 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
4337 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
4339 2012-03-03 Matthew Garrett <mjg@redhat.com>
4340 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4342 Avoid EFI boot services when loading Linux.
4344 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
4345 avoid_efi_bootservices. All users updated.
4346 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
4347 argument avoid_efi_bootservices. All users updated.
4348 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
4349 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
4350 align, min_align, relocatable, prefered_address. All users updated.
4351 Allocate avoiding boot services if kernel is relocatable.
4352 (grub_cmd_linux): Check if kernel is relocatable.
4353 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
4354 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
4355 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
4356 avoid_efi_boot_services.
4357 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
4358 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
4359 (linux_kernel_params): Likewise.
4361 2012-03-03 Matthew Garrett <mjg@redhat.com>
4362 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4366 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
4368 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
4369 modes. Set gop_handle.
4370 (grub_video_gop_get_edid): New function.
4371 (grub_gop_get_preferred_mode): Likewise.
4372 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
4373 (grub_video_efi_gop_adapter): Set .get_edid.
4374 * include/grub/efi/edid.h: New file.
4375 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
4377 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4379 * util/grub-install.in: Load efivars unconditionally.
4381 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4383 * po/Rules-piglatin: Change suffix from .po-update-en to
4384 .po-update-en-piglatin.
4386 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4390 * po/piglatin.sed: New file.
4391 * po/en@piglatin.header: Likewise.
4392 * po/Rules-piglatin: Likewise.
4393 * po/README: Add en@piglatin to autogenerated languages.
4395 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4397 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
4399 * grub-core/commands/hdparm.c (options): Use "Display" rather than
4400 "Check" since we don't check anything.
4401 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
4403 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
4404 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
4405 (grub_md_sha512_real): Likewise.
4407 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4409 * grub-core/commands/gptsync.c: Fix typographic quoting.
4410 * grub-core/commands/ieee1275/suspend.c: Likewise.
4411 * grub-core/commands/parttool.c: Likewise.
4412 * grub-core/commands/search_wrap.c: Likewise.
4413 * grub-core/commands/videoinfo.c: Likewise.
4414 * grub-core/gfxmenu/gui_label.c: Likewise.
4415 * grub-core/hello/hello.c: Likewise.
4416 * grub-core/kern/emu/main.c: Likewise.
4417 * grub-core/net/net.c: Likewise.
4418 * grub-core/normal/menu.c: Likewise.
4419 * grub-core/normal/menu_text.c: Likewise.
4420 * grub-core/normal/misc.c: Likewise.
4421 * util/grub-editenv.c: Likewise.
4422 * util/grub-install.in: Likewise.
4423 * util/grub-kbdcomp.in: Likewise.
4424 * util/grub-mkconfig.in: Likewise.
4425 * util/grub-mknetdir.in: Likewise.
4426 * util/grub-mkrescue.in: Likewise.
4427 * util/grub-mkstandalone.in: Likewise.
4428 * util/grub-reboot.in: Likewise.
4429 * util/grub-set-default.in: Likewise.
4430 * util/grub-setup.c: Likewise.
4431 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4433 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4435 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
4436 * grub-core/commands/keystatus.c: Likewise.
4437 * grub-core/commands/loadenv.c: Likewise.
4438 * grub-core/commands/probe.c: Likewise.
4439 * grub-core/commands/regexp.c: Likewise.
4440 * grub-core/commands/true.c: Likewise.
4441 * grub-core/commands/videoinfo.c: Likewise.
4442 * grub-core/disk/cryptodisk.c: Likewise.
4443 * grub-core/disk/ldm.c: Likewise.
4444 * grub-core/disk/loopback.c: Likewise.
4445 * grub-core/disk/luks.c: Likewise.
4446 * grub-core/fs/zfs/zfsinfo.c: Likewise.
4447 * grub-core/kern/disk.c: Likewise.
4448 * grub-core/kern/emu/hostdisk.c: Likewise.
4450 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4452 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
4453 * util/grub-install.in: Add missing quote in the comment.
4455 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4457 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
4458 * grub-core/commands/lsmmap.c: Likewise.
4459 * grub-core/commands/minicmd.c: Likewise.
4460 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
4461 * grub-core/commands/regexp.c: Likewise.
4462 * grub-core/gdb/gdb.c: Likewise.
4463 * grub-core/term/gfxterm.c: Likewise.
4464 * util/grub-mkconfig.in: Likewise.
4465 * util/grub-mkfont.c: Likewise.
4466 * util/grub-mklayout.c: Likewise.
4467 * util/grub-mknetdir.in: Likewise.
4468 * util/grub-mkrescue.in: Likewise.
4469 * util/grub.d/30_os-prober.in: Likewise.
4471 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4473 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
4474 with "Direct color" and "Packed" with "Packed pixel".
4475 (grub_cmd_videoinfo): Simplify legend.
4477 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4479 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
4480 absolutely unclear error message.
4482 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4484 * util/grub-mkstandalone.in: Remove confusing leftover print.
4486 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4488 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
4490 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
4491 (GRUB_MOD_INIT): Likewise.
4492 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
4494 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
4496 * util/grub-install.in (usage): Likewise.
4497 Spell ID in whole letters.
4498 Add missing ending dot.
4500 * util/grub-reboot.in: Fix capitalisation.
4501 * util/grub-set-default.in: Likewise.
4503 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4505 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
4506 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
4507 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
4508 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
4509 Disable -Werror for -Wdeprecated-declarations.
4510 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
4511 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
4512 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
4513 (grub_util_get_grub_dev): Make luks handling dependent on
4514 HAVE_DEVICE_MAPPER and not __linux__.
4515 (get_win32_path): Fix format security.
4516 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
4517 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
4518 Don't try grub_find_zpool_from_dir.
4519 (grub_make_system_path_relative_to_its_root) [!__linux__]:
4520 #ifdef-out paresdir.
4522 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4524 * util/grub-pe2elf.c (usage): Add missing noreturn.
4525 (write_section_data): Rename name to shname to avoid shadowing.
4526 (write_symbol_table): Rename name to symname to avoid shadowing.
4527 Fix write_reloc_section call.
4529 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4531 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
4532 to ensure that it's after the last byte of .text.
4534 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4536 * util/ieee1275/ofpath.c (my_isdigit): New function.
4537 (trailing_digits): Use my_isdigit.
4538 (strip_trailing_digits): Likewise.
4540 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4542 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
4543 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
4545 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4547 * grub-core/kern/i386/pc/startup.S: Define __start.
4549 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4551 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
4552 strip already transforms he format.
4554 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4556 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
4558 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4560 * util/grub-install.in: Add missing gettext init.
4561 * util/grub-kbdcomp.in: Likewise.
4562 * util/grub-mkconfig.in: Likewise.
4563 * util/grub-mknetdir.in: Likewise.
4564 * util/grub-mkrescue.in: Likewise.
4565 * util/grub-mkstandalone.in: Likewise.
4566 * util/grub-reboot.in: Likewise.
4567 * util/grub-set-default.in: Likewise.
4568 * util/grub.d/00_header.in: Likewise.
4569 * util/grub.d/10_hurd.in: Likewise.
4570 * util/grub.d/10_windows.in: Likewise.
4571 * util/grub.d/30_os-prober.in: Likewise.
4572 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4574 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4576 * po/Rules-swiss: Fix header comment.
4578 2012-02-29 Andreas Vogel <anvoit>
4580 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
4581 resulted in leak of arguments.
4583 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4585 * grub-core/boot/i386/pc/startup_raw.S: Use separate
4586 reed_solomon_size const definition instead of computing it since
4587 Apple assembler doesn't support the later.
4589 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4591 * gentpl.py (kernel): Rewrite Apple part.
4593 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4595 * include/grub/kernel.h (FOR_MODULES): Check module magic.
4597 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4599 * util/grub-mkimagexx.c (locate_sections): Support non-standard
4601 (load_image): Likewise.
4603 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4605 * configure.ac: Fix a typo in previous commit.
4607 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4609 Don't add -Wl,-N on Apple platform.
4611 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
4612 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
4614 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4616 * grub-core/Makefile.core.def (lzma_decompress): Use
4617 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
4619 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4621 * grub-core/genmod.sh.in: Rewrite the Apple part.
4623 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4625 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
4628 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4630 * acinclude.m4 (grub_CHECK_PIC): New test.
4631 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
4633 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4635 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
4636 to avoid the warning.
4638 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4640 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
4641 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
4642 after. All users updated.
4644 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4646 Use the common size routine in hostfs so we can read disks as well.
4648 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
4649 (grub_util_get_fd_size): ... this. Return size in bytes.
4651 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
4652 grub_util_get_fd_size.
4654 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4656 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
4657 Add blocksize retrieval.
4659 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4661 * configure.ac: Restore CFLAGS after efiemu check.
4663 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4665 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
4668 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4670 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
4672 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4674 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
4675 (grub_cmd_halt): Likewise.
4677 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4679 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
4680 for local arithmetics.
4681 Break %sp init into 2 instructions.
4682 Add 0 byte at the end.
4684 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4686 * grub-core/disk/diskfilter.c (read_segment): Initialise err
4689 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4691 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
4694 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4696 * grub-core/disk/ldm.c (make_vg): Init part.name.
4697 (grub_ldm_detect): Silence spurious warning.
4698 (grub_util_is_ldm): Likewise.
4700 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4702 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
4703 sane value to avoid a spurious warning.
4705 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4707 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
4708 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
4710 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4712 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
4713 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
4715 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4717 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
4718 hardcoding the relevant info.
4720 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4722 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
4723 missing const qualifiers.
4724 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
4726 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4728 * util/getroot.c [__APPLE__]: Add missing includes.
4729 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
4731 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4733 * util/grub-mkimage.c (generate_image): Silence spurious warning.
4735 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4737 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
4740 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4742 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
4744 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4746 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
4747 and grub_file_close call.
4749 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4751 Add LZSS Mach-O support (needed for new xnu kernelcache).
4753 * grub-core/Makefile.core.def (xnu): Add file lzss.c
4754 * grub-core/loader/lzss.c: New file.
4755 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
4756 on Mach-O open failure.
4757 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
4758 Don't free cmdsXX in uncompressedXX is set.
4759 (grub_macho_file): Init new fields.
4760 New argument is_64bit. All users updated.
4761 Handle compressed. Error out if no suitable architecture is found.
4763 (grub_macho_open): New argument is_64bit. All users updated.
4764 * grub-core/loader/macho32.c: Add defines for new fields.
4765 * grub-core/loader/macho64.c: Likewise.
4766 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
4767 (grub_macho_parse): Handle compressed.
4768 Defer actual processing if compressed.
4769 (grub_macho_cmds_iterate): Decompress if compressed. New argument
4770 "filename". All users updated.
4771 (grub_macho_size): New argument "filename". All users updated.
4772 (grub_macho_get_entry_point): Likewise.
4773 (grub_macho_load): Handle compressed.
4774 * include/grub/macho.h (grub_macho_lzss_header): New struct.
4775 (GRUB_MACHO_LZSS_OFFSET): New define.
4776 (grub_decompress_lzss): New proto.
4777 * include/grub/machoload.h (grub_macho_file): New fields to handle
4779 (grub_macho_contains_macho64): Remove proto.
4780 (grub_macho_contains_macho32): Likewise.
4781 * util/grub.d/30_os-prober.in: Use kernel cache if available.
4783 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4785 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
4787 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4791 * Makefile.am (starfield_theme_files): New var.
4792 (starfield_DATA): Use starfield_theme_files.
4793 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
4794 Add bootcheck-related files.
4795 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
4796 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
4797 and font_char_metrics.txt.
4798 * grub-core/Makefile.core.def (kernel): Update extra_dist.
4799 (setjmp): Add lib/ia64/longjmp.S.
4800 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
4801 * po/POTFILES.in: Regenerate.
4802 * po/Rules-swiss: use DISTFILES.common.extra2 and not
4803 DISTFILES.common.extra1.
4804 * util/devicemap.c: Removed.
4805 * grub-core/lib/i386/relocator_backward.S: Likewise.
4806 * util/import_gcry.py: Remove unused files. Add extra_dist for
4809 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4811 * grub-core/gettext/gettext.c (grub_mofile_open): Call
4812 grub_gettext_delete_list before changing grub_gettext_max to avoid
4813 running out of array bounds.
4815 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4817 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
4818 grub_vga_text_init/grub_vga_text_fini.
4820 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4822 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
4824 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4826 * configure.ac: Bump to 2.00~beta0.
4828 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4830 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
4831 missing initialisation.
4833 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4835 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
4837 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4839 Support v2 xnu boot arguments.
4841 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
4842 New argument fsbfreq_out.
4843 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
4844 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
4846 * grub-core/loader/machoXX.c (grub_macho_load): New argument
4848 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
4849 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
4850 (grub_xnu_boot_params): Rename to ...
4851 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
4852 (grub_xnu_boot_params_v2): New struct.
4854 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4856 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
4857 zeroing of CRC field before computing CRC.
4859 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4861 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
4862 Change order of allocations to decrease fragmentation.
4864 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4866 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
4868 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
4870 Use write-combining MTRR to speed up video with buggy BIOSes.
4872 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
4873 (cpuid): New define.
4876 (mtrr_base): Likewise.
4877 (mtrr_mask): Likewise.
4878 (grub_vbe_enable_mtrr_entry): New function.
4879 (grub_vbe_enable_mtrr): Likewise.
4880 (grub_vbe_disable_mtrr): Likewise.
4881 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
4882 control off to BIOS.
4883 (grub_video_vbe_init): Fill mtrr.
4884 (grub_video_vbe_fini): Disable mtrr.
4885 (grub_video_vbe_get_info_and_fini): Likewise.
4886 (grub_video_vbe_setup): Enable mtrr.
4888 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
4890 * include/grub/partition.h (grub_partition_map): Change prototype of
4891 embed to take a maximum value for nsectors.
4892 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
4893 * include/grub/fs.h (grub_fs): Likewise.
4894 * grub-core/partmap/msdos.c (embed_signatures): New array.
4895 (pc_partition_map_embed): Check for and avoid sectors matching any
4896 of the signatures in embed_signatures, up to max_nsectors.
4897 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
4898 returned sector map to max_nsectors.
4899 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
4900 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
4901 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
4902 * util/grub-setup.c (setup): Allow for the embedding area being
4903 split into multiple blocklists. Tell dest_partmap->embed the
4904 maximum number of sectors we care about.
4906 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4908 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
4909 Specify blocklist_install and reserver_first_sector for all fs.
4910 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
4913 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4915 * util/grub-install.in: Clarify strings.
4916 Fix source dir check.
4918 2012-02-27 Richard Laager <rlaager@wiktel.com>
4920 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
4921 "zfs" and "fuse.zfs" as synonyms.
4923 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4925 * configure.ac: Put platform and target_cpu substitutions back since
4926 they are used for directories.
4928 2012-02-27 Richard Laager <rlaager@wiktel.com>
4929 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4931 * util/grub.d/10_linux.in: Add ZFS-related arguments.
4932 * util/grub.d/20_linux_xen.in: Likewise.
4934 2012-02-27 Richard Laager <rlaager@wiktel.com>
4936 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
4939 2012-02-27 Richard Laager <rlaager@wiktel.com>
4941 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
4944 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4946 Don't use insecure popen in getroot.
4948 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
4949 (exec_pipe): ... here.
4950 (find_root_devices_from_poolname): Use exec_pipe.
4952 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4954 Remove platform and target_cpu replacement.
4956 * configure.ac: Remove platform and target_cpu substitutions.
4957 * tests/util/grub-shell.in: Use modinfo.
4958 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
4961 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4963 Autodetect platform in grub-install but allow override.
4965 * util/grub-install.in: Autodetect platform. Support --target and
4966 --directory. Read platform from modinfo.sh.
4968 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4970 Support btrfs multi-volume probe.
4972 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
4973 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
4974 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
4975 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
4976 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
4977 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
4978 grub_find_root_devices_from_btrfs if on btrfs.
4980 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4982 Remove any awareness of *.c util files about target.
4984 * Makefile.util.def (grub-setup): Split to ...
4985 (grub-bios-setup): ... and this.
4986 (grub-sparc64-setup): ... and this.
4987 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
4988 * docs/man/grub-setup.h2m: Split into ...
4989 * docs/man/grub-sparc64-setup.h2m: ... this.
4990 * docs/man/grub-bios-setup.h2m: ... and this.
4991 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
4992 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
4993 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
4994 (grub_target_addr_t): Remove.
4995 (grub_target_size_t): Remove.
4996 (grub_target_ssize_t): Remove.
4997 * util/grub-install.in: Use new grub-*-setup.
4998 * util/grub-mkimagexx.c (Elf_Word): New define.
4999 (Elf_Half): Likewise.
5000 (Elf_Section): Likewise.
5001 (ELF_ST_TYPE): Likewise.
5002 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
5003 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
5005 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5007 Replace grub_target_addr with more appropriate types.
5009 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
5010 grub_target_addr with grub_addr.
5011 * grub-core/commands/iorw.c (grub_cmd_read): Replace
5012 grub_target_addr with grub_port.
5013 (grub_cmd_write): Likewise.
5014 * grub-core/commands/memrw.c (grub_cmd_read): Replace
5015 grub_target_addr with grub_addr.
5016 (grub_cmd_write): Likewise.
5017 * grub-core/video/efi_uga.c (find_line_len): Likewise.
5019 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5021 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
5022 const qualifier for vendor_guid.
5024 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5026 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
5028 (efiemu_memequal): Likewise.
5029 (find_variable): Likewise.
5031 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5033 Fix missing console prototype on qemu-mips.
5035 * include/grub/mips/qemu_mips/console.h: New file.
5037 2012-02-27 Matthew Garrett <mjg@redhat.com>
5038 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5040 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
5041 * include/grub/efi/efi.h: Likewise.
5042 * include/grub/efi/api.h: Add guid for EFI-specified variables.
5043 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
5044 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
5045 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
5046 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
5047 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
5049 2012-02-27 Matthew Garrett <mjg@redhat.com>
5051 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
5053 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5055 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
5058 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5060 * configure.ac: Remove inappropriate use of program_transform_name
5061 on grubdir and bootdir but allow explicit specification of those
5064 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5066 * util/grub-mknetdir.in (grub_prefix): Removed.
5067 (subdir): Use @bootdirname@ and @grubdirname@.
5069 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5071 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
5073 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5075 * po/POTFILES.in: Regenerated.
5077 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5079 Remove improper use of program_transform_name on pkglibrootdir.
5081 * configure.ac (pkglibrootdir): Removed.
5082 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
5083 * util/grub-mkimage.c: Likewise.
5085 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5087 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
5090 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5092 * util/grub-install.in: Use file identifier if no UUID is available
5093 or user explicitly prompted for it.
5095 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
5097 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
5098 (freebsd_get_zfs): New function.
5099 (grub_freebsd_boot): Pass zfs UUID.
5100 (grub_cmd_freebsd): Set zfs UUID.
5102 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5104 * conf/Makefile.common (platformdir): Base on pkglibdir and not
5107 2012-02-27 Mike Gilbert <floppym@gentoo.org>
5109 Add configure flag to control libzfs integration.
5111 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
5113 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5115 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
5117 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
5120 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5122 Remove grub_{modname}_init and grub_{modname}_fini. They should never
5123 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
5124 be used on non-modules.
5126 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
5127 Rename to grub_boot_init.
5128 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
5129 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
5130 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
5131 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
5132 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
5133 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
5134 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
5135 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
5137 (grub_machine_init): Remove empty inits.
5138 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
5140 (grub_machine_init): Remove empty inits.
5141 * grub-core/term/arc/console.c: Remove explicit proto.
5142 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
5143 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
5144 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5145 grub_at_keyboard_fini.
5146 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
5147 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
5148 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5150 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
5151 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
5152 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5154 * grub-core/term/ieee1275/console.c: Remove explicit proto.
5155 * grub-core/term/serial.c (GRUB_MOD_INIT)
5156 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
5157 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5159 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
5160 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
5161 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5163 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
5164 (GRUB_MOD_FINI): Likewise.
5165 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
5166 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
5167 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5168 grub_video_radeon_fuloong2e_fini.
5169 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
5170 [LOONGSON]: Rename to grub_video_sis315pro_init.
5171 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5172 grub_video_sis315pro_fini.
5173 * grub-core/video/sm712.c (GRUB_MOD_INIT)
5174 [LOONGSON]: Rename to grub_video_sm712_init.
5175 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5176 grub_video_sm712_fini.
5177 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
5178 (grub_at_keyboard_fini): Likewise.
5179 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
5180 Don't declare grub_{modname}_init.
5181 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
5182 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
5184 (grub_keylayouts_fini) [!EMU]: Likewise.
5185 * include/grub/serial.h (grub_serial_init) [!EMU]:
5187 (grub_serial_fini) [!EMU]: Likewise.
5188 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
5190 (grub_terminfo_fini) [!EMU]: Likewise.
5191 * include/grub/video.h (grub_font_init) [!EMU]:
5193 (grub_font_fini) [!EMU]: Likewise.
5194 (grub_gfxterm_init) [!EMU]: Likewise.
5195 (grub_gfxterm_fini) [!EMU]: Likewise.
5196 (grub_video_sm712_init) [!EMU]: Likewise.
5197 (grub_video_sm712_fini) [!EMU]: Likewise.
5198 (grub_video_sis315pro_init) [!EMU]: Likewise.
5199 (grub_video_sis315pro_fini) [!EMU]: Likewise.
5200 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
5201 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
5203 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5205 Make nand a prefix for nand devices.
5207 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
5209 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5211 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
5212 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
5214 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5216 * include/grub/env.h (grub_env_find): Remove prototype.
5217 * grub-core/kern/env.c (grub_env_find): Make static.
5218 (grub_env_set): Remove useless set.
5220 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5222 * grub-core/kern/i386/realmode.S: Remove useless align.
5224 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5226 * include/grub/dl.h (grub_dl_load_file): Don't export.
5228 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5230 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
5233 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5235 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
5237 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
5238 not reloading whole superblock but only the part which is really needed.
5239 Remove useless grub_errors.
5240 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
5243 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5245 Don't export grub_get_rtc.
5247 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
5248 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
5250 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5252 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
5254 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5256 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
5257 argument since it can be deduced from diskfilter. All users updated.
5259 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5263 * include/grub/list.h (grub_prio_list): Removed.
5264 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
5265 GRUB_COMMAND_PRIO_MASK.
5266 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
5267 GRUB_COMMAND_FLAG_ACTIVE.
5268 (grub_prio_list_insert): Removed.
5269 (grub_prio_list_remove): Likewise.
5270 (GRUB_AS_PRIO_LIST): Likewise.
5271 (GRUB_AS_PRIO_LIST_P): Likewise.
5272 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
5273 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
5274 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
5275 * grub-core/kern/command.c (grub_register_command_prio): Inline
5277 (grub_unregister_command): Likewise.
5279 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5281 Fix interrupt mixup from previous commit.
5283 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
5284 (grub_realidt): New var.
5285 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
5287 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
5289 (grub_relocator16_boot): Set grub_relocator16_idt.
5290 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
5291 (LOCAL(realidt)): ... this.
5292 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
5293 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
5294 (grub_realidt): New variable.
5296 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5298 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
5299 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
5300 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
5301 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
5303 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
5304 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
5305 * po/POTFILES.in: Regenerate.
5307 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5309 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
5312 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5314 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
5316 (add_length): Likewise.
5318 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5319 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
5321 GDB serial and backtrace support.
5323 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
5324 (prot_to_real): Likewise.
5325 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
5326 * grub-core/Makefile.core.def (backtrace): New module.
5328 * grub-core/gdb/cstub.c: New file.
5329 * grub-core/gdb/gdb.c: Likewise.
5330 * grub-core/gdb/i386/idt.c: Likewise.
5331 * grub-core/gdb/i386/machdep.S: Likewise.
5332 * grub-core/gdb/i386/signal.c: Likewise.
5333 * grub-core/lib/i386/backtrace.c: Likewise.
5334 * grub-core/lib/backtrace.c: Likewise.
5335 * include/grub/backtrace.h: Likewise.
5336 * include/grub/gdb.h: Likewise.
5337 * include/grub/i386/gdb.h: Likewise.
5339 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5341 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
5343 (add_length): Likewise.
5344 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
5345 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
5347 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
5348 __argp_get_display_len.
5350 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5352 $"..." support in scripts.
5354 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
5355 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
5356 * grub-core/script/yylex.l: Likewise.
5357 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
5360 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5362 * gentpl.py: Remove obsolete pkglib_DATA handling.
5364 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5366 Don't transform PACKAGE_TARNAME following a discussion on autoconf
5369 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
5370 * util/grub-kbdcomp.in: Likewise.
5371 * util/grub-mkconfig.in: Likewise.
5372 * util/grub-mkconfig_lib.in: Likewise.
5373 * util/grub-mknetdir.in: Likewise.
5374 * util/grub-mkrescue.in: Likewise.
5375 * util/grub-mkstandalone.in: Likewise.
5376 * util/grub-reboot.in: Likewise.
5377 * util/grub-set-default.in: Likewise.
5378 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5380 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5384 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
5385 * util/grub.d/00_header.in: Compute prefix in the only place it's still
5386 used for backward compatibility.
5388 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5390 Add new all_video module.
5392 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
5393 * grub-core/Makefile.core.def (all_video): New module.
5394 * grub-core/genmoddep.awk: Generate dependency of all_video from
5396 * grub-core/lib/fake_module.c: New file.
5397 * grub-core/normal/main.c (features): Add feature_all_video_module.
5398 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
5399 don't do explicit search again.
5400 insmod all_video in load_video if available.
5402 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5404 Another round of string clarification and adding TRANSLATORS comments.
5406 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5408 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
5410 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5412 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
5414 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
5415 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
5417 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5419 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
5420 trailing newline implicitly. All users updated.
5422 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5424 Implement serial on IEEE1275 and EFI.
5426 * docs/grub.texi (Platform-specific limitations): Fix the columen video
5427 on emu. Mention arc and emu as the only platforms without serial
5429 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
5431 * grub-core/term/efi/serial.c: New file.
5432 * grub-core/term/ieee1275/serial.c: Likewise.
5433 * grub-core/term/serial.c (grub_serial_find): Disable direct port
5434 specification if no ns8250 driver is available.
5435 (grub_cmd_serial): Likewise.
5436 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
5437 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
5438 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
5439 (grub_efi_parity_type_t): New type.
5440 (grub_efi_stop_bits_t): Likewise.
5441 (grub_efi_serial_io_interface): New struct.
5442 * include/grub/serial.h (grub_serial_port): Make 'broken' field
5443 available for all interfaces.
5444 Add EFI and IEEE1275 fields.
5445 (grub_ofserial_init): New proto.
5446 (grub_efiserial_init): Likeiwse.
5447 * util/grub.d/00_header.in: Don't check for the presence of serial
5450 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5452 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
5453 name as if it was an alias.
5455 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
5457 * grub-core/commands/lsacpi.c (options): Fix typo.
5459 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
5461 Convert grub-emu to argp.
5463 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
5465 * util/argp_common.c: Rename to ...
5466 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
5467 Add missing includes.
5468 * grub-core/kern/emu/main.c: Convert to argp.
5469 * po/POTFILES.in: Regenerate.
5470 * util/grub-install.in (usage): Make first letter lowcase in messages
5472 * util/grub-setup.c (options): Likewise.
5474 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5476 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
5477 Put back accidently commented-out code.
5479 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5481 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
5482 loop check using Brent algorithm.
5483 (grub_hfsplus_btree_search): Likewise.
5485 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5487 * util/grub-install.in: Fix usage of wrong device for PreP install.
5489 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5491 * conf/Makefile.common (CFLAGS_GNULIB): Add
5492 -Wno-unsafe-loop-optimizations.
5493 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
5495 * grub-core/commands/legacycfg.c: Add pragma to skip
5496 -Wunsafe-loop-optimizations.
5497 (check_password_md5_real): Fix loop counter type.
5498 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
5500 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
5501 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
5503 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
5504 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
5505 * grub-core/net/net.c (grub_net_route_address): Add safety loop
5507 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
5508 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
5509 avoid possible infinite loops.
5510 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
5511 and -Wunsafe-loop-optimizations.
5512 * grub-core/script/yylex.l: Likewise.
5513 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
5514 (print_glyphs): Avoid infinite loops.
5515 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
5517 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
5519 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
5520 to avoid infinite loop.
5521 (disp_acpi_rsdt_table): Likewise.
5523 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5525 * grub-core/font/font.c (grub_font_load): Add support for default
5526 path for fonts ($prefix/fonts).
5527 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
5528 for checking if string is a path.
5529 * grub-core/normal/main.c (features): Add feature_default_font_path.
5530 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
5531 * util/grub.d/00_header.in: Use default directory if possible.
5532 * util/grub-install.in: Install unicode.pf2.
5534 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5536 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
5537 * po/Rules-swiss: New file.
5538 * po/swiss.sed: Likewise.
5540 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
5542 * grub-core/fs/btrfs.c (find_device): Fix typos.
5543 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
5544 * util/grub-mkrelpath.c (argp_parser): Likewise.
5545 Reported by: Yuri Chornoivan.
5547 2012-02-23 Dalet Omega <daletomega@gmail.com>
5549 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
5550 for usual informative messages.
5552 2012-02-23 Dalet Omega <daletomega@gmail.com>
5556 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
5557 * conf/Makefile.common: Define starfielddir.
5558 * configure.ac: Configure starfield.
5559 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
5560 * themes/starfield/README: Likewise.
5561 * themes/starfield/blob_w.png: Likewise.
5562 * themes/starfield/boot_menu_c.png: Likewise.
5563 * themes/starfield/boot_menu_e.png: Likewise.
5564 * themes/starfield/boot_menu_n.png: Likewise.
5565 * themes/starfield/boot_menu_ne.png: Likewise.
5566 * themes/starfield/boot_menu_nw.png: Likewise.
5567 * themes/starfield/boot_menu_s.png: Likewise.
5568 * themes/starfield/boot_menu_se.png: Likewise.
5569 * themes/starfield/boot_menu_sw.png: Likewise.
5570 * themes/starfield/boot_menu_w.png: Likewise.
5571 * themes/starfield/slider_c.png: Likewise.
5572 * themes/starfield/slider_n.png: Likewise.
5573 * themes/starfield/slider_s.png: Likewise.
5574 * themes/starfield/src/blob_nw.xcf: Likewise.
5575 * themes/starfield/src/bootmenu/: Likewise.
5576 * themes/starfield/src/bootmenu/center.xcf: Likewise.
5577 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
5578 * themes/starfield/src/bootmenu/side.xcf: Likewise.
5579 * themes/starfield/src/slider_c.xcf: Likewise.
5580 * themes/starfield/src/slider_n.xcf: Likewise.
5581 * themes/starfield/src/slider_s.xcf: Likewise.
5582 * themes/starfield/src/terminalbox/: Likewise.
5583 * themes/starfield/src/terminalbox/center.xcf: Likewise.
5584 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
5585 * themes/starfield/src/terminalbox/side.xcf: Likewise.
5586 * themes/starfield/starfield.png: Likewise.
5587 * themes/starfield/terminal_box_c.png: Likewise.
5588 * themes/starfield/terminal_box_e.png: Likewise.
5589 * themes/starfield/terminal_box_n.png: Likewise.
5590 * themes/starfield/terminal_box_ne.png: Likewise.
5591 * themes/starfield/terminal_box_nw.png: Likewise.
5592 * themes/starfield/terminal_box_s.png: Likewise.
5593 * themes/starfield/terminal_box_se.png: Likewise.
5594 * themes/starfield/terminal_box_sw.png: Likewise.
5595 * themes/starfield/terminal_box_w.png: Likewise.
5596 * themes/starfield/theme.txt: Likewise.
5598 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
5600 * util/grub.d/00_header.in: Add missing export theme.
5602 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5604 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
5606 Reported by: Eren D.
5608 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5610 * conf/Makefile.common (grubdatadir): Removed.
5611 (Makefile.am): Move eveything grubdata to pkgdata.
5613 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5615 * grub-core/commands/acpihalt.c (get_sleep_type):
5616 Remove unused variable.
5618 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5620 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
5621 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
5622 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
5623 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
5624 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
5625 i18n with gettext no-op.
5626 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
5627 GRUB_ACPI_OPCODE_STRING_CONST.
5628 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
5629 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
5631 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5633 * po/POTFILES.in: Regenerate.
5635 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5637 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
5638 -Wno-error=missing-noreturn.
5640 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5642 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
5643 condition to avoid possibly infinite loops.
5644 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
5645 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
5647 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5649 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
5650 condition to avoid possibly infinite loops.
5652 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5654 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
5657 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5659 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
5661 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5663 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
5665 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5667 * util/bin2h.c (usage): Add missing attribute noreturn.
5669 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5671 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
5672 if the size isn't divisible by 512.
5674 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5676 Make list_push and list_remove functions rather than inline functions
5677 to decrease size and avoid aliasing violations.
5679 * include/grub/list.h (grub_list_push): Move to ...
5680 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
5681 * include/grub/list.h (grub_list_remove): Move to ...
5682 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
5684 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5686 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
5687 and -Wunused-result.
5689 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
5691 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
5692 Reported by: Seth Goldberg
5694 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
5696 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
5698 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
5700 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
5701 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
5703 * docs/grub.texi (Simple configuration): Document
5704 GRUB_CMDLINE_GNUMACH.
5706 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5708 * conf/Makefile.common (platform_SCRIPTS): New variable.
5709 (platform_PROGRAMS): Likewise.
5710 * gentpl.py: Mark *,module and *.image for install.
5711 * grub-core/gdb_grub.in: Add a notice of expected environment.
5712 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
5713 (gmodule.pl): Likewise.
5715 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5717 Replace grub_checkkey with grub_getkey_noblock.
5719 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
5720 (grub_getkey_noblock): ... this. All users updated.
5722 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5724 * grub-core/kern/emu/console.c: Move to ...
5725 * grub-core/term/emu/console.c: ...here.
5726 (grub_ncurses_getkey): Fix return value if no key is detected.
5728 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5730 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
5731 (grub_unit_test_fini): Likewise.
5732 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
5734 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5736 * include/grub/test.h (GRUB_UNIT_TEST)
5738 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5740 * grub-core/script/execute.c (grub_script_break): Clarify logic.
5741 Better error handling.
5742 (grub_script_return): Likewise.
5743 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
5745 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5747 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
5748 rimplicit redifinition.
5750 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5752 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
5755 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5757 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
5758 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
5761 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5763 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
5764 as GRUB_ERR_BUG. Don't malloc if no device is available.
5766 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5768 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
5769 Mark calling with invalid term as GRUB_ERR_BUG.
5771 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5773 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
5774 packets rather than raising an error.
5776 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5778 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
5781 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5783 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
5784 diagnostic to dprintf.
5785 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
5787 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5789 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
5792 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5794 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
5795 (grub_ntfs_iterate_dir): Likewise.
5797 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5799 Efiemu stylistic fixes and gettext.
5801 * grub-core/efiemu/i386/loadcore32.c
5802 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
5803 * grub-core/efiemu/i386/loadcore64.c
5804 (grub_arch_efiemu_relocate_symbols64): Likewise.
5805 * grub-core/efiemu/i386/pc/cfgtables.c
5806 (grub_machine_efiemu_init_tables): Likewise.
5807 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
5808 (grub_efiemu_loadcore_initXX): Add a filename argument.
5810 Improved error message.
5811 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
5812 Add a filename argument.
5814 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
5815 Reclassify double relocation as GRUB_ERR_BUG.
5817 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5819 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
5822 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5824 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
5827 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5829 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
5831 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5833 Improve string. Gettextize.
5835 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5837 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
5839 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
5841 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5843 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
5844 [GRUB_UTIL]: New function.
5845 (insert_array) [GRUB_UTIL]: Store partmaps.
5846 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
5848 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
5849 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
5850 (probe_abstraction): Print diskfilter and not raid.
5851 Reported by: Lennart Sorensen
5853 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5855 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
5856 * util/grub-mkimagexx.c (MASK3): New define.
5857 (add_value_to_slot_20b): Use MASK3.
5858 (add_value_to_slot_21): Likewise.
5859 (relocate_addresses): Fix format specification.
5860 (load_image): Explicitly init symtab_section.
5862 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5864 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
5865 (grub_util_biosdisk_get_grub_dev): Fix format specification.
5867 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5869 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
5871 Reported by: Lennart Sorensen
5873 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5875 * gentpl.py: Add missing license header.
5876 * docs/grub.texi: Update copyright year.
5878 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
5880 Source grub-mkconfig_lib from the build directory at build time.
5881 Suggested by: Vladimir Serbinenko.
5883 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
5884 * util/grub-install.in: Define pkgdatadir if not already set, and source
5885 grub-mkconfig_lib from there.
5886 * util/grub-kbdcomp.in: Likewise.
5887 * util/grub-mkconfig.in: Likewise.
5888 * util/grub-mknetdir.in: Likewise.
5889 * util/grub-mkrescue.in: Likewise.
5890 * util/grub-mkstandalone.in: Likewise.
5891 * util/grub-reboot.in: Likewise.
5892 * util/grub-set-default.in: Likewise.
5893 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5895 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5897 Increase warning level.
5899 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
5900 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
5901 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
5902 (TARGET_CFLAGS): Likewise.
5903 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
5904 * grub-core/Makefile.core.def (decompressor_xz): Add
5905 -Wno-unreachable-code.
5906 (normal): Add -Wno-redundant-decls.
5907 (xzio): Add -Wno-unreachable-code.
5908 (lzopio): Add -Wno-redundant-decls -Wno-error.
5909 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
5910 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
5911 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
5912 * grub-core/kern/dl.c: Add exception to -Wcast-align.
5913 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
5914 * grub-core/kern/i386/coreboot/init.c: Add exception to
5915 -Wsuggest-attribute=noreturn.
5916 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
5917 * grub-core/kern/ia64/dl_helper.c: Likewise.
5918 * grub-core/kern/mips/dl.c: Likewise.
5919 * grub-core/kern/sparc64/dl.c: Likewise.
5920 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
5921 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
5923 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
5924 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
5925 * grub-core/loader/mips/linux.c: Likewise.
5926 * grub-core/loader/multiboot_elfxx.c: Likewise.
5927 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
5928 * grub-core/video/sm712.c: Add exception to -Wcast-align.
5929 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
5930 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
5932 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
5933 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
5936 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5938 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
5941 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5943 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
5944 Avoid improper use of strings.
5945 (grub_cmd_legacy_initrdnounzip): Likewise.
5947 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5949 * include/grub/emu/misc.h (grub_util_warn): Add missing format
5951 (grub_util_info): Likewise.
5952 (grub_util_error): Likewise.
5954 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5956 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
5957 * util/grub-fstest.c (fstest): Likewise.
5959 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5961 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
5962 (grub_md_sha512_real): Likewise.
5963 (grub_util_get_geli_uuid): Likewise.
5964 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
5965 (grub_util_biosdisk_open): Fix format specification.
5966 Respect format security.
5967 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
5968 (xrealloc): Likewise.
5969 (xasprintf): Likewise.
5971 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5973 * util/import_gcry.py: Include grub/crypto.h in init.c.
5975 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5977 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
5978 (generate_image): Make prefix a const char *.
5979 Fix format specifications. Respect format security.
5980 Avoid void * arithmetics.
5982 (argp_parser): Remove unused variable. Respect format security.
5983 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
5984 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
5985 (count_funcs): Remove unused variable.
5986 (relocate_addresses): Fix format specification.
5987 Disable x86-64 with elf32. Remove unused variables.
5988 (add_fixup_entry): Avoid shadowing.
5989 (make_reloc_section): Fix format specification.
5991 (locate_sections): Fix format specifications.
5992 (load_image): Avoid shadowing.
5994 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5996 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
5997 Fix format specifications. Respect format security.
5998 Don't translate already translated grub_errmsg.
5999 (argp_parser): Remove unused variable
6001 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6003 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
6005 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6007 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
6008 (main): Likewise. Use xmalloc. Respect format security.
6010 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6012 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
6014 (argp_parser): Remove unused variable.
6016 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6018 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
6019 (add_pixel): Make static.
6020 (add_font): Likewise.
6021 (write_string_section): Make name and str a const char *.
6022 (write_be16_section): Make name a const char *.
6023 (print_glyphs): Make static.
6024 (write_font_ascii_bitmap): Likewise.
6025 (write_font_width_spec): Likewise.
6026 (write_font_pf2): Likewise.
6027 (argp_parser): Remove unused variable.
6028 Respect format security.
6029 (main): Avoid shadowing. Respect format security.
6031 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6033 * util/grub-editenv.c (argp_parser): Make static.
6034 (create_envblk_file): Use xmalloc.
6035 (open_envblk_file): Likewise.
6036 Resepect format security.
6037 (set_variables): Respect format security.
6039 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6041 * util/getroot.c (grub_find_device): Respect format security.
6042 (get_mdadm_uuid): Remove unused variable.
6043 (grub_util_pull_device): Dont call gettext on already translated
6045 (find_system_device): Remove unused variable.
6046 (grub_util_get_grub_dev): Likewise.
6047 (grub_make_system_path_relative_to_its_root): Respect format security.
6049 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6051 * util/grub-fstest.c (execute_command): Make first argument
6053 (read_file): Avoid shadowing.
6054 Reuse underlying error message if device open fails.
6055 (cmd_cmp): Respect format security.
6056 (root): Make const char *.
6057 (fstest): Remove args argument and use global copy.
6058 Respect format security.
6059 (argp_parser): Make static.
6060 (main): Make default_root const char *.
6062 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6064 * util/grub-mount.c (root): Make const char *.
6065 (execute_command): Make first argument a const char *.
6066 (fuse_init): Respect format security.
6067 (argp_parser): Make static. Remove unused variable.
6068 (main): Make default_root a const char *.
6069 Respect format security.
6071 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6073 * util/grub-probe.c (probe): Don't call gettext on already translated
6075 Remove unused variables.
6076 (argp_parser): Remove unused variable.
6078 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6080 * util/grub-script-check.c (argp_parser): Remove unused variable.
6081 (main): Rename read to curread to avoid shadowing.
6083 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6085 * util/misc.c (grub_util_write_image_at): Fix format specification.
6086 (grub_util_write_image): Likewise.
6087 (grub_script_execute_argument_to_string): Removed (unused).
6088 (grub_script_execute_menuentry): Likewise.
6089 (grub_putchar): Likewise.
6091 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6093 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
6094 (FUNCTION) [GRUB_UTIL]: Likewise.
6095 (VARIABLE) [GRUB_UTIL]: Likewise.
6097 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6099 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
6100 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
6102 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6104 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
6107 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6109 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
6110 (LzmaEnc_SaveState): Removed (unused).
6111 (LzmaEnc_RestoreState): Likewise.
6112 (LzmaEnc_InitPriceTables): Made static.
6113 (LzmaEnc_Construct): Likewise.
6114 (LzmaEnc_FreeLits): Likewise.
6115 (LzmaEnc_Destruct): Likewise.
6116 (LzmaEnc_Init): Likewise.
6117 (LzmaEnc_InitPrices): Likewise.
6118 (LzmaEnc_Finish): Likewise.
6119 (LzmaEnc_PrepareForLzma2): Removed (unused).
6120 (LzmaEnc_MemPrepare): Likewise.
6121 (LzmaEnc_GetNumAvailableBytes): Likewise.
6122 (LzmaEnc_GetCurBuf): Likewise.
6123 (LzmaEnc_CodeOneMemBlock): Likewise.
6125 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6127 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
6128 (grub_util_ldm_embed): Likewise.
6130 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6132 * util/grub-editenv.c (print_var): Rename name to varname to
6134 (main): Rename index to curindex to avoid shadowing.
6135 Make filename a const char *.
6137 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6139 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
6140 to arg_getline to avoid shadowing.
6142 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6144 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
6145 disk_ to avoid shadowing.
6147 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6149 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
6150 curindex to avoid shadowing.
6152 (MatchFinder_GetNumAvailableBytes): Make static.
6154 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6156 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
6159 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6161 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
6162 argument from encrypt to do_encrypt to avoid shadowing.
6164 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6166 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
6167 incorrect nesting of #if's.
6169 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6171 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
6172 checks which are always false on some platforms.
6173 (grub_cmd_lsacpi): Likewise.
6174 * grub-core/kern/misc.c (grub_strtoul): Likewise.
6175 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
6178 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6180 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
6181 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
6183 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6185 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
6186 re_dfa_t to avoid breaking alignment invariants.
6187 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
6188 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
6190 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6192 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
6193 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
6195 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6197 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
6200 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6202 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
6203 conserve alignment invariants.
6204 (grub_ehci_ehcc_read16): Likewise.
6205 (grub_ehci_oper_read32): Likewise.
6206 (grub_ehci_oper_write32): Likewise.
6207 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
6208 Conserve alignment invariants.
6210 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6212 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
6213 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
6216 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6218 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
6219 Remove unused variable.
6221 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6223 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
6226 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6228 * include/grub/net.h: Remove double declarations.
6230 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6232 Remove "payload" command in ia64 Linux loader since I couldn't
6233 find any evidence of it being used for anything.
6234 Replace "relocate" command with an environment variable
6236 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
6238 (ia64_boot_payload): Removed.
6239 (last_payload): Likewise.
6240 (RELOCATE_OFF): Likewise.
6241 (RELOCATE_ON): Likewise.
6242 (RELOCATE_FORCE): Likewise.
6243 (relocate): Likewise.
6244 (free_pages): Don't free payloads.
6245 (grub_load_elf64): Use common error messages.
6246 Use "linux_relocate" variable.
6247 Increase the space after boot_params.
6248 (grub_cmd_payload): Removed.
6249 (grub_cmd_relocate): Likewise.
6250 (grub_cmd_fpswa): Improve messages.
6251 (cmd_payload): Removed.
6252 (cmd_relocate): Likewise.
6253 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
6254 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
6256 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6258 Convert UHCI to DMA framework.
6260 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
6261 (grub_uhci_pci_iter): Fill new members
6262 (grub_alloc_td): Use P2V and V2P functions.
6263 (grub_free_queue): Likewise.
6264 (grub_alloc_qh): Likewise.
6265 (grub_uhci_setup_transfer): Likewise.
6266 (grub_uhci_check_transfer): Likewise.
6268 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6270 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
6271 Remove assignment in if while on it.
6273 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6275 * util/grub-mkstandalone.in: Fix modules directory.
6277 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6279 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
6281 (argp_parser): Accept "auto" as compression specification.
6283 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6285 Fix `help' with unloaded modules.
6287 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
6288 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
6289 (grub_dyncmd_dispatcher): Small stylistic fix.
6290 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
6291 explicit help is requested.
6293 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6295 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
6296 Explicitly init restart while on it.
6298 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6300 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
6303 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6305 * util/grub-mknetdir.in: Use . rather than source for POSIX
6308 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6310 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
6312 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6314 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
6317 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6319 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
6322 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6324 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
6326 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6328 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
6329 iteration of partitions.
6331 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6333 Improve gettext support. Stylistic fixes and error handling fixes while
6336 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6338 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
6339 part. Instead setup the correct stack in RM.
6340 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
6342 * include/grub/i386/relocator_private.h: New file.
6344 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6346 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
6348 * util/grub-fstest.c (options): Add missing DEVICE part.
6350 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6352 Clarify and unify messages.
6354 * grub-core/commands/hashsum.c (options): Unify messages.
6355 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
6356 literal-only message as translatable.
6357 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
6358 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
6359 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
6361 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
6362 key, not the key used to unlock. Clarify what it's used for.
6363 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
6364 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
6365 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
6366 * util/grub-editenv.c (options): Unify "verbose" message.
6367 * util/grub-fstest.c (read_file): Unify error message.
6368 (fstest): Add quotes around commands.
6369 (options): Unify "verbose" message.
6370 * util/grub-install.in: Add quotes around variable name.
6371 * util/grub-kbdcomp.in: Unify error message.
6372 * util/grub-mkfont.c (main): Likewise.
6373 * util/grub-mkrescue.in: Likewise.
6374 * util/grub-mklayout.c (options): Unify "verbose" message.
6375 * util/grub-mkstandalone.in: Unify help and verbose messages.
6376 * util/grub-mount.c (options): Unify "verbose" message.
6377 * util/grub-probe.c (options): Likewise.
6378 * util/grub-script-check.c (options): Likewise.
6379 * util/grub-setup.c (setup): Unify no-terminator message.
6380 (options): Use DEVICE and not DEV.
6381 Unify "verbose" message.
6382 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
6384 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6386 Improve and unify messages.
6388 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
6389 name. All users updated.
6390 Print filename in error.
6391 (read_device_map): Print filename in error.
6392 * util/getroot.c (grub_guess_root_devices): Print filename in error.
6393 (grub_util_get_os_disk): Likewise.
6394 (grub_util_biosdisk_get_grub_dev): Likewise.
6395 (grub_util_check_block_device): Likewise.
6396 (grub_util_check_char_device): Likewise.
6397 (grub_make_system_path_relative_to_its_root): Likewise.
6398 * util/grub-editenv.c (create_envblk_file): Likewise.
6399 (open_envblk_file): Likewise.
6400 (write_envblk): Likewise.
6401 * util/grub-fstest.c (cmd_cp): Likewise.
6402 (cmd_cat): Likewise.
6403 (cmd_cmp): Likewise.
6404 * util/grub-menulst2cfg.c (main): Likewise.
6405 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
6406 (write_font_width_spec): Likewise.
6407 (write_font_pf2): Likewise.
6408 * util/grub-mkimage.c (generate_image): New argument outname.
6410 Remove unreacheable message.
6411 (options): Unify messages.
6412 (help_filter): Likewise.
6413 * util/grub-mklayout.c (usage): Removed (unused).
6414 (main): Print filename in error.
6415 * util/grub-mkrescue.in: Fix wrong quoting.
6416 * util/grub-setup.c (setup): Print filename in error.
6417 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
6418 (check_sas): Likewise.
6419 * util/misc.c (grub_util_get_fp_size): Removed.
6420 (grub_util_get_image_size): Print filename in error.
6421 (grub_util_read_at): Removed.
6422 (grub_util_read_image): Print filename in error.
6423 (grub_util_load_image): Likewise.
6424 (grub_util_write_image_at): New argument filename. All users updated.
6425 Print filename in error.
6426 (grub_util_write_image): New argument filename. All users updated.
6427 Print filename in error.
6428 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
6429 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
6431 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6433 * grub-core/Makefile.core.def (pxechain): New module.
6434 * grub-core/loader/i386/pc/pxechainloader.c: New file.
6435 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
6437 (grub_pc_net_config_real): Use grub_pxe_get_cached.
6438 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
6440 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6442 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
6443 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
6444 * include/grub/err.h (grub_error_saved): New struct.
6445 (grub_errmsg): Make array size explicit.
6446 * include/grub/misc.h (grub_error_save): New function.
6447 (grub_error_load): Likewise.
6448 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
6449 (grub_error_push): Update `errno' member name.
6450 (grub_error_pop): Likewise
6451 * grub-core/net/tftp.c (tftp_data): New member save_err.
6452 (tftp_receive): Save error.
6453 (tftp_open): Restore error.
6455 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6457 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
6458 to real mode down to execute A20-related code in protected mode as
6461 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
6463 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
6464 NULL when the argument `level' has an unexpected value.
6466 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6468 Move platform-dependent files from $prefix to $prefix/$platform.
6470 * config.h.in (GRUB_TARGET_CPU): New definition.
6471 (GRUB_PLATFORM): Likewise.
6472 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
6473 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
6474 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
6475 * grub-core/kern/dl.c (grub_dl_load): Likewise.
6476 * grub-core/normal/autofs.c (read_fs_list): Likewise.
6477 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
6478 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
6479 * grub-core/normal/term.c (read_terminal_list): Likewise.
6480 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
6482 (grub_gettext_init_ext): Likewise.
6483 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
6485 * util/grub-install.in: Update directories.
6486 * util/grub-mknetdir.in: Likewise.
6487 * util/grub-mkrescue.in: Likewise.
6489 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6491 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
6492 grub_error framework. All users updated.
6494 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6496 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
6497 lists (by always binsearching), improve caching (cache strings
6498 used for binsearch, not only results), improve
6499 maintainability (by using more structured binary search) and correct
6502 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6504 * grub-core/script/execute.c (grub_script_return): Fix warning.
6506 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6508 * grub-core/script/execute.c (grub_script_return): Fix potential
6510 Reported by: Jim Meyering.
6512 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6514 * po/POTFILES.in: Regenerate.
6515 * util/grub-install.in: Gettextize the strings missed in first pass.
6517 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6519 * Makefile.util.def (grub-mkdevicemap): Removed.
6520 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
6521 * include/grub/util/deviceiter.h: Removed.
6522 * util/deviceiter.c: Likewise.
6523 * util/getroot.c (grub_util_get_os_disk): New function.
6524 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
6525 replacement for EFI.
6526 * util/grub-mkdevicemap.c: Removed.
6527 * util/grub-probe.c (probe): Handle PRINT_DISK.
6528 (argp_parser): Handle -t disk.
6530 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6532 * util/grub-mkfont.c: Migrate to argp.
6533 * util/grub-mklayout.c: Likewise.
6534 * util/grub-mkpasswd-pbkdf2.c: Likewise.
6535 * util/grub-mkrelpath.c: Likewise.
6536 * util/grub-probe.c: Likewise.
6537 * util/grub-script-check.c: Likewise.
6539 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6541 * util/grub-reboot.in: Add missing datarootdir.
6542 Add missing newline.
6543 * util/grub-set-default.in: Add missing datarootdir.
6544 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
6545 * util/grub-mkrescue.in: Likewise.
6547 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6549 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
6551 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6553 * util/grub-kbdcomp.in: Add decent help and gettextize.
6554 * docs/man/grub-kbdcomp.h2m: New file.
6556 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6558 Migrate grub-mkimage.c to argp.
6560 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
6561 (grub-setup): Likewise.
6562 * util/grub-setup.c (print_version): Move to ...
6563 * util/argp_common.c (print_version): ... here.
6564 * util/grub-setup.c (argp_program_version_hook): Move to ...
6565 * util/argp_common.c (argp_program_version_hook): ... here.
6566 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
6568 * util/grub-mkimage.c (main): Migrate to argp.
6570 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6572 * util/grub-mkrescue.in: Use same message as
6573 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
6574 for better translations.
6576 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6578 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
6579 options with generic grub-mkrescue.in with the goal of future
6582 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6584 * grub-core/kern/mm.c: Add missing include of i18n.h
6585 * grub-core/lib/relocator.c: Likewise.
6587 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6589 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
6591 (allocate_pages): Check return value.
6592 Replace fatal with error.
6593 (grub_linux_boot): Replace printf with dprintf.
6594 Check find_mmap_size return value.
6595 Replace fatal with error.
6596 Don't call grub_machine_fini.
6597 (grub_load_elf64): Replace printf with dprintf.
6598 (grub_cmd_linux): Likewise.
6599 (grub_cmd_initrd): Likewise.
6600 (grub_cmd_payload): Likewise.
6602 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6604 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
6606 * grub-core/video/radeon_fuloong2e.c
6607 (grub_video_radeon_fuloong2e_setup): Likewise.
6608 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
6609 * grub-core/video/video.c (grub_video_set_mode): Don't override
6610 standard out of memory message.
6612 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
6614 NetBSD disk wedge support.
6616 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
6617 [__NetBSD__]: Handle NetBSD disk wedges.
6618 * util/getroot.c (convert_system_partition_to_system_disk)
6619 [__NetBSD__]: Likewise.
6621 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
6623 * util/grub-mkconfig.in: Use umask rather than chmod to create
6624 grub.cfg.new to avoid insecure grub.cfg.
6626 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6628 * grub-core/commands/ls.c: Gettextize.
6629 * grub-core/commands/setpci.c: Likewise.
6630 * grub-core/commands/videotest.c: Likewise.
6631 * grub-core/disk/geli.c: Likewise.
6632 * grub-core/kern/mm.c: Likewise.
6633 * grub-core/lib/relocator.c: Likewise.
6634 * grub-core/loader/efi/appleloader.c: Likewise.
6635 * grub-core/loader/i386/xnu.c: Likewise.
6636 * grub-core/loader/ia64/efi/linux.c: Likewise.
6637 * grub-core/loader/xnu.c: Likewise.
6638 * grub-core/net/dns.c: Likewise.
6639 * grub-core/net/net.c: Likewise.
6640 * grub-core/script/lexer.c: Likewise.
6641 * grub-core/script/parser.y: Likewise.
6642 * grub-core/script/yylex.l: Likewise.
6643 * util/getroot.c: Likewise.
6644 * util/grub-setup.c: Likewise.
6646 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6648 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
6651 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6653 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
6655 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6657 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
6659 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
6660 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
6662 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6664 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
6665 * util/grub-install.in: Gettextize.
6666 * util/grub-mkconfig.in: Likewise.
6667 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
6669 (grub_warn): Gettextize.
6670 * util/grub-mknetdir.in: Gettextize.
6671 * util/grub-mkrescue.in: Likewise.
6672 * util/grub-mkstandalone.in: Likewise.
6673 * util/grub-reboot.in: Likewise.
6674 * util/grub-set-default.in: Likewise.
6675 * util/grub.d/00_header.in: Likewise.
6676 * util/grub.d/10_hurd.in: Likewise.
6677 * util/grub.d/10_kfreebsd.in: Likewise.
6678 * util/grub.d/10_linux.in: Likewise.
6679 * util/grub.d/10_netbsd.in: Likewise.
6680 * util/grub.d/10_windows.in: Likewise.
6681 * util/grub.d/20_linux_xen.in: Likewise.
6682 * util/grub.d/30_os-prober.in: Likewise.
6683 * po/POTFILES-shell.in: Regenerate.
6685 2012-02-03 Richard Laager <rlaager@wiktel.com>
6687 * util/grub-mkimage.c (main): Fix format-security warning.
6688 * util/grub-mkrelpath.c (main): Likewise.
6689 * util/grub-probe.c (main): Likewise.
6691 2012-02-03 Richard Laager <rlaager@wiktel.com>
6693 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
6695 Put back lost PRINT_DRIVE.
6697 2012-02-03 Richard Laager <rlaager@wiktel.com>
6699 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
6700 (grub_guess_root_devices): Replace strlen with sizeof.
6702 (find_root_devices_from_poolname): Remove unused variable.
6705 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6707 Support install on multi-device filesystems.
6709 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
6710 (grub_guess_root_devices): ...this. Return char **. All users updated.
6711 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
6713 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
6714 (find_root_devices_from_poolname): ... here.
6715 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
6717 (grub_guess_root_device): Rename to ...
6718 (grub_guess_root_devices): ... this. Return char **. All users updated.
6719 * util/grub-install.in: Handle multi-device filesystems.
6720 * util/grub-probe.c (probe). Make device_names a char **. Add delim
6721 argument. All users updated.
6722 Handle multi-device filesystems.
6723 Use 'delim' as separator.
6724 Remove device check to allow filesystems on file.
6725 (main): Support -0 argument. Handle multi-device.
6726 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
6727 Fix a cross-device check while on it.
6728 (arguments): Remove root_dev.
6729 (argp_parser): Remove -r.
6730 (main): Remove root_dev.
6732 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6734 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
6736 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6738 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
6740 Reported by: NODA, Kai <nodakai>.
6742 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6746 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
6748 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
6749 (grub_ehci_setup_qh): Likewise.
6750 (grub_ehci_find_qh): Likewise.
6751 (grub_ehci_transaction): Likewise.
6752 (grub_ehci_setup_transfer): Likewise.
6753 (grub_ehci_check_transfer): Likewise.
6754 (grub_ehci_portstatus): Likewise.
6755 (grub_ehci_detect_dev): Likewise.
6756 (grub_ehci_transfer_controller_data): New field td_last_phys.
6757 (grub_ehci_setup_transfer): Fill td_last_phys.
6758 (grub_ehci_check_transfer): Use td_last_phys.
6760 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
6762 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
6763 if no submenu is present.
6765 2012-02-01 Aleš Nesrsta <starous@volny.cz>
6769 * include/grub/usb.h (grub_usbms_protocol_t): New values
6770 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
6771 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
6772 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
6773 (grub_usbms_dev): Add subclass, protocol and intrpt.
6774 Remove in_maxsz and out_maxsz.
6775 (grub_usbms_reset): Rename to ...
6776 (grub_usbms_bo_reset): .. this.
6777 (grub_usbms_cbi_cmd): New function.
6778 (grub_usbms_cbi_reset): Likewise.
6779 (grub_usbms_reset): Likewise.
6780 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
6781 (grub_usbms_transfer): Rename to ...
6782 (grub_usbms_transfer_bo): ... this.
6783 (grub_usbms_transfer_cbi): Likewise.
6784 (grub_usbms_transfer): Likewise.
6786 2012-02-01 Aleš Nesrsta <starous@volny.cz>
6787 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6789 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
6790 the support for the CS5536 modification thereos and few bugfixes.
6792 * grub-core/Makefile.core.def (ehci): New module.
6793 * grub-core/bus/usb/ehci.c: New file.
6794 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
6795 port and hubaddr. All users updated.
6796 Save port and hubaddr into dev structure.
6797 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
6799 * include/grub/pci.h (grub_dma_phys2virt): New function.
6800 (grub_dma_virt2phys): Likewise.
6801 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
6803 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6805 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
6806 check as some mkfs implementations omit it.
6808 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6810 * docs/grub.texi (Unicode): Mention identifier and space limitations.
6812 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6814 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
6815 Add new member volname2.
6816 (grub_jfs_label): Use volname2 if available.
6818 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6820 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
6821 over last_mounted as seen in image generated by mkfs.nilfs2.
6822 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
6824 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6826 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
6827 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
6828 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
6830 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6832 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
6835 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6837 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
6838 subvolume name (by removing a bogus and useless check).
6840 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6842 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
6845 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6847 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
6848 (grub_scsi_read_capacity10): ... this.
6849 (grub_scsi_read_capacity16): New function.
6850 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
6852 Fix off-by-one error.
6853 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
6855 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
6856 (grub_scsi_read_capacity10): ... this.
6857 (grub_scsi_read_capacity_data): Rename to ...
6858 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
6859 (grub_scsi_read_capacity16): New struct.
6860 (grub_scsi_read_capacity16_data): Likewise.
6861 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
6862 grub_scsi_cmd_read_capacity10.
6863 New command grub_scsi_cmd_read_capacity16.
6865 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6869 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
6870 (grub_scsi_write16): Likewise.
6871 (grub_scsi_read): Use read16 when necessary.
6872 (grub_scsi_write): Likewise.
6873 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
6874 (grub_scsi_write16): Likewise.
6875 (grub_scsi_cmd_t): Add READ16 and WRITE16.
6877 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6879 SCSI write support (for usbms mainly).
6881 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
6883 (grub_scsi_write): Implement.
6884 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
6886 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6888 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
6891 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6893 * grub-core/lib/posix_wrap/string.h (memchr): New function.
6895 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6897 * po/POTFILES.in: Regenerate.
6899 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6901 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
6902 with grub_printf to avoid unnecessary fatal failure.
6904 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6906 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
6907 (INT_MAX): Likewise.
6908 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
6909 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
6910 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
6914 (strncpy): Likewise.
6916 (strncat): Likewise.
6917 (strcoll): Likewise.
6918 * include/grub/types.h (GRUB_SHRT_MAX): New define.
6919 (GRUB_INT_MAX): Likewise.
6921 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6923 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
6925 (optimize_utf8): Likewise.
6926 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
6928 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6930 * grub-core/boot/i386/pc/lnxboot.S: Use
6931 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
6932 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
6934 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
6936 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
6938 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6940 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
6941 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
6942 now to avoid double free.
6943 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
6945 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
6946 * util/grub-probe.c (escape_of_path): Always return a new copy.
6947 (print_full_name): Escape path.
6948 (probe): Don't call grub_util_devname_to_ofpath on NULL.
6949 Fix hints on abstractions.
6951 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6953 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
6954 Don't add "root" line if no compatibility hont is available.
6955 Suggested by: Seth Goldberg.
6957 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6959 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
6960 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
6961 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
6962 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
6964 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6966 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
6968 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6970 * util/grub-pe2elf.c (ehdr): Make static.
6972 (num_sections): Likewise.
6975 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6977 Eliminate ofpath limits and possible overflows.
6979 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
6980 (OF_PATH_MAX): Removed.
6981 (MAX_DISK_CAT): New const.
6982 (find_obppath): Use allocated rather than preallocated buffer.
6983 Return result. Argument of_path removed. All users updated.
6985 (xrealpath): New function.
6986 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
6987 Allocate rather than use preallocated buffer. All users updated.
6988 (__of_path_common): Use allocated rather than preallocatecd buffer.
6989 Return result. Argument of_path removed. All users updated.
6990 (vendor_is_ATA): Read only needed part form the file.
6991 (check_sas): Allocate depending on contents rather than fixed.
6992 (main) [STANDALONE]: Handle NULL result.
6994 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6996 * grub-core/normal/completion.c (iterate_dev): Close the disk.
6998 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7000 Cryptodisk write support.
7002 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
7003 (grub_cryptodisk_decrypt): Moved logic to ...
7004 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
7005 (grub_cryptodisk_write): Implement.
7006 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
7007 (grub_util_fd_write): ... this. Make global.
7008 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
7010 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7012 * include/grub/list.h (grub_list_remove): Don't crash if element is
7015 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7017 Rename ofconsole to console.
7019 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
7020 as sysnonym to console.
7021 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
7022 * grub-core/term/ieee1275/console.c: ... this. All users updated.
7023 Rename grub_ofconsole_ to grub_console_. All users updated
7024 (grub_console_term_output): Rename "ofconsole" to "console".
7025 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
7028 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7030 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
7032 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
7033 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
7034 GRUB_DISK_DEVICE_FILE_ID.
7036 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7038 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
7039 and improve performance.
7041 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7043 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
7044 missing ieee1275/ prefix on whole disk.
7046 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7048 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
7049 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
7051 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7053 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
7055 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7057 Merge common RAID and LVM logic to an abstract diskfilter.
7058 Add LDM support using the same framework.
7060 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
7061 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
7062 (libgrubmods): Remove grub-core/disk/raid.c and
7063 grub-core/partmap/gpt.c.
7064 * grub-core/Makefile.core.def (ldm): New module.
7065 (raid): Renamed to diskfilter. All users updated.
7066 * grub-core/disk/raid.c: Moved to ...
7067 * grub-core/disk/diskfilter.c: ... here.
7068 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
7070 (find_array): Renamed to ...
7071 (find_lv): ... this. Support multi-LV. Skip nameless LVs
7072 (grub_is_array_readable): Renamed to ...
7073 (grub_is_lv_readable): ... this. Support multinode hierarchy.
7074 (insert_array): New argument id.
7075 (is_node_readable): New function.
7076 (scan_device): Rename to ...
7077 (scan_disk): .. this. Restrict to one disk.
7078 (scan_devices): New function.
7079 (grub_diskfilter_iterate): Support multi-LV.
7080 Skip invisible and nameless LVs.
7081 (grub_diskfilter_memberlist): Support multi-LV.
7082 (grub_diskfilter_read_node): New function.
7083 (grub_raid_read): Most of logic moved to ...
7084 (read_segment): ... here
7085 (read_lv): New function.
7086 (grub_diskfilter_get_vg_by_uuid): New function.
7087 (grub_diskfilter_make_raid): Likewise.
7088 * grub-core/disk/ldm.c: New file.
7089 * grub-core/disk/lvm.c (vg_list): Removed.
7090 (lv_count): Likewise.
7091 (scan_depth): Likewise.
7092 (is_lv_readable): Likewise.
7093 (grub_lvm_getvalue): Advance pointer past the number.
7095 (do_lvm_scan): Refactored into ...
7096 (grub_lvm_detect): ... this. Support raid.
7097 (grub_lvm_iterate): Removed.
7098 (grub_lvm_memberlist): Likewise.
7099 (grub_lvm_open): Likewise.
7100 (grub_lvm_close): Likewise.
7101 (read_lv): Likewise.
7102 (read_node): Likewise.
7103 (is_node_readable): Likewise.
7104 (is_lv_readable): Likewise.
7105 (grub_lvm_read): Likewise.
7106 (grub_lvm_write): Likewise.
7107 (grub_lvm_dev): Use diskfilter
7108 (GRUB_MOD_INIT): Likewise.
7109 (GRUB_MOD_FINI): Likewise.
7110 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
7112 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
7113 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
7114 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
7115 grub_diskfilter_read_node.
7117 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
7118 grub_diskfilter_read_node.
7119 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
7120 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
7121 (grub_disk_dev_iterate): Move from here...
7122 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
7123 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
7125 (grub_hostdisk_find_partition_start): Likewise.
7126 (grub_hostdisk_os_dev_to_grub_drive): New function.
7127 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
7128 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
7129 * util/getroot.c (make_device_name): ... here.
7130 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
7132 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
7133 * grub-core/kern/emu/hostdisk.c
7134 (convert_system_partition_to_system_disk): Move to ...
7135 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
7136 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
7137 * util/getroot.c (device_is_wholedisk): ... here.
7138 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
7139 * util/getroot.c (find_system_device): ... here.
7140 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
7142 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
7143 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
7145 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
7147 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
7149 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
7150 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
7151 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
7153 * include/grub/raid.h: Renamed to ...
7154 * include/grub/diskfilter.h: ... this.
7155 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
7156 (GRUB_RAID_LAYOUT_*): Make into array.
7157 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
7158 (grub_diskfilter_vg): New struct.
7159 (grub_diskfilter_pv_id): Likewise.
7160 (grub_raid_member): Removed.
7161 (grub_raid_array): Likewise.
7162 (grub_diskfilter_pv): New struct.
7163 (grub_diskfilter_lv): Likewise.
7164 (grub_diskfilter_segment): Likewise.
7165 (grub_diskfilter_node): Likewise.
7166 (grub_diskfilter_get_vg_by_uuid): New proto.
7167 (grub_raid_register): Inline.
7168 (grub_diskfilter_unregister): Likewise.
7169 (grub_diskfilter_make_raid): New proto.
7170 (grub_diskfilter_vg_register): Likewise.
7171 (grub_diskfilter_read_node): Likewise.
7172 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
7173 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
7174 (grub_util_is_ldm): Likewise.
7175 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
7176 (grub_hostdisk_find_partition_start): Likewise.
7177 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
7178 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
7180 (grub_gpt_partition_map_iterate): New proto.
7181 * include/grub/lvm.h (grub_lvm_vg): Removed.
7182 (grub_lvm_pv): Likewise.
7183 (grub_lvm_lv): Likewise.
7184 (grub_lvm_segment): Likewise.
7185 (grub_lvm_node): Likewise.
7186 * util/getroot.c [...]
7187 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
7188 (probe_abstraction): Likewise.
7189 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
7190 (main): Remove dead logic.
7192 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
7194 Simplify root device discover and don't fail when trying to open
7197 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
7199 (get_diskname_from_path): Likewise.
7200 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
7203 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7205 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
7207 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7209 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
7212 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7214 * util/grub-install.in: Add missing \.
7215 Reported by: gentoofan
7217 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
7219 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
7220 (direct_read): Use correct compressed size.
7221 (grub_squash_read_data): Likewise.
7223 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
7225 * docs/grub.texi (Platform limitations): New section.
7226 (Platform-specific operations): Likewise.
7227 * docs/grub-dev.texi (Porting): Likewise.
7229 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7231 IEEE1275 disk write support.
7233 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
7235 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
7236 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
7237 and seek loginc to ...
7238 (grub_ofdisk_prepare): ... here.
7239 (grub_ofdisk_write): Implement.
7241 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7243 ARC disk write support.
7245 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
7246 (reopen): New argument writable. All users updated.
7247 Handle required access mode.
7248 (grub_arcdisk_write): Implement.
7249 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
7250 (grub_arc_firmware_vector): Make buffer to write a const buffer.
7252 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7254 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
7255 (read_sblock): Don't attempt to read superblocks outside the disk size.
7257 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7259 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
7260 first superblock to find the second one when possible.
7262 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7264 * util/grub-install.in: Fix an ARC bug.
7265 Print a warning if no platform-specific setup is available.
7267 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7269 Use static allocation rather than scratch pointer in reed_solomon.
7270 It decreases its size significantly and avoids a variable in .text.
7272 * grub-core/lib/reed_solomon.c (scratch): Removed.
7273 (chosenstat): New const or static array.
7279 (errvals): Likewise.
7281 (pol_evaluate): Replace x with log_x argument. All users updated.
7282 (syndroms): Removed.
7283 (gauss_solve): Use statically allocated arrays.
7284 (rs_recover): Likewise.
7285 Calculate syndroms directly.
7286 (decode_block): Use statically allocated arrays.
7287 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
7288 (main) [TEST]: Allow -DTEST -DSTANDALONE.
7290 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7292 Eliminate fixed limit on reed solomon decoder length.
7294 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
7295 rather than hardcoding the address.
7296 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
7297 no_reed_solomon_length.
7298 Move gate_a20 to no-reed-solomon part.
7299 Don't force a particular size of no reed-solomon part.
7300 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
7302 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
7303 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
7305 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7307 * grub-core/commands/wildcard.c (match_files): Handle filenames
7308 without explicit device.
7309 (wildcard_expand): Don't add explicit device if not already present.
7310 * tests/grub_script_echo1.in: Add a new expansion test.
7312 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7314 Replace single-linked with double-linked lists. It results in more
7315 compact and more efficient code.
7317 * grub-core/kern/list.c (grub_list_push): Moved from here ...
7318 * include/grub/list.h (grub_list_push): ... to here. Set prev.
7319 (grub_list_remove): Moved from here ...
7320 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
7321 (grub_prio_list_insert): Set prev.
7322 * include/grub/list.h (grub_list): Add prev. All users updated.
7324 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7326 Handle newer autotools. Add some missing quotes while on it.
7328 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
7329 (pkglib_DATA): Move grub-mkconfig_lib from here ...
7330 (pkgdata_DATA): ... here.
7331 * Makefile.util.def (update-grub_lib): Removed.
7332 * conf/Makefile.common (pkglib_DATA): Removed.
7333 (pkglib_SCRIPTS): Likewise.
7334 (pkgdata_DATA): New variable.
7335 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
7338 Remove unused variable while on it.
7339 * tests/util/grub-shell.in: Likewise.
7340 * util/grub-install.in: Likewise.
7341 * util/grub-mkconfig.in: Likewise.
7342 * util/grub-mknetdir.in: Likewise.
7343 * util/grub-mkrescue.in: Likewise.
7344 * util/grub-mkstandalone.in: Likewise.
7345 * util/grub.d/00_header.in: Likewise.
7346 * util/grub.d/10_hurd.in: Likewise.
7347 * util/grub.d/10_illumos.in: Likewise.
7348 * util/grub.d/10_kfreebsd.in: Likewise.
7349 * util/grub.d/10_linux.in: Likewise.
7350 * util/grub.d/10_netbsd.in: Likewise.
7351 * util/grub.d/10_windows.in: Likewise.
7352 * util/grub.d/20_linux_xen.in: Likewise.
7353 * util/grub.d/30_os-prober.in: Likewise.
7354 * util/update-grub_lib.in: Removed.
7356 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
7358 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
7359 a workaround for intel problem.
7361 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
7362 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
7363 2012-01-23 pfsmorigo
7365 * util/grub-install.in: Support dd'in into PreP partition.
7366 * util/grub-probe.c (probe): Support discovering partition type.
7367 (main): Support -t msdos_parttype.
7369 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
7371 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
7372 infinite recursion using counter.
7373 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
7374 init to skip it if the magic check fails.
7375 (dec_stream_header): Init s->crc32.
7377 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7378 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
7379 2012-01-22 Richard Laager <rlaager@wiktel.com>
7381 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
7383 (find_bestub): Determine correct size.
7384 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
7385 (scan_disk): Align the size down.
7386 Call check pool before find_bestub to have ashift.
7388 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7390 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
7391 dprintf in no-malloc zone.
7393 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
7395 * configure.ac: Add back in test for limits.h.
7397 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7399 Support 4K-sector NTFS.
7401 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
7402 (grub_ntfs_data): Remove blocksize.
7403 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
7404 Remove data argument. All users updated.
7406 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7408 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
7409 being in .text to avoid dprel references.
7410 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
7411 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
7412 (grub_arch_highmemsize): Likewise.
7413 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
7414 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
7415 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
7417 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7419 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
7421 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
7422 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
7424 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7426 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
7428 (grub_set_datetime_cmos): Likewise.
7430 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7432 Make XZ compression parameters dependent on target and not host CPU.
7434 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
7435 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
7437 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7439 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
7440 set but not used variable.
7442 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7444 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
7445 created when no uuid support is compiled into mkfs.reiser.
7447 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7449 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
7450 (utf8_to_macroman): Do the opposite.
7451 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
7453 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7455 * configure.ac: Refise build qemu_mips w/o unifont.
7457 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7459 Eliminate grub_min/grub_max prone to overflow usage.
7461 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
7462 (poll_nonroot_hub): Likewise.
7463 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
7464 (grub_affs_label): Likewise.
7465 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
7466 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
7467 (grub_hfs_label): Likewise.
7468 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
7469 * grub-core/fs/zfs/zfs.c (MIN): Remove.
7470 (zap_leaf_array_equal): Use grub_size. Remove MIN.
7471 (zap_leaf_array_get): Likewise.
7472 (dnode_get_path): Likewise.
7473 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
7474 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
7475 * grub-core/script/execute.c (grub_script_break): Likewise.
7476 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
7478 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
7479 * include/grub/misc.h (grub_min): Removed.
7480 (grub_max): Likewise.
7482 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7484 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
7487 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7489 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
7491 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7493 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
7495 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7497 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
7498 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
7500 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7502 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
7503 rather than a hack for grub_strncasemap.
7505 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7507 Support multiple initrds
7508 Note: part of this was accidently committed in r3739.
7510 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
7512 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
7513 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
7514 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7515 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7516 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7518 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7520 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
7521 disks with unknown size.
7522 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
7524 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7526 Remove defines pertaining to arbitrary limits not affecting GRUB
7529 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
7530 (EXT2_MAX_SYMLINKCNT): Likewise.
7531 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
7532 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
7533 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
7534 (GRUB_PXE_MAX_BLKSIZE): Likewise.
7535 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
7536 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
7537 (DN_MAX_OBJECT_SHIFT): Likewise.
7538 (DN_MAX_OFFSET_SHIFT): Likewise.
7539 (DN_MAX_OBJECT): Likewise.
7540 (DNODES_PER_LEVEL_SHIFT): Likewise.
7541 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
7542 (SPA_MAXBLOCKSIZE): Likewise.
7543 (SPA_BLOCKSIZES): Likewise.
7544 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
7545 (MZAP_MAX_BLKSZ): Likewise.
7547 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7549 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
7550 handle NULL appropriately.
7553 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7557 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
7559 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
7560 * configure.ac: Fix efiemu check.
7562 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7564 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
7566 Reported by: adamwill
7568 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
7570 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
7572 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7574 Fix handling of wide characters in gfxterm.
7576 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
7577 (clear_char): Likewise.
7578 (paint_char): Skip code == NULL chars.
7579 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
7581 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7583 * grub-core/normal/charset.c: Move comment to right place.
7585 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7587 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
7588 (GRUB_AFFS_FLAG_FFS): Put back where it was.
7589 (grub_affs_mount): Revert the correct version checking.
7591 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7593 * docs/grub.texi (Unicode): Mention several other unsupported features.
7595 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7597 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
7598 case statements as compile-time one.
7599 (direct_read): Prevent spurious warnings.
7600 (grub_squash_read_data): Likewise.
7602 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7604 Various squash4 fixes and LZO and XZ support.
7606 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
7607 Add xzembed source files.
7608 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
7609 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
7610 (grub_squash_inode): New subtype long_dir.
7611 (SQUASH_TYPE_LONG_DIR): New inode type.
7612 (COMPRESSION): New enum.
7613 (XZBUFSIZ): New const.
7614 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
7615 (read_chunk): Use data->decompress.
7616 (zlib_decompress): New function.
7617 (lzo_decompress): Likewise.
7618 (xz_decompress): Likewise.
7619 (squash_mount): Set new data fields.
7620 (grub_squash_iterate_dir): Handle long dir.
7621 (squash_unmount): Free xzdec and xzbuf.
7622 (grub_squash_open): Check ino type.
7623 (direct_read): Stylistic fixes. Use data->decompress.
7624 (grub_squash_read_data): Likewise.
7625 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
7626 (get_byte): Likewise.
7627 (grub_zlib_disk_read): Removed.
7628 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
7629 (GRUB_POSIX_BOOL_DEFINED): New define.
7630 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
7631 * grub-core/lib/xzembed/xz.h: Addmissing includes.
7632 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
7633 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
7635 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7637 Don't override more informative errors.
7639 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
7640 * grub-core/font/font.c (open_section): Likewise.
7641 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
7642 filename. Don't override errors.
7643 (grub_cmd_openbsd_ramdisk): Don't override errors.
7644 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
7645 (grub_cmd_initrd): Likewise.
7646 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
7647 (grub_cmd_initrd): Likewise.
7648 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
7649 (grub_cmd_linux): Likewise.
7650 (grub_cmd_initrd): Likewise.
7651 (grub_cmd_payload): Likewise.
7652 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7653 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
7654 (grub_cmd_module): Likewise.
7655 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7656 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7657 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
7658 (grub_cmd_xnu_mkext): Likewise.
7659 (grub_cmd_xnu_ramdisk): Likewise.
7660 (grub_xnu_check_os_bundle_required): Likewise.
7661 (grub_xnu_load_kext_from_dir): Likewise.
7662 (grub_cmd_xnu_kextdir): Likewise.
7663 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
7665 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7667 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
7668 as 1024 in block size field. Found on one of my test images.
7669 Small optimisation while on it.
7671 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7673 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
7674 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
7675 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
7676 performance fixes while on it.
7677 (grub_sfs_close): Fix memory leak while on it.
7678 (grub_sfs_label): Convert Latin1 to UTF-8.
7680 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7682 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
7683 space to avoid overflows.
7684 (grub_hfs_label): Convert from macroman to UTF-8.
7686 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7688 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
7690 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7692 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
7694 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7696 * unicode: Import Unicode 6.0 data.
7698 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7700 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
7703 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7705 Avoid cutting in the middle of UTF-8 character.
7707 * include/grub/charset.h (grub_getend): New function.
7708 * grub-core/script/function.c (grub_script_function_find): Use
7710 * grub-core/normal/completion.c (add_completion): Likewise.
7712 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7714 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
7715 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
7716 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
7717 (GRUB_UNICODE_TAG_END): Likewise.
7718 (GRUB_UNICODE_LAST_VALID): Likewise.
7720 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7722 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
7723 len and make it smaller. All users updated.
7724 * util/import_unicode.py: Put length and not end character.
7727 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7729 Make better Unicode-compliant and unify some UTF-8 code pathes.
7731 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
7733 (grub_is_valid_utf8): Use grub_utf8_process.
7734 Check resulting code range.
7735 (grub_utf8_to_ucs4): Use grub_utf8_process.
7736 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
7739 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7741 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
7743 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7745 * docs/grub.texi (Filesystems): Mention AFS.
7747 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7749 * docs/grub.texi (Filesystems): Clarify restrictions.
7750 (Regexp): Mention non-Unicode regexp behaviour.
7751 (Other): Mention non-Unicode matching behaviour.
7753 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7755 Make HFS implementation use MacRoman.
7757 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
7758 (macroman): New const array.
7759 (macroman_to_utf8): New function.
7760 (utf8_to_macroman): Likewise.
7761 (grub_hfs_find_dir): Use utf8_to_macroman.
7762 (grub_hfs_dir): Use macroman_to_utf8.
7763 Set case_insensitive.
7765 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7767 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
7769 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7771 Integrate hints into autogeneration scripts.
7773 * docs/grub.texi (Filesystems): Add a hostdisk example.
7774 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
7775 (grub-probe): Add ofpath.
7776 * gentpl.py: Remove group nosparc64.
7777 * grub-core/commands/search.c (cache_entry): New struct.
7779 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
7780 * grub-core/commands/search_wrap.c (options): Add platform-specific
7782 (grub_cmd_search): Handle platform-specific hints.
7783 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
7784 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
7785 (grub_util_biosdisk_data): Likewise.
7786 (grub_util_biosdisk_open): Set device_map.
7787 (read_device_map): Handle "" as indication of no map.
7789 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
7790 (grub_util_biosdisk_get_compatibility_hint): New function.
7791 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
7792 * include/grub/emu/hostdisk.h
7793 (grub_util_biosdisk_get_compatibility_hint): New proto.
7794 * util/grub-install.in: Don't call grub-mkdevicemap.
7795 Add platform-specific hint to load.cfg.
7796 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
7797 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
7798 hints. Set root preliminary to compatibility hint, not to OS name.
7799 * util/grub-probe.c (PRINT_*): Add hints.
7800 (print): Make static.
7801 (escape_of_path): New function.
7802 (guess_bios_drive): Likewise.
7803 (guess_efi_drive): Likewise.
7804 (guess_baremetal_drive): Likewise.
7805 (print_full_name): Likewise.
7806 (probe): Handle hints.
7808 * util/ieee1275/devicemap.c: Removed.
7809 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
7811 (grub_util_devname_to_ofpath): Return NULL on failure.
7813 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
7815 * util/getroot.c (grub_util_pull_device): Fix memory leak.
7817 * po/POTFILES.in: Regenerated.
7819 Allow purely long options
7821 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
7822 (SHORT_ARG_USAGE): Likewise.
7823 (grub_arg_show_help): Compare opt with help_options.
7824 (parse_option): Receive opt as argument. If makes big simplificatons.
7827 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7829 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
7830 Restructure to avoid warning.
7832 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7834 * util/grub-install.in: Account for possible escaped comma in device
7837 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7839 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
7842 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7844 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
7845 allocation and zero-setting.
7846 (grub_ieee1275_get_devname): Check that alias is complete.
7848 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7850 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
7853 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7855 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
7857 (grub_ofdisk_open): Check and discard ieee1275 prefix.
7858 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
7859 Add ieee1275 prefix.
7861 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7863 * docs/grub.texi (Filesystems): Update.
7865 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7867 Support odc, newc and bigendian cpio formats.
7869 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
7870 * grub-core/Makefile.core.def (newc): New module.
7872 (cpio_be): Likewise.
7873 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
7876 (head) [MODE_ODC]: Adapt for the format.
7877 (head) [MODE_NEWC]: Likewise.
7878 (head) [!MODE_*]: Write fields of interest as arrays.
7879 (MAGIC_USTAR): Removed.
7880 (read_number) [MODE_NEWC]: Change to hex.
7881 (read_number) [!MODE_*]: Parse binary arrays.
7882 (grub_cpio_find_file): Factor out the code for better structure and
7883 always use read_number.
7884 (grub_cpio_mount): Use MAGIC and MAGIC2.
7885 (grub_cpio_dir): Exit on first hook non-0 return.
7886 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
7887 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
7888 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
7889 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
7890 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
7891 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
7892 * grub-core/fs/newc.c: New file.
7893 * grub-core/fs/odc.c: Likewise.
7894 * grub-core/fs/cpio_be.c: Likewise.
7896 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7898 Fix handling of tar numbers occupying the whole field.
7900 * grub-core/fs/cpio.c (read_number): New function.
7901 (grub_cpio_find_file): Use read_number instead of strtoull.
7903 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7905 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
7906 occupying the whole field size.
7908 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
7910 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
7912 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7914 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
7916 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
7918 * grub-core/Makefile.core.def (lzma_decompress): Add missing
7921 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7923 * util/getroot.c (ESCAPED_PATH_MAX): New define.
7924 (mountinfo_entry): Increase the field size to take escaping into
7926 (find_root_device_from_libzfs): Add one byte to size of strings for
7929 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7931 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
7933 * util/grub-setup.c (setup): Likewise.
7935 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7937 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
7940 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
7942 * docs/grub.texi (Internationalisation): New section.
7944 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
7946 * docs/grub.texi (Loopback booting): New section.
7948 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
7950 * util/grub-mkstandalone.in: Fix minor typo errors.
7952 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
7954 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
7956 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
7957 net/icmp.c and net/icmp6.c.
7959 (priority_queue): Likewise.
7960 * grub-core/io/bufio.c: Rewritten.
7961 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
7962 TYPE_WITH_CONFIGFILE_OPTION.
7963 (legacy_commands): Add bootp and dhcp.
7964 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
7965 (grub_legacy_parse): Likewise.
7966 * grub-core/lib/priority_queue.c: New file.
7967 * grub-core/net/arp.c: Add missing license header.
7968 (arp_find_entry): Removed.
7969 (arp_find_entry): Likewise.
7970 (grub_net_arp_resolve): Rename to ...
7971 (grub_net_arp_send_request): ...this.
7972 (grub_net_arp_receive): New card argument.
7973 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
7974 Set router and DNS server.
7975 (grub_net_configure_by_dhcp_ack): Handle routing information.
7976 (grub_cmd_bootp): Set checksum.
7977 (grub_bootp_init): Remove net_dhcp.
7978 * grub-core/net/dns.c: New file.
7979 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
7981 (get_card_packet): Handle allocation.
7982 (grub_efinet_findcards): Set mtu.
7983 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
7984 (get_card_packet): Handle allocation.
7986 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
7987 (GRUB_MOD_INIT): Set mtu.
7988 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
7990 (get_card_packet): Handle allocation.
7991 (grub_ofnet_findcards): Set mtu.
7992 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
7994 (grub_net_recv_ethernet_packet): Handle IPv6.
7995 * grub-core/net/http.c: New file.
7996 * grub-core/net/icmp.c: Likewise.
7997 * grub-core/net/icmp6.c: Likewise.
7998 * grub-core/net/ip.c (ip6addr): New type.
8000 (reassemble): Likewise.
8001 (cmp): New function.
8002 (reassembles): New variable.
8003 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
8005 (send_fragmented): New function.
8006 (grub_net_send_ip_packet): Rename to ...
8007 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
8009 (grub_net_recv_ip_packets): Rename to ...
8010 (handle_dgram): ... this. Check checksum. Handle non-UDP.
8011 (free_rsm): New function.
8012 (free_old_fragments): Likewise.
8013 (grub_net_recv_ip4_packets): New function.
8014 (grub_net_send_ip6_packet): Likewise.
8015 (grub_net_send_ip_packet): Likewise.
8016 (grub_net_recv_ip6_packets): Likewise.
8017 (grub_net_recv_ip_packets): Likewise.
8018 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
8019 (LINK_LAYER_CACHE_SIZE): New const.
8020 (link_layer_find_entry): New function.
8021 (grub_net_link_layer_add_address): Likewise.
8022 (grub_net_link_layer_resolve_check): Likewise.
8023 (grub_net_link_layer_resolve): Likewise.
8024 (grub_net_ipv6_get_slaac): Likewise.
8025 (grub_net_ipv6_get_link_local): Likewise.
8026 (grub_cmd_ipv6_autoconf): Likewise.
8027 (parse_ip): Handle one number representation.
8028 (parse_ip6): New functoion.
8029 (match_net): Handle IPv6.
8030 (grub_net_resolve_address): Handle IPv6 and DNS.
8031 (grub_net_resolve_net_address): Handle IPv6.
8032 (route_cmp): New function.
8033 (grub_net_route_address): Find best route.
8034 (grub_net_addr_to_str): Handle IPv6.
8035 (grub_net_addr_cmp): New function.
8036 (grub_net_add_addr): Register local route.
8037 (print_net_address): Handle net address.
8038 (grub_net_poll_cards): Retransmit TCP.
8039 (grub_net_poll_cards_idle_real): Likewise.
8040 (have_ahead): New function.
8041 (grub_net_seek_real): Use underlying seek.
8042 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
8043 * grub-core/net/tcp.c: New file.
8044 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
8045 (cmp): New function.
8047 (tftp_receive): Handle unordered input.
8048 (destroy_pq): New function.
8049 (tftp_close): Close pq.
8050 * grub-core/net/udp.c: Put missing license header.
8051 (grub_net_udp_socket): New function.
8052 (udp_socket_register): Likewise.
8053 (grub_net_udp_close): Likewise.
8054 (grub_net_recv_udp_packet): Check checksum.
8055 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
8056 * include/grub/misc.h (grub_memchr): New function.
8057 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
8058 (grub_net_card_driver): Return buf in recv.
8059 (grub_net_slaac_mac_list): New struct.
8060 (grub_network_level_protocol_id): Add ipv6.
8061 (grub_net_network_level_addr): Likewise.
8062 (grub_net_network_level_net_addr): Likewise.
8063 (grub_net_app_protocol): Add seek.
8064 (grub_net_socket): Removed.
8065 (grub_net_sockets): Likewise.
8066 (grub_net_socket_register): Likewise.
8067 (grub_net_socket_unregister): Likewise.
8068 (FOR_NET_SOCKETS): Likewise.
8069 (grub_net_add_addr): Add const.
8070 (GRUB_NET_BOOTP_*): New enum.
8071 (grub_net_addr_cmp): New proto.
8072 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
8073 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
8074 (grub_net_hwaddr_to_str): NEw proto.
8075 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
8076 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
8077 (grub_dns_init): New proto.
8078 (grub_dns_fini): Likewise.
8079 (grub_net_tcp_retransmit): Likewise.
8080 (grub_net_link_layer_add_address): Likewise.
8081 (grub_net_link_layer_resolve_check): Likewise.
8082 (grub_net_link_layer_resolve): Likewise.
8083 (grub_net_dns_lookup): Likewise.
8084 (grub_net_add_dns_server): Likewise.
8085 (grub_net_remove_dns_server): Likewise.
8086 (GRUB_NET_TRIES): New const.
8087 (GRUB_NET_INTERVAL): Likewise.
8088 * include/grub/net/arp.h: Mostly rewritten.
8089 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
8090 * include/grub/net/ip.h: Mostly rewritten.
8091 * include/grub/net/netbuff.h: Indent.
8092 * include/grub/net/tcp.h: New file.
8093 * include/grub/net/udp.h: Mostly rewritten.
8094 * include/grub/priority_queue.h: New file.
8095 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
8096 (grub_swap_bytes64_compile_time): Likewise.
8097 (grub_cpu_to_be16_compile_time): Likewise.
8098 (grub_cpu_to_be32_compile_time): Likewise.
8099 (grub_cpu_to_be64_compile_time): Likewise.
8100 (grub_be_to_cpu64_compile_time): Likewise.
8102 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
8104 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
8105 UINT_TO_PTR with cast.
8107 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8109 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
8112 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8114 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
8117 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8119 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
8122 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8124 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
8125 Add missing const attribute.
8126 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
8128 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
8131 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8133 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
8135 (serpent_setkey): Likewise.
8136 (serpent_encrypt_internal): Likewise.
8137 (serpent_decrypt_internal): Likewise.
8138 (serpent_encrypt): Don't put an alignment-increasing cast.
8139 (serpent_decrypt): Likewise.
8140 (serpent_test): Likewise.
8142 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8144 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
8146 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8148 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
8150 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
8152 (PTR_TO_UINT64): Likewise.
8153 (PTR_TO_UINT32): Likewise.
8155 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8157 * util/grub-mkimage.c (generate_image): Decrease the higher limit
8159 * util/grub-setup.c (setup): Don't add redundancy past the higher load
8162 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8164 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
8165 text_width > available width a bit more gracefully.
8167 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8169 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
8170 current address calculation.
8172 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8174 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
8176 (encode_block): Likewise.
8178 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8180 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
8183 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8185 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
8186 non-RS part to avoid RS messing with GDT.
8187 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
8188 Increase to suit in realmode routines.
8190 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8192 * grub-core/kern/i386/realmode.S: Increase alignment.
8193 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
8195 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8197 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
8199 (syndroms): Compute 0 syndrom.
8200 (rs_recover): Use 0 syndrom.
8202 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8204 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
8206 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8208 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
8211 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8213 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
8215 (get_top_pad): Likewise.
8216 (get_right_pad): Likewise.
8217 (get_bottom_pad): Likewise.
8219 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8221 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
8223 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8225 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
8226 attribute as the structure isn't guaranteed to be properly aligned.
8227 (grub_efi_pci_device_path): Likewise.
8228 (grub_efi_pccard_device_path): Likewise.
8229 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
8230 specify the size of `memory_type'.
8231 (grub_efi_vendor_device_path): Likewise.
8232 (grub_efi_controller_device_path): Likewise.
8233 (grub_efi_acpi_device_path): Likewise.
8234 (grub_efi_expanded_acpi_device_path): Likewise.
8235 (grub_efi_atapi_device_path): Likewise.
8236 (grub_efi_scsi_device_path): Likewise.
8237 (grub_efi_fibre_channel_device_path): Likewise.
8238 (grub_efi_1394_device_path): Likewise.
8239 (grub_efi_usb_device_path): Likewise.
8240 (grub_efi_usb_class_device_path): Likewise.
8241 (grub_efi_i2o_device_path): Likewise.
8242 (grub_efi_mac_address_device_path): Likewise.
8243 (grub_efi_ipv4_device_path): Likewise.
8244 (grub_efi_ipv6_device_path): Likewise.
8245 (grub_efi_infiniband_device_path): Likewise.
8246 (grub_efi_uart_device_path): Likewise.
8247 (grub_efi_vendor_messaging_device_path): Likewise.
8248 (grub_efi_hard_drive_device_path): Likewise.
8249 (grub_efi_cdrom_device_path): Likewise.
8250 (grub_efi_vendor_media_device_path): Likewise.
8251 (grub_efi_file_path_device_path): Likewise.
8252 (grub_efi_protocol_device_path): Likewise.
8253 (grub_efi_piwg_device_path): Likewise.
8254 (grub_efi_bios_device_path): Likewise.
8256 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8258 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
8259 (grub_ucs4_to_utf8_alloc): Likewise.
8260 (grub_ucs4_to_utf8): Likewise.
8261 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
8262 (grub_ucs4_to_utf8_alloc): Likewise.
8264 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8266 AFFS never uses unicode.
8268 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
8269 (grub_latin1_to_utf8): New inline function.
8270 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
8272 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8274 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
8277 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8279 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
8280 (grub_squash_dirent_header): Likewise.
8281 (read_chunk): Don't double swap.
8282 (grub_squash_iterate_dir): Fix swap sizes.
8284 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8286 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
8288 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8290 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
8291 (grub_hfs_iterate_dir): Likewise.
8293 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8295 Fix video on platforms where unaligned access is forbidden.
8296 Make several optimisations while on it.
8298 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
8299 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8300 (grub_video_fbblit_replace_32bit_1bit): Likewise.
8301 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
8303 (grub_video_fbblit_replace_16bit_1bit):
8304 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8305 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8306 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
8307 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
8308 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
8309 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
8310 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
8311 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
8312 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
8313 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
8314 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
8315 (grub_video_fbblit_replace_index_RGB888): Likewise.
8316 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
8317 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
8318 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
8319 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
8320 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
8321 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8322 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
8324 (grub_video_fbblit_blend_XXX565_1bit):
8325 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8326 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
8327 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
8329 * grub-core/video/fb/video_fb.c (common_blitter)
8330 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
8331 (grub_video_fb_create_render_target_from_pointer)
8332 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
8333 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
8334 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
8336 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
8338 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8340 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
8341 HH22 and HM10 relocations.
8343 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8345 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
8347 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8349 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
8350 allocation succeeded.
8352 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8354 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
8355 argument a u8 pointer. All users updated.
8356 Handle unaligned buffers.
8358 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8360 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
8361 add_part to workaround compiler bug.
8363 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8365 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
8367 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8369 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
8370 Reserve alignment invariants.
8371 (grub_multiboot_load): Likewise.
8372 (retrieve_video_parameters): Likewise.
8373 (grub_multiboot_make_mbi): Likewise.
8375 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8377 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
8380 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8382 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
8383 (grub_pata_pio_write): Likewise.
8385 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8387 Add noreturn attributes and remove unreachable code.
8389 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
8391 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
8392 code. Mark as noreturn.
8393 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
8394 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
8395 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
8397 * grub-core/kern/main.c (grub_main): Mark as noreturn.
8398 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
8399 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
8400 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
8401 * include/grub/kernel.h (grub_main): Mark as noreturn.
8402 * include/grub/reader.h (grub_rescue_run): Likewise.
8404 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8406 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
8407 redundant declaration.
8409 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8411 * include/grub/net.h (grub_net_network_level_interfaces): Remove
8412 redundant declaration.
8413 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
8415 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8417 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
8418 to ensure alignment.
8419 (grub_hdparm_print_identify): Make argument uint16 * to ensure
8420 alignment. Ensure tmp alignment.
8421 (grub_cmd_hdparm): Ensure buf alignment.
8422 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
8423 to ensure alignment.
8424 (grub_ata_dumpinfo): Ensure text alignment.
8425 (grub_atapi_identify): Preserve alignment invariant.
8426 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
8428 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8430 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
8431 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
8432 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
8433 * include/grub/misc.h (grub_reboot)
8434 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
8435 (grub_halt) [__mips__]: Likewise.
8437 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8439 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
8440 Remove redundant declaration.
8441 (grub_mmap_get_post64): Likewise.
8442 (grub_mmap_get_upper): Likewise.
8443 (grub_mmap_get_lower): Likewise.
8445 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8447 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
8448 uint32_t * to ensure alignment.
8449 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
8451 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8453 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
8454 uint16_t * to ensure alignment.
8455 (sun_pc_partition_map_iterate): Make `block' a union to ensure
8458 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8460 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
8461 to ensure alignment.
8462 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
8464 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8466 * grub-core/fs/ntfs.c (u16at): Make into inline function.
8467 Handle unaligned pointers.
8470 (fixup): Use byte access instead of v16at.
8471 (find_attr): Fix imporper usage of v32at.
8472 (read_data): Likewise.
8473 (list_file): Handle byte-swapping and unaligned strings.
8474 (grub_ntfs_label): Likewise.
8476 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8478 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
8479 as it's not necessarily aligned.
8481 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8483 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
8484 redundant declaration.
8485 (grub_serial_init): Likewise.
8486 (grub_terminfo_init): Likewise.
8488 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8490 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
8492 (ZAP_HASH_IDX): Likewise.
8493 (ZAP_LEAF_HASH_SHIFT): Likewise.
8494 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
8495 (LEAF_HASH): Likewise.
8496 (ZAP_LEAF_NUMCHUNKS): Likewise.
8497 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
8498 alignment invariants. Return pointer. All users updated.
8499 (ZAP_LEAF_ENTRY): Make into inline function.
8502 (xor_out): Use grub_crypto_xor.
8503 (dnode_get_path): Use grub_get_unaligned.
8504 (nvlist_find_value): Likewise.
8505 (grub_zfs_nvlist_lookup_uint64): Likewise.
8506 (grub_zfs_nvlist_lookup_string): Likewise.
8507 (get_nvlist_size): Likewise.
8508 (grub_zfs_open): Likewise.
8509 (fill_fs_info): Likewise.
8510 (grub_zfs_dir): Likewise.
8511 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
8512 alignment invariants.
8513 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
8514 necessarily aligned.
8516 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8518 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
8520 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8522 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
8523 arithmetic to conserve alignment invariants.
8525 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8527 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
8528 redundant declaration.
8529 (grub_efiemu_mm_obtain_request): Likewise.
8530 (grub_efiemu_prepare): Likewise.
8532 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8534 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
8537 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8539 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
8540 case of aunaligned recptr.
8541 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
8543 (grub_hfsplus_btree_search): Handle unaligned index.
8545 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8547 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
8548 to get freetag and skip.
8550 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8552 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
8554 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
8555 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
8557 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8559 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
8560 name for checksum and fix allocation algorithm.
8562 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8564 * include/grub/types.h (grub_properly_aligned_t): New type.
8565 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
8566 (grub_get_unaligned16): Add explicit casts.
8567 (grub_get_unaligned32): Likewise.
8568 (grub_get_unaligned64): Likewise.
8569 (grub_set_unaligned16): New function.
8570 (grub_set_unaligned32): Likewise.
8572 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8574 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
8576 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8578 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
8579 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
8580 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
8582 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8584 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
8587 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8589 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
8590 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
8592 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8594 Unify and improve RAID and crypto xor.
8596 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
8597 changed to grub_crypto_xor
8598 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
8599 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
8600 Use bigger types when possible.
8602 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8604 * grub-core/disk/raid.c (scan_devices): Fix condition.
8606 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8608 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
8609 Make name a const ptr.
8611 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8613 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
8614 first argument a const pointer.
8615 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
8616 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
8618 (grub_children_iterate): Likewise.
8619 (grub_machine_mmap_iterate): Remove redundant declaration.
8621 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8623 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
8624 (grub_cmd_acpi) [!x86]: Disable EBDA.
8626 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8628 Enable UTF8 in gnulib regexp.
8630 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
8631 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
8632 (isupper): Use grub_isupper.
8633 (isascii): New inline function.
8634 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
8635 * grub-core/lib/posix_wrap/wctype.h: Likewise.
8636 * grub-core/normal/charset.c (grub_utf8_process): New function.
8637 (grub_utf8_to_utf16): Use grub_utf8_process.
8638 (grub_encode_utf8_character): New function.
8639 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
8640 * include/grub/charset.h (grub_utf8_process): New declaration.
8641 (grub_encode_utf8_character): Likewise.
8642 * include/grub/misc.h (grub_islower): New inline function.
8643 (grub_isupper): Likewise.
8644 (grub_strchrsub): Moved down to fix the definitions.
8646 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8648 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
8651 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8653 * include/grub/loader.h (grub_loader_register_preboot_hook):
8654 Use struct preboot * and not void * for handle. All users updated.
8655 (grub_loader_unregister_preboot_hook): Likewise.
8657 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
8659 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
8660 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
8661 UTF-16-BE. All users updated.
8662 (grub_hfsplus_cmp_catkey): Fix unicode handling.
8663 (grub_hfsplus_iterate_dir): Likewise.
8664 (grub_hfsplus_label): Likewise.
8666 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
8668 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
8670 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
8672 Add missing const qualifiers.
8674 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
8675 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
8676 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
8677 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
8678 (grub_lvm_check_flag): Likewise.
8679 * grub-core/efiemu/i386/coredetect.c
8680 (grub_efiemu_get_default_core_name): Likewise
8681 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
8682 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
8683 * grub-core/fs/ntfs.c (fixup): Likewise.
8684 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
8685 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
8686 (fzap_lookup): Likewise.
8687 (zap_lookup): Likewise.
8688 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
8689 * grub-core/lib/legacy_parse.c (check_option): Likewise.
8690 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
8691 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
8692 (grub_freebsd_add_meta_module): Likewise.
8693 (grub_cmd_freebsd_module): Likewise.
8694 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
8695 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
8696 (grub_xnu_writetree_get_size): Likewise.
8697 (grub_xnu_writetree_toheap_real): Likewise.
8698 (grub_xnu_find_key): Likewise.
8699 (grub_xnu_create_key): Likewise.
8700 (grub_xnu_create_value): Likewise.
8701 (grub_xnu_register_memory): Likewise.
8702 (grub_xnu_check_os_bundle_required): Likewise.
8703 (grub_xnu_scan_dir_for_kexts): Likewise.
8704 (grub_xnu_load_kext_from_dir): Likewise.
8705 * grub-core/normal/color.c (color_list): Likewise.
8706 * grub-core/normal/completion.c (current_word): Likewise.
8707 * grub-core/normal/menu_entry.c (insert_string): Likewise.
8708 * grub-core/term/serial.c (grub_serial_find): Likewise.
8709 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
8710 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
8712 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
8713 (grub_freebsd_add_meta_module): Likewise.
8714 * include/grub/lib/arg.h (grub_arg_option): Likewise.
8715 * include/grub/net.h (grub_net_card_driver): Likewise.
8716 (grub_net_card): Likewise.
8717 (grub_net_app_protocol): Likewise.
8718 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
8719 * include/grub/serial.h (grub_serial_find): Likewise.
8720 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
8721 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
8722 (grub_xnu_create_value): Likewise.
8723 (grub_xnu_find_key): Likewise.
8724 (grub_xnu_scan_dir_for_kexts): Likewise.
8725 (grub_xnu_load_kext_from_dir): Likewise.
8727 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
8728 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
8729 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
8731 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
8733 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
8735 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
8737 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
8739 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
8740 (read_device): Fix size calculation.
8742 2011-11-25 Robert Millan <rmh@gnu.org>
8744 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
8745 (find_root_device_from_libzfs): Add zpool output parser to be used
8746 as fallback when libzfs isn't available.
8748 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
8750 * po/Makefile.in.in: Add missing escape-continuation.
8752 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
8754 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
8756 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
8758 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
8760 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
8762 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
8764 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
8766 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
8768 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
8770 * grub-core/lib/adler32.c: Add missing license specification.
8771 * grub-core/lib/crc64.c: Likewise.
8772 * grub-core/loader/i386/pc/plan9.c: Likewise.
8773 * grub-core/partmap/plan.c: Likewise.
8775 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
8777 Add facility to debug GRUB with gdb under qemu.
8779 * grub-core/gdb_grub.in: New file.
8780 * grub-core/gmodule.pl.in: Likewise.
8781 * grub-core/Makefile.core.def (gmodule.pl): New script.
8782 (gdb_grub): Likewise.
8784 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8786 * util/grub-mount.c (argp_parser): Accept relative pathes.
8787 * util/grub-fstest.c (argp_parser): Likewise.
8789 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8793 * Makefile.util.def (libgrubmods): Add
8794 grub-core/partmap/plan.c.
8795 * docs/grub.texi: Notice Plan9 support.
8796 * grub-core/Makefile.core.def (plan9): New module.
8797 (part_plan): Likewise.
8798 * grub-core/loader/i386/pc/plan9.c: New file.
8799 * grub-core/partmap/plan.c: Likewise.
8800 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
8802 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
8803 * include/grub/mm.h (grub_extend_alloc): New inline function.
8805 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8807 Make Reed-Solomon faster by using power of generator representation of
8810 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
8811 (gf_double_t): Likewise.
8812 (gf_invert): Removed.
8813 (gf_powx): New array.
8814 (gf_powx_inv): Likewise.
8815 (scratch): Move higher.
8816 (gf_reduce): Removed.
8818 (gf_invert): Likewise.
8819 (init_inverts): Replaced with ...
8820 (init_powx): ...this. All users updated.
8821 (pol_evaluate): Replace multiplications with additions.
8822 (rs_encode): Likewise.
8823 (gauss_eliminate): Call gf_invert.
8824 (grub_reed_solomon_add_redundancy): Call init_powx.
8825 (grub_reed_solomon_recover): Call init_powx unconditionally.
8827 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8829 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
8831 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8833 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
8834 disk->partiton for safety.
8836 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8838 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
8840 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
8842 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8844 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
8846 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8848 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
8850 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8852 Fix spaces handling in proc/self/mountinfo.
8854 * util/getroot.c (unescape): New function.
8855 (grub_find_root_device_from_mountinfo): Use unescape.
8857 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8859 Support ZFS embedding.
8861 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
8862 (grub_zfs_fs): Register grub_zfs_embed.
8864 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8866 Fix MIPS compilation.
8868 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
8869 * include/grub/offsets.h: Rename decompressor fields from
8870 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
8871 * util/grub-mkimage.c (image_targets): Use new names.
8873 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8875 Defer multiboot device parsing until we're in compressed part.
8877 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
8878 bsd_part. setdevice has fallen into disuse.
8879 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
8880 (bsd_part): Likewise.
8881 (boot_dev): New variable.
8882 (multiboot_trampoline): Don't parse multiboot device.
8883 Pass multiboot device in %edx.
8884 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
8886 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
8888 * grub-core/kern/i386/pc/startup.S: Save edx.
8889 (grub_boot_drive): Removed.
8890 (grub_install_dos_part): Likewise.
8891 (grub_install_bsd_part): Likewise.
8892 (grub_boot_device): New variable.
8893 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
8894 (grub_install_bsd_part): Likewise.
8895 (grub_boot_drive): Likewise.
8896 (grub_boot_device): New variable.
8897 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
8899 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
8900 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
8901 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
8902 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
8903 * util/grub-install.in: Remove redundant condition.
8905 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8907 Fix bug introduced by previous commit.
8909 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
8911 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8913 Use decompressors framework on i386-pc. It increases core size
8914 by 46 bytes but improves compatibility and maintainability.
8916 * grub-core/Makefile.core.def (lzma_decompress): New image.
8917 (kernel): Add i386_pc_ldflags.
8918 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
8919 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
8920 to real_to_prot, prot_to_real and device info.
8921 * include/grub/offsets.h: Renamed decompressor offsets.
8922 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
8923 (image_target_desc): Remove raw_size and rename decompressor fields.
8924 (compress_kernel): Handle lzma.
8925 (generate_image): Handle decompressors on i386-pc.
8927 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8929 * configure.ac: Add -fno-asynchronous-unwind-tables.
8931 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8933 Move assembly code to C by using intwrap. It increases core size
8934 by 88 bytes but improves compatibility and maintainability.
8936 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
8937 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
8938 ... here. Translated to C.
8939 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
8940 * grub-core/term/i386/pc/console.c (grub_console_getkey):
8941 ... here. Translated to C.
8942 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
8943 * grub-core/term/i386/pc/console.c (grub_console_getxy):
8944 ... here. Translated to C.
8945 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
8946 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
8947 ... here. Translated to C.
8948 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
8949 * grub-core/term/i386/pc/console.c (grub_console_cls):
8950 ... here. Translated to C.
8951 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
8952 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
8953 ... here. Translated to C.
8954 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
8955 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
8957 * grub-core/term/i386/pc/console.c (int10_9): New function.
8958 (grub_console_putchar): Likewise.
8959 * include/grub/i386/pc/console.h: Removed the not anymore shared
8962 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8964 Move grub_chainloader_real_boot out of the kernel.
8966 * grub-core/Makefile.am: Remove machine/loader.h.
8967 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
8969 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
8971 (grub_relocator16_keep_a20_enabled): Likewise.
8972 (grub_relocator16_boot): Fill new variables.
8973 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
8974 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
8976 (grub_chainloader_unload): Likewise.
8977 (grub_chainloader_cmd): Likewise.
8978 * include/grub/i386/pc/loader.h: Removed.
8979 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
8980 and esi. All initialisers updated.
8982 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8983 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
8985 * Makefile.util.def (grub-mount): New util.
8986 * .bzrignore: Add grub-mount.
8987 * configure.ac: Check for fuse and enable grub-mount if available.
8988 * docs/man/grub-mount.h2m: New file.
8989 * util/grub-mount.c: Likewise.
8991 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8993 * grub-core/commands/efi/fixvideo.c: Gettextize.
8994 * grub-core/commands/hashsum.c: Likewise.
8995 * grub-core/commands/i386/cmostest.c: Likewise.
8996 * grub-core/commands/i386/pc/drivemap.c: Likewise.
8997 * grub-core/commands/i386/pc/lsapm.c: Likewise.
8998 * grub-core/commands/i386/pc/sendkey.c: Likewise.
8999 * grub-core/commands/lsmmap.c: Likewise.
9000 * grub-core/commands/menuentry.c: Likewise.
9001 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
9002 * grub-core/commands/setpci.c: Likewise.
9003 * grub-core/loader/i386/bsd.c: Likewise.
9004 * grub-core/loader/i386/linux.c: Likewise.
9005 * util/getroot.c: Likewise.
9006 * util/grub-editenv.c: Likewise.
9007 * util/grub-fstest.c: Likewise.
9008 * util/grub-mkfont.c: Likewise.
9009 * util/grub-mkimage.c: Likewise.
9010 * util/grub-mkpasswd-pbkdf2.c: Likewise.
9011 * util/grub-pe2elf.c: Likewise.
9012 * util/grub-probe.c: Likewise.
9013 * util/grub-setup.c: Likewise.
9014 * util/ieee1275/ofpath.c: Likewise.
9015 * util/misc.c: Likewise.
9016 * util/raid.c: Likewise.
9018 2011-11-11 Robert Millan <rmh@gnu.org>
9020 * util/getroot.c (grub_util_get_geom_abstraction): Remove
9021 __attribute__((unused)) from `os_dev', which *is* being used.
9023 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9025 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
9027 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
9028 GRUB_IA64_DL_GOT_ALIGN.
9029 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
9030 GRUB_IA64_DL_TRAMP_ALIGN.
9032 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9034 Replace grub_fatal with normal errors in i386 linux loader.
9036 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
9037 (allocate_pages): Check find_efi_mmap_size return value.
9038 (grub_e820_add_region): Return error.
9039 (grub_linux_boot): Check mmap return value.
9041 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9043 * grub-core/commands/acpihalt.c: Gettextized.
9044 * grub-core/commands/cacheinfo.c: Likewise.
9045 * grub-core/commands/cmp.c: Likewise.
9046 * grub-core/commands/efi/loadbios.c: Likewise.
9047 * grub-core/commands/gptsync.c: Likewise.
9048 * grub-core/commands/ieee1275/suspend.c: Likewise.
9049 * grub-core/commands/legacycfg.c: Likewise.
9050 * grub-core/commands/memrw.c: Likewise.
9051 * grub-core/commands/minicmd.c: Likewise.
9052 * grub-core/commands/parttool.c: Likewise.
9053 * grub-core/commands/time.c: Likewise.
9054 * grub-core/commands/videoinfo.c: Likewise.
9055 * grub-core/disk/geli.c: Likewise.
9056 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
9057 * grub-core/disk/luks.c: Likewise.
9058 * grub-core/disk/lvm.c: Likewise.
9059 * grub-core/font/font_cmd.c: Likewise.
9060 * grub-core/fs/zfs/zfscrypt.c: Likewise.
9061 * grub-core/fs/zfs/zfsinfo.c: Likewise.
9062 * grub-core/gfxmenu/view.c: Likewise.
9063 * grub-core/kern/emu/hostdisk.c: Likewise.
9064 * grub-core/kern/emu/main.c: Likewise.
9065 * grub-core/kern/emu/misc.c: Likewise.
9066 * grub-core/kern/emu/mm.c: Likewise.
9067 * grub-core/kern/mips/arc/init.c: Likewise.
9068 * grub-core/kern/mips/loongson/init.c: Likewise.
9069 * grub-core/kern/partition.c: Likewise.
9070 * grub-core/lib/i386/halt.c: Likewise.
9071 * grub-core/lib/mips/arc/reboot.c: Likewise.
9072 * grub-core/lib/mips/loongson/reboot.c: Likewise.
9073 * grub-core/loader/i386/pc/chainloader.c: Likewise.
9074 * grub-core/loader/i386/xnu.c: Likewise.
9075 * grub-core/loader/multiboot.c: Likewise.
9076 * grub-core/net/bootp.c: Likewise.
9077 * grub-core/net/net.c: Likewise.
9078 * grub-core/normal/term.c: Likewise.
9079 * grub-core/partmap/bsdlabel.c: Likewise.
9080 * grub-core/parttool/msdospart.c: Likewise.
9081 * grub-core/term/gfxterm.c: Likewise.
9082 * grub-core/term/terminfo.c: Likewise.
9083 * grub-core/video/i386/pc/vbe.c: Likewise.
9084 * util/grub-menulst2cfg.c: Likewise.
9085 * util/grub-mkdevicemap.c: Likewise.
9086 * util/grub-mklayout.c: Likewise.
9087 * util/grub-mkrelpath.c: Likewise.
9088 * util/grub-script-check.c: Likewise.
9089 * util/ieee1275/grub-ofpathname.c: Likewise.
9090 * util/resolve.c: Likewise.
9092 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9094 Support %1$d syntax.
9096 * tests/printf_unit_test.c: New file.
9097 * Makefile.util.def (printf_test): New test.
9098 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
9100 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9102 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
9105 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9107 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
9109 * grub-core/font/font.c (grub_font_load): Likewise.
9111 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9113 * util/grub-macho2img.c: Add comment concerning gettext.
9114 * grub-core/lib/legacy_parse.c: Likewise.
9116 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9118 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
9119 (grub_xvasprintf): Likewise.
9121 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9123 Add const keyword to grub_env_get and gettextize week days.
9125 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
9126 (grub_read_hook_datetime): Return const char *.
9127 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
9129 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
9131 (grub_get_weekday_name): Return const char *. Call gettext.
9132 * grub-core/script/argv.c (grub_script_argv_append): Receive const
9133 char * and len as the argument. All users updated.
9134 (grub_script_argv_split_append): Receive const char *.
9135 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
9136 * include/grub/env.h (grub_env_get): Likewise.
9137 (grub_env_read_hook_t): Return const char *.
9138 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
9139 (grub_script_argv_split_append): Likewise.
9141 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9143 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
9145 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9147 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
9148 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
9150 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9152 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
9155 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9157 Fix mips compilation.
9159 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
9161 (hashes): Use in embed decoder as well (for sizes).
9162 (dec_stream_header): Fix embed decompressor logic.
9163 (dec_stream_footer): Likewise.
9165 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9167 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
9168 an error and not a fatal on unrecognised relocation types.
9170 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9172 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
9173 Issue error rather than printf on unknown arguments.
9175 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9177 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
9180 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9182 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
9185 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9187 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
9188 leftover debug printf.
9190 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9192 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
9194 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9196 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
9199 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9201 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
9203 2011-11-10 Shea Levy <slevy@tieronedesign.com>
9205 Allow all modules to perform serial IO
9207 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
9208 * include/grub/serial.h (grub_serial_port_configure): New inline
9210 (grub_serial_port_fetch): Likewise.
9211 (grub_serial_port_put): Likewise.
9212 (grub_serial_port_fini): Likewise.
9213 (grub_serial_find): New proto.
9215 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9217 Put symlink at the end of the node and fix a potential
9220 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
9221 Make symlink into an array.
9222 (set_rockridge): Set have_symlink and alloc_dirents.
9223 (grub_iso9660_read_symlink): Use new layout.
9224 (grub_iso9660_iterate_dir): Fix memory corruption.
9226 (grub_iso9660_dir): Set have_symlink.
9227 (grub_iso9660_open): Likewise.
9229 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9231 Remove local keyword.
9233 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
9234 (version_test_gt): Likewise.
9235 (version_find_latest): Likewise.
9236 (gettext_printf): Likewise.
9237 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
9239 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9241 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
9243 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9245 Fix ZFS memory and resource leaks.
9247 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
9250 (fill_vdev_info): New parameter inserted. All users updated.
9251 (check_pool_label): Likewise.
9252 (scan_disk): Likewise.
9253 (scan_devices): Close non-inserted disks.
9254 (fzap_iterate): Free l.
9255 (unmount_device): Free children descripto memory.
9257 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9259 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
9260 argument (access out of bounds).
9262 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9264 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
9267 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9269 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
9272 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9274 Fix several memory leaks.
9276 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
9277 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
9278 (grub_cpio_dir): Likewise.
9279 * grub-core/fs/fat.c (grub_fat_label): Likewise.
9280 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
9281 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
9282 (grub_romfs_label): Likewise.
9283 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
9284 (squash_unmount): New function.
9285 (grub_squash_dir): Fix memory leak.
9286 (grub_squash_open): Likewise.
9287 (grub_squash_read): Likewise.
9288 (grub_squash_mtime): Likewise.
9289 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
9290 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
9291 * util/grub-fstest.c (fstest): Likewise.
9293 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9295 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
9296 avoid accessing beyond the array.
9298 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9300 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
9302 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9306 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
9307 (GRUB_AFFS_FLAG_FFS): Removed.
9308 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
9309 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
9310 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
9311 (grub_fshelp_node): Make block 32-bit.
9312 Add block_cache and last_block_cache.
9313 (grub_affs_read_block): Fill and use block cache.
9314 (grub_affs_read_file): Removed.
9315 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
9317 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
9319 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
9321 (grub_affs_close): Free block cache.
9322 (grub_affs_read): Use grub_fshelp_read_file directly.
9324 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9326 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
9329 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9331 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
9333 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
9336 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9338 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
9340 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
9341 byteswap when needed.
9343 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9345 Fix FreeBSD compilation.
9347 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
9348 to avoid circular dependency.
9349 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
9350 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
9351 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
9353 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9355 Fix ZFS crypto error types.
9357 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
9358 (grub_gcm_decrypt): Likewise.
9359 (grub_zfs_load_key_real): Fix error code type. Handle possible error
9362 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9366 * Makefile.util.def (10_illumos): New script.
9367 * configure.ac: Set COND_HOST_ILLUMOS.
9368 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
9369 Support Illumos calls.
9370 (find_partition_start) [__sun__]: Likewise.
9371 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
9372 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
9373 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
9374 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
9376 * util/grub-probe.c (probe) [__sun__]: Do character check.
9377 * util/grub.d/10_illumos.in: New file.
9379 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9381 Support escaped commas in hostdisk.
9383 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
9384 (find_grub_drive): Use unescape_cmp.
9385 (make_device_name): Escape commas.
9387 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9389 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
9391 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9393 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
9396 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9398 Support trampoline jumps on powerpc.
9400 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
9402 (grub_dl_load_segments): Set mod->sz.
9403 (grub_dl_flush_cache): Flush whole space occupied by module, not just
9405 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
9407 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
9409 (trampoline): New struct.
9410 (trampoline_template): New const.
9411 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
9412 * include/grub/dl.h (grub_dl): Add sz element.
9413 [__powerpc__]: Follow __ia64__.
9414 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
9415 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
9416 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
9417 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
9419 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9423 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
9424 * grub-core/Makefile.core.def (zfscrypt): New module.
9425 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
9426 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
9427 it. All users updated.
9428 (grub_zfs_decrypt): New var.
9429 (grub_zfs_load_key): Likewise.
9430 (zio_checksum_functions): Add SHA256+MAC.
9431 (zio_checksum_verify): Handle incomplete comparison due to MAC.
9432 (zio_read): Handle encrypted blocks.
9433 (zap_verify): Remove incorrect check.
9434 (fzap_iterate): Handle non-standard fzap.
9435 (zap_iterate): Likewise.
9436 (zap_iterate_u64): New function.
9437 (dnode_get_fullpath): Load keys.
9438 * grub-core/fs/zfs/zfscrypt.c: New file.
9439 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
9440 (grub_crypto_ecb_encrypt): Make input const.
9441 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
9442 (grub_crypto_ecb_encrypt): Make input const.
9443 (GRUB_CIPHER_AES): New macro.
9444 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
9445 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
9446 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
9447 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
9448 prefix. All users updated.
9449 (grub_zfs_add_key): New proto.
9450 (grub_zfs_decrypt): Likewise.
9451 (grub_zfs_load_key): Likewise.
9452 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
9453 * util/grub-fstest.c (options): Add -K option.
9454 (argp_parser): Likewise.
9456 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9458 Support zle compression on ZFS.
9460 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
9461 (decomp_table): Add zle.
9462 * include/grub/zfs/zio.h (zio_compress): Add zle.
9464 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9466 Support BtrFS embedding.
9468 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
9469 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
9470 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
9471 * util/grub-setup.c (setup): Use fs embedding if available.
9472 Add additional sanity check.
9474 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9476 * util/grub-install.in: Fix condition for config_opt.
9478 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9480 Support third redundancy strip on raidz3.
9482 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
9483 Return error on singularity. All users updated.
9484 (read_device): Don't stop on 3rd failure on raidz3.
9486 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9488 Support case-insensitive ZFS subvolumes.
9490 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
9492 (zap_hash): Likewise.
9493 (name_cmp): New function.
9494 (zap_leaf_array_equal): New parameter case_insensitive.
9496 (zap_leaf_lookup): Likewise.
9497 (fzap_lookup): Likewise.
9498 (zap_lookup): Likewise.
9499 (dnode_get_path): New parameter case_insensitive. Retrieve case
9500 sensitiviness of a volume. All users updated.
9501 (dnode_get_fullpath): New parameter case_insensitive.
9503 (grub_zfs_dir): Set info.case_insensitiveness.
9505 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9507 Support second redundancy strip on raidz(2,3).
9509 * grub-core/fs/zfs/zfs.c (powx): New array.
9510 (powx_inv): Likewise.
9512 (xor_out): New function.
9514 (recovery): Likewise.
9515 (read_device): Use second redundancy strip.
9517 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9519 Use a power of generator representation of GF(256) multiplication group
9520 to save space time and complexity.
9522 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
9523 (raid6_table2): Likewise.
9525 (powx_inv): Likewise.
9527 (grub_raid_block_mul): Replace with ...
9528 (grub_raid_block_mulx): ...this.
9529 (grub_raid6_init_table): Rewritten.
9530 (grub_raid6_recover): Use power of generator representation.
9532 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9534 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
9535 for the right device.
9537 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9539 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
9540 expected by grub-mkimage and it's more clear since there is no implicit
9543 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9545 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
9547 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
9549 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
9551 * util/grub-mkrescue.in: Fix handling xorriso option.
9553 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9555 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
9558 2011-11-03 crocket <crockabiscuit@gmail.com>
9560 * util/grub.d/10_linux.in: Add Slackware initrd naming.
9562 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9564 XZ CRC64 and SHA256 support.
9566 * Makefile.util.def (libgrubmods): Add crc64.c.
9567 * grub-core/Makefile.core.def (crc64): New module.
9568 * grub-core/lib/crc64.c: New file.
9569 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
9570 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
9572 (MAX_HASH_SIZE): New define.
9573 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
9574 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
9575 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
9576 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
9577 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
9578 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
9579 Handle non-crc32 hashes.
9580 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
9581 (dec_stream_header): Handle non-crc32 hashes.
9582 (dec_stream_footer): Likewise.
9583 (dec_block_header): Likewise.
9584 (dec_main): Likewise.
9585 (xz_dec_init): Likewise.
9586 (xz_dec_reset): Likewise.
9587 (xz_dec_end): Likewise.
9588 * util/import_gcry.py: Add CRC64 line.
9590 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9592 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
9595 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9597 Make reiserfs label retrieval similar to other *_label functions.
9599 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
9600 (REISERFS_MAX_LABEL_LENGTH): Removed.
9601 (REISERFS_LABEL_OFFSET): Likewise.
9602 (grub_reiserfs_label): Rewritten.
9604 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9606 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
9609 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9611 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
9613 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
9615 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
9616 drive failure on both raidz and raidz2.
9618 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
9620 Fix RAIDZ(2) for >= 5 devices.
9622 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
9623 asize argument. All users updated.
9625 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9629 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
9630 (fill_vdev_info_real): Set ashift.
9631 (read_device): Rewrite RAIDZ part based on reverse engineering.
9633 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9635 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
9636 don't report potentially unavialiable fields in debug output.
9637 (find_path): Fix double-free and memory leak.
9639 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9643 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
9644 (grub_ufs_fs): Always set .label.
9646 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9650 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
9651 (grub_ufs_data): New field log2_blksz.
9652 (grub_ufs_read_file): Use shifts.
9653 (grub_ufs_mount): Check block size and logarithm it.
9655 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9657 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
9660 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9662 Handle symlinks and long names on tar and cpio.
9664 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
9665 (ATTR_FILE): Likewise.
9666 (ATTR_DIR): Likewise.
9667 (ATTR_LNK): Likewise.
9668 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
9669 (grub_cpio_find_file): Fill mode, handle linkname field as well as
9671 (grub_cpio_mount): Zero-fill data.
9672 (handle_symlink): New function.
9673 (grub_cpio_dir): Handle symlinks.
9674 (grub_cpio_open): Likewise.
9675 (grub_cpio_close) [MODE_USTAR]: Free linkname.
9677 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9679 Fix iso9660 filename limitations and fix memory leaks.
9681 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
9682 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
9684 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9686 Fix JFS file name length limitations.
9688 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
9689 (grub_jfs_diropen): Fix maximum filename length.
9690 (grub_jfs_getent): Fix filename length.
9691 (grub_jfs_lookup_symlink): Fix size checks.
9693 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9695 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
9698 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9700 Leverage BFS implementation to read AFS.
9702 * Makefile.util.def (libgrubmods): Add afs.c.
9703 * grub-core/Makefile.core.def (afs): New module
9704 * grub-core/fs/afs.c: New file.
9705 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
9707 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9709 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
9711 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9713 * grub-core/fs/bfs.c: Run indent.
9715 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9717 BFS implementation based on the specification.
9719 * grub-core/fs/bfs.c: New file.
9720 * Makefile.util.def (libgrubmods): Add bfs.c.
9721 * grub-core/Makefile.core.def (bfs): New module.
9723 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9725 * util/grub-fstest.c (cmd_cp): Clarify error message.
9726 (cmd_cmp): Likewise.
9728 2011-10-30 Yves Blusseau <blusseau@zetam.org>
9730 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
9733 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
9735 Remove afs and befs because of copyright problem.
9737 * grub-core/fs/afs.c: Removed.
9738 * grub-core/fs/afs_be.c: Removed.
9739 * grub-core/fs/befs.c: Removed.
9740 * grub-core/fs/befs_be.c: Removed.
9741 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
9742 * grub-core/Makefile.core.def (afs): Removed.
9745 (befs_be): Likewise.
9747 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9749 Prefer rockridge over Joliet.
9751 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
9753 (set_rockridge): ... here.
9754 (grub_iso9660_mount): Check rockridge on the primary label when
9755 discovering. Ignore Joliet if Rockridge is present.
9757 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9759 Use shifts in nilfs2.
9761 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
9762 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
9763 (grub_nilfs2_palloc_entries_per_group): Replace with ...
9764 (grub_nilfs2_log_palloc_entries_per_group): ... this.
9765 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
9766 (grub_nilfs2_entries_per_block): Replaced with ...
9767 (grub_nilfs2_log_entries_per_block_log): ... this.
9768 (grub_nilfs2_blocks_per_group): Replaced with ...
9769 (grub_nilfs2_blocks_per_group_log): ... this.
9770 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
9771 (grub_nilfs2_blocks_per_desc_block_log): ... this.
9772 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
9773 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
9774 (grub_nilfs2_palloc_entry_offset): Replaced ...
9775 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
9776 (grub_nilfs2_dat_translate): Use shifts.
9777 (grub_nilfs2_read_inode): Likewise.
9778 (GRUB_MOD_INIT): Ensure that logs are correct.
9780 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9782 Use shifts in minix filesystem.
9784 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
9785 (GRUB_MINIX_ZONE2SECT): Likewise.
9786 (grub_minix_data): Replace block_size with log_block_size.
9787 (grub_minix_read_file): Use shifts.
9788 (grub_minix_mount): Check block size and take a logarithm.
9790 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9792 Use shifts in squash4.
9794 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
9795 (squash_mount): Check block size and take logarithm.
9796 (direct_read): Use shifts.
9798 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9800 Correct befs block counting logic.
9802 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
9803 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
9804 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
9805 (grub_afs_read_inode): Use block_shift.
9806 (RANGE_SHIFT): New definition.
9807 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
9808 unexpected conditions, use shifts and appropriate types.
9809 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
9811 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9813 * grub-core/disk/raid.c (scan_devices): Check partition.
9814 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
9816 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
9818 Support BFS (befs) UUID.
9820 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
9821 (grub_afs_small_data_element_header): New struct.
9822 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
9823 (grub_afs_read_attribute) [MODE_BFS]: New function.
9824 (grub_afs_iterate_dir): Allocate for complete inode.
9825 (grub_afs_mount): Likewise.
9826 (grub_afs_uuid) [MODE_BFS]: New function.
9827 (grub_afs_fs) [MODE_BFS]: Add .uuid.
9829 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
9831 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
9832 (zfs_unmount): Fix memory leak.
9834 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9836 Support NTFS reparse points.
9838 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
9839 (symlink_descriptor): New struct.
9840 (grub_ntfs_read_symlink): New function.
9841 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
9842 (grub_ntfs_open): Likewise.
9844 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9846 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
9848 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9850 fstest xnu_uuid subcommand.
9852 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
9853 grub-core/commands/xnu_uuid.c.
9854 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
9855 (fstest): Handle xnu_uuid.
9856 (options): Document xnu_uuid.
9857 (argp_parser): Parse xnu_uuid.
9859 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9861 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
9862 -l argument. Add newline at the end if printing.
9863 (GRUB_MOD_INIT): Document -l.
9865 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9867 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
9869 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9871 ZFS multi-device and version 33 support.
9873 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
9874 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
9875 (grub_zfs_data): Add multidev-ice-related fields.
9876 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
9877 (dva_get_offset): Make dva const.
9878 (zfs_fetch_nvlist): New function.
9879 (fill_vdev_info_real): Likewise.
9880 (fill_vdev_info): Likewise.
9881 (check_pool_label): Likewise.
9882 (scan_disk): Likewise.
9883 (scan_devices): Likewise.
9884 (read_device): Likewise.
9885 (read_dva): Likewise.
9886 (zio_read_gang): Use read_dva.
9887 (zio_read_data): Likewise.
9888 (zap_leaf_lookup): Add missing endian conversion.
9889 (zap_verify): Add missing endian conversion. All users updated.
9890 (fzap_lookup): Likewise.
9891 (fzap_iterate): Likewise.
9892 (dnode_get_path): Handle SA bonus.
9893 (nvlist_find_value): Make input const. All users updated.
9894 (unmount_device): New function.
9895 (zfs_unmount): Use unmount_device.
9896 (zfs_mount): Use scan_disk.
9897 (zfs_mtime): New function.
9898 (grub_zfs_open): Handle system attributes.
9899 (fill_fs_info): Likewise.
9900 (grub_zfs_dir): Likewise.
9901 (grub_zfs_fs): Add mtime.
9902 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
9903 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
9904 (SA_MTIME_OFFSET): Likewise.
9905 (SA_SYMLINK_OFFSET): Likewise.
9906 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
9907 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
9908 (fstest): Support zfsinfo.
9909 (argp_parser): Likewise.
9911 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9913 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
9916 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9920 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
9921 sharing the same block. Iterate over correct number of indices.
9922 (dnode_get_path): Handle symlinks correctly.
9924 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9926 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
9928 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9932 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
9933 (grub_hfsplus_btree_search): Fix types.
9934 (grub_hfsplus_label): Implement.
9936 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9938 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
9940 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9942 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
9944 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9946 Fix symlink handling on iso9660.
9948 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
9950 (grub_iso9660_susp_iterate): Accept zero-size iterate.
9951 (grub_iso9660_read_symlink): Moved most of code ...
9952 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
9954 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9956 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
9957 Use union to avoid breaking strict-aliasing rules.
9959 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9961 Support multi-extent iso files.
9963 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
9965 (grub_fshelp_node): Revamp. All users updated.
9967 (read_node): New function.
9968 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
9970 (grub_iso9660_mount): Don't attempt to read sua when there is none.
9971 (get_node_size): New function.
9972 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
9974 Fix memory leak on . and ..
9975 (grub_iso9660_read): Use read_node.
9976 (grub_iso9660_close): Free node.
9978 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9980 Fix tar 4G limit and handle paths containing dot.
9982 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
9983 (canonicalize): New function.
9984 (grub_cpio_find_file): Use canonicalize. Store offs in
9986 (grub_cpio_dir): Use grub_disk_addr_t.
9987 (grub_cpio_open): Likewise.
9989 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9991 Fix handling of uncompressed blocks on squashfs and break 4G limit.
9993 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
9995 (grub_squash_inode): Add long_file and block_size.
9996 (grub_squash_cache_inode): New struct.
9997 (grub_squash_dirent): Make types into enum.
9998 (SQUASH_TYPE_LONG_REGULAR): New type.
9999 (grub_squash_frag_desc): Add field size.
10000 (SQUASH_BLOCK_FLAGS): New enum.
10001 (grub_squash_data): Use grub_squash_cache_inode.
10002 (grub_fshelp_node): Make ino_chunk 64-bit.
10003 (read_chunk): Minor argument change. All users updated.
10004 (squash_mount): Use correct le_to_cpu.
10005 (grub_squash_open): Handle LONG_REGULAR.
10006 (direct_read): New function.
10007 (grub_squash_read_data): Handle blocks correctly.
10009 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10011 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
10013 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10015 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
10017 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10019 Fix 2G limit on ZFS.
10021 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
10023 (uberblock_verify): Likewise.
10024 (dmu_read): Likewise.
10025 (grub_zfs_read): Likewise. Remove invalid cast.
10027 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10029 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
10030 (grub_jfs_blkno): Fix incorrect shift.
10031 (grub_jfs_read_file): Use more appropriate types.
10033 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10035 Support triple indirect on minix2 and minix3.
10037 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
10038 Declare triple_indir_zone.
10039 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
10042 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10046 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
10047 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
10048 Rename ctime to mtime. All users updated.
10049 (grub_minix_get_file_block): Fix types and double indirect computations.
10051 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10053 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
10054 if no label is found.
10055 (grub_fat_iterate_dir): Fix file size type.
10056 (grub_fat_iterate_dir): Likewise.
10058 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10060 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
10062 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
10063 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
10065 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10067 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
10069 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10071 * util/import_gcry.py: Accept space between # and include.
10073 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10075 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
10077 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10079 Fine grainely disable warnings on lexer. Remove Wno-error on it.
10081 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
10082 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
10084 * grub-core/script/yylex.l: Add fine-grained #pragma.
10086 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10088 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
10089 New inline function.
10090 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
10092 (memset) [GRUB_UTIL]: Likewise.
10093 (memcmp) [GRUB_UTIL]: Likewise.
10095 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10097 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
10098 inline function rather than a define.
10100 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10102 * util/grub-setup.c: Add missing include.
10104 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10106 * util/ieee1275/grub-ofpathname.c: Add missing include.
10108 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10110 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
10111 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
10114 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10116 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
10119 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10121 * util/grub-install.in: Add datarootdir as per automake manual
10123 * util/grub-mknetdir.in: Likewise.
10125 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10127 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
10129 * util/grub.d/10_kfreebsd.in: Likewise.
10130 * util/grub.d/10_linux.in: Likewise.
10131 * util/grub.d/10_netbsd.in: Likewise.
10132 * util/grub.d/10_windows.in: Likewise.
10133 * util/grub.d/20_linux_xen.in: Likewise.
10135 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
10137 Remove redundant grub_kernel_image_size.
10139 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
10141 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
10142 the small code. It moves it only by few bytes but simplifies the code.
10143 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
10145 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
10146 (grub_kernel_image_size): Removed.
10147 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
10148 (grub_kernel_image_size): Removed.
10149 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
10150 compiled with Apple toolchain.
10151 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
10152 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
10153 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
10154 (grub_total_module_size): Likewise.
10155 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
10157 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
10158 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
10159 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
10160 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
10161 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
10162 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
10163 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
10164 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
10166 (grub_total_module_size): Removed.
10167 * util/grub-mkimage.c (image_target_desc): Remove image_size.
10168 (image_targets): Likewise.
10169 Set .compressed_size to no field on sparc.
10170 (generate_image): Remove kernel_image_size handling.
10172 2011-10-19 Szymon Janc <szymon@janc.net.pl>
10174 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
10175 NULL pointer dereference.
10177 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10179 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
10180 done with a dedicated section.
10182 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
10183 Ensure the correct position of boot_path.
10184 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
10185 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
10187 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
10188 * include/grub/boot.h: Removed. All references removed.
10189 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
10191 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
10193 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10195 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
10198 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10200 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
10202 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10204 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
10205 Don't add the bogus brackets.
10207 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10211 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
10212 * grub-core/Makefile.core.def (exfat): New module.
10213 * grub-core/fs/exfat.c: New file.
10214 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
10215 (GRUB_FAT_ATTR_*): Make into an enum.
10216 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
10217 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
10218 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
10219 (GRUB_FAT_MAXFILE): Removed.
10220 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
10221 (grub_current_fat_bpb_t): New type.
10222 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
10223 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
10224 (grub_fat_dir_node_t): New type.
10225 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
10226 (fat_log2) [MODE_EXFAT]: Removed.
10227 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
10228 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
10229 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
10230 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
10231 (grub_fat_label) [MODE_EXFAT]: New function.
10232 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
10233 reserved_first_sector to 0.
10235 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10237 Move grub_reboot out of the kernel.
10239 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
10240 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
10241 * grub-core/lib/efi/reboot.c: ... here.
10242 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
10243 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
10244 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
10245 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
10246 * grub-core/lib/i386/reboot_trampoline.S: ... here.
10247 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
10248 * grub-core/lib/ieee1275/reboot.c: ... here.
10249 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
10250 * grub-core/lib/mips/arc/reboot.c: ... here.
10251 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
10252 * grub-core/lib/mips/loongson/reboot.c: ...here.
10253 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
10254 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
10255 * include/grub/emu/misc.h (grub_reboot): New function declaration.
10256 * include/grub/i386/reboot.h: New file.
10257 * include/grub/mips/loongson/ec.h: Fix includes.
10258 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
10259 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
10260 * grub-core/lib/i386/reboot.c: New file.
10262 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
10264 Make grub_prefix into module to fix the arbitrary limit and save
10267 * grub-core/kern/emu/main.c (grub_prefix): Removed.
10268 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
10269 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
10270 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
10271 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
10272 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
10273 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
10274 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
10275 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
10276 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
10277 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
10278 * include/grub/ia64/efi/kernel.h: Removed.
10279 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
10280 (grub_prefix): Removed.
10281 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
10282 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
10283 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
10284 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
10285 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
10286 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
10287 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
10288 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
10289 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
10290 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
10291 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
10292 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
10293 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
10294 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
10295 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
10296 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
10297 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
10298 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
10299 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
10300 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
10301 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
10302 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
10303 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
10304 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
10305 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
10306 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
10307 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
10308 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
10309 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
10311 * util/grub-mkimage.c (image_target_desc): Removed prefix and
10313 (image_targets): Likewise.
10314 (generate_image): Put prefix as a module.
10316 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10318 Replace grub_module_iterate with FOR_MODULES.
10320 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
10321 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
10322 (grub_efi_modules_addr): ...this.
10323 * grub-core/kern/efi/init.c (grub_modbase): New variable.
10324 (grub_efi_init): Set grub_modbase.
10325 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
10326 (grub_modbase): New variable.
10327 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
10328 (grub_modbase): New variable.
10329 (grub_machine_init): Set grub_modbase.
10330 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
10331 (grub_modbase): New variable.
10332 (grub_machine_init): Set grub_modbase.
10333 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
10334 (grub_modbase): New variable.
10335 (grub_machine_init): Set grub_modbase.
10336 * grub-core/kern/main.c (grub_module_iterate): Remove.
10337 (grub_modules_get_end): Use grub_modbase.
10338 (grub_load_modules): Use FOR_MODULES.
10339 (grub_load_config): Likewise.
10340 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
10341 (grub_modbase): New variable.
10342 (grub_machine_init): Set grub_modbase.
10343 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
10344 (grub_modbase): New variable.
10345 (grub_machine_init): Set grub_modbase.
10346 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
10348 (grub_modbase): New variable.
10349 (grub_machine_init): Set grub_modbase.
10350 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
10351 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
10352 (grub_module_iterate): Likewise.
10353 (grub_modbase): New variable declaration.
10354 (FOR_MODULES): New macro.
10356 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10358 * configure.ac: Check for __ctzdi2 and __ctzsi2.
10359 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
10361 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10363 Fix few obvious type discrepancies.
10365 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
10366 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
10367 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
10369 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
10370 and connected types.
10371 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
10373 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
10374 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
10375 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
10376 and connected types.
10378 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10380 Fix python 3.x incompatibilities.
10382 * gentpl.py: Put brackets around print strings.
10383 * util/import_gcry.py: Open explicitly as utf-8.
10384 Use in instead of has_key.
10386 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10388 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
10389 (GRUB_XFS_INO_AGBITS): Make into inline function.
10390 (GRUB_XFS_INO_INOINAG): Likewise.
10391 (GRUB_XFS_INO_AG): Likewise.
10392 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
10393 (GRUB_XFS_EXTENT_OFFSET): Likewise.
10394 (GRUB_XFS_EXTENT_BLOCK): Likewise.
10395 (GRUB_XFS_EXTENT_SIZE): Likewise.
10396 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
10397 (GRUB_XFS_NEXT_DIRENT): Likewise.
10398 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
10399 (grub_xfs_read_file): Fix offset type.
10401 2011-10-15 Robert Millan <rmh@gnu.org>
10403 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
10405 2011-10-15 Robert Millan <rmh@gnu.org>
10407 Fix build problem on FreeBSD and GNU/kFreeBSD.
10409 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
10411 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10413 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
10415 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
10417 (grub_hfsplus_btree_recoffset): Likewise.
10418 (grub_hfsplus_btree_recptr): Likewise.
10419 (grub_hfsplus_find_block): Likewise.
10420 (grub_hfsplus_btree_search): Likewise.
10421 (grub_hfsplus_read_block): Likewise.
10422 (grub_hfsplus_read_file): Likewise.
10423 (grub_hfsplus_mount): Likewise.
10424 (grub_hfsplus_btree_iterate_node): Likewise.
10425 (grub_hfsplus_btree_search): Likewise.
10426 (grub_hfsplus_iterate_dir): Likewise.
10427 (grub_hfsplus_read): A small code simplification.
10429 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10431 * grub-core/kern/emu/hostdisk.c
10432 (convert_system_partition_to_system_disk): Don't assume that children
10433 of mapper nodes are mapper nodes.
10435 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10437 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
10438 * include/grub/misc.h (grub_isxdigit): New function.
10439 * grub-core/video/colors.c (my_isxdigit): Removed. All users
10440 switched to grub_isxdigit.
10441 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
10442 number starting with a letter.
10444 2011-10-09 Robert Millan <rmh@gnu.org>
10446 LVM support for FreeBSD and GNU/kFreeBSD.
10448 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
10450 (LVM_DEV_MAPPER_STRING): Move from here ...
10451 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
10452 * util/getroot.c: Include `<grub/util/lvm.h>'.
10453 (grub_util_get_dev_abstraction): Enable
10454 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
10455 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
10456 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
10457 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
10459 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
10461 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
10462 when LVM abstraction is required for ${GRUB_DEVICE}.
10464 2011-10-06 Szymon Janc <szymon@janc.net.pl>
10466 Add support for LZO compression in GRUB:
10467 - import of minilzo library,
10468 - LZO decompression for btrfs,
10469 - lzop files decompression.
10471 * grub-core/io/lzopio.c: New file.
10472 * grub-core/lib/adler32.c: Likewise.
10473 * grub-core/lib/minilzo/lzoconf.h: Likewise.
10474 * grub-core/lib/minilzo/lzodefs.h: Likewise.
10475 * grub-core/lib/minilzo/minilzo.c: Likewise.
10476 * grub-core/lib/minilzo/minilzo.h: Likewise.
10477 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
10478 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
10479 grub-core/lib/minilzo/minilzo.c to common.
10480 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
10481 cflags in cppflags.
10482 * grub-core/Makefile.core.def (btrfs): Likewise.
10483 * grub-core/Makefile.core.def (lzopio): New module.
10484 (adler32): Likewise.
10485 * grub-core/fs/btrfs.c: Include minilzo.h.
10486 (GRUB_BTRFS_COMPRESSION_LZO): New define.
10487 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
10488 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
10489 (grub_btrfs_lzo_decompress): New function.
10490 (grub_btrfs_extent_read): Add support for LZO compression type.
10491 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
10492 (GRUB_USHRT_MAX): Likewise.
10493 (GRUB_UINT_MAX): Likewise.
10494 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
10495 (UINT_MAX): Likewise.
10496 (CHAR_BIT): Likewise.
10497 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
10498 grub-core/lib/posix_wrap/limits.h
10499 (UCHAR_MAX): Likewise.
10500 * include/grub/file.h (grub_file_filter_id): New compression filter
10501 GRUB_FILE_FILTER_LZOPIO.
10502 * include/grub/file.h (grub_file_filter_id): Set
10503 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
10504 * include/grub/types.h (grub_get_unaligned16): New function.
10505 (grub_get_unaligned32): Likewise.
10506 (grub_get_unaligned64): Likewise.
10507 * util/import_gcry.py (cryptolist): Add adler32.
10509 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
10511 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
10512 in perspective decreases the complexity of build system and fixes
10513 compilation right now.
10515 2011-10-01 Ales Nesrsta <starous@volny.cz>
10517 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
10518 (fixed problem related to using UHCI with coreboot).
10520 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
10522 * gentpl.py: Use Autogen macros so that the output template file
10523 (Makefile.tpl) size is reduced.
10525 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
10527 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
10530 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10532 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
10533 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
10535 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10537 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
10540 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10542 Remove extra declaration of sleep for mingw32.
10544 * util/misc.c (sleep) [__MINGW32__]: Removed.
10545 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
10547 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
10549 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
10551 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
10553 (NETBSD_BTINFO_BOOTWEDGE): New definition.
10554 (grub_netbsd_btinfo_bootwedge): New struct.
10555 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
10557 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
10559 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
10561 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
10564 2011-09-28 Andreas Born <futur.andy@googlemail.com>
10566 Fix incorrect identifiers in bash-completion.
10568 * util/bash-completion.d/grub-completion.bash.in
10569 (_grub_mkpasswd-pbkdf2): Rename to ...
10570 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
10571 (_grub_script-check): Rename to ...
10572 (_grub_script_check): ... this. All users updated.
10574 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
10576 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
10577 Return 0 if disk isn't biosdisk.
10579 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
10581 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
10583 * Makefile.util.def (grub-fstest): Likewise.
10585 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
10587 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
10588 Get sector size from disk label.
10590 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
10592 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
10593 */README* as well as README*.
10594 Reported by: Axel Beckert.
10596 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10598 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
10599 case of less than 256 MiB of RAM.
10601 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10603 * grub-core/commands/wildcard.c (make_regex): Handle @.
10605 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10607 * util/grub-install.in: Move cryptodisk logic to appropriate place.
10609 2011-08-21 Szymon Janc <szymon@janc.net.pl>
10611 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
10612 AC_LANG_CONFTEST macros.
10614 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10616 Add grub-fstest option to uncompress data for commands.
10618 * util/grub-fstest.c (uncompress): New var.
10619 (options): New option -u.
10621 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10623 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
10624 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
10626 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10628 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
10629 file type was not recognized correctly (not gzip or corrupted).
10631 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10633 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
10634 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
10636 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10638 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
10640 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
10641 video_radeon_fuloong2e.
10642 * grub-core/video/radeon_fuloong2e.c: New file.
10643 * include/grub/video.h (grub_video_id_t): Add new ID
10644 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
10646 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10648 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
10650 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
10651 that PRID matches the detected subplatform and reset the subplatform
10654 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10656 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
10658 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10660 Fix PCI iterating on functions >= 4.
10662 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
10663 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
10665 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
10666 (grub_pci_read): Fix bitmask.
10667 (grub_pci_read_word): Likewise.
10668 (grub_pci_read_byte): Likewise.
10669 (grub_pci_write): Likewise.
10670 (grub_pci_write_word): Likewise.
10671 (grub_pci_write_byte): Likewise.
10673 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10675 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
10676 can still be specified in TARGET_CFLAGS)
10678 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10680 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
10682 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
10683 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
10684 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
10685 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
10686 (FULOONG): Rename to ...
10687 (FULOONG2F): ... this. All users updated.
10688 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
10689 (machtype_fuloong2f_str): ... this.
10690 (machtype_fuloong2e_str): New string.
10691 Check for machtype_fuloong2e_str.
10692 * grub-core/loader/mips/linux.c (loongson_machtypes)
10693 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
10694 * grub-core/term/serial.c (loongson_defserial)
10695 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
10696 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
10697 loongson_defserial.
10698 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
10700 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
10701 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
10702 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
10703 to IMAGE_FULOONG2F_FLASH. All users updated.
10704 (image_targets): Rename images.
10705 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
10707 2011-08-19 Szymon Janc <szymon@janc.net.pl>
10709 Make enable of disk cache statistics code configurable.
10711 * configure.ac: --enable-cache-stats added.
10712 * config.h.in (DISK_CACHE_STATS): New define.
10713 * grub-core/Makefile.core.def (cacheinfo): New command.
10714 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
10715 * grub-core/commands/cacheinfo.c: New file.
10716 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
10717 moved to cacheinfo.c.
10718 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
10720 * include/grub/disk.h: Likewise.
10722 2011-08-19 Szymon Janc <szymon@janc.net.pl>
10724 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
10725 * grub-core/Makefile.am: Likewise.
10727 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10729 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
10732 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10734 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
10736 (grub_jfs_lookup_symlink): Use correct starting inode.
10738 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10740 * util/grub-setup.c (main): Add missing gcry initialisation.
10742 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10744 Don't accept text modes on EFI when booting Linux.
10746 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
10747 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
10749 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
10750 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
10752 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
10753 use of "/path/.." as in grub-install for EFI as well as handling
10754 symlinks correctly.
10755 Fixes Debian bug #637768.
10757 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
10759 * util/grub-probe.c: Remove duplicate #include.
10761 2011-08-10 Robert Millan <rmh@gnu.org>
10763 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
10765 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
10767 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
10768 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
10770 2011-08-03 Robert Millan <rmh@gnu.org>
10772 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
10773 la_array as packed.
10774 Reported by: Zachary Bedell
10776 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
10778 * configure.ac: The Loongson port requires grub-mkfont due to its
10779 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
10782 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
10784 * util/grub-install.in: Don't source grub-mkconfig_lib until after
10785 processing arguments (otherwise help2man fails when GRUB has not yet
10788 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10790 New script grub-mkstandalone.
10792 * Makefile.util.def (grub-mkstandalone): New script.
10793 * docs/man/grub-mkstandalone.h2m: New file.
10794 * util/grub-mkstandalone.in: Likewise.
10796 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10798 Support ATA disks with 4K sectors.
10800 * include/grub/ata.h (grub_ata): New member log_sector_size.
10801 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
10802 (grub_ata_identify): Read sector size.
10803 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
10805 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10807 * util/grub-install.in: Don't use uhci outside of x86.
10809 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10811 * util/grub-mkrescue.in: Add missing quotes.
10813 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10815 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
10818 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10820 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
10822 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10824 * include/grub/video.h: add missing EXPORT_FUND on
10825 grub_video_edid_checksum and grub_video_edid_preferred_mode.
10827 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10829 * include/grub/mips/kernel.h: Fix define conflict.
10831 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10833 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
10836 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
10838 Preferred resolution detection for VBE.
10840 * grub-core/video/video.c (grub_video_edid_checksum): New function.
10841 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
10842 the Flat Panel extension, in line with the X.org VESA driver.
10843 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
10845 (grub_vbe_bios_get_ddc_capabilities): Likewise.
10846 (grub_vbe_bios_read_edid): Likewise.
10847 (grub_vbe_get_preferred_mode): Likewise.
10848 (grub_video_vbe_setup): When the mode is "auto", try to get the
10849 preferred mode from VBE, and use the largest mode that is no larger
10850 than the preferred mode (some BIOSes expose a preferred mode that is
10851 not in their mode list!). If this fails, fall back to 640x480 as a
10852 safe conservative choice.
10853 (grub_video_vbe_get_edid): New function.
10854 (grub_video_vbe_adapter): Add get_edid.
10855 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
10856 (struct grub_video_adapter): Add get_edid.
10857 (grub_video_edid_checksum): Add prototype.
10858 (grub_video_edid_preferred_mode): Likewise.
10859 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
10862 * grub-core/commands/videoinfo.c (print_edid): New function.
10863 (grub_cmd_videoinfo): Print EDID if available.
10865 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
10866 is more appropriate on a wider range of platforms than 640x480.
10867 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
10870 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10872 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
10874 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10876 * po/POTFILES.in: Regenerate.
10878 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10880 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
10881 incorrect memory usage.
10883 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10885 * util/grub-install.in: Source grub-mkconfig_lib.
10887 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
10889 Remove getroot.c from core on emu platform.
10891 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
10893 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
10895 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
10896 * util/getroot.c (get_win32_path): ... here.
10897 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
10898 * util/getroot.c (fini_libzfs): ... here.
10899 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
10900 * util/getroot.c (grub_get_libzfs_handle): ... here.
10901 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
10903 * util/getroot.c (grub_find_zpool_from_dir): ... here.
10904 * grub-core/kern/emu/misc.c
10905 (grub_make_system_path_relative_to_its_root): Moved from here...
10906 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
10907 * grub-core/kern/emu/getroot.c: Moved from here ...
10908 * util/getroot.c: ... here. All users updated.
10909 * grub-core/kern/emu/raid.c: Moved from here ...
10910 * util/raid.c: ... here. All users updated.
10912 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
10914 * po/POTFILES.in: Regenerate.
10916 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
10918 Fix compilation on GNU/Linux.
10920 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
10922 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
10923 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
10924 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
10926 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
10927 2011-07-07 Michael Gorven <michael@gorven.za.net>
10928 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
10930 LUKS and GELI support.
10932 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
10933 grub-core/disk/luks.c, grub-core/disk/geli.c,
10934 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
10935 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
10936 grub-core/lib/arg.c.
10937 (libgrubmods.a): Remove gcrypts cflags and cppflags.
10938 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
10939 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
10940 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
10941 (grub-bin2h): Add libgcry.a.
10942 (grub-mkimage): Likewise.
10943 (grub-mkrelpath): Likewise.
10944 (grub-script-check): Likewise.
10945 (grub-editenv): Likewise.
10946 (grub-mkpasswd-pbkdf2): Likewise.
10947 (grub-pe2elf): Likewise.
10948 (grub-fstest): Likewise.
10949 (grub-mkfont): Likewise.
10950 (grub-mkdevicemap): Likewise.
10951 (grub-probe): Likewise.
10952 (grub-ofpath): Likewise.
10953 (grub-mklayout): Likewise.
10954 (example_unit_test): Likewise.
10955 (grub-menulst2cfg): Likewise.
10956 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
10957 * grub-core/Makefile.core.def (cryptodisk): New module.
10960 * grub-core/disk/AFSplitter.c: New file.
10961 * grub-core/disk/cryptodisk.c: Likewise.
10962 * grub-core/disk/geli.c: Likewise.
10963 * grub-core/disk/luks.c: Likewise.
10964 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
10966 (grub_util_get_dm_abstraction): New function.
10967 (grub_util_follow_gpart_up): Likewise.
10968 (grub_util_get_geom_abstraction): Likewise.
10969 (grub_util_get_dev_abstraction): Use new functions.
10970 (grub_util_pull_device): Pull GELI and LUKS.
10971 (grub_util_get_grub_dev): Handle LUKS and GELI.
10972 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
10973 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
10974 (follow_geom_up): Removed.
10975 (grub_util_fd_seek): New function.
10976 (open_device): Use grub_util_fd_seek.
10977 (nread): Rename to ..
10978 (grub_util_fd_read): ... this. All users updated.
10979 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
10980 (grub_crypto_cbc_decrypt): Likewise.
10981 (grub_crypto_hmac_write): Likewise.
10982 (grub_crypto_hmac_buffer): Likewise.
10983 (grub_password_get): Extend to util.
10984 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
10985 New member modname.
10986 (gcry_md_spec) [GRUB_UTIL]: Likewise.
10987 * include/grub/cryptodisk.h: New file.
10988 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
10989 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
10991 (grub_util_follow_gpart_up): New proto.
10992 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
10993 (grub_util_fd_read): Likewise.
10994 (grub_cryptodisk_cheat_mount): Likewise.
10995 (grub_util_cryptodisk_print_uuid): Likewise.
10996 (grub_util_get_fd_sectors): Likewise.
10997 * util/grub-fstest.c (mount_crypt): New var.
10998 (fstest): Mount crypto if requested.
10999 (options): New option -C.
11000 (argp_parser): Parse -C.
11001 (main): Init and fini gcry.
11002 * util/grub-install.in: Support cryptodisk install.
11003 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
11004 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
11006 (prepare_grub_to_access_device): Likewise.
11007 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
11008 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
11009 (probe_cryptodisk_uuid): New function.
11010 (probe_abstraction): Likewise.
11011 (probe): Use new functions.
11012 * util/import_gcry.py: Create Makefile.utilgcry.def.
11013 Add modname member.
11015 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
11017 Lazy device scanning.
11019 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
11020 (grub-setup): Remove util/raid.c.
11021 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
11022 * grub-core/disk/lvm.c (scan_depth): New variable.
11023 (grub_lvm_iterate): Rescan if necessary.
11024 (find_lv): New function based on grub_lvm_open.
11025 (grub_lvm_open): Use find_lv. Rescan on error.
11026 (is_node_readable): New function.
11027 (is_lv_readable): Likewise.
11028 (grub_lvm_scan_device): Skip already found disks.
11029 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
11030 Stop if searched device is found and readable.
11031 * grub-core/disk/raid.c (inscnt): New variable.
11032 (scan_depth): Likewise.
11033 (scan_devices): New function based on grub_raid_register. Abort if
11034 looked for device is found.
11035 (grub_raid_iterate): Rescan if needed.
11036 (find_array): NEw function based on -grub_raid_open.
11037 (grub_raid_open): Use find_array and rescan.
11038 (insert_array): Set became_readable_at.
11039 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
11040 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
11042 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
11043 (grub_util_pull_device): New function.
11044 (grub_util_get_grub_dev): Call grub_util_pull_device.
11045 * util/raid.c: Moved to ..
11046 * grub-core/kern/emu/raid.c: ... here.
11047 (grub_util_raid_getmembers): New parameter "bootable".
11048 All users updated. Support 1.x.
11049 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
11051 * include/grub/disk.h (grub_disk_pull_t): New enum.
11052 (grub_disk_dev): Change iterate prototype.
11054 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
11056 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
11057 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
11058 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
11059 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
11061 * include/grub/util/raid.h: Removed.
11063 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
11065 * po/POTFILES.in: Regenerate.
11067 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
11069 Unify sparc init with other ieee1275.
11071 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
11072 instead of kern/sparc64/ieee1275/init.c.
11073 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
11074 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
11075 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
11076 grub/machine/kernel.h.
11077 (grub_ieee1275_original_stack) [__sparc__]: New variable.
11078 (grub_claim_heap) [__sparc__]: Use sparc version.
11079 (grub_machine_init): Moved args parsing to
11080 (grub_parse_cmdline): ...this.
11081 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
11082 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
11084 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
11086 Move BOOTP to separate file.
11088 * grub-core/Makefile.core.def (net): Add net/bootp.c.
11089 * grub-core/net/net.c: Move all BOOTP functions to
11090 * grub-core/net/bootp.c: ... here.
11092 Use frame interface on PXE.
11094 * grub-core/Makefile.core.def (pxecmd): Removed.
11095 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
11096 * grub-core/commands/i386/pc/pxecmd.c: Removed.
11097 * grub-core/i386/pc/pxe.c: Moved from here ...
11098 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
11099 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
11100 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
11102 EFI network support.
11104 * grub-core/Makefile.core.def (efinet): New module.
11105 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
11107 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
11109 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
11110 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
11111 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
11112 * grub-core/net/drivers/efi/efinet.c: New file.
11113 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
11114 (grub_efi_net_config): New extern var.
11116 Various cleanups and bugfixes.
11118 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
11120 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
11121 disk declared as partition.
11122 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
11124 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
11125 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
11126 (grub_debug_zalloc): Likewise.
11127 (grub_debug_realloc): Likewise.
11128 (grub_debug_memalign): Likewise.
11129 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
11130 Check that target is IPv4.
11131 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
11132 local-mac-address as fallback.
11133 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
11135 * grub-core/net/ip.c (ipchksum): Rename to ...
11136 (grub_net_ip_chksum): ... this. All users updated.
11137 (grub_net_recv_ip_packets): Special handling for DHCP.
11138 * util/grub-mkimage.c (generate_image): Zero-out aout header.
11140 Unify prefix handling
11142 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
11143 (grub_machine_get_bootlocation): ... this.
11144 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
11145 (grub_machine_get_bootlocation): ... this.
11146 (grub_prefix): New variable.
11148 (root_dev): New variable.
11150 (main): Use new variables.
11151 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
11153 (grub_machine_get_bootlocation): ... this.
11154 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
11155 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
11156 (grub_machine_get_bootlocation): ... this.
11157 (grub_machine_set_prefix): Removed.
11158 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
11159 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
11161 (grub_machine_get_bootlocation): ... this.
11162 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
11163 (grub_set_prefix_and_root): ... this. All users updated.
11164 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
11166 (grub_machine_get_bootlocation): ... this.
11167 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
11168 (grub_machine_get_bootlocation): New proto.
11169 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
11171 Less intrusive and more reliable seek on network implementation.
11173 * grub-core/kern/file.c (grub_file_net_seek): Removed.
11174 (grub_file_seek): Don't call grub_file_net_seek.
11175 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
11176 (grub_net_fs_read_real): .. this.
11177 (grub_net_seek_real): Use net->offset.
11178 (grub_net_fs_read): Seek if necessary.
11180 Unify IEEE1275 netwotk config with the other platforms.
11182 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
11184 (grub_machine_get_bootlocation): Support network.
11185 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
11186 Support type and device parsing.
11187 (grub_ieee1275_get_device_type): New function.
11188 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
11190 (grub_ieee1275_net_config_real): ... this.
11191 (grub_ofnet_probecards): Removed.
11192 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
11193 * include/grub/ieee1275/ofnet.h: Removed.
11194 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
11196 (grub_ieee1275_get_device_type): New function.
11198 Unify network device closing across platforms and make more robust.
11200 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
11202 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
11204 * grub-core/net/net.c (grub_net_network_level_interface_register):
11206 (grub_net_card_unregister): Close all interfaces.
11207 (receive_packets): Don't poll if no iterfaces are registered.
11209 (grub_net_fini_hw): New function.
11210 (grub_net_restore_hw): Likewise.
11211 (fini_hnd): New variable.
11212 (GRUB_MOD_INIT): Register preboot hook.
11213 (GRUB_MOD_FINI): Run and unregister preboot hook.
11215 Poll network cards when idle.
11217 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
11218 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
11219 * grub-core/net/net.c (receive_packets): Save last poll time.
11220 (grub_net_poll_cards_idle_real): New function.
11221 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
11222 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
11223 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
11225 Rename ofnet interfaces.
11227 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
11228 (grub_ofnet_findcards): Use ofnet_%s names.
11230 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
11232 Cleanup socket opening.
11234 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
11235 (grub_net_fs_close): Likewise.
11236 (grub_net_fs_read_real): Use eof member.
11237 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
11238 (+grub_net_udp_close): New inline function.
11240 * include/grub/net/tftp.h: Moved to the top of ...
11241 * grub-core/net/tftp.c: ... here.
11242 * include/grub/net/ip.h: Moved mostly to the top of ...
11243 * grub-core/net/ip.c: ... here.
11244 * include/grub/net/ethernet.h: Moved mostly to the top of ...
11245 * grub-core/net/ethernet.c: ... here.
11247 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
11249 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
11252 * include/grub/net/ip.h (ipv4_ini): Removed.
11253 (ipv4_fini): Likewise.
11255 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
11256 (grub_net_send_ip_packets): Likewise.
11258 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11260 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
11261 grub_read_cmos prototype.
11263 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11265 VGA text support in qemu-mips
11267 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
11268 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
11269 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
11271 * grub-core/kern/i386/qemu/init.c: Renamed to ...
11272 * grub-core/kern/vga_init.c: ... this.
11273 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
11274 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
11275 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
11277 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
11278 GRUB_MACHINE_PCI_IO_BASE.
11280 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11282 MIPS qemu flash support.
11284 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
11286 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
11287 (grub_machine_init): Probe memory if its size isn't known.
11288 * util/grub-mkimage.c (image_targets): Add flash targets.
11289 (generate_image): Handle flash targets.
11291 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11293 MIPS qemu at_keyboard support.
11295 * gentpl.py (videoinkernel): Add qemu-mips.
11296 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
11297 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
11298 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
11300 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
11301 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
11302 * grub-core/term/serial.c (grub_serial_register)
11303 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
11305 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11307 CMOS support on sparc.
11309 * gentpl.py (cmos): Add powerpc and sparc.
11310 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
11312 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
11313 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
11314 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
11315 grub_set_datetime_cmos.
11316 * grub-core/lib/ieee1275/cmos.c: New file.
11317 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
11318 (find_rtc): Set no_ieee1275_rtc on error.
11319 (grub_get_datetime): Call grub_get_datetime_cmos on error.
11320 (grub_set_datetime): Call grub_set_datetime_cmos on error.
11321 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
11322 fail. Move value to argument. All users updated
11323 (grub_cmos_write): Likewise.
11324 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
11325 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
11326 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
11327 grub_get_datetime_cmos and grub_set_datetime_cmos.
11329 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
11331 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
11332 sourcing grub-mkconfig_lib.
11333 * util/update-grub_lib.in: Likewise.
11334 * util/grub.d/00_header.in: Likewise.
11335 * util/grub.d/10_hurd.in: Likewise.
11336 * util/grub.d/10_kfreebsd.in: Likewise.
11337 * util/grub.d/10_linux.in: Likewise.
11338 * util/grub.d/10_netbsd.in: Likewise.
11339 * util/grub.d/10_windows.in: Likewise.
11340 * util/grub.d/20_linux_xen.in: Likewise.
11341 * util/grub.d/30_os-prober.in: Likewise.
11343 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
11345 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
11346 default_bg_color rather than black.
11347 (grub_gfxterm_fullscreen): Likewise.
11348 (grub_gfxterm_background_color_cmd): Save new background color in
11351 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11353 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
11355 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11357 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
11360 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11362 Chainloading on coreboot support.
11364 * grub-core/Makefile.core.def (chain): Add coreboot.
11365 * grub-core/loader/i386/coreboot/chainloader.c: New file.
11367 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11369 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
11372 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11374 Implement time command.
11376 * grub-core/Makefile.core.def (time): New module.
11377 * grub-core/commands/time.c: New file.
11378 * grub-core/script/parser.y: Remove "time" keyword.
11379 * grub-core/script/yylex.l: Likewise.
11381 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11383 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
11385 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11387 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
11388 when handling leftovers.
11390 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11392 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
11393 so that help2man doesn't fail.
11395 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11397 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
11398 type in pointers on sparc64.
11399 (get_card_packet): Likewise.
11401 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
11403 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
11405 (grub_cmd_videoinfo): Fetch current video mode.
11407 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11409 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
11410 because of underlying system restrictions.
11412 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11414 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
11417 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11419 Coreboot video support.
11421 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
11423 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
11424 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
11426 * grub-core/kern/i386/int.S: ... here.
11427 * grub-core/video/i386/pc/vbe.c: Updated includes.
11428 * grub-core/video/i386/pc/vga.c: Likewise.
11429 * include/grub/i386/coreboot/memory.h
11430 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
11431 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
11432 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
11433 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
11434 Disable interrupts.
11435 * include/grub/i386/pc/vga.h: Removed. All users updated.
11437 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11439 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
11440 definitions for dprintf.
11441 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
11443 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11445 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
11447 (get_card_packet): Likewise.
11449 2011-06-26 Yves Blusseau <blusseau@zetam.org>
11451 Display the path of the file when file is not found
11453 * grub-core/fs/fat.c: Display the filename when file is not found.
11454 * grub-core/fs/fshelp.c: Likewise.
11455 * grub-core/fs/hfs.c: Likewise.
11456 * grub-core/fs/jfs.c: Likewise.
11457 * grub-core/fs/minix.c: Likewise.
11458 * grub-core/fs/ufs.c: Likewise.
11459 * grub-core/fs/btrfs.c: Likewise.
11460 * grub-core/commands/i386/pc/play.c: Likewise.
11462 2011-06-26 Szymon Janc <szymon@janc.net.pl>
11464 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
11465 pointer checks before calling grub_free().
11466 * grub-core/commands/wildcard.c (match_devices): Likewise.
11467 * grub-core/commands/wildcard.c (match_files): Likewise.
11468 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
11469 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
11470 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
11471 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
11472 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
11473 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
11474 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
11475 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
11476 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
11478 2011-06-25 Patrick <p55@mailinator.com>
11480 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
11482 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
11484 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
11485 (grub_pxe_send): Likewise.
11486 (GRUB_MOD_INIT): Fix types.
11488 2011-06-24 Szymon Janc <szymon@janc.net.pl>
11490 * grub-core/io/xzio.c: Fix code style issues
11492 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11493 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
11495 Network infrastructure.
11496 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
11498 * include/grub/net/arp.h: New file.
11499 * include/grub/net/device.h: Likewise.
11500 * include/grub/net/ethernet.h: Likewise.
11501 * include/grub/net/ip.h: Likewise.
11502 * include/grub/net/netbuff.h: Likewise.
11503 * include/grub/net/tftp.h: Likewise.
11504 * include/grub/net/udp.h: Likewise.
11505 * include/grub/ieee1275/ofnet.h: Likewise.
11506 * include/grub/emu/export.h: Likewise.
11507 * include/grub/net.h: Likewise.
11508 * grub-core/net/arp.c: Likewise.
11509 * grub-core/net/ethernet.c: Likewise.
11510 * grub-core/net/ip.c: Likewise.
11511 * grub-core/net/udp.c: Likewise.
11512 * grub-core/net/tftp.c: Likewise.
11513 * grub-core/net/netbuff.c: Likewise.
11514 * grub-core/net/net.c: Likewise.
11515 * grub-core/net/drivers/emu/emunet.c: Likewise.
11516 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
11517 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
11519 * grub-core/Makefile.core.def (net): New module.
11522 (emunet): Likewise.
11523 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
11525 * grub-core/kern/device.c (grub_net_open) : New variable.
11526 (grub_device_open): Handle network device.
11527 (grub_device_close): Likewise.
11528 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
11529 (grub_grubnet_fini): Likewise.
11530 (grub_file_seek): Seek in network device.
11531 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
11532 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
11534 (grub_machine_fini): Call grub_grubnet_fini.
11535 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
11537 (grub_ieee1275_get_aliasdevname): New function.
11538 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
11539 Add unofficial Solaris network info.
11540 (grub_multiboot_make_mbi): Likewise.
11541 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
11542 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
11543 * include/grub/device.h (grub_fs): Removed.
11544 * include/grub/err.h (grub_err_t): Add network-related values.
11545 * include/grub/i386/pc/pxe.h: Removed bootp parts.
11546 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
11547 (grub_ieee1275_get_aliasdevname): New proto.
11548 * include/grub/net.h: Rewritten.
11550 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11552 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
11555 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11557 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
11558 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
11559 it truncates the output.
11560 Reported by: Ximin Luo.
11562 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11564 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
11566 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11568 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
11569 partmap before abstraction.
11571 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
11573 * util/grub-mkconfig_lib.in: Add missing quotes.
11575 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11577 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
11578 old method if mountinfo would return /dev/root and /dev/root doesn't
11581 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11585 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
11586 (decomp_table): Add zlib entries.
11587 (zio_read): USe 8 bits for compression function rather than 3.
11588 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
11590 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11592 * grub-core/disk/ahci.c: Add missing license statements.
11593 * grub-core/fs/romfs.c: Likewise.
11594 * grub-core/lib/ia64/setjmp.S: Likewise.
11595 * grub-core/loader/i386/pc/freedos.c: Likewise.
11596 * grub-core/loader/ia64/efi/linux.c: Likewise.
11597 * grub-core/video/colors.c: Likewise.
11598 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
11600 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11604 * grub-core/Makefile.core.def (ata_pthru): Removed.
11605 (ahci): New module.
11607 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
11609 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
11611 (grub_hdparm_do_check_powermode_cmd): Likewise.
11612 (grub_hdparm_do_smart_cmd): Likewise.
11613 (grub_hdparm_set_val_cmd): Likewise.
11614 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
11615 * grub-core/disk/ahci.c: New file.
11616 * grub-core/disk/ata.c: Factor out the low-level part into ...
11617 * grub-core/disk/pata.c: ... here.
11618 * grub-core/disk/ata_pthru.c: Contents moved to ...
11619 * grub-core/disk/pata.c: ... here.
11620 * grub-core/disk/scsi.c (grub_scsi_names): New array.
11621 (grub_scsi_iterate): Use grub_scsi_names.
11622 (grub_scsi_open): Likewise.
11623 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
11624 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
11625 (grub_ata_regs_t): New struct.
11626 (grub_disk_ata_pass_through_parms): Likewise.
11627 (grub_ata_device): Renamed to ...
11628 (grub_ata): ... this.
11629 (grub_ata_dev): New struct.
11630 Removed all low-level inline functions.
11631 * include/grub/scsi.h: Add PATA and AHCI subsystems.
11632 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
11633 iterate hooks and open. All users updated.
11634 * util/grub-install.in: Handle AHCI disk module.
11636 2011-06-23 Szymon Janc <szymon@janc.net.pl>
11638 Add support for DRI and RSTn markers in JPEG files.
11640 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
11641 (JPEG_MARKER_RST0): Likewise.
11642 (JPEG_MARKER_RST1): Likewise.
11643 (JPEG_MARKER_RST2): Likewise.
11644 (JPEG_MARKER_RST3): Likewise.
11645 (JPEG_MARKER_RST4): Likewise.
11646 (JPEG_MARKER_RST5): Likewise.
11647 (JPEG_MARKER_RST6): Likewise.
11648 (JPEG_MARKER_RST7): Likewise.
11649 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
11650 (grub_jpeg_decode_dri): New function.
11651 (grub_jpeg_decode_sos): Move image data related part into
11652 grub_jpeg_decode_data function.
11653 (grub_jpeg_decode_data): New function.
11654 (grub_jpeg_reset): New function.
11655 (grub_jpeg_decode_jpeg): Handle new markers.
11657 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11659 * util/ieee1275/ofpath.c (check_sas): Close fd.
11660 (main): Free of_path.
11661 Reported by: David Volgyes <dvolgyes>.
11663 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11665 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
11666 Reported by: David Volgyes <dvolgyes>.
11668 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11670 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
11672 Reported by: David Volgyes <dvolgyes>.
11674 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11676 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
11678 Reported by: David Volgyes <dvolgyes>.
11680 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11682 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
11683 Prevent memory leak.
11685 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11687 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
11688 (main): Close file.
11689 Reported by: David Volgyes <dvolgyes>.
11691 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11693 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
11694 to continue if allocation is failed.
11696 Reported by: David Volgyes <dvolgyes>.
11698 2011-06-23 David Volgyes <dvolgyes>
11700 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
11703 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11705 Fix spurious warning.
11707 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
11708 (acorn_partition_map_find): Use .bin member.
11710 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11712 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
11713 /dev/root as a valid device.
11715 2011-06-23 Jim Meyering <meyering@redhat.com>
11717 Avoid NULL deref in grub_device_open.
11719 * grub-core/kern/device.c (grub_device_open): Don't dereference
11720 a NULL pointer upon failed grub_env_get.
11722 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11724 Support non-512B sectors and agglomerate reads.
11726 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
11727 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
11728 (disk_io_guid): Removed.
11729 (make_devices): Locate solely by BlockIO.
11730 (grub_efidisk_open): Fill log_sector_size and total_sectors.
11731 (grub_efidisk_read): Use read_blocks.
11732 (grub_efidisk_write): Use write_blocks.
11733 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
11735 (get_safe_sectors): Handle non-512B sectors.
11736 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
11738 (grub_biosdisk_write): Handle non-512B sectors.
11739 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
11740 (grub_scsi_read): Remove special non-512B block handling (now handled
11742 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
11743 and do sanity checks.
11744 (grub_disk_adjust_range): Handle non-512B sectors.
11745 (transform_sector): New function.
11746 (grub_disk_read_small): Likewise.
11747 (grub_disk_read): Rewritten.
11748 (grub_disk_write): Handle non-512B sectors.
11749 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
11751 (open_device): Use log_sector_size.
11752 (grub_util_biosdisk_read): Likewise.
11753 (grub_util_biosdisk_write): Likewise.
11754 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
11756 (pc_partition_map_embed): Likewise.
11757 * include/grub/disk.h (grub_disk): New field log_sector_size.
11758 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
11759 (GRUB_DISK_CACHE_BITS): Increased to 6.
11760 * util/grub-fstest.c (fstest): New command testload.
11761 (argp_parser): Likewise.
11763 2011-06-16 Robert Millan <rmh@gnu.org>
11765 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
11766 `ata' driver on kernel of FreeBSD 9.
11768 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
11769 (get_ataraid_disk_name): New functions.
11770 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
11771 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
11772 get_ataraid_disk_name() and get_ada_disk_name().
11774 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
11776 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
11779 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
11781 * docs/grub.texi (Obtaining and Building GRUB): Substitute
11782 `ftp.gnu.org' for `alpha.gnu.org'.
11784 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
11786 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
11787 partitions under /dev/disk/by-id/.
11789 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
11791 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
11792 after ten consecutive open failures. Scanning all the way up to
11793 10000 is excessive and can cause serious performance problems in
11794 some configurations.
11795 Fixes Ubuntu bug #787461.
11797 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
11799 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
11802 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
11803 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
11805 Don't stat devices unless we have to.
11807 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
11808 dir == /dev/mapper.
11809 (grub_guess_root_device): Use already known os_dev if possible.
11810 * grub-core/kern/emu/hostdisk.c
11811 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
11812 if device is known to be a dm one.
11814 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
11816 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
11817 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
11818 Reported by: Pawel Tecza.
11820 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
11822 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
11823 (lsefisystab): Likewise.
11825 (lsefimmap): Likewise.
11826 (hdparm): Enable on qemu-mips.
11827 (setjmp): Add ia64 nodist.
11828 (serial): Simplify tags.
11830 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11832 * Makefile.util.def (grub-ofpathname): Install manual page.
11834 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11836 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
11838 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11840 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
11842 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11844 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
11847 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11849 Use full 64-bit division.
11851 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
11852 (grub_divmod64): ... this.
11853 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
11856 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11858 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
11861 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11863 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
11864 to avoid accidents when debugging with 'sh -x'.
11865 * grub-core/gensyminfo.sh.in: Likewise.
11866 * tests/example_scripted_test.in: Likewise.
11867 * tests/grub_cmd_regexp.in: Likewise.
11868 * tests/grub_script_blanklines.in: Likewise.
11869 * tests/grub_script_dollar.in: Likewise.
11870 * tests/grub_script_expansion.in: Likewise.
11871 * tests/grub_script_final_semicolon.in: Likewise.
11872 * tests/partmap_test.in: Likewise.
11873 * tests/util/grub-shell-tester.in: Likewise.
11874 * tests/util/grub-shell.in: Likewise.
11876 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11878 Move gfxmenu color handling to video, so that gfxterm can use it
11881 * grub-core/gfxmenu/named_colors.c: Move to ...
11882 * grub-core/video/colors.c: ... here. Rename
11883 grub_gui_get_named_color to grub_video_get_named_color.
11884 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
11885 * grub-core/video/colors.c (my_isxdigit): ... here.
11886 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
11888 * grub-core/video/colors.c (parse_hex_color_component): ... here.
11889 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
11891 * grub-core/video/colors.c (grub_video_parse_color): ... here.
11893 * include/grub/gui.h (grub_gui_color_t): Move to ...
11894 * include/grub/video.h (grub_video_rgba_color_t): ... here.
11895 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
11896 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
11897 * include/grub/gui.h (grub_gui_map_color): Move to ...
11898 * include/grub/video.h (grub_video_map_rgba_color): ... here.
11899 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
11901 * include/grub/video.h (grub_video_get_named_color): ... here.
11902 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
11903 * include/grub/video.h (grub_video_parse_color): ... here.
11905 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
11907 (gfxmenu): Remove gfxmenu/named_colors.c.
11908 (video) [videomodules]: Add video/colors.c.
11910 Add a background_color command.
11912 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
11914 (GRUB_MOD_INIT): Register background_color command.
11915 (GRUB_MOD_FINI): Unregister background_color command.
11916 (redraw_screen_rect): Allow blend/replace of text layer to be
11917 controlled independently from whether there is a background bitmap.
11918 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
11921 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11923 Patch BPB in ntldr and chainloader --bpb.
11925 * grub-core/fs/fat.c: Include grub/fat.h.
11926 (grub_fat_bpb): Moved to ...
11927 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
11928 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
11930 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
11932 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
11934 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
11936 (grub_chainloader_cmd): Patch BPB if --bpb is given.
11937 (GRUB_MOD_INIT): Show --bpb.
11938 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
11939 * grub-core/normal/main.c (features): New variable.
11940 (GRUB_MOD_INIT): Set feature_* variables.
11941 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
11943 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
11945 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11947 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
11950 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11952 FreeDOS direct loading support.
11954 * docs/grub.texi (Supported OS): Add FreeDOS.
11955 * grub-core/Makefile.core.def (freedos): New module.
11956 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
11958 (grub_relocator16_boot): Handle %ebx.
11959 * grub-core/lib/i386/relocator16.S: Likewise.
11960 * grub-core/loader/i386/pc/freedos.c: New file.
11962 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11964 Long Linux command line support.
11966 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
11967 (maximal_cmdline_size): New variable.
11968 (allocate_pages): Use maximal_cmdline_size.
11969 (grub_cmd_linux): Set and use maximal_cmdline_size.
11970 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
11971 (allocate_pages): Use maximal_cmdline_size.
11972 (grub_cmd_linux): Set and use maximal_cmdline_size.
11973 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
11974 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
11977 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11978 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11980 Improve devmapper support
11982 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
11983 (grub_util_is_lvm): New function.
11984 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
11985 than lvm if not dmraid.
11986 Handle mapped md nodes.
11987 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
11988 (grub_util_device_is_mapped): ... this. Make always available. All users
11990 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
11991 (convert_system_partition_to_system_disk): Handle lvm, mpath and
11993 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
11995 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11997 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
11999 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
12000 * grub-core/modinfo.sh.in: New file.
12001 * grub-core/Makefile.core.def (modinfo.sh): New script.
12002 * util/grub-mknetdir.in: Use modinfo.sh.
12003 * util/grub-mkrescue.in: Likewise.
12005 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12007 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
12008 Fix potential usage of Elf32 instead of Elf64 when compiling on
12009 32-bit architecture. Add endianness macros while on it.
12011 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12013 Use mipsel- rather than mips- in directories involving mipsel ports to
12014 allow both endiannesses coexist.
12016 * configure.ac: proparate target_cpu=mipsel rather than resetting to
12017 mips. All conditions adjusted.
12018 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
12020 * util/grub-install.in: Adjust conditions to take renaming into account.
12021 * util/grub-mkimage.c (image_targets): Likewise. New target
12022 mips-qemu_mips-elf for bigendian mips.
12024 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12026 Avoid unnecessary copying on MIPS.
12028 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
12029 early if src == dest.
12030 * util/grub-mkimage.c (generate_image): Arange for src == dest if
12031 compression is none.
12033 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12035 Reduce memory footprint on SGI by putting modules before the kernel
12036 as opposed to after.
12038 * grub-core/Makefile.core.def (kernel): Increase linking address.
12039 (none_decompress): Likewise.
12040 (xz_decompress): Likewise.
12041 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
12043 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
12045 (grub_arch_modules_addr): New function.
12046 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
12047 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
12048 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
12050 * grub-core/kern/mips/startup.S (total_size): Rename to ...
12051 (grub_total_modules_size): ... this. Make global.
12052 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
12053 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
12055 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
12056 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
12057 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
12058 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
12059 * util/grub-mkimage.c (image_target_desc): New flag
12060 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
12061 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
12062 (generate_image): Handle images with modules before kernel.
12064 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12066 Prevent potential loss of memory map by overwrite on qemu-mips.
12068 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
12069 Save ram size in $s4.
12070 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
12071 All users changed to grub_arch_memsize.
12072 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
12074 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
12075 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
12076 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
12079 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12081 * .bzrignore: Remove grub-dumpbios.
12083 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12085 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
12086 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
12087 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
12088 existing options which append).
12089 * docs/grub.texi (Simple configuration): Document new options.
12090 Reported by: Ian Jackson. Fixes Debian bug #617538.
12092 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12094 * util/grub-fstest.c (cmd_cat): New function.
12095 (fstest): Handle CMD_CAT.
12096 (options): Add cat.
12097 (argp_parser): Handle cat.
12099 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12101 * Makefile.util.def (grub-bin2h): Don't install.
12102 * docs/man/grub-bin2h.h2m: Remove.
12104 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12106 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
12109 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12111 Reenable qemu-mips port.
12113 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
12114 Fix small arc bug while on it.
12115 * gentpl.py: Handle qemu_mips.
12116 * grub-core/Makefile.am: Likewise.
12117 * grub-core/Makefile.core.def: Likewise.
12118 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
12119 inappropriate includes.
12120 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
12121 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
12122 * grub-core/kern/main.c (grub_modules_get_end)
12123 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
12124 * grub-core/kern/mips/qemu-mips: Moved to ..
12125 * grub-core/kern/mips/qemu_mips: ... this.
12126 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
12127 (grub_machine_init): Call terminfo_init and serial_init.
12128 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
12129 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
12131 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
12133 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
12134 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
12135 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
12136 * include/grub/mips/qemu_mips/cmos.h: New file.
12137 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
12138 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
12140 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
12141 Use correct mips-style address.
12142 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
12143 (GRUB_TICKS_PER_SECOND): Removed.
12144 (grub_get_rtc): Likewise.
12145 (grub_cpu_idle): Likewise.
12146 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
12148 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
12149 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
12150 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
12151 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
12152 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
12153 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
12154 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
12155 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
12157 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12161 * Makefile.util.def (libgrubmods.a): Add dvh.c.
12162 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
12164 * configure.ac: New target mips-arc.
12165 * gentpl.py: Likewise.
12166 * grub-core/Makefile.am: Likewise.
12167 * grub-core/Makefile.core.def: Likewise.
12168 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
12169 (none_decompress): Likewise.
12170 (lsdev): New module.
12171 (datetime): Use lib/arc/datetime.c on ARC.
12172 (part_dvh): New module.
12173 * grub-core/commands/arc/lsdev.c: New file.
12174 * grub-core/disk/arc/arcdisk.c: Likewise.
12175 * grub-core/kern/mips/arc/init.c: Likewise.
12176 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
12178 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
12180 (grub_arch_dl_relocate_symbols): Likewise.
12181 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
12182 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
12183 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
12185 * grub-core/lib/arc/datetime.c: New file.
12186 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
12187 pci.h on non-loongson.
12188 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
12189 (grub_linux_boot): Set unused registers to 0.
12190 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
12191 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
12192 * grub-core/mmap/mips/uppermem.c: ...here.
12193 * grub-core/partmap/dvh.c: New file.
12194 * grub-core/term/arc/console.c: Likewise.
12195 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
12196 (grub_terminfo_set_current): Add terminal "arc".
12197 (grub_terminfo_readkey): Support ARC sequences.
12198 * include/grub/arc/arc.h: New file.
12199 * include/grub/arc/console.h: Likewise.
12200 * include/grub/disk.h (grub_disk_dev_id): Add
12201 GRUB_DISK_DEVICE_ARCDISK_ID.
12202 * include/grub/mips/arc/kernel.h: New file.
12203 * include/grub/mips/arc/memory.h: Likewise.
12204 * include/grub/mips/arc/time.h: Likewise.
12205 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
12206 * include/grub/mips/kernel.h (grub_halt): ... here.
12207 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
12209 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
12210 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
12211 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
12212 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
12214 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
12216 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
12217 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
12218 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
12219 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
12220 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
12221 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
12222 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
12223 (grub_phys_addr_t): Moved from here ...
12224 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
12225 (grub_vtop): Moved from here ...
12226 * include/grub/mips/memory.h (grub_vtop): ... here.
12227 (grub_map_memory): Moved from here ...
12228 * include/grub/mips/memory.h (grub_map_memory): ... here.
12229 (grub_unmap_memory): Moved from here ...
12230 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
12231 (grub_machine_mmap_iterate): Moved from here ...
12232 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
12233 (grub_mmap_get_lower): Moved from here ...
12234 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
12235 (grub_mmap_get_upper): Moved from here ...
12236 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
12237 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
12239 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
12240 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
12242 * include/grub/mips/time.h (grub_get_rtc): ... here.
12243 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
12245 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
12246 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
12248 * include/grub/mips/time.h (grub_cpu_idle): ... here.
12249 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
12251 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
12252 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
12253 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
12254 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
12255 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
12256 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
12257 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
12258 (GRUB_MACHINE_LINK_ADDR): Likewise.
12259 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
12261 * util/grub-install.in: Run dvhtool on ARC.
12262 * util/grub-mkimage.c (image_targets): Add mips-arc.
12263 (generate_image): Handle ECOFF output for mips-arc.
12265 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12267 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
12270 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12272 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
12273 after enabling port.
12275 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12277 Skip incorrect USB devices.
12279 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
12281 * include/grub/usb.h (grub_usb_err_t): New enum value
12282 GRUB_USB_ERR_BADDEVICE.
12284 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12286 Fuloong video init support.
12288 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
12290 (grub_vga_read_arx): New function.
12291 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
12293 (framebuffer): New members io, mmioptr and mmiobase.
12294 (read_sis_cmd): New function.
12295 (write_sis_cmd): Likewise.
12296 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
12297 rather than 640x400.
12298 * grub-core/video/sis315_init.c: New file.
12300 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12302 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
12304 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
12305 to grub_dl_register_symbol.
12307 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12309 Fix compilation errors.
12311 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
12312 potentially unused.
12313 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
12314 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
12315 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
12316 to loongson machines.
12318 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12320 Several FS mtime support.
12322 * grub-core/fs/affs.c (grub_affs_time): New struct.
12323 (grub_affs_file): New field mtime.
12324 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
12325 type. Removed 'size'. New field 'di'. All users updated.
12326 (grub_affs_mount): Simplify checsum checking.
12327 (grub_affs_iterate_dir): New helper grub_affs_create_node.
12328 (grub_affs_dir): Handle mtime.
12329 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
12330 (grub_cpio_dir): Likewise.
12331 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
12332 (grub_hfs_filerec): New field mtime.
12333 (grub_hfs_dir): Handle mtime.
12334 (grub_hfs_mtime): New function.
12335 (grub_hfs_fs): Register grub_hfs_mtime.
12336 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
12337 (grub_iso9660_dir): New field mtime.
12338 (grub_fshelp_node): New field dirent.
12339 (iso9660_to_unixtime): New function.
12340 (iso9660_to_unixtime2): Likewise.
12341 (grub_iso9660_read_symlink): Use node->dirent.
12342 (grub_iso9660_iterate_dir): Likewise.
12343 (grub_iso9660_dir): Set mtime.
12344 (grub_iso9660_mtime): New function.
12345 (grub_iso9660_fs): Register grub_iso9660_mtime.
12346 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
12347 (grub_jfs_inode): New fields atime, ctime and mtime.
12348 (grub_jfs_dir): Set mtime.
12349 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
12350 * grub-core/fs/ntfs.c (list_file): Set mtime.
12351 (grub_ntfs_dir): Likewise.
12352 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
12353 (grub_reiserfs_iterate_dir): Set mtime.
12354 (grub_reiserfs_dir): Likewise.
12355 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
12356 (grub_fshelp_node): Likewise.
12357 (grub_sfs_iterate_dir): Set mtime.
12358 (grub_sfs_dir): Likewise.
12359 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
12360 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
12361 (grub_xfs_inode): New fields atime, mtime, ctime.
12362 (grub_xfs_dir): Set mtime.
12363 * include/grub/datetime.h (grub_datetime2unixtime): New function.
12364 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
12365 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
12367 Support UDF symlinks.
12369 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
12370 (grub_ufs_read_symlink): New function. All users updated.
12372 Check amiga partmap checksum.
12374 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
12375 (grub_amiga_partition): Likewise.
12376 (amiga_partition_map_checksum): New function.
12377 (amiga_partition_map_iterate): Check checksum.
12379 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12383 * Makefile.util.def (libgrubmods.a): Add romfs.
12384 * grub-core/Makefile.core.def (romfs): New module.
12385 * grub-core/fs/romfs.c: New file.
12387 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12389 Squashfs v4 support.
12391 * Makefile.util.def (libgrubmods.a): Add squash4.
12392 * grub-core/Makefile.core.def (squash4): New module.
12393 * grub-core/fs/squash4.c: New file.
12394 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
12395 disk_input_start, disk_input.
12396 (get_byte): Handle disk_input.
12397 (grub_zlib_disk_read): New function.
12398 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
12400 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12401 2011-05-15 Feiran Zheng <famcool@gmail.com>
12403 * Makefile.util.def (libgrubmods.a): Add minix3.
12404 * grub-core/Makefile.core.def (minix3): New module.
12405 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
12406 (GRUB_MINIX_BSIZE): Removed.
12407 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
12408 (grub_minix_ino_t): New type.
12409 (grub_minix_le_to_cpu_ino): New macro.
12410 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
12411 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
12412 (grub_minix_data): New field block_size.
12413 (grub_minix_read_file): Handle 64-bit correctly.
12414 * grub-core/fs/minix3.c: New file.
12416 2011-05-15 Tristan Gingold <gingold@free.fr>
12417 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
12418 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12422 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
12423 * configure.ac: Add ia64-efi target.
12424 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
12425 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
12426 * gentpl.py: Add ia64_efi platform.
12427 Rename x86_efi to efi and Add ia64-efi. All users updated.
12428 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
12429 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
12430 Remove kern/generic/rtc_get_time_ms.c on EFI.
12431 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
12432 kern/ia64/dl_helper.c on ia64-efi.
12433 Add kern/emu/cache.c on emu.
12434 (linux): Use on loader/ia64/efi/linux.c on ia64.
12435 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
12436 whether symbol is a function.
12437 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
12438 (grub_symbol): New field 'isfunc'.
12439 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
12440 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
12441 (grub_dl_load_segments): Place all sections into the same region.
12442 [__ia64__]: Create trampolines and got.
12443 [GRUB_MACHINE_EMU]: Call mprotect.
12444 (grub_dl_resolve_symbols): Resolve symbol type as well.
12445 [__ia64__]: Create function descriptors.
12446 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
12447 (grub_rtc_get_time_ms): ... this. Expressions simplified.
12448 (grub_get_rtc): New function.
12449 * grub-core/kern/emu/cache.c [__ia64__]: New file.
12450 * grub-core/kern/emu/cache.S: Renamed to ...
12451 * grub-core/kern/emu/cache_s.S: ... this.
12452 [__ia64__]: Add a nop.
12453 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
12454 [__ia64__]: New function.
12455 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
12456 * grub-core/kern/ia64/dl.c: New file.
12457 * grub-core/kern/ia64/dl_helper.c: Likewise.
12458 * grub-core/kern/ia64/efi/init.c: New file.
12459 * grub-core/kern/ia64/efi/startup.S: Likewise.
12460 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
12461 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
12462 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
12463 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
12464 * grub-core/loader/ia64/efi/linux.c: New file.
12465 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
12466 (GRUB_MOD_DEP): Likewise.
12467 (grub_dl) [__ia64__]: New fields got and tramp.
12468 (grub_dl): New field 'base'.
12469 (grub_dl_register_symbol): New argument isfunc. All users updated.
12470 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
12471 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
12472 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
12473 (grub_ia64_dl_get_tramp_got_size): New proto.
12474 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
12475 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
12476 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
12477 * include/grub/efi/api.h: Skip call wrappers on ia64.
12478 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
12479 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
12480 * include/grub/elf.h (ELF_ST_INFO): New definition.
12481 * include/grub/ia64/efi/kernel.h: New file.
12482 * include/grub/ia64/efi/memory.h: Likewise.
12483 * include/grub/ia64/efi/time.h: Likewise.
12484 * include/grub/ia64/kernel.h: Likewise.
12485 * include/grub/ia64/setjmp.h: Likewise (from glibc).
12486 * include/grub/ia64/time.h: New file.
12487 * include/grub/ia64/types.h: Likewise.
12488 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
12489 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
12491 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
12492 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
12493 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
12494 * util/grub-mkimage.c (image_target_desc): New field pe_target.
12496 (EFI64_HEADER_SIZE): New definition. All users updated.
12497 (image_targets): Add ia64-efi.
12498 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
12499 jumpers_addr. All users updated.
12500 Create function descriptors.
12501 (count_funcs): New function.
12502 (unaligned_uint32): New struct.
12503 (MASK20): New definition.
12504 (MASK19): Likewise.
12505 (MASKF21): Likewise.
12506 (add_value_to_slot_20b): New function.
12507 (add_value_to_slot_21_real): Likewise.
12508 (add_value_to_slot_21): Likewise.
12509 (ia64_kernel_trampoline): New struct.
12510 (nopm): New variable.
12512 (make_trampoline): New function.
12513 (relocate_addresses): Handle ia64.
12514 (make_reloc_section): Likewise.
12515 (load_image): Likewise.
12517 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12519 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
12520 warning. Move variables before code while on it.
12522 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12526 * configure.ac: Rename yeeloong platform to loongson. All users updated.
12527 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
12528 * grub-core/boot/mips/loongson/fuloong.S: New file.
12529 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
12530 Explicitly init CS5536.
12531 [FULOONG]: Don't use serial until CS5536 is available.
12532 Set GPIO based on dumps.
12533 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
12534 [FULOONG]: Handle GPIO and memory controller differences.
12535 Parse machine type in $a2.
12536 * grub-core/boot/mips/startup_raw.S: Determine and save the
12538 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
12539 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
12540 init on architecture type.
12541 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
12542 SIS315E. Don't init at_keyboard on fuloong.
12543 (grub_halt): Support Fuloong.
12544 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
12545 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
12546 (loongson_machtypes): New array.
12547 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
12549 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
12550 config. All users updated. Handle CS5536 serial.
12551 * grub-core/term/serial.c (grub_serial_register): Conditionalise
12552 default port on machine type. Register serial as inactive.
12553 * grub-core/video/sis315pro.c: New file.
12554 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
12556 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
12557 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
12558 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
12559 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
12560 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
12561 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
12563 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
12564 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
12566 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
12567 (grub_arch_machine): New extern var.
12568 * include/grub/mips/loongson/serial.h
12569 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
12570 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
12571 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
12572 (GRUB_MACHINE_SERIAL_PORT0): ... this.
12573 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
12574 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
12575 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
12576 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
12577 * include/grub/term.h (grub_term_register_input_inactive): New inline
12579 (grub_term_register_output_inactive): Likewise.
12580 * include/grub/video.h (grub_video_driver_id): New value
12581 GRUB_VIDEO_DRIVER_SIS315PRO.
12582 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
12583 New field "names". All users updated.
12584 New field value IMAGE_FULOONG_FLASH.
12585 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
12587 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
12589 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
12590 and add some clarification.
12592 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12594 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
12595 platforms if kernel is compressed.
12597 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12599 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
12600 unused modules since currently referrence counter isn't reliable and
12601 there isn't much memory to recover there anyway.
12603 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12605 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
12606 rather than resetting it to allow modules to reference themselves
12609 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12611 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
12612 counter on dependencies since grub_dl_unref already handles this.
12614 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12616 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
12617 on error if not already done.
12619 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12621 Fix few potential memory misusage.
12623 * grub-core/font/font.c (load_font_index): Don't free char_index to
12625 (grub_font_load): Zero-fill font at alloc for safety.
12626 Close file on error.
12627 (free_font): Free bmp_idx.
12629 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12631 * docs/grub.texi (Installation): Fix several outdated claims.
12633 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12635 Handle module_license on windows.
12637 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
12639 (insert_string): Make argument const char * instead of char *.
12640 (write_section_data): Handle long section names.
12641 Handle module_license.
12643 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12645 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
12646 handle class-free menuentries.
12647 (grub_normal_add_menu_entry): Add a check to be sure.
12649 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12651 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
12654 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12656 * configure.ac: Bump version to 1.99.
12658 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12660 Give ATA device a bit more time on first try in order to allow disks
12663 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
12664 if dev->present is 1. Reset dev->present on failure.
12665 (grub_ata_device_initialize): Set dev->present to 1.
12666 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
12667 (grub_ata_device): New member 'present'.
12669 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12671 * util/grub-mkimage.c (generate_image): Update hash.
12673 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12675 Flush caches on DMA memory.
12677 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
12678 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
12679 (grub_dma_free): Likewise.
12680 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
12682 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12684 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
12685 to avoid asm treating ld and sd as macros.
12687 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12689 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
12692 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12694 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
12695 grub_decompress_core since later would fail if grub_decompress_core
12698 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12700 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
12701 R_MIPS_JALR since it's used by newer compiler.
12703 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
12705 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
12707 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12709 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
12710 file_path to 0 for surety.
12711 (grub_chainloader_boot): Set exit_data to NULL.
12712 Unset the loader once done.
12713 (grub_cmd_chainloader): Fix confusing error message if file is empty.
12715 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12717 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
12718 unknown key into a dprintf.
12720 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12722 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
12723 on first non-existant partition.
12725 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12727 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
12729 Reported by: Mark Korenberg.
12731 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12733 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
12736 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12738 * util/grub-mkimage.c (main): Explicitely flush and sync the output
12739 before closing to ensure that it will be readable by grub-setup.
12741 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12743 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
12744 (devpath_1): Use MAKE_PIWG_PATH.
12745 (devpath_2): Likewise.
12746 (devpath_3): Likewise.
12747 (devpath_4): Likewise.
12748 (devpath_5): Likewise.
12749 (devpath_6): Likewise.
12751 The appleldr.mod was checked that to be binary identical to previous
12754 2011-05-05 Zach <mikezackles>
12756 Support 2010 Macbooks.
12758 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
12759 (devs): Add devpath_6.
12761 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12763 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
12764 /dev/random. /dev/urandom is good enough for our purposes (salting).
12766 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12768 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
12770 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12772 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
12775 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12777 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
12778 and not 0 on failure.
12780 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
12782 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
12783 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
12784 disk; otherwise grub_fs_probe will not fall back to the next
12786 (grub_pxefs_open): Likewise, for consistency.
12787 Reported and tested by: Ezekiel Grave.
12789 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
12791 * tests/partmap_test.in: Don't hardcode path to parted.
12792 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
12794 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
12796 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
12797 of `ls' to find out which devices are available.
12799 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12801 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
12802 than source address for efi mmap buffer.
12804 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12806 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
12807 wrong action on non-detecting the magic.
12809 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12811 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
12812 already supplied by another part of the module (fixes compilation on
12815 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12817 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
12818 match the one used by mdadm.
12820 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
12822 * po/README: Add instructions for creating po/LINGUAS.
12824 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
12826 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
12829 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
12830 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
12831 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
12832 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
12833 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
12834 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
12835 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
12836 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
12837 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
12838 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
12839 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
12840 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
12841 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
12842 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
12843 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
12844 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
12845 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
12846 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
12847 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
12848 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
12849 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
12850 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
12852 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
12854 * grub-core/kern/emu/getroot.c
12855 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
12856 test that was incorrectly reintroduced in r3214.
12857 Reported by: Ian Dall. Fixes Savannah bug #33133.
12859 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
12861 Fix stack pointer handling in 16-bit relocator.
12863 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
12864 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
12865 Fixes Ubuntu bug #683904.
12867 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
12869 * configure.ac: Bump version to 1.99~rc2.
12871 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
12873 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
12874 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
12875 * grub-core/lib/x86_64/setjmp.S: Likewise.
12876 * grub-core/lib/mips/setjmp.S: Likewise.
12877 * grub-core/lib/powerpc/setjmp.S: Likewise.
12878 * grub-core/lib/sparc64/setjmp.S: Likewise.
12880 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
12882 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
12883 * grub-core/lib/efi/datetime.c: Likewise.
12885 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12887 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
12889 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
12890 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
12891 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
12893 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12895 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
12897 (grub_gfxterm_term_init): Likewise.
12899 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12901 Take into account the decorations the computing menu entry width.
12903 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
12904 (grub_gfxmenu_create_box): Register get_border_width.
12905 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
12907 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
12910 2011-04-18 Endres Puschner <code@e7p.de>
12912 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
12913 Don't skip first class.
12915 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12917 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
12919 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
12921 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12923 Complete 64-bit division support.
12925 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
12926 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
12927 * include/grub/misc.h (grub_divmod64): Rename to ...
12928 (grub_divmod64_full): ... this.
12929 (grub_divmod64): New inline function.
12931 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12933 * util/grub-mkimage.c (generate_image): Add forgotten comma.
12935 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12937 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
12938 performing the necessary test.
12940 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
12942 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
12943 (kfreebsd.elf): Likewise.
12944 (pc-chainloader.elf): Likewise.
12945 (ntldr.elf): Likewise.
12947 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
12949 Identify RAID by its UUID rather than (guessed) name.
12951 * grub-core/disk/raid.c (ascii2hex): New function.
12952 (grub_raid_open): Accept mduuid/%s specification.
12953 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
12954 (get_mdadm_uuid): ... this.
12955 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
12957 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
12959 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
12962 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
12964 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
12966 * util/grub.d/20_linux_xen.in: Likewise.
12968 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
12970 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
12971 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
12973 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
12974 Build a list of relevant visible mounts using the mnt_id and
12975 parent_mnt_id fields, and then scan that list at the end.
12977 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
12979 * docs/grub.texi (normal): New section.
12980 (normal_exit): New section.
12981 (Embedded configuration): Add reference to normal.
12982 (GRUB only offers a rescue shell): Likewise.
12983 * docs/grub-dev.texi (Error Handling): Fix typo.
12985 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
12987 * NEWS: Drop obsolete entry about probe-only btrfs support.
12989 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
12991 * util/import_gcry.py: Fix typo.
12993 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12995 * NEWS: Add btrfs support.
12997 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12998 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
13000 BtrFS support. Written by me (Vladimir) with important bugfixes and
13001 even more important testing by Colin.
13003 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
13004 * grub-core/Makefile.core.def (btrfs): Add crc.c.
13005 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
13006 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
13007 mem_input_off and mem_input. All users updated to accept in-RAM input.
13008 (gzio_seek): New function.
13009 (test_zlib_header): Likewise.
13010 (grub_gzio_read): Likewise.
13011 (grub_zlib_decompress): Likewise.
13012 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
13013 Accept partial and non-virtual mounts.
13014 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
13015 avoid receiving /dev/dm-X as device.
13016 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
13017 Handle bind and partial mounts.
13018 * grub-core/lib/crc.c: New file.
13019 * include/grub/deflate.h: Likewise.
13020 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
13022 * include/grub/lib/crc.h: New file.
13024 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13026 Implement automatic module license checking according to new GNU
13029 * grub-core/kern/dl.c (grub_dl_check_license): New function.
13030 (grub_dl_load_core): Use grub_dl_check_license.
13031 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
13032 (GRUB_MOD_LICENSE): Likewise.
13033 (GRUB_MOD_DUAL_LICENSE): Likewise.
13034 All modules updated.
13036 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
13038 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
13039 reserved_first_sector to 1. btrfs reserves plenty of space for boot
13041 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
13043 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13045 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
13047 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13049 * util/grub-fstest.c (read_file): Report GRUB error if file opening
13052 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13054 * grub-core/kern/file.c (grub_file_open): Don't take into account the
13055 parenthesis in the middle of the filename.
13057 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13059 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
13060 rather than trying to put initrd way too high.
13061 Reported by: Ryan Lortie <desrt@desrt.ca>
13063 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13065 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
13066 improperly removed string.
13068 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13070 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
13072 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
13073 (open_device) Likewise.
13074 (grub_util_biosdisk_close): Likewise.
13075 Reported by: Mark Korenberg.
13077 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
13079 * util/grub-mkconfig_lib.in: Add missing quotes.
13081 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
13083 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
13086 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13088 Dynamically count the number of lines for the lower banner.
13090 * grub-core/normal/menu_entry.c (per_term_screen): New member
13092 (print_down): Use num_entries.
13093 (update_screen): Likewise.
13094 (grub_menu_entry_run): Set num_entries.
13095 * grub-core/normal/menu_text.c (menu_viewer_data): New member
13097 (grub_print_message_indented): Move real part to ...
13098 (grub_print_message_indented_real): ... here. Additional argument
13100 (draw_border): Additional argument num_entries.
13101 (print_message): Additional argument dry_run.
13102 (print_entries): Receive menu viewer data.
13103 (grub_menu_init_page): New argment num_entries.
13104 (menu_text_set_chosen_entry): Use num_entries.
13105 (grub_menu_try_text): Likewise.
13106 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
13108 (grub_ucs4_count_lines): New function.
13109 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
13110 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
13111 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
13112 (grub_term_border_height): Likewise.
13113 (grub_term_num_entries): Likewise.
13115 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13117 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
13118 Remove now unused string.
13120 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
13122 * docs/grub-dev.texi (Finding your way around): Update for 1.99
13124 (Getting started): GRUB is developed in Bazaar now, not Subversion.
13126 (Comment): Fix typo.
13127 (Getting started): General copy-editing.
13128 (Typical Development Experience): Likewise.
13129 (Error Handling): Likewise.
13130 (Video API): Likewise.
13132 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
13134 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
13137 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13139 * util/grub-mkimage.c (main): Handle special naming of yeeloong
13142 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
13144 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
13145 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
13148 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13150 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
13151 grub_strcpy since the lines aren't necessarily 0-terminated.
13153 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13155 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
13158 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13160 * grub-core/commands/probe.c (options): Argument to set isn't optional.
13161 (GRUB_MOD_INIT): DEVICE isn't optional.
13163 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13165 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
13166 word on new line if it's too long anyway. Fixes a hang.
13168 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13170 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
13172 * util/grub-setup.c (main): Reuse md device name if available.
13173 * util/raid.c (grub_util_raid_getmembers): Receive device name and
13174 not GRUB name as argument.
13175 Based on patch by: Florian Wagner <fwagner>.
13177 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13179 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
13180 Place mbi on low memory for better compatibility.
13182 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13184 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
13186 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13187 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
13189 * autogen.sh: Ensure that collate and ctype locale is C.
13190 * conf/Makefile.common: Likewise.
13192 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13194 * grub-core/normal/menu.c: Add missing include.
13196 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13198 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
13200 2011-04-08 Martin Zuther <mzuther@mzuther.de>
13202 * util/grub-mkconfig.in: Ignore emacsen backup.
13204 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13206 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
13208 (grub_util_biosdisk_close): Likewise.
13210 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13212 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
13213 const attribute and use grub_isdigit.
13215 2011-04-06 Andrey <dev_null@ukr.net>
13217 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
13220 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13222 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
13223 useful grub_dprintf's.
13225 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13227 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
13229 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13231 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
13233 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13235 Output errors if theme loading failed.
13237 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
13238 grub_gfxterm_fullscreen on error paths to ...
13239 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
13240 theme loading error.
13242 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13244 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
13245 space for older compilers.
13246 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
13248 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13250 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
13251 and report them as not RAID members since they are useless for GRUB.
13252 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
13254 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13256 Increase LVM implementation robustness in order not to crash on
13257 configurations like pvmove. Previously code assumed that in some places
13258 only lvs or only pvs are used whereas it seems that they are used
13261 * grub-core/disk/lvm.c (read_node): New function.
13262 (read_lv): Use read_node.
13263 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
13264 Match volumes only at the end when all lvs are found. Take both
13265 pvs (first) and lvs (second) into account.
13266 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
13267 mirror_* into node_*. All users updated.
13268 (grub_lvm_stripe): Merge this ...
13269 (grub_lvm_mirror): ... and this ...
13270 (grub_lvm_node): ... into this. All users updated.
13272 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13274 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
13275 of function to allow further scanning for LVMs.
13277 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13279 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
13280 on failed seek as it breaks open fd reusage.
13282 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13284 * util/grub-install.in: Add a recommendation to use --recheck before
13287 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13289 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
13292 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13294 GRUB developper manual based on existing Internals section and
13295 contributions by the various authors with active copyright assignment.
13297 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
13298 * docs/font_char_metrics.png: New file.
13299 * docs/font_char_metrics.txt: Likewise.
13300 * docs/grub-dev.texi: Likewise.
13301 * docs/grub.texi (Internals): Move from here ...
13302 * docs/grub-dev.texi: ... here.
13304 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13306 Store the loopback device as data on loopback grub_disk structures,
13307 rather than the file it points to. This fixes use of freed memory
13308 if an existing loopback device is replaced.
13310 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
13311 disk->data, not dev->file.
13312 (grub_loopback_read): Adjust file assignment to match.
13313 Fixes Ubuntu bug #742967.
13315 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13317 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
13318 when replacing an existing device.
13320 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
13322 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
13323 memory corruptions.
13325 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
13327 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
13328 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
13329 (grub_jfs_read_inode): Likewise.
13330 (grub_jfs_opendir): Likewise. Remove now useless casts.
13331 (grub_jfs_getent): Likewise.
13332 Make ino a grub_uint32_t rather than int.
13333 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
13334 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
13335 division and module with bit operations.
13336 (grub_jfs_find_file): Make ino a grub_uint32_t.
13337 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
13339 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13341 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
13342 warning. (This was in fact always initialised before use, but GCC
13343 wasn't smart enough to prove that.)
13344 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13346 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
13348 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
13350 (efi_wrap_1): Likewise.
13351 (efi_wrap_2): Likewise.
13352 (efi_wrap_3): Likewise.
13353 (efi_wrap_4): Likewise.
13354 (efi_wrap_5): Likewise.
13355 (efi_wrap_6): Likewise.
13356 (efi_wrap_10): Likewise.
13357 Based on information by: Red Hat/Peter Jones.
13359 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
13361 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
13362 set-but-not-used variable.
13364 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
13366 * docs/grub.texi (Simple configuration): Be more explicit about
13367 GRUB_DEFAULT, and add an example.
13368 Reported by: Leslie Rhorer.
13370 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13372 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
13375 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
13377 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
13378 * util/grub.d/20_linux_xen.in: Likewise.
13380 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13382 * util/grub.d/10_linux.in: Try alternative config filenames where
13383 we parse config file.
13384 * util/grub.d/20_linux_xen.in: Likewise.
13386 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
13388 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
13389 * util/grub.d/20_linux_xen.in: Likewise.
13391 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13393 * grub-core/disk/raid.c (insert_array): Add few potentially
13394 useful grub_util_info.
13395 (grub_raid_register): Likewise.
13397 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13399 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
13400 Preserve partition number in mdadm code path.
13402 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13404 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
13405 few potentially useful grub_util_info.
13407 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13409 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
13411 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13413 * docs/grub.texi (default): Use @example rather than nested
13414 itemized lists to avoid breaking gendocs.
13416 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13418 * docs/grub.texi (Future): Update.
13420 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13422 * docs/grub.texi (Environment): New chapter.
13423 (Changes from GRUB Legacy): Link to "Environment block" section for
13424 details of limitations.
13425 (Simple configuration): Likewise. Link to documentation of gfxmode
13426 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
13428 (Shell-like scripting): Note that normal variables are stored in the
13430 (gettext): Link to documentation of lang and locale_dir.
13431 (list_env): New section.
13432 (load_env): New section.
13433 (save_env): New section.
13435 (Reporting bugs): Fix typo.
13437 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13439 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
13442 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13444 * grub-core/term/at_keyboard.c (set_scancodes)
13445 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
13447 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13449 * docs/grub.texi (Menu-specific commands): Remove some semantics
13450 that were true in GRUB Legacy but not in GRUB 2.
13451 (submenu): New section.
13452 (false): New section.
13453 (read): New section.
13454 (true): New section.
13456 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13458 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
13460 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13462 * docs/grub.texi (Simple configuration): Explain some of the
13463 current limitations of grub-mkconfig.
13464 Reported by: Leslie Rhorer.
13466 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13468 Old macs search for boot.efi rather than for bootia32.efi.
13470 * util/grub-install.in: Copy bootia32.efi to boot.efi.
13471 * util/grub-mkrescue.in: Likewise.
13472 Suggested by: Peter Jones.
13474 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13476 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
13478 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13480 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
13481 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
13482 (grub_lvm_mirror): New struct.
13483 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
13484 (grub_lvm_iterate): Iterate only visible volumes.
13485 (grub_lvm_read): Factor out to ..
13486 (read_lv): ... this. Support mirrors.
13487 (grub_lvm_read): New wrapper function.
13488 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
13489 stripped or mirrored.
13491 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13493 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
13495 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13497 * docs/grub.texi (loopback): New section.
13499 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13501 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
13504 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13506 * docs/grub.texi (BIOS installation): New section, partly based on
13507 previous text in other sections.
13508 (Installing GRUB using grub-install): Replace BIOS discussion with a
13510 (Images): Likewise.
13512 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13514 * grub-core/kern/emu/hostdisk.c (find_partition_start)
13515 [HAVE_DIOCGDINFO]: Add safety checks.
13517 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13519 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
13520 per default compiled in kernel and prior to 8.0 isn't shipped at all.
13522 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13524 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
13525 real_sb->size is zero (e.g. RAID-0), get the disk size from
13526 real_sb->data_size instead.
13527 Fixes Ubuntu bug #743136.
13529 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13531 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
13532 printf clauses for printing size and start.
13534 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13536 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
13537 Reported and tested by: Timothy Nikkel.
13539 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13541 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
13542 (dirty_region_add_real): ... this.
13543 (dirty_region_add): Don't discard margin refresh when performing
13546 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13548 * grub-core/lib/relocator.c (allocate_regstart)
13549 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
13550 terminals are capabple of malloc-free operation.
13551 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
13552 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
13554 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
13556 * util/grub-setup.c: Copy the partition table zone if floppy support
13557 is disabled, even if no partition table is found.
13559 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
13560 during POST if an invalid partition table is contained in the PBR
13561 of the active partition when GRUB is installed to a partition.
13563 2011-03-28 Colin Watson <cjwatson@debian.org>
13565 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
13568 2011-03-28 Colin Watson <cjwatson@debian.org>
13570 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
13571 to be specific about what kind of RAID device we're scanning for.
13573 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
13575 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
13576 return freed string.
13578 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13580 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
13582 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13584 Use libgeom on FreeBSD to detect partitions.
13586 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
13587 (grub-mkrelpath): Likewise.
13588 (grub-script-check): Likewise.
13589 (grub-editenv): Likewise.
13590 (grub-mkpasswd-pbkdf2): Likewise.
13591 (grub-fstest): Likewise.
13592 (grub-mkfont): Likewise.
13593 (grub-mkdevicemap): Likewise.
13594 (grub-probe): Likewise.
13595 (grub-setup): Likewise.
13596 (grub-ofpathname): Likewise.
13597 (grub-mklayout): Likewise.
13598 (example_unit_test): Likewise.
13599 (grub-menulst2cfg): Likewise.
13600 * grub-core/Makefile.core.def (grub-emu): Likewise.
13601 (grub-emu-lite): Likewise.
13602 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
13603 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
13604 define HAVE_DIOCGDINFO.
13605 (follow_geom_up) [FreeBSD]: New function.
13606 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
13607 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
13608 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
13609 unconditionally of HAVE_DIOCGDINFO.
13611 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13613 Fix FreeBSD compilation problem.
13615 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
13616 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
13618 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
13620 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
13621 Switch back to page zero before loading a kernel, since some kernel
13622 drivers expect that.
13623 Thanks to: Felix Kuehling.
13625 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13627 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
13628 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
13629 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
13631 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13633 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
13634 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
13636 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13638 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
13639 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
13640 malloc is disabled.
13642 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13644 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
13645 for modules headers when counting the needed allocation size.
13647 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13649 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
13650 if no ASCII character is found to prevent crash.
13652 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
13654 * grub-core/video/bitmap.c (match_extension): Ignore case.
13656 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13658 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
13660 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13662 * grub-core/script/parser.y: Declare "time" as valid argument.
13664 2011-03-23 Peter Jones <pjones@redhat.com>
13666 Fix incorrect assert failure reporting.
13668 * grub-core/tests/example_functional_test.c (example_test): Add
13670 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
13671 (failure_start): ...this. Check that malloc succeeded.
13672 Don't call xvasprintf. Return failure struct.
13673 (failure_append_vtext): New function.
13674 (failure_append_text): Likewise.
13675 (add_failure): Likewise.
13676 (grub_test_assert_helper): Likewise.
13677 * include/grub/test.h (grub_test_assert_helper): New declaration.
13678 (grub_test_assert): Macro rewritten.
13680 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13682 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
13684 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13686 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
13688 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13690 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
13691 into GRUB-style one.
13693 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13695 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
13696 error and not grub_errno.
13697 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
13699 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13701 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
13702 GRUB_USB_SPEED_NONE in case of failure and not the error code.
13704 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13706 * grub-core/efiemu/i386/pc/cfgtables.c
13707 (grub_machine_efiemu_init_tables): Make declaration a prototype.
13708 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
13709 (grub_xnu_unlock): Likewise.
13710 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
13712 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13714 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
13715 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
13716 * grub-core/commands/hashsum.c (aliases): Likewise.
13717 * grub-core/commands/setpci.c (pci_registers): Likewise.
13718 * grub-core/disk/usbms.c (attach_hook): Likewise.
13719 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
13720 (zio_checksum_table): Likewise.
13721 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
13722 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
13723 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
13724 * grub-core/lib/relocator.c (leftovers): Likewise.
13725 (extra_blocks): Likewise.
13726 * grub-core/loader/i386/bsd.c (relocator): Likewise.
13727 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
13728 (modules_last): Likewise.
13729 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
13730 (devices): Likewise.
13731 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
13732 (modules_last): Likewise.
13733 * grub-core/normal/auth.c (users): Likewise.
13734 * grub-core/normal/context.c (initial_menu): Likewise.
13735 (current_menu): Likewise.
13736 * grub-core/normal/crypto.c (crypto_specs): Likewise.
13737 * grub-core/term/serial.c (grub_serial_ports): Likewise.
13738 (grub_serial_terminfo_input_template): Likewise.
13739 (grub_serial_terminfo_output_template): Likewise.
13740 (grub_serial_terminfo_input): Likewise.
13741 (grub_serial_terminfo_output): Likewise.
13742 (registered): Likewise.
13743 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
13745 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13747 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
13748 grub_video_mode_type_t.
13749 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
13750 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
13751 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
13753 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13755 * util/grub-install.in: Correct the x86-64 name as x86_64.
13757 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
13759 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
13760 initial chunk read from the kernel always includes GRUB's multiboot
13761 header, which is now outside the first sector.
13763 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
13765 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
13766 cached mmap_size, so that this works correctly when called multiple
13768 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
13770 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
13772 * docs/grub.texi (Simple configuration): Tidy up formatting.
13774 2011-03-07 Szymon Janc <szymon@janc.net.pl>
13776 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
13777 Set-but-not-used variable removed.
13779 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13781 Workaround yet another IEEE1275 bug.
13783 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
13784 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
13785 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
13786 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
13788 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
13789 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
13791 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13793 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
13796 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
13798 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
13799 empty, since in that case we can only generate either nothing or a
13800 syntactically invalid configuration file.
13801 Reported by: Michal Suchanek. Fixes Debian bug #612898.
13803 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
13805 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
13806 (Making a GRUB bootable CD-ROM): Likewise.
13807 (Invoking grub-mkrescue): New section.
13808 Reported by: Yann Dirson. Fixes Debian bug #612585.
13810 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
13812 * util/grub-install.in: Remove unnecessary brackets from tr
13814 * util/grub.d/10_hurd.in: Likewise.
13815 * util/grub.d/10_kfreebsd.in: Likewise.
13816 * util/grub.d/10_linux.in: Likewise.
13817 * util/grub.d/20_linux_xen.in: Likewise.
13818 Reported by: Jamie Heilman. Fixes Debian bug #612564.
13820 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
13822 * include/grub/file.h (not_easly_seekable): Rename to ...
13823 (not_easily_seekable): ... this. Update all users.
13825 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
13827 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
13830 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13832 * util/grub-mkimage.c (generate_image): Refuse to create the images
13833 bigger than the actual flash (512K) in Loongson machines. 512K is also
13834 the biggest chip supported by them.
13836 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13838 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
13840 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
13842 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
13843 super_offset field.
13845 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13847 * util/grub-install.in: Ignore install device on platforms
13848 where it doesn't make sense. Always use UUIDs except on pc, efi and
13850 Reported by: Daniel Kahn Gillmor.
13852 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13854 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
13856 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13858 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
13859 (iterate_real): Don't rely on partition being non-NULL.
13861 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13863 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
13864 supported platforms. Put a compile time assert for this rather than
13865 generate a warning with 32-bit shift.
13867 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13869 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
13870 logical expression more readable.
13872 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13874 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
13875 even if some elements have a name.
13876 Reported by: Alexander GQ Gerasiov.
13878 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
13880 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
13881 path unreadable if `grub-probe -t abstraction' fails, for example if
13882 memberlist fails on an LVM volume group.
13883 Reported by: Darius Jahandarie.
13885 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
13887 * docs/grub.texi (Simple configuration): Document
13888 GRUB_PRELOAD_MODULES.
13890 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
13892 * .bzrignore: Remove nonexistent grub-pbkdf2.
13894 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
13896 * configure.ac: Bump version to 1.99~rc1.
13898 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
13900 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
13903 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13905 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
13908 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13910 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
13912 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
13914 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
13917 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
13919 Fix compilation on cygwin.
13921 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
13922 -R .drectve on cygwin.
13923 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
13924 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
13925 (COND_CYGWIN): New condition.
13926 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
13927 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
13928 not @TARGET_OBJ2ELF@.
13929 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
13930 type to determine whether aux is to be used.
13932 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13934 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
13935 realpath'ed device string.
13936 Handle floppy (somewhat).
13937 Issue error in unknown case rather than garbage.
13938 Reported by: Axel Beckert.
13940 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13942 * util/grub.d/00_header.in (load_video): Handle the case when no video
13944 Thanks to: Axel Beckert.
13946 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13948 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
13949 variable. Fixes problem on big endian platforms.
13951 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13953 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
13954 It doesn't work well there.
13956 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13958 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
13960 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
13961 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
13964 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13966 Use alias->path rather than buggy "canon".
13968 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
13969 (ofdisk_hash_add): New argument curcan. All users updated.
13971 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
13973 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
13975 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13977 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
13978 loadmask before doing any calculations. Use correct type for offset.
13979 (grub_linux_load64): Likewise.
13981 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
13983 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
13985 (console_grub_equivalences_unshift): Likewise.
13986 Reported by: Daniel Dehennin.
13988 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13990 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
13991 (set_env_limn_ro): Likewise.
13992 (GRUB_MOD_INIT): Likewise.
13993 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
13994 ARRAY_SIZE while on it.
13995 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
13996 * grub-core/normal/context.c (grub_env_export): Move from here ...
13997 * grub-core/kern/env.c (grub_env_export): ... here.
13998 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
14000 * grub-core/kern/main.c (grub_main): Export root and prefix.
14001 * include/grub/env.h (grub_env_export): Export.
14002 Reported by: Seth Goldberg.
14004 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14006 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
14007 Take into account space used by ELF sections and multiboot palette.
14008 Reported by: Grégoire Sutre.
14010 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14014 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14016 Pass more appropriate video id to Linux.
14018 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
14019 grub_video_get_driver_id and variable gfxpayloadforcelfb to
14021 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
14022 shift params->lfb_size.
14023 * include/grub/i386/linux.h: Make an enume out of have_vga values.
14025 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14027 * util/grub-menulst2cfg.c: Add missing include of misc.h.
14029 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14031 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
14032 separator and pass bootpath/devid even if only one of them is available.
14033 Reported by: Seth Goldberg.
14035 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14037 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
14038 implementations bug on them.
14040 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
14042 (filter_memory_map): Likewise.
14044 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14046 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
14047 Reported by: nebuchadnezzar.
14049 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14051 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
14052 Reported by: nebuchadnezzar.
14054 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14056 Submenu default support.
14058 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
14059 auto_boot. All users updated.
14061 Handle chosen and default with submenus.
14062 (grub_menu_execute_with_fallback): Declared static.
14063 Don't notify failure if autobooted. Upper level does it.
14064 (menuentry_eq): New function.
14065 (get_entry_number): Use menuentry_eq.
14066 (show_menu): New parameter "autobooted". All users updated.
14067 (grub_show_menu): Likewise.
14068 * include/grub/normal.h (grub_show_menu): Likewise.
14069 * include/grub/menu.h (grub_menu_execute_entry): Removed.
14070 (grub_menu_execute_with_fallback): Likewise.
14072 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14074 * util/grub-mklayout.c (usage): Update help text.
14076 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14078 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
14080 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14082 * util/grub-menulst2cfg.c (main): Trim the line.
14084 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14086 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
14087 (grub_machine_init): Don't check amount of low memory as reportedly
14088 INT 12h can be broken and if low memory is too low we wouldn't have
14089 gotten into grub_machine_init anyway.
14091 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14093 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
14094 (grub_machine_mmap_iterate): Take low memory into account
14096 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14098 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
14100 Reported by: TiCPU.
14102 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14104 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
14107 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
14109 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
14110 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
14112 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
14114 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
14115 openbsd and netbsd types being in part_bsd module.
14117 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14119 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
14120 (_FILE_OFFSET_BITS): Likewise.
14121 Reported by: Seth Goldberg.
14123 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
14125 * configure.ac: Check for libdevmapper header.
14127 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14129 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
14131 (fzap_lookup): Likewise.
14132 (dnode_get): Likewise.
14133 (make_mdn): Likewise.
14134 (zfs_mount): Likewise.
14135 (fzap_iterate): Use temporary pointer to avoid aliasing.
14136 (grub_zfs_read): Likewise.
14137 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
14138 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
14139 pointers to avoid aliasing.
14140 (grub_cmd_xnu_kernel64): Likewise.
14141 (grub_xnu_load_driver): Likewise.
14143 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14145 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
14147 (grub_cmd_terminal_output): Likewise.
14148 Reported and tested by: Grégoire Sutre.
14150 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14152 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
14154 Reported and tested by: Grégoire Sutre.
14156 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14158 * configure.ac: Do CPU substitution even if it's specified explicitly.
14159 Reported and tested by: Alain Greppin.
14161 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14163 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
14164 Reported and tested by: Alain Greppin.
14166 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14168 Satisfy some bison versions need for inttypes.h.
14170 * grub-core/lib/posix_wrap/inttypes.h: New file.
14171 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
14172 (int16_t): Likewise.
14173 (int32_t): Likewise.
14174 (int64_t): Likewise.
14175 Reported and tested by: Alain Greppin.
14177 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14179 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
14180 Silence spurious warning.
14181 Reported and tested by: Alain Greppin.
14183 2011-01-07 Szymon Janc <szymon@janc.net.pl>
14185 * docs/grub.texi (Support automatic decompression): Update with xz
14186 decompression support.
14188 2011-01-07 Szymon Janc <szymon@janc.net.pl>
14190 Improve loaders' kernel command line handling.
14192 * grub-core/lib/cmdline.c: New file.
14193 * include/grub/lib/cmdline.h: Likewise.
14194 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
14195 grub_create_loader_cmdline to create kernel command line.
14196 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14197 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
14198 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
14199 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
14200 (linux): Add lib/cmdline.c on common.
14202 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14204 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
14205 inopos might be unaligned.
14207 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14209 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
14210 endian transformations.
14211 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14212 Based on report by: Doug Nazar.
14214 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
14216 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
14217 array->members[i].start_sector.
14218 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
14220 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14222 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
14223 Reported and tested by: Grégoire Sutre.
14225 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
14227 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
14228 avoid causing test failures by clearing the screen.
14230 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
14232 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
14233 Fix prefix check to handle the case where dir ends with a slash
14234 (most significantly, "/" itself).
14235 Reported by: Michael Vogt.
14237 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14239 Run terminfo_cls on initing terminfo output to clear the screen and
14240 move the cursor to (0,0).
14242 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
14243 Call grub_terminfo_output_init.
14244 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
14245 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
14246 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
14248 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14250 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
14253 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14255 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
14258 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14260 The E820 type 5 is BADRAM, not EXEC_CODE.
14262 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
14263 (GRUB_E820_BADRAM): New define.
14264 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
14265 into reserved. Propagate BADRAM.
14266 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
14267 (GRUB_E820_BADRAM): New define.
14269 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14271 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
14272 Ignore the memory post-4G.
14273 (grub_relocator_firmware_alloc_region): Additional debug statement.
14275 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14277 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
14279 Reported by: David Pravec.
14281 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14283 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
14286 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14288 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
14290 (grub_reed_solomon_recover): Likewise.
14292 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14294 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
14296 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14298 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
14301 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
14303 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
14304 descriptions of extract_legacy_entries_source and
14305 extract_legacy_entries_configfile.
14306 Reported by: Seung Soo, Ha.
14308 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
14310 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
14311 on devices that do not implement function 0.
14313 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
14315 * grub-core/fs/hfsplus.c: Make parent unsigned.
14316 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
14318 (grub_hfsplus_cmp_extkey): Likewise
14320 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
14322 * util/grub-install.in: Correctly use bootloader_id and not
14323 GRUB_DISTRIBUTOR on efibootmgr line.
14325 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
14327 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
14329 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
14331 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
14332 Xen and reorder menu item wording to make it clearer that this entry
14333 will launch Xen. Print separate messages when loading Xen and
14336 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14338 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
14339 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
14340 loop in case of incorrect amiga partmap.
14342 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14344 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
14345 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
14348 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14350 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
14352 Reported by: crocket
14354 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14356 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
14358 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
14360 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14362 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
14364 (grub_cmd_xnu_kextdir): Likewise.
14365 (grub_cmd_xnu_splash): Likewise.
14367 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14369 Avoid using Reed-Solomon with 0 redundancy.
14371 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
14372 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
14374 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
14375 (grub_reed_solomon_recover): Likewise.
14377 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14379 Don't use disk subsystem in freebsd_boot.
14381 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
14382 (freebsd_biosdev): Likewise.
14383 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
14384 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
14386 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14388 Handling of files of unknown size is currently limited. They can't be
14389 used e.g. for initrd or modules. Moreover gzip handling of not
14390 easily seekable files is buggy. Disable unknown file size for now. May
14391 be inefficient but works.
14393 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
14394 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
14396 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
14398 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
14401 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
14403 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
14405 2010-12-25 Shea Levy <shlevy>
14407 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
14409 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14411 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
14412 Windows Server 2008.
14413 Reported by: Devin Giddings.
14415 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14417 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
14418 writing an error message because of async power management.
14419 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
14420 (grub_reboot): Likewise.
14422 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
14424 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
14425 keep unit tests from failing when they shouldn't.
14427 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14429 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
14430 previous patch increased the size of the RS code by 20 bytes (at
14431 least with gcc-4.4), so increase this by 20 bytes to match.
14432 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
14434 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14436 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
14437 scratch area. Make sure to initialise chosen in standalone mode as
14438 well as non-standalone.
14439 Reported by: Robert Hooker and Andy Whitcroft.
14440 Tested by: Andy Whitcroft.
14442 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14444 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
14445 constructing a new unescaped string and passing it to grub_xputs in
14446 one go, rather than passing characters to grub_printf one at a time.
14448 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14450 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
14451 initialising utf16.
14453 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14455 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
14456 comment. Add an extra layer of quotation, requiring the output of
14457 this function to be used in a printf format string.
14458 (gettext_printf): New function.
14459 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
14460 Extract translatable strings from here-documents and use a temporary
14461 variable instead, so that xgettext can find them.
14462 * util/grub.d/10_kfreebsd.in: Likewise.
14463 * util/grub.d/10_linux.in: Likewise.
14464 * util/grub.d/20_linux_xen.in: Likewise.
14466 * po/grub.d.sed: New file.
14467 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
14468 arguments. Set c-format flags on all strings extracted from
14469 util/grub.d/ (xgettext refuses to include these itself for strings
14470 it extracted from a shell file, but these really are c-format).
14472 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
14474 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
14475 Avoid next pointing to nowhere.
14477 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14479 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
14480 rather than assuming than rootblock is exactly in the middle.
14481 (grub_affs_label): Likewise.
14483 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14485 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
14486 reserved_first_sector to 0.
14487 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
14488 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
14489 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
14491 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14493 Fix handling of UTF-16 UDF labels.
14495 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
14496 (read_string): .. here.
14497 (grub_udf_label): Use read_string.
14499 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
14501 * grub-core/normal/menu_entry.c (run): Execute commands from menu
14502 editor under argument scope.
14503 Reported by: Jordan Uggla
14505 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14507 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
14509 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
14511 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
14512 line, and other keys scroll an entire page (previous handling was
14513 for \r and \n to scroll a page and other keys to scroll two lines).
14515 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14517 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
14518 Set ptrdest to correct get_physical_target_address rather than
14519 incorrect get_virtual_current_address.
14521 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
14523 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
14524 correct cat to grub_uint8_t * rather than grub_uint32_t *.
14526 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
14528 * .bzrignore: Ignore grub-core/rs_decoder.S.
14530 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
14532 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
14533 .mo/.mo.gz opening sequence to ...
14534 (grub_mofile_open_lang): ... here.
14535 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
14536 * util/grub.d/00_header.in (grub_lang): Include country part of
14538 Reported by: Mario Limonciello.
14540 2010-12-09 Robert Millan <rmh@gnu.org>
14542 * NEWS: Document addition of ZFS support.
14544 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
14546 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
14547 rather than `/ 2', as the latter requires -Wa,--divide which would
14548 require bumping our minimum binutils version.
14550 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
14552 * util/grub-script-check.c (main): Print script line number on
14555 2010-12-01 Robert Millan <rmh@gnu.org>
14557 * grub-core/fs/zfs/zfs.c: New file.
14558 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
14559 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
14560 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
14561 * grub-core/fs/zfs/zfsinfo.c: Likewise.
14563 * include/grub/zfs/dmu.h: Likewise.
14564 * include/grub/zfs/dmu_objset.h: Likewise.
14565 * include/grub/zfs/dnode.h: Likewise.
14566 * include/grub/zfs/dsl_dataset.h: Likewise.
14567 * include/grub/zfs/dsl_dir.h: Likewise.
14568 * include/grub/zfs/sa_impl.h: Likewise.
14569 * include/grub/zfs/spa.h: Likewise.
14570 * include/grub/zfs/uberblock_impl.h: Likewise.
14571 * include/grub/zfs/vdev_impl.h: Likewise.
14572 * include/grub/zfs/zap_impl.h: Likewise.
14573 * include/grub/zfs/zap_leaf.h: Likewise.
14574 * include/grub/zfs/zfs.h: Likewise.
14575 * include/grub/zfs/zfs_acl.h: Likewise.
14576 * include/grub/zfs/zfs_znode.h: Likewise.
14577 * include/grub/zfs/zil.h: Likewise.
14578 * include/grub/zfs/zio.h: Likewise.
14579 * include/grub/zfs/zio_checksum.h: Likewise.
14581 * Makefile.util.def: Build ZFS into libgrubmods.
14582 * grub-core/Makefile.core.def: Build zfs.mod.
14584 2010-11-30 Szymon Janc <szymon@janc.net.pl>
14586 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
14588 * grub-core/commands/wildcard.c (match_files): Likewise.
14590 2010-11-30 Robert Millan <rmh@gnu.org>
14592 * grub-core/loader/i386/bsd.c
14593 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
14594 whether kernel is loaded using grub_loader_is_loaded(), rather
14595 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
14596 certain error conditions.
14598 2010-11-30 Robert Millan <rmh@gnu.org>
14600 * grub-core/commands/echo.c: Include `<grub/term.h>'.
14601 (grub_cmd_echo): Call grub_refresh() after printing a message.
14603 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
14605 Avoid using tricks for initialising endian variables.
14607 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
14609 (GRUB_MOD_INIT): Don't byte-swap.
14610 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
14611 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
14612 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
14613 (grub_swap_bytes32_compile_time): Likewise.
14614 (grub_cpu_to_le32_compile_time): Likewise.
14615 (grub_cpu_to_le16_compile_time): Likewise.
14617 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
14619 * util/grub-setup.c (setup): Stop recommending --force. People who
14620 understand the dangers of blocklists are able to find this option
14621 anyway and the ones who don't shouldn't use it anyway.
14623 2010-11-26 Robert Millan <rmh@gnu.org>
14625 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
14628 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
14630 Fix LVM-on-RAID probing.
14632 * util/grub-probe.c (probe): Remember which disk was detected as
14633 RAID (perhaps an LVM physical volume). Use that disk's raidname
14634 rather than that of the top-level disk.
14636 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
14638 Fix cmdline argument quotes for setparams command of menuentry
14641 * grub-core/commands/menuentry.c (setparams_prefix): Use single
14642 quotes for arguments.
14643 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
14644 grub_strchrsub function instead.
14646 * include/grub/misc.h (grub_strchrsub): New function.
14648 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14650 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
14651 effort by skipping "." and ".." entries up-front.
14652 Suggested by: Michael Lazarev.
14654 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14656 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
14657 ldflags to ldadd, to fix link line ordering.
14658 (none_decompress): Likewise.
14660 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14662 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
14664 (grub-emu-lite): Remove kern/emu/cache.S.
14666 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14668 * util/deviceiter.c (compare_devices): If the by-id link for a
14669 device couldn't be resolved, fall back to sorting by the by-id link
14670 rather than segfaulting.
14671 Reported and tested by: Daniel Mierswa.
14673 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14675 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
14676 ldflags, to fix link line ordering.
14678 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14680 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
14681 linkers are picky about this.
14683 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14685 * grub-core/Makefile.am (command.lst): Adjust sed expression
14686 ordering so that extended and priority commands aren't treated as
14689 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14691 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
14692 Remove byte-swapping function calls, which are not valid in
14693 structure initialisers.
14694 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
14696 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
14697 grub_gpt_partition_type_bios_boot.
14699 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14701 Fix test program build on GNU/kFreeBSD.
14703 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
14704 $(LIBNVPAIR)' library dependencies.
14706 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14708 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
14710 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14712 * util/grub-install.in: Remove excessive quoting that broke
14713 installations to RAID devices.
14715 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14717 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
14718 bootloader version instead of 0.
14720 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14722 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
14725 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14727 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
14728 retrieve the metadat sector if size isn't known.
14729 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14731 2010-11-18 Robert Millan <rmh@gnu.org>
14733 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
14734 with grub_memcmp().
14736 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
14738 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
14740 Reported by: Jordan Uggla.
14742 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
14744 Make better UTF compliant.
14746 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
14747 sequences as incorrect.
14748 (grub_is_valid_utf8): Likewise.
14749 (grub_utf8_to_ucs4): Likewise.
14750 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
14751 (grub_ucs4_to_utf8_alloc): Likewise.
14752 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
14754 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
14756 Make legacy_source behave like source.
14758 * grub-core/commands/legacycfg.c (legacy_file): Don't call
14760 (grub_cmd_legacy_source): Call grub_show_menu if needed.
14762 2010-11-16 Colin Watson <cjwatson@debian.org>
14764 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
14765 (-Wunused implies -Wunused-parameter, but not vice versa).
14767 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
14769 * configure.ac: Make error messages less confusing by testing for
14770 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
14771 accepted, but produces a diagnostic if something else is wrong).
14773 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
14775 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
14776 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
14778 (grub_keyboard_controller_init)
14779 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
14780 read the initial state since controller isn't inited yet.
14782 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
14784 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
14785 allocate_regbeg may need to create new chunk header.
14787 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14789 Fix quoting in legacy parser.
14791 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
14793 (grub_legacy_parse): Likewise.
14794 Reported by: Jordan Uggla.
14795 Tested by: Jordan Uggla.
14797 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14799 Don't add -lgcc on i386 and x86_64.
14801 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
14802 * conf/Makefile.common (LDADD_KERNEL): Likewise.
14803 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
14805 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14807 * configure.ac: Add -Wno-trampolines when supported.
14809 2010-11-14 Modestas Vainius <modax@debian.org>
14811 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
14814 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
14816 Add generic logical block size support for UDF.
14818 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
14819 (GRUB_UDF_BLKSZ): Removed.
14820 (struct grub_udf_data): New field "lbshift" to hold the logical block
14821 size of the file system in log2 format. All users updated.
14822 (sblocklist): Change type to unsigned.
14823 (grub_udf_mount): Change type of "sblklist" to unsigned.
14824 Move AVDP search before VRS recognition, because the latter requires
14825 knowledge of the logical block size, which is detected during the
14827 Detect and validate logical block size during AVDP search, adding
14828 support for block sizes 512, 1024 and 4096.
14829 Make VRS recognition independent of block size.
14831 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
14833 Properly handle deleted files on UDF.
14835 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
14836 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
14839 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
14841 Support reading files larger than 2 GiB.
14843 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
14844 "offset" to grub_off_t.
14845 (grub_udf_read_file): Likewise for parameter "pos".
14847 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14849 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
14851 (Simple configuration): Refer to Changes from GRUB Legacy about
14852 save_env availability.
14854 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14856 * util/grub-install.in: Ignore empty partition table detection
14857 instead of trying to include part_ module.
14859 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14861 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
14862 LVM on RAID support.
14864 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14866 Properly define WORDS_BIGENDIAN in wrapped environments.
14868 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
14870 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
14872 Reported by: Manoel Rebelo Abranches.
14873 Tested by: Manoel Rebelo Abranches.
14875 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14877 * util/grub-mkconfig.in: Fix quoting.
14879 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14881 Support big ext2 files.
14883 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
14884 (grub_ext2_read_block): Support triple indirect blocks.
14885 (grub_ext2_read_file): Use 64-bit types and read size_high.
14886 (grub_ext2_open): Read size_high.
14887 Reported by: Ximin Luo.
14888 Tested by: Manoel Rebelo Abranches.
14890 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14892 * util/grub-install.in: Handle filenames containing spaces.
14893 Reported by: Jordan Uggla.
14894 Tested by: Jordan Uggla.
14896 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14898 * util/grub-mkconfig.in (grub_script_check): New variable.
14899 Use grub_script_check instead of grub-script-check.
14900 Reported by: Barry Jackson.
14902 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14904 * docs/grub.texi (menu): Correct the order.
14905 Reported by: D. Hugh Redelmeier.
14907 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14909 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
14912 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
14914 * include/grub/elfload.h (grub_elf32_size): New parameter.
14916 Return maximum segments alignment.
14917 (grub_elf64_size): Likewise.
14918 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
14919 Return maximum segments alignment.
14920 (grub_elf64_size): Likewise.
14921 * grub-core/loader/powerpc/ieee1275/linux.c:
14922 (grub_linux_claimmap_iterate): New function. Uses the
14923 "available" property in the "memory" node for memory allocation
14924 for kernel in the PowerPC loader.
14925 (grub_linux_load32): Correctly find linux entry point offset.
14926 (grub_linux_load64): Likewise.
14928 2010-11-07 Robert Millan <rmh@gnu.org>
14930 On mips-yeeloong, build with -march=loongson2f when this flag is
14931 available (GCC >= 4.4).
14932 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
14934 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
14935 or otherwise add -march=mips3.
14937 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
14939 Suppress shell expansion on echo '*' and echo "*" like cases.
14940 Reported by: Jordan Uggla.
14942 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
14943 string arguments before shell expansion.
14944 * tests/grub_cmd_echo.in: New testcases.
14946 2010-11-07 Robert Millan <rmh@gnu.org>
14948 * conf/mips-qemu-mips.rmk: Remove stale file from previous
14951 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
14953 * grub-core/kern/emu/hostdisk.c
14954 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
14956 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14958 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
14959 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
14960 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
14962 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14964 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
14966 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14968 * util/grub-install.in: Replace useless recomendation to pass
14969 --modules with a recomendation to report a bug.
14971 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14973 Properly register serial terminfo.
14974 Reported by: Jordan Uggla
14976 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
14978 (grub_serial_terminfo_output_template): Likewise.
14979 (grub_cmd_serial): Register "serial" with terminfo.
14980 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
14981 grub_serial_terminfo_output.
14983 2010-11-05 Robert Millan <rmh@gnu.org>
14985 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
14988 2010-11-05 Robert Millan <rmh@gnu.org>
14990 On Yeeloong, pass machine type information to Linux.
14992 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
14993 (LOONGSON_MACHTYPE): New macro, set to
14994 "machtype=lemote-yeeloong-2f-8.9inches".
14995 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
14996 additional argument to Linux.
14998 2010-11-04 Robert Millan <rmh@gnu.org>
15000 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
15001 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
15002 (its SATA disks are detected as slaveless IDE master drives on
15004 Reported by Carsten Aulbert.
15006 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
15008 * util/bin2h.c (main): Fix spelling error in generated output.
15010 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
15012 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
15014 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15016 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
15017 vga= option is supplied.
15019 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15021 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
15022 * util/grub.d/10_kfreebsd.in: Likewise.
15023 * util/grub.d/10_linux.in: Likewise.
15024 * util/grub.d/20_linux_xen.in: Likewise.
15026 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15028 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
15029 argument as an argument to no-argument option.
15031 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15033 * util/grub.d/10_linux.in: Add missing load_video with explicit
15034 GRUB_GFXPAYLOAD_LINUX.
15036 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15038 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
15040 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15042 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
15043 elements with invlid index.
15044 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
15045 * grub-core/disk/raid.c (insert_array): Automatically reallocate
15047 * include/grub/raid.h (grub_raid_member): New struct.
15048 (grub_raid_array): Transform devices and start_sector into usage of
15049 grub_raid_member. All users updated
15050 (allocated_devs): New member.
15052 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15054 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
15057 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
15059 NetBSD build fix for getline function conflict from gnulib.
15061 * Makefile.util.def (libgrubkern.a): New library for grub kernel
15062 components that depend on gnulib headers.
15063 (libgrubmods.a): Renamed from earlier libgrub.a.
15064 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
15066 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15068 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
15069 install rather than creating a broken install.
15071 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15073 * util/grub-setup.c (argp): Remove misleading example of installing to
15076 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15078 * util/grub-setup.c (setup): Clarify the error message.
15080 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15082 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
15084 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
15086 * grub-core/kern/emu/misc.c
15087 (grub_make_system_path_relative_to_its_root)
15088 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
15090 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
15092 * grub-core/kern/emu/misc.c
15093 (grub_make_system_path_relative_to_its_root): Revert r2882.
15095 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
15097 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
15098 useless field head. All users updated.
15099 (free_subchunk): Correct handling of IN_REGION subchunk.
15101 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
15103 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
15104 (Supported kernels): Likewise.
15106 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
15108 Make mktemp invocations portable.
15110 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
15111 exit if mktemp fails.
15112 * tests/grub_script_blockarg.in: Likewise.
15113 * tests/partmap_test.in: Likewise.
15114 * tests/util/grub-shell-tester.in: Likewise.
15115 * tests/util/grub-shell.in: Likewise.
15116 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
15117 * Makefile.am: Likewise, and chain shell commands with `&&'
15119 * util/grub-mkrescue.in: Use the same explicit template as above, and
15120 exit if mktemp fails.
15122 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
15124 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
15125 Linux kernel, reported by Dennis Schridde.
15127 2010-10-17 Szymon Janc <szymon@janc.net.pl>
15129 * grub-core/normal/auth.c (grub_auth_check_authentication):
15130 Set-but-not-used variable removed.
15132 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15134 * docs/grub.texi (GNU/Linux): Document APM unavailability with
15135 32-bit linux protocol.
15137 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15139 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
15140 cursor shape for sanity.
15142 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15144 * docs/grub.texi (Installation): Document buggy BIOS install.
15146 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15148 * docs/grub.texi (Installation): Indent.
15150 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15152 * util/grub-setup.c (setup): New parameter allow_floppy.
15153 (arguments): New member allow_floppy.
15154 (argp_parser): Handle --allow-floppy.
15155 (main): Pass allow_floppy.
15156 * util/grub-install.in: New option --allow-floppy passed though to
15159 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15161 * util/grub-install.in: Handle partitionless disks.
15163 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15165 * util/grub-setup.c (setup): Don't clean blocklists before readability
15168 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15170 * docs/grub.texi (Installation): Document embedding zone. Remove
15171 obsolete grub-install example.
15173 2010-10-16 Szymon Janc <szymon@janc.net.pl>
15175 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
15176 Set-but-not-used variable ifdef'ed.
15177 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
15178 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
15180 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
15181 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
15182 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
15183 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
15184 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
15185 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
15186 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
15187 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
15188 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
15189 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
15190 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
15193 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15195 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
15196 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
15199 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15201 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
15202 synonym to _S5_. Needed for some DSDTs.
15204 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15206 Userspace ACPI parser debugging.
15208 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
15209 headers and add relevant defines. Don't include standard headers.
15210 (main) [GRUB_DSDT_TEST]: New function.
15211 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
15212 Don't declare functions.
15214 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15216 Remove dead grub_efi_mm_fini.
15218 * grub-core/kern/efi/mm.c (allocated_page): Removed.
15219 (ALLOCATED_PAGES_SIZE): Likewise.
15220 (MAX_ALLOCATED_PAGES): Likewise.
15221 (allocated_pages): Likewise.
15222 (grub_efi_allocate_pages): Don't record allocated pages.
15223 (grub_efi_free_pages): Likewise.
15224 (grub_efi_mm_init): Likewise.
15225 (grub_efi_mm_fini): Removed.
15227 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15229 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
15230 (grub_efi_mm_init): Take into account the memory map size increase.
15232 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15234 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
15235 (serial_hw_put): Wait based on real time rather than port reads. Don't
15237 * include/grub/serial.h (grub_serial_port): New field broken.
15239 2010-10-16 Robert Millan <rmh@gnu.org>
15241 * grub-core/kern/emu/misc.c
15242 (grub_make_system_path_relative_to_its_root): Fix premature return
15243 when processing non-root ZFS filesystems.
15244 Reported by Sergio Talens-Oliag.
15246 2010-10-15 Robert Millan <rmh@gnu.org>
15248 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
15249 guarantee compressed ones are processed first.
15251 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15253 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
15254 grub_efiemu_autocore.
15256 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15258 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
15260 (grub_console_getkey): Use correct jae opcode rather than ja.
15262 2010-10-12 Robert Millan <rmh@gnu.org>
15264 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
15265 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
15266 variable. All references updated.
15268 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
15270 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
15272 Correctly distinguish mdraid flavours.
15274 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
15275 (insert_array): New argument raid.
15276 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
15277 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
15278 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
15280 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
15282 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
15283 handling of special keys.
15285 2010-10-02 Aleš Nesrsta <starous@volny.cz>
15287 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
15288 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
15290 2010-10-02 Aleš Nesrsta <starous@volny.cz>
15292 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
15293 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
15295 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
15296 Use right endpoint when querying descriptor.
15298 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
15300 Clear out 0x80 color bit on EFI.
15302 Reported by: decoder and meta tech.
15304 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
15305 (grub_console_setcolorstate): Clear out 0x80 bit.
15306 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
15307 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
15308 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
15310 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
15312 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
15315 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15317 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
15318 mo_file after freeing.
15320 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15322 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
15324 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15326 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
15329 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15331 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
15334 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15336 Put terminfo into core on ieee1275 and yeeloong (needed for console).
15338 * gentpl.py: New groups terminfoinkernel and terminfomodule.
15339 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
15340 and terminfo.h when needed.
15341 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
15342 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
15343 (terminfo): Enable only on terminfokernel.
15344 (extcmd): Likewise.
15345 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
15346 * include/grub/lib/arg.h: Likewise.
15347 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
15348 incorrect usage of ->.
15350 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15352 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
15353 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
15355 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15357 Fix coreboot compilation.
15359 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
15360 Take VBE info into account even if only text is supported.
15361 (fill_vbe_info): Take into account the case when only VGA text
15363 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
15364 on coreboot, multiboot and qemu.
15366 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15368 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
15370 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
15372 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15374 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
15377 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15379 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
15380 if they were BSD-style.
15382 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15384 * grub-core/boot/i386/pc/lnxboot.S: Replace
15385 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
15386 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
15388 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15390 Write embedding zone using Reed-Solomon.
15392 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
15393 * grub-core/Makefile.am (rs_decoder.S): New target.
15394 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
15395 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
15396 (multiboot): Move to RS part.
15397 (post_reed_solomon): New label.
15398 (grub_boot_drive): Move to non-RS part since it's modified in memory
15400 Include rs_decoder.S.
15401 * grub-core/lib/reed_solomon.c: New file.
15402 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
15404 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
15405 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
15406 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
15407 * include/grub/partition.h (grub_partition_map): Change prototype of
15408 embed to allow returning additional sectors.
15409 * include/grub/reed_solomon.h: New file.
15410 * util/grub-setup.c (setup): Handle Reed-Solomon.
15412 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
15414 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
15415 i386 and x86-64 definedness tests.
15417 2010-09-27 Yves Blusseau <blusseau@zetam.org>
15419 Fix generation of kernel_syms.lst
15421 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
15424 2010-09-26 Robert Millan <rmh@gnu.org>
15426 Support degraded ZFS arrays in "grub-probe -t device" resolution.
15428 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
15429 the pool is an array of devices, iterate through it and return the
15430 first device that passes a stat() test (instead of blindly returning
15433 2010-09-26 Robert Millan <rmh@gnu.org>
15435 Build fixes for GNU/kFreeBSD.
15437 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
15438 to programs that require ZFS conversion.
15439 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
15440 kernels that don't have FLOPPY_MAJOR.
15442 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
15444 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
15446 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
15448 Fix grub-emu build.
15450 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
15451 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
15452 mdraid09 and mdraid1x.
15454 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
15456 Re-enable grub-extras.
15458 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
15459 avoid confusing Automake. Run autogen only twice, once for the top
15460 level and once for grub-core. Add Makefile.util.def and
15461 Makefile.core.def from extra modules to the appropriate autogen
15462 invocations. If Makefile.common exists in an extra module, include
15463 it in both Makefile.util.am and grub-core/Makefile.core.am;
15464 similarly, include any Makefile.util.common file in Makefile.util.am
15465 and any Makefile.core.common file in grub-core/Makefile.core.am.
15466 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
15467 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
15468 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
15469 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
15471 * gentpl.py (gvar_add): Turn GVARS into a set.
15472 (global_variable_initializers): Sort global variables on output.
15473 (vars_init): New function.
15474 (first_time): Likewise.
15475 (library): Ensure that non-global variable initialisations are
15476 emitted before the first time we emit code for a library block.
15477 Append to variables rather than setting them. Only emit
15478 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
15479 each conditional path.
15480 (program): installdir() emits an Autogen macro, so must be passed to
15481 var_add rather than gvar_add.
15483 (script): Likewise.
15484 (rules): New function, centralising handling for different target
15485 types. Set up Guile association lists for first_time and vars_init,
15486 and send most output to a diversion so that variable initialisations
15487 can be emitted first.
15488 (module_rules): Use new rules function.
15489 (kernel_rules): Likewise.
15490 (image_rules): Likewise.
15491 (library_rules): Likewise.
15492 (program_rules): Likewise.
15493 (script_rules): Likewise.
15494 (data_rules): Likewise.
15496 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
15498 * .bzrignore: Add contrib and grub-core/contrib. Remove
15499 grub-core/Makefile.gcry.am.
15501 2010-09-24 Yves Blusseau <blusseau@zetam.org>
15503 * grub-core/lib/LzFind.c: Add missing include.
15504 * grub-core/lib/LzmaEnc.c: Likewise.
15505 * grub-core/script/lexer.c: Likewise.
15506 * grub-core/script/yylex.l: Likewise.
15507 * util/grub-macho2img.c: Likewise.
15508 * util/grub-menulst2cfg.c: Likewise.
15509 * util/grub-mklayout.c: Likewise.
15510 * util/grub-mkpasswd-pbkdf2.c
15511 * util/grub-mkrelpath.c: Likewise.
15512 * util/resolve.c: Likewise.
15514 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
15516 * Makefile.util.def (example_unit_test): Add
15517 grub-core/gnulib/libgnu.a.
15519 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
15521 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
15523 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
15525 Support xz compression on yeeloong.
15527 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
15528 * configure.ac: Check for LZMA.
15529 * grub-core/Makefile.core.def (xz_decompress): New target.
15530 (none_decompress): Likewise.
15531 * grub-core/boot/decompressor/minilib.c: New file.
15532 * grub-core/boot/decompressor/none.c: Likewise.
15533 * grub-core/boot/decompressor/xz.c: Likewise.
15534 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
15535 * grub-core/kern/mips/cache_flush.S: Likewise.
15536 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
15537 * grub-core/kern/mips/startup.S: Move first stage to ...
15538 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
15540 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
15541 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
15542 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
15543 Allocate statically.
15544 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
15545 Allocate statically or use scratch. Don't check CRC32.
15546 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
15547 Allocate statically. Don't check CRC32.
15548 * include/grub/decompressor.h: New file.
15549 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
15551 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
15552 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
15553 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
15554 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
15555 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
15556 * util/grub-mkimage.c (grub_compression_t): New type.
15557 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
15558 (image_target_desc): New field default_compression.
15559 (image_targets): Adjust yeeloong targets.
15560 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
15561 (compress_kernel): New parameter comp.
15562 (generate_image): Likewise. Handle new compression case.
15563 (options): New option --compression
15565 (main): Handle new option.
15567 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
15569 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
15571 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
15573 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
15574 typo in __i386__ conditional.
15576 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
15578 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
15581 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
15583 Implement EFI and ACPI multiboot2 extensions.
15585 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
15586 new tags as supported.
15587 (acpiv2_size): New function.
15588 (grub_multiboot_get_mbi_size): Take new tags into account.
15589 (grub_multiboot_make_mbi): Add new tags.
15590 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
15592 2010-09-21 Aleš Nesrsta <starous@volny.cz>
15594 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
15595 Added missing configuration of USB device.
15597 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15599 * grub-core/normal/menu_entry.c (run): Make sure we always return
15602 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15604 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
15605 NumberOfPages is UINT64 according to the UEFI specification, not
15606 UINTN. Fix printf format.
15608 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15610 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
15611 `err' to grub_usb_err_t.
15612 Reported and tested by: KESHAV P.R.
15614 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15616 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
15617 tpart non-const, so that we can assign to it. (Since this is a
15618 typedef, the constness refers to the pointer rather than what it
15621 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15623 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
15624 $(top_srcdir)/grub-core/gnulib as well as
15625 $(top_builddir)/grub-core/gnulib.
15626 Reported by: KESHAV P.R.
15628 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15630 * util/grub-install.in: Fix the bootloader ID option to be
15631 consistently --bootloader-id, not --bootloader_id.
15632 Reported by: KESHAV P.R.
15634 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15636 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
15637 check hash checksum." consistently translatable.
15639 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15641 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
15644 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15646 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
15647 (GRUB_MOD_INIT): Register sha1sum command.
15648 (GRUB_MOD_FINI): Unregister sha1sum command.
15650 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15652 Keep boot and grub directory names in sync with utils scripts
15654 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
15655 * config.h.in: Add previous macros.
15656 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
15657 * util/grub-install.in: Use $bootdir and $grubdir variables.
15659 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15661 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
15662 convert partition names to disk names if the new `convert' parameter
15664 (grub_util_biosdisk_get_grub_dev): If opening the disk device
15665 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
15666 disk in its own right. This can happen with Xen disk images.
15668 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15670 * util/grub-editenv.c: Update strings to avoid warnings when generating
15672 * util/grub-setup.c: Likewise.
15674 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
15676 * configure.ac: Change version to 1.99~beta0.
15678 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
15680 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
15682 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
15684 * include/multiboot.h: Resynced with specification.
15685 * include/multiboot2.h: Likewise.
15687 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15689 Fix po directory handling.
15691 * configure.ac: Create po/Makefile.in rather than po/Makefile.
15692 * grub-core/gnulib/Makefile.am: Import gettext module.
15693 * m4/gnulib-cache.m4: Likewise.
15694 * m4/gnulib-comp.m4: Likewise.
15695 * m4/gettext.m4: New file, from gnulib.
15696 * m4/glibc2.m4: Likewise.
15697 * m4/iconv.m4: Likewise.
15698 * m4/intdiv0.m4: Likewise.
15699 * m4/intl.m4: Likewise.
15700 * m4/intldir.m4: Likewise.
15701 * m4/intlmacosx.m4: Likewise.
15702 * m4/intmax.m4: Likewise.
15703 * m4/inttypes-pri.m4: Likewise.
15704 * m4/lcmessage.m4: Likewise.
15705 * m4/lib-ld.m4: Likewise.
15706 * m4/lib-link.m4: Likewise.
15707 * m4/lib-prefix.m4: Likewise.
15708 * m4/lock.m4: Likewise.
15709 * m4/nls.m4: Likewise.
15710 * m4/po.m4: Likewise.
15711 * m4/printf-posix.m4: Likewise.
15712 * m4/progtest.m4: Likewise.
15713 * m4/threadlib.m4: Likewise.
15714 * m4/uintmax_t.m4: Likewise.
15715 * m4/visibility.m4: Likewise.
15716 * po/Makefile.am: Remove.
15717 * po/Makefile.in.in: New file, from gettext.
15718 ($(DOMAIN).pot-update): Support POTFILES-shell.
15719 * po/Makevars: New file.
15720 * po/POTFILES-shell: Rename to ...
15721 * po/POTFILES-shell.in: ... this. Update.
15722 * po/POTFILES: Rename to ...
15723 * po/POTFILES.in: ... this. Update.
15724 * po/Rules-quot: New file, from gettext.
15725 * po/boldquot.sed: Likewise.
15726 * po/en@boldquot.header: Likewise.
15727 * po/en@quot.header: Likewise.
15728 * po/insert-header.sin: Likewise.
15729 * po/quot.sed: Likewise.
15730 * po/remove-potcdate.sin: Likewise.
15732 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15734 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
15736 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15738 * util/grub.d/20_linux_xen.in: Use submenus.
15740 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15744 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
15745 parameter submenu. All users updated.
15746 * grub-core/normal/main.c (free_menu): Rename to ...
15747 (grub_normal_free_menu): ... this. Made global.
15748 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
15750 * grub-core/normal/menu_entry.c (screen): New field submenu.
15751 (make_screen): Set submenu.
15752 (run): Open new context if requested.
15753 * include/grub/menu.h (grub_menu_entry): New field submenu.
15754 * include/grub/normal.h (grub_normal_free_menu): New proto.
15756 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15758 Menu entries extractor.
15760 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
15762 (GRUB_MOD_INIT): Register new variants.
15763 (GRUB_MOD_FINI): Unregister new variants.
15764 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
15765 into grub_cmd_legacy_source.
15766 (grub_cmd_legacy_source): Implement extractor variants.
15767 (GRUB_MOD_INIT): Register new variants.
15768 (GRUB_MOD_FINI): Unregister new variants.
15769 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
15771 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
15772 search as an extractor.
15773 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
15774 test as an extractor.
15775 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
15777 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
15778 (grub_env_new_context): New function.
15779 (grub_env_context_open): Likewise.
15780 (grub_env_extractor_open): Likewise.
15781 (grub_env_extractor_close): Likewise.
15782 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
15783 grub_extractor_level.
15784 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
15785 * include/grub/env.h (grub_env_extractor_open): New proto.
15786 (grub_env_extractor_close): Likewise.
15787 * include/grub/normal.h (grub_extractor_level): New external variable.
15789 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15791 Make cutmem accept a region specification.
15792 Suggested by: Samuel Thibault
15794 * grub-core/mmap/mmap.c (parsemem): New function.
15795 (grub_cmd_cutmem): Handle new arguments.
15797 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15799 New command cutmem.
15801 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
15802 (GRUB_MOD_INIT): Register new command.
15803 (GRUB_MOD_FINI): Unregister new command.
15805 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15807 Support some annoying BSD and Minix subpartitions.
15809 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
15810 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
15811 Properly handle concatenation.
15812 * grub-core/kern/device.c (grub_device_iterate): Likewise.
15813 * grub-core/normal/completion.c (iterate_partition): Likewise.
15814 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
15815 contain partition. All users updated.
15816 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
15818 (grub_openbsdlabel_partition_map): Likewise.
15819 (bsdlabel_partition_map_iterate): Rename to ..
15820 (iterate_real): ... this. New arguments sector, freebsd and pmap.
15821 (bsdlabel_partition_map_iterate): New function.
15822 (netopenbsdlabel_partition_map_iterate): Likewise.
15823 (netbsdlabel_partition_map_iterate): Likewise.
15824 (openbsdlabel_partition_map_iterate): Likewise.
15825 (GRUB_MOD_INIT): Register new partmaps.
15826 (GRUB_MOD_FINI): Unregister new partmaps.
15827 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
15828 (grub_partition_msdos_iterate): ... this. All users updated.
15829 Don't support embedding other than in a minix partition.
15830 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
15832 * include/grub/partition.h (grub_partition): New field msdostype.
15833 * util/grub-install.in: Handle openbsd and netbsd types being in
15836 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15838 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
15840 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
15841 * grub-core/Makefile.core.def (mdraid): Renamed to ...
15842 (mdraid09): ... this.
15843 (mdraid1x): New module.
15844 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
15845 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
15847 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15849 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
15852 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15854 * grub-core/commands/efi/lsefimmap.c: Correct header.
15857 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15859 * util/grub-editenv.c (argp_parser): Don't pass translated strings
15860 as printf format strings; the translations might contain '%' which
15861 could cause a crash.
15863 * util/grub-fstest.c (argp_parser): Likewise.
15864 * util/grub-setup.c (argp_parser): Likewise.
15867 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15869 Use argp in grub-fstest.
15871 * util/grub-fstest.c: Don't include getopt.h.
15873 (root): New variable.
15874 (args_count): Likewise.
15876 (num_disks): Likewise.
15877 (images): Likewise.
15879 (debug_str): Likewise.
15881 (options): Transformed to argp.
15883 (main): Split argument parsing into ...
15884 (argp_parser): ... this. Changed to argp format.
15885 (argp): New variable.
15886 (main): Use argp_parse.
15888 2010-09-20 Tristan Gingold <gingold@free.fr>
15889 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
15890 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15892 * grub-core/commands/efi/lsefimmap.c: New file.
15893 * grub-core/Makefile.core.def (lsefimmap): New module.
15894 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
15896 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15898 Pause the execution (10s max) if any errors are displayed so the user
15899 has a chance to see them.
15901 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
15902 (grub_print_error): Increment grub_err_printed_errors.
15903 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
15904 execution if any errors were displayed.
15905 (show_menu): Remove old code for pause.
15906 * grub-core/normal/menu_entry.c (run): Likewise.
15907 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
15909 (grub_normal_get_char_counter): Likewise.
15910 * include/grub/err.h (grub_err_printed_errors): New external variable.
15911 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
15913 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15915 Support multiboot VBE info.
15917 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
15918 Take VBE info into account.
15919 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
15920 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
15921 Call fill_vbe_info when appropriate.
15922 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
15923 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
15925 (grub_multiboot_get_mbi_size): Take new tags into account.
15926 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
15927 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
15928 Call fill_vbe_tag when appropriate.
15929 (grub_multiboot_make_mbi): Properly align tags.
15930 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
15932 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
15934 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
15936 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15938 Suport manual terminal geometry specification.
15940 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
15941 Save state in grub_ofconsole_terminfo_output.
15942 (grub_ofconsole_term): Use grub_terminfo_getwh.
15943 (grub_ofconsole_getwh): Removed.
15944 * grub-core/term/serial.c (grub_serial_getwh): Removed.
15945 (grub_serial_term): Use grub_terminfo_getwh.
15946 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
15947 (options): New struct.
15948 (OPTION_*): New enum.
15949 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
15950 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
15952 (grub_terminfo_getwh): New proto.
15953 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
15955 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15957 Handle legacy "terminal" command.
15959 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
15961 (legacy_commands): Add terminal and title.
15962 (grub_legacy_parse): Handle terminal. Simplify title handling.
15964 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15966 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
15967 parameters overflow.
15969 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15971 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
15974 * docs/grub.texi (Shell-like scripting): Document `!'.
15975 (Network): Simplify using new i386-pc-pxe format. Mention
15980 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15982 * Makefile.am (SUBDIRS): Restore "."; it's important to force
15983 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
15986 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15988 * grub-core/commands/efi/lsefisystab.c: Correct header.
15989 * grub-core/commands/efi/lssal.c: Likewise.
15990 * grub-core/commands/testload.c: Likewise.
15992 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15994 * util/grub-mkrescue.in: Add explicit root argument to --set to
15995 prevent the UUID being interpreted as an argument to --set (matches
15996 previous change to prepare_grub_to_access_device).
15998 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16000 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
16001 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
16002 the verbosity of later #ifs.
16003 (find_partition_start): Define this function on FreeBSD too.
16004 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
16006 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
16009 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16011 * util/grub-editenv.c: Use argp instead of getopt.
16013 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16015 * util/grub-setup.c: Use argp instead of getopt.
16017 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16019 Use gnulib-tool to create gnulib source files.
16021 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
16022 grub-core/gnulib directories
16023 * .bzignore: Add **/.deps and autogenerated gnulib files
16024 * configure.ac: Assign auxiliary directory to build-aux, add invocation
16025 of gnulib macros, add grub-core/gnulib/Makefile
16026 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
16027 include m4 directory to aclocal.
16028 * Makefile.util.def: Remove direct compilation of gnulib source files
16029 and use the new grub-core/gnulib/libgnu.a.
16030 * build-aux/config.rpath: move config.rpath from top directory to
16032 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
16034 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
16035 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
16036 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
16038 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
16041 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16043 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
16044 grub-core/genmod.sh and grub-core/gensyminfo.sh
16046 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
16048 Add a test for echo command options.
16050 * tests/grub_cmd_echo.in: New test.
16051 * Makefile.util.def: Rules for new test.
16053 2010-09-20 Szymon Janc <szymon@janc.net.pl>
16055 Remove crc.mod and move crc command to hashsum.mod.
16056 Remove lib/crc.c - users updated to use gcrypt implementation.
16058 * grub-core/commands/crc.c: Removed.
16059 * grub-core/Makefile.core.def (crc): Module removed.
16060 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
16061 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
16062 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
16063 * grub-core/lib/crc.c: Removed.
16064 * include/grub/lib/crc.h: Removed.
16065 * Makefile.util.def (crc): Remove lib/crc.c
16066 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
16067 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
16068 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
16069 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
16070 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
16071 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
16073 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16075 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
16077 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16079 Split config.h for util and core.
16081 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
16082 (ADDR32): Likewise.
16083 (DATA32): Likewise.
16084 (BSS_START_SYMBOL): Likewise.
16085 (END_SYMBOL): Likewise.
16086 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
16087 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
16088 * config.h.in: New file.
16089 * configure.ac: Use config-util.h as config define file.
16090 Rename MACHINE into GRUB_MACHINE. All users updated.
16091 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
16093 (NESTED_FUNC_ATTR): Likewise.
16094 Substitue new variables.
16095 (COND_HAVE_ASM_USCORE): New conditional.
16096 * grub-core/Makefile.am (ASM_PREFIX): New variable.
16097 (kernel_syms.lst): Use ASM_PREFIX.
16098 * grub-core/kern/emu/console.c: Include config-util.h.
16099 * grub-core/kern/emu/misc.c: Likewise.
16100 * grub-core/kern/emu/mm.c: Likewise.
16101 * include/grub/emu/misc.h: Likewise.
16102 * include/grub/libgcc.h: Likewise.
16104 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16106 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
16108 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
16109 Fix GRUB_TERM_KEY_* constants usage.
16110 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
16112 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16114 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
16116 * grub-core/bus/usb/uhci.c: Remove empty define.
16117 (grub_uhci_check_transfer): Add missing cast.
16118 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
16120 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
16122 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
16124 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16126 * grub-core/Makefile.core.def (legacycfg): Add
16127 lib/i386/pc/vesa_modes_table.c on emu.
16129 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
16131 Reduce number of temporary files generated by build system.
16133 * grub-core/gencmdlist.sh: Removed.
16134 * grub-core/genfslist.sh: Removed.
16135 * grub-core/genhandlerlist.sh: Removed.
16136 * grub-core/genmodsrc.sh: Removed.
16137 * grub-core/genpartmaplist.sh: Removed.
16138 * grub-core/genparttoollist.sh: Removed.
16139 * grub-core/gentermiinallist.sh: Removed.
16140 * grub-core/genvideolist.sh: Removed.
16142 * grub-core/genmod.sh.in: New file.
16143 * grub-core/gensyminfo.sh.in: New file.
16145 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
16146 * conf/Makefile.extra-dist: Update with new files.
16147 * gentpl.py: Remove rules related to unnecessary temporary files.
16148 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
16150 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
16152 * grub-core/bus/usb/uhci.c: Remove empty #define.
16153 * grub-core/genmoddep.awk: Updated with new syminfo format.
16154 * util/bash-completion.d/Makefile.am: Add config.log to
16157 2010-09-19 Yves Blusseau <blusseau@zetam.org>
16159 * Makefile.util.def: Add forgotten $(LIBINTL) library.
16161 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
16163 * util/grub-mkconfig.in: Check the config script for syntax errors
16166 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
16167 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16169 * Makefile.util.def (grub-install): Use util/grub-install.in on all
16171 * util/grub-install.in: Add EFI and IEEE1275 support.
16172 * util/i386/efi/grub-install.in: Removed.
16173 * util/ieee1275/grub-install.in: Likewise.
16175 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16177 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
16178 (grub_cmd_cmosclean): Likewise.
16179 (GRUB_MOD_INIT): Register command cmosclean.
16180 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
16181 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
16183 2010-09-18 Carles Pina i Estany <carles@pina.cat>
16184 2010-09-18 Aleš Nesrsta <starous@volny.cz>
16185 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16187 Add keyboard layouts support.
16189 * Makefile.util.def (grub-mklayout): New file.
16190 (grub-kbdcomp): New script.
16191 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
16192 Add keyboard_layouts.h.
16193 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
16194 commands/boot.c on yeeloong.
16195 (keylayouts): New module.
16196 * grub-core/bus/usb/ohci.c
16197 * grub-core/bus/usb/uhci.c
16198 * grub-core/bus/usb/usbhub.c (rescan): New variable.
16199 (grub_usb_add_hub): Poll interrupt pipe for device handling.
16200 (attach_root_port): Likewise.
16201 (poll_nonroot_hub): Likewise.
16202 (grub_usb_poll_devices): Likewise.
16203 (detach_device): Close transfer.
16204 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
16206 (grub_usb_bulk_setup_readwrite): Likewise.
16207 (grub_usb_bulk_finish_readwrite): Likewise.
16208 * grub-core/commands/keylayouts.c: New file.
16209 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
16210 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
16212 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
16213 support scancode 2.
16214 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
16215 * include/grub/keyboard_layouts.h: New file.
16216 * util/grub-mklayout.c: New file.
16217 * util/grub-kbdcomp.in: Likewise.
16219 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16221 Unify memory types.
16223 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
16224 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
16226 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
16227 (grub_upper_mem): Likewise.
16228 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
16229 * include/grub/memory.h (grub_memory_type_t): New enum.
16232 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16234 * grub-core/Makefile.core.def (lsapm): New module.
16235 * grub-core/commands/i386/pc/lsapm.c: New file.
16236 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
16237 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
16239 * include/grub/i386/pc/apm.h: New file.
16240 * include/multiboot.h (multiboot_apm_info): New struct.
16242 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16244 GRUB-legacy configuration file support.
16246 * Makefile.util.def (grub-menulst2cfg): New util.
16247 * docs/man/grub-menulst2cfg.h2m: New file.
16248 * grub-core/Makefile.core.def (legacycfg): New module.
16249 * grub-core/commands/legacycfg.c: New file.
16250 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
16251 (grub_normal_add_menu_entry): ... this.
16252 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
16253 (grub_normal_set_password): ...this.
16254 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
16255 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
16256 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
16257 * grub-core/lib/legacy_parse.c: New file.
16258 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
16259 * include/grub/i386/pc/vesa_modes_table.h: New file.
16260 * include/grub/legacy_parse.h: Likewise.
16261 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
16262 * util/grub-menulst2cfg.c: New file.
16264 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
16266 * grub-core/kern/emu/hostdisk.c
16267 (convert_system_partition_to_system_disk): Initialise node.
16269 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
16271 * grub-core/kern/emu/hostdisk.c
16272 (convert_system_partition_to_system_disk): Fix devmapper memory pool
16274 Reported and based on patch by: Modestas Vainius.
16276 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
16278 Fix DM-RAID probing with recent versions of device-mapper udev
16281 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
16282 canonicalise device paths under /dev/mapper/.
16283 (convert_system_partition_to_system_disk): Compare the
16284 uncanonicalised path to /dev/mapper/ rather than the canonicalised
16285 path, since device nodes under /dev/mapper/ are often symlinks.
16287 2010-09-17 Yves Blusseau <blusseau@zetam.org>
16289 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
16291 2010-09-16 Yves Blusseau <blusseau@zetam.org>
16293 * configure.ac: Avoid some annoying error messages if freetype-config
16294 program is not found.
16296 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16298 Support RAID on virtio devices, and others.
16300 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
16302 [__MINGW32__] (grub_find_device): ... this.
16303 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
16304 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
16305 reasonable default if dir is NULL.
16306 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
16308 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
16309 (grub_guess_root_device): Update callers.
16310 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
16312 * util/raid.c (grub_util_getdiskname): Remove.
16313 (grub_util_raid_getmembers): Use grub_find_device rather than
16314 grub_util_getdiskname.
16316 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16318 * docs/grub.texi (serial): Remove obsolete comment about GRUB
16319 needing to be compiled with serial support.
16320 (ls): Indicate that multiple files are accepted.
16321 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
16322 indicate that multiple files are accepted.
16324 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16326 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
16327 libgrub_a_init.c, and util/bash-completion.d/grub.
16329 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16331 * util/grub-setup.c (setup): Fix incorrect container semantics.
16333 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16335 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
16337 Reported by: J. Nick Terry
16339 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16341 Move embedding routines to partmap sources files.
16343 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
16344 [GRUB_UTIL]: New variable.
16345 (gpt_partition_map_iterate): Set part.parent.
16346 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
16347 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
16348 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
16350 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
16351 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
16352 (grub_partition_map) [GRUB_UTIL]: New field embed.
16353 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
16354 (setup): Use ->embed.
16356 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16358 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
16360 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
16361 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
16363 2010-09-15 Yves Blusseau <blusseau@zetam.org>
16365 Add function to get completions from usage.
16367 * util/bash-completion.d/grub-completion.bash.in: Add function to get
16368 completions from usage. Use LC_ALL=C to get options properly.
16370 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16372 * grub-core/gnulib/basename-lgpl.c: Imported.
16373 * grub-core/gnulib/basename.c: Likewise.
16374 * grub-core/gnulib/dirname-lgpl.c: Likewise.
16375 * grub-core/gnulib/dirname.c: Likewise.
16376 * grub-core/gnulib/dirname.h: Likewise.
16377 * grub-core/gnulib/stripslash.c: Likewise.
16379 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16381 * grub-core/gnulib/error.c: Resynced.
16382 * grub-core/gnulib/getopt.c: Likewise.
16383 * grub-core/gnulib/getopt_int.h: Likewise.
16384 * grub-core/gnulib/regex.h: Likewise.
16385 * grub-core/gnulib/regex_internal.c: Likewise.
16386 * grub-core/gnulib/regex_internal.h: Likewise.
16388 2010-09-15 Szymon Janc <szymon@janc.net.pl>
16390 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
16391 CRC calculations and validity checks.
16392 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
16395 2010-09-15 Szymon Janc <szymon@janc.net.pl>
16397 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
16399 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16401 Fix incorrect echo options handling.
16402 Reported by: Yves Blusseau.
16404 * include/grub/command.h (grub_command_flags_t): New flags
16405 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
16406 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
16407 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
16409 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16411 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
16413 (GRUB_COMMAND_FLAG_MENU): Likewise.
16414 (GRUB_COMMAND_FLAG_BOTH): Likewise.
16415 (GRUB_COMMAND_FLAG_TITLE): Removed.
16416 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
16417 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
16418 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
16419 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
16420 (grub_command_flags_t): New enum. All users updated.
16422 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
16424 Fix solaris compilation.
16426 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
16427 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
16428 (grub-emu-list): Likewise.
16430 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16432 Remove deprecated root command.
16434 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
16437 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16439 * util/i386/pc/grub-setup.c: Merge this ...
16440 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
16441 * util/grub-setup.c: ... into this.
16442 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
16445 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16447 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
16450 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16452 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
16455 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16457 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
16458 explicit root argument to set to prevent UUID to be interpreted as
16461 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16463 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
16465 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16467 Don't export grub_gate_a20.
16469 * grub-core/kern/i386/pc/init.c: Remove leftovers.
16470 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
16472 (grub_gate_a20): ... this. All users updated.
16473 * include/grub/i386/pc/init.h: Removed. All users updated.
16475 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16477 Create euro.pf2 which supports most European languages.
16479 * Makefile.am (grubdata_DATA): Add euro.pf2.
16480 (euro.pf2): New target.
16481 (CLEANFILES): Add euro.pf2.
16483 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16485 * configure.ac: Disable emu-usb by default to prevent inadvertent
16488 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16490 Disable usbserial on grub-emu since our libusb code isn't good enough
16493 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
16494 (usbserial_pl2303): Likewise.
16495 (usbserial_ftdi): Likewise.
16497 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16499 * include/grub/disk.h (grub_disk): Remove has_partitions.
16501 * disk/loopback.c (grub_loopback): Remove has_partitions.
16503 (options): Remove partitions. All users updated.
16504 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
16505 * util/i386/pc/grub-setup.c (setup): copy partition table only when
16506 actual partition table is found.
16508 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16510 Remove readability checks (too many false negatives).
16512 * util/grub-install.in: Remove readability checks.
16513 * util/grub-mkconfig.in: Likewise.
16514 * util/grub.d/10_hurd.in: Likewise.
16515 * util/grub.d/10_kfreebsd.in: Likewise.
16516 * util/grub.d/10_linux.in: Likewise.
16517 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
16520 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16522 Enable acpi shutdown on all ACPI platforms.
16524 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
16525 on coreboo, multiboot and EFI.
16526 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
16527 (grub_acpi_halt): Likewise.
16528 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
16529 (grub_cmd_halt): Don't call grub_acpi_halt directly.
16530 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
16531 * grub-core/lib/i386/halt.c (grub_halt)
16532 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
16534 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16536 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
16539 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16541 * grub-core/video/efi_gop.c: Fix over-80-chars line.
16542 * grub-core/video/efi_uga.c: Likewise.
16544 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16546 Filter devaliases and never open same device twice.
16548 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
16549 (last_ihandle): Likewise.
16550 (ofdisk_hash_ent): New member shortest.
16551 (ofdisk_hash_add): Add canonical path too.
16552 (scan): New function.
16553 (grub_ofdisk_iterate): Iterate over hashed entries.
16554 (compute_dev_path): Don't add :0.
16555 (grub_ofdisk_open): Don't really open the disk.
16556 (grub_ofdisk_close): Avoid closing unrelated disk.
16557 (grub_ofdisk_read): Implement reopen logic.
16558 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
16560 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
16563 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16567 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
16568 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
16569 right address. Add sparc64_ieee1275_ldflags.
16570 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
16571 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
16572 to grub_host_to_target_addr
16573 (load_image): Likewise.
16575 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16577 * grub-core/normal/completion.c (complete_file): Handle device
16579 Fix based on patch by Doug Nazar.
16581 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16583 grub-mknetdir script.
16585 * Makefile.util.def (grub-mknetdir): New module.
16586 * tests/util/grub-shell.in: Support boot=net
16587 * util/grub-mknetdir.in: New file.
16589 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16591 videoinfo on non-vbe.
16593 * grub-core/Makefile.core.def (vbeinfo): Removed.
16594 (vbetest): Removed.
16595 (videoinfo): New module.
16596 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
16597 * grub-core/commands/i386/pc/vbetest.c: Removed.
16598 * grub-core/commands/videoinfo.c: New file.
16599 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
16601 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
16603 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
16604 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
16605 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
16606 mode_number. New parameter mode. All users updated.
16607 (grub_video_gop_iterate): New function.
16608 (grub_video_efi_gop): New member iterate.
16609 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
16610 (grub_vbe_set_video_mode): Remove setting useless fields.
16611 (vbe2videoinfo): New function.
16612 (grub_video_vbe_iterate): Likewise.
16613 (grub_video_vbe_setup): Use vbe2videoinfo.
16614 (grub_video_vbe_print_adapter_specific_info): New function.
16615 (grub_video_vbe_adapter): New fields iterate and
16616 print_adapter_specific_info.
16617 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
16619 (grub_video_mode_info): New field mode_number.
16620 (grub_video_adapter): New fields iterate and
16621 print_adapter_specific_info.
16623 2010-09-13 Tristan Gingold <gingold@free.fr>
16624 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
16625 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16627 * grub-core/commands/efi/lsefisystab.c: New file.
16628 * grub-core/commands/efi/lssal.c: Likewise.
16629 * grub-core/Makefile.core.def (lsacpi): New module.
16630 (lsefisystab): Likewise.
16631 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
16632 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
16633 (grub_efi_sal_system_table): New struct.
16634 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
16635 (grub_efi_sal_system_table_memory_descriptor): Likewise.
16636 (grub_efi_sal_system_table_platform_features): Likewise.
16637 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
16638 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
16639 (grub_efi_sal_system_table_ap_wakeup): Likewise.
16640 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
16642 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16644 Support explicit user claim that a device is BIOS-visible.
16646 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
16647 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
16648 * grub-core/kern/emu/hostdisk.c
16649 (convert_system_partition_to_system_disk): Support mdX.
16650 (find_system_device): New parameter add. All users updated.
16651 (grub_util_biosdisk_is_present): New function.
16652 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
16655 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16657 Search hints support.
16659 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
16662 2010-09-13 Yves Blusseau <blusseau@zetam.org>
16664 Bash completion script for util commands
16666 * Makefile.am: Add util/bash-completion.d directory
16667 * configure.ac: Likewise.
16668 * util/bash-completion.d/Makefile.am: New file.
16669 * util/bash-completion.d/grub-completion.bash.in: Likewise.
16671 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16673 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
16674 (print_backlog): set backlog_ucs4 and backlog_glyphs.
16675 Reported by: Yves Blusseau.
16677 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16679 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
16680 partition size and offset.
16682 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16684 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
16686 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16688 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
16690 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16692 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
16693 (grub_xvasprintf): Likewise.
16695 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16697 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
16699 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16701 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
16702 args ending with NULL.
16704 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16706 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
16709 2010-09-11 Szymon Janc <szymon@janc.net.pl>
16711 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
16713 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16715 Shutdown using ACPI.
16717 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
16718 * grub-core/commands/acpihalt.c: New file.
16719 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
16720 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
16721 (grub_acpi_halt): New proto.
16722 (GRUB_ACPI_SLP_EN): New const.
16723 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
16724 (GRUB_ACPI_OPCODE_*): New enum.
16725 (GRUB_ACPI_EXTOPCODE_*): Likewise.
16727 2010-09-11 Tristan Gingold <gingold@free.fr>
16728 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
16729 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16731 * commands/lsacpi.c: New file.
16732 * grub-core/Makefile.core.def (lsacpi): New module.
16733 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
16734 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
16735 (grub_acpi_madt_entry_header): New struct.
16736 (grub_acpi_madt): Likewise.
16737 (grub_acpi_madt_entry_interrupt_override): Likewise.
16738 (grub_acpi_madt_entry_sapic): Likewise.
16739 (grub_acpi_madt_entry_lsapic): Likewise.
16740 (grub_acpi_madt_entry_platform_int_source): Likewise.
16741 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
16742 (PRIuGRUB_UINT32_T): Likewise.
16743 (PRIxGRUB_UINT64_T): Likewise.
16745 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16747 Implement loading palette on ieee1275_fb.
16749 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
16750 (have_setcolors): Likewise.
16751 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
16752 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
16753 (grub_video_ieee1275_set_palette): Implement.
16755 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16756 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
16758 * util/grub-install.in (grub_partition): New variable.
16759 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
16760 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
16761 Fixes a bug reported by Yves Blusseau.
16763 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16767 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
16768 =grub_cpu_flush_cache on all mips and not only yeeloong.
16769 * configure.ac (COND_mips): New conditional.
16770 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
16772 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
16773 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
16774 [GRUB_LINKER_HAVE_INIT]: New function.
16775 (grub_emu_post_init): Likewise.
16776 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
16777 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
16778 * include/grub/cache.h (_mips): Include mips/cache.h.
16779 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
16780 LVM and RAID prototypes.
16781 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
16782 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
16785 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
16787 * util/grub-install.in: Don't try to verify core.img until after
16788 running grub-mkimage to create it.
16790 2010-09-10 Robert Millan <rmh@gnu.org>
16792 * util/grub.d/10_hurd.in: Add misc readability checks.
16793 * util/grub.d/10_kfreebsd.in: Likewise.
16794 * util/grub.d/10_linux.in: Likewise.
16796 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
16798 * util/grub-install.in: ${imgext} won't be defined here until the
16799 install branch is merged. For the meantime, only verify core.img on
16800 i386-pc and sparc64-ieee1275 platforms.
16802 2010-09-10 Robert Millan <rmh@gnu.org>
16804 Solaris support in grub_find_zpool_from_dir(). Thanks
16805 Seth Goldberg for referring to getextmntent() facility.
16807 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
16809 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
16811 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
16812 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
16813 method for finding zpool name.
16815 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
16817 grub-fstest needs the host and hostfs modules while other utilities
16818 actively require those modules to be absent, so grub-fstest needs
16819 its own initialisation and finalisation code.
16821 * Makefile.am (grub_fstest.pp): New target.
16822 (grub_fstest_init.lst): Likewise.
16823 (grub_fstest_init.c): Likewise.
16824 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
16826 2010-09-10 Robert Millan <rmh@gnu.org>
16828 * configure.ac: Check for `struct statfs.f_fstypename' and
16829 `struct statfs.f_mntfromname'.
16831 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
16832 kFreeBSD-specific code.
16834 2010-09-10 Robert Millan <rmh@gnu.org>
16836 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
16837 on ZFS. Now non-main filesystems are supported as / too.
16839 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
16841 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
16842 and grub-core/disk/host.c to ...
16843 (grub-fstest): ... here. Having the host disk implementation
16844 present confuses grub-probe and other utility programs.
16846 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
16847 when writing to a file, not when writing to stdout.
16849 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
16851 * tests/partmap_test.in: New test for partitions.
16852 * Makefile.util.def: Rules for new test.
16854 2010-09-09 Robert Millan <rmh@gnu.org>
16856 * util/grub-probe.c (probe): Fix a pair of unhandled error
16859 2010-09-09 Robert Millan <rmh@gnu.org>
16861 Basic Btrfs support (detection and UUID).
16863 * grub-core/fs/btrfs.c: New file.
16864 * Makefile.util.def (library): Register btrfs.c.
16865 * grub-core/Makefile.core.def: Likewise.
16867 2010-09-08 Robert Millan <rmh@gnu.org>
16869 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
16870 with (optional) parameters to specify device and relative path.
16871 * util/grub-install.in: Use is_path_readable_by_grub() to
16872 verify readability of a few critical files.
16873 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
16874 verify readability of grub.cfg.new.
16876 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
16878 Split minix.mod into minix.mod and minix2.mod.
16880 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
16881 * grub-core/Makefile.core.def (minix2): New module.
16882 * grub-core/fs/minix.c: Use definitions instead of runtime version
16884 * grub-core/fs/minix2.c: New file.
16886 2010-09-08 Yves Blusseau <blusseau@zetam.org>
16888 Add new --boot-directory option to replace --root-directory
16890 * util/grub-install.in: Add new --boot-directory option
16891 * util/grub-reboot.in: Likewise.
16892 * util/grub-set-default.in: Likewise.
16894 2010-09-08 Yves Blusseau <blusseau@zetam.org>
16896 * util/grub-mkconfig.in: Use new variable.
16898 2010-09-08 Yves Blusseau <blusseau@zetam.org>
16900 * configure.ac: Define some useful variables.
16902 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
16904 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
16905 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
16906 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
16907 Use terminfo and don't use cursor-on/cursor-off unless it's known
16909 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
16910 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
16912 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
16914 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
16915 starts with "(,", fill the drive containing the loaded image in
16916 between those two characters, but expect that a full partition
16917 specification including partition map names will follow.
16919 2010-09-08 Robert Millan <rmh@gnu.org>
16921 * configure.ac: Remove `--enable-grub-fstest' option.
16922 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
16924 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
16925 `grub-fstest' instead of `grub-probe' for readability verification.
16926 * util/grub-probe.c (probe): Remove readability verification kludge.
16928 2010-09-08 Robert Millan <rmh@gnu.org>
16930 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
16931 initializing `GRUB_FS'.
16933 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
16935 Not command (!) support to GRUB script.
16937 * tests/grub_script_not.in: New test.
16938 * Makefile.util.def: Rules for new test.
16940 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
16941 ! command as a special case.
16942 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
16944 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
16946 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
16949 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
16951 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
16953 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
16955 * docs/grub.texi (Shell-like scripting): Documentation for break,
16956 continue, shift and return commands.
16958 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
16960 Rename CD-ROM to cd on BIOS.
16962 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
16964 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
16966 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16968 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
16969 * util/grub-probe.c (main): Likewise.
16970 * util/i386/pc/grub-setup.c (main): Likewise.
16971 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
16972 Reported and debugged by: alexxy
16974 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16976 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
16979 2010-09-05 Jo Shields <directhex@apebox.org>
16981 * util/grub.d/30_os-prober.in: Add missing classes.
16983 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16985 * docs/grub.texi (Theme file format): Document new position format.
16987 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16989 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
16990 a table. Use @code instead of @verbatim.
16992 2010-09-05 Colin D Bennett <colin@gibibit.com>
16994 Gfxmenu documentation.
16996 * docs/grub.texi (Theme file format): New chapter.
16998 2010-09-05 Szymon Janc <szymon@janc.net.pl>
17000 * grub-core/Makefile.core.def (xzio): New module.
17001 * grub-core/io/xzio.c: New file.
17002 * grub-core/lib/xzembed/xz.h: New file (from xembed).
17003 * grub-core/lib/xzembed/xz_config.h: Likewise.
17004 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
17005 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
17006 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
17007 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
17008 * grub-core/lib/xzembed/xz_private.h: Likewise.
17009 * grub-core/lib/xzembed/xz_stream.h: Likewise.
17010 * include/grub/file.h (grub_file_filter_id): New compression filter
17011 GRUB_FILE_FILTER_XZIO.
17013 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17015 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
17016 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
17019 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17021 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
17022 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
17024 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17026 Uncompressed checksum support.
17028 * grub-core/commands/hashsum.c (options): Add option --uncompress.
17029 (check_list): New parameter uncompress.
17030 (grub_cmd_hashsum): Handle --uncompress.
17032 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17034 Reintroduce testload.
17036 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
17038 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
17039 (GRUB_MOD_INIT): New function.
17040 (GRUB_MOD_FINI): Likewise.
17041 * grub-core/Makefile.core.def (testload): New module.
17043 2010-09-05 Szymon Janc <szymon@janc.net.pl>
17045 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
17046 (uint8_t): New type.
17047 (uint16_t): Likewise.
17048 (uint32_t): Likewise.
17049 (uint64_t): Likewise.
17051 2010-09-05 Szymon Janc <szymon@janc.net.pl>
17053 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
17055 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17057 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
17059 (grub_gzfile_open): Removed. All users updated.
17060 (GRUB_MOD_INIT): New function.
17061 (GRUB_MOD_FINI): Likewise.
17062 * grub-core/kern/file.c (grub_file_filters_all): New variable.
17063 (grub_file_filters_enabled): Likewise.
17064 (grub_file_open): Handle filters.
17065 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
17066 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
17067 * include/grub/file.h (grub_file_filter_id_t): New type.
17068 (grub_file_filter_t): Likewise.
17069 (grub_file_filters_all): New extern variable.
17070 (grub_file_filters_enabled): Likewise.
17071 (grub_file_filter_register): New inline function.
17072 (grub_file_filter_unregister): Likewise.
17073 (grub_file_filter_disable): Likewise.
17074 (grub_file_filter_disable_compression): Likewise.
17075 * include/grub/gzio.h: Removed.
17077 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17079 Filename expansion support for wildcards in GRUB script.
17081 * tests/grub_script_expansion.in: New test.
17082 * Makefile.util.def: Rule for new test.
17084 * grub-core/commands/wildcard.c: New file, implements filename
17085 expansion support for GRUB script.
17086 * grub-core/Makefile.core.def: Rule update for regexp.mod.
17087 * grub-core/script/argv.c: Cosmetic changes.
17088 * grub-core/script/execute.c (grub_script_arglist_to_argv):
17089 Refactored to perform wildcard expansion on arguments.
17090 * include/grub/script_sh.h (grub_script_wildcard_translator): New
17093 * tests/util/grub-shell.in: Fix quoting for read input.
17095 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17097 Support for updating environment variables with matched substrings
17100 * tests/grub_cmd_regexp.in: New test.
17101 * Makefile.util.def: Rule for new test.
17103 * grub-core/commands/regexp.c: New option -s to update environment
17104 variables with regexp matches.
17106 2010-09-04 Szymon Janc <szymon@janc.net.pl>
17108 * include/grub/file.h (grub_file): New member not_easly_seekable.
17109 (grub_file_seekable): New inline function.
17110 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
17112 (grub_gzio_open): Set not_easly_seekable.
17113 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
17114 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
17116 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17118 Support for options to appear multiple times on cmdline.
17120 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
17121 * grub-core/commands/extcmd.c: Support for repeatable option.
17122 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
17123 repeatable option support.
17125 Refactor menuentry into a regular command.
17127 * grub-core/commands/menuentry.c: New file, menuentry command
17129 * grub-core/Makefile.core.def: Rule update for normal.mod.
17130 * grub-core/normal/main.c: Moved menuentry creation to
17131 grub-core/commands/menuentry.c.
17132 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
17133 (grub_menu_execute_entry_real): Removed.
17134 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
17136 (grub_script_execute_menuentry): Removed.
17137 * grub-core/script/parser.y (menuentry): Removed.
17138 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
17139 * grub-core/script/yylex.l (menuentry): Removed.
17140 * include/grub/menu.h (grub_menu_init): New prototype.
17141 (grub_menu_fini): New prototype.
17142 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
17143 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
17144 (grub_script_execute_sourcecode): New prototype.
17146 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17148 "return" command for GRUB script functions.
17150 * tests/grub_script_return.in: New test.
17151 * Makefile.util.def: Rules for new test.
17153 * grub-core/script/execute.c (grub_script_return): New function.
17154 * grub-core/script/main.c: Register/unregister return commaond.
17155 * include/grub/script_sh.h (grub_script_return): New prototype.
17157 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17159 "setparams" command to update positional parameters.
17161 * tests/grub_script_setparams.in: New test.
17162 * Makefile.util.def: Rules for new test.
17164 * grub-core/script/argv.c (grub_script_argv_make): New function.
17165 * grub-core/script/execute.c (replace_scope): New function.
17166 (grub_script_setparams): New function.
17167 * grub-core/script/lexer.c: Remove unused variables.
17168 * grub-core/script/main.c: Register/unregister setparams command.
17169 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
17170 (grub_script_setparams): New prototype.
17172 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17174 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
17177 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17179 Support for passing block of commands as an argument to extcmds.
17181 * Makefile.util.def: Rules for new test.
17182 * tests/grub_script_blockarg.in: New test.
17183 * grub-core/tests/test_blockarg.c: New file, block argument
17184 command used in the test.
17186 * include/grub/extcmd.h (grub_extcmd_context): New struct.
17187 (grub_register_extcmd_prio): New function prototype.
17188 (grub_extcmd_dispatcher): New function prototype.
17189 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
17191 * include/grub/script_sh.h (struct grub_script): New members
17192 `children', `next_siblings' and `refcnt' for block arguments and
17193 reference counting.
17194 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
17195 (grub_script_arg): New member `script' for block argument.
17196 (grub_script_argv): New member `script' for block argument.
17197 (grub_parser_param): New member `scripts' for block argument.
17198 (grub_script_mem_free): New extern function prototype.
17199 (grub_script_ref): New function prototype.
17200 (grub_script_unref): New function prototype.
17202 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
17203 extcmd form to support block arguments.
17204 * grub-core/script/argv.c: Block arguments support.
17205 * grub-core/script/execute.c: Likewise.
17206 * grub-core/script/lexer.c: Likewise.
17207 * grub-core/script/main.c: Likewise.
17208 * grub-core/script/script.c: Likewise.
17209 * grub-core/script/parser.y: Likewise. New `block' and `block0'
17212 * grub-core/commands/acpi.c: Update extcmd implementations with
17213 grub_extcmd_context_t.
17214 * grub-core/commands/cat.c: Likewise.
17215 * grub-core/commands/echo.c: Likewise.
17216 * grub-core/commands/extcmd.c: Likewise.
17217 * grub-core/commands/hashsum.c: Likewise.
17218 * grub-core/commands/hdparm.c: Likewise.
17219 * grub-core/commands/help.c: Likewise.
17220 * grub-core/commands/hexdump.c: Likewise.
17221 * grub-core/commands/i386/cpuid.c: Likewise.
17222 * grub-core/commands/i386/pc/drivemap.c: Likewise.
17223 * grub-core/commands/i386/pc/halt.c: Likewise.
17224 * grub-core/commands/i386/pc/sendkey.c: Likewise.
17225 * grub-core/commands/iorw.c: Likewise.
17226 * grub-core/commands/keystatus.c: Likewise.
17227 * grub-core/commands/loadenv.c: Likewise.
17228 * grub-core/commands/ls.c: Likewise.
17229 * grub-core/commands/lspci.c: Likewise.
17230 * grub-core/commands/memrw.c: Likewise.
17231 * grub-core/commands/probe.c: Likewise.
17232 * grub-core/commands/search_wrap.c: Likewise.
17233 * grub-core/commands/setpci.c: Likewise.
17234 * grub-core/commands/sleep.c: Likewise.
17235 * grub-core/disk/loopback.c: Likewise.
17236 * grub-core/hello/hello.c: Likewise.
17237 * grub-core/loader/i386/bsd.c: Likewise.
17238 * grub-core/loader/xnu.c: Likewise.
17239 * grub-core/term/gfxterm.c: Likewise.
17240 * grub-core/term/serial.c: Likewise.
17241 * grub-core/tests/lib/functional_test.c: Likewise.
17243 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17245 Multi-line quoted strings support.
17247 * grub-core/script/lexer.c (append_newline): Removed.
17248 (grub_script_lexer_yywrap): Refactored.
17249 (grub_script_lexer_init): Refactored.
17250 * grub-core/script/yylex.l (yywrap): New function.
17251 (grub_lexer_resplit): New function.
17252 (grub_lexer_unput): New function.
17253 * include/grub/script_sh.h (grub_lexer_param): New members, unput
17255 * tests/grub_script_echo1.in: Added few more testcases.
17257 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
17259 * grub-core/kern/misc.c: Don't add abort alias in utils.
17260 Reported by: echoline.
17262 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
17264 Add missing files into "make dist" tarball for other platforms.
17266 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
17267 * conf/Makefile.common (dist_noinst_DATA): New variable.
17268 * conf/Makefile.extra-dist: Added missing make dist files.
17269 * grub-core/Makefile.core.def: Likewise.
17271 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
17273 Compress grub_prefix.
17275 * grub-core/boot/i386/pc/lnxboot.S: Use
17276 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
17277 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
17278 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
17279 GRUB_MACHINE_PREFIX_END. All users updated.
17280 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
17281 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
17283 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17284 * util/grub-mkimage.c (image_target_desc): Change data_end to
17285 prefix_end. All users updated.
17287 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
17289 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
17291 (grub_openbsd_boot): Likewise.
17292 (grub_netbsd_boot): Likewise.
17293 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
17294 (grub_xnu_boot): Likewise.
17296 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17298 * configure.ac: Clean LIBS variable after tests.
17300 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17302 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
17304 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17306 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
17307 echo if libdevmapper will be used.
17309 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
17311 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
17312 constant for the same file.
17314 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17316 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
17318 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17320 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
17323 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17325 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
17326 required by the boot protocol.
17328 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
17329 ebp and edi members.
17330 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
17331 state.ebp and state.edi.
17332 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
17333 %ebp and %edi according to grub_relocator32_ebp and
17334 grub_relocator32_edi respectively.
17335 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
17338 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17340 Add i386-pc-pxe image target.
17342 * util/grub-mkimage.c (image_target_desc): New enum value
17344 (image_targets): New target i386-pc-pxe.
17345 (generate_image): Handle i386-pc-pxe image.
17347 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17351 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
17352 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
17354 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
17355 (grub_pxe_pxenv): Correct type.
17357 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17359 * NEWS: Document most of the important changes since 1.98.
17361 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17363 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
17364 generated manual page) a little.
17366 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17368 * docs/grub.texi: Add myself as an author.
17370 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
17372 * Makefile.util.def (libgrub.a): Add missing sunpc.
17373 Reported by: Seth Goldberg.
17375 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17377 Interrupt wrapping and code simplifications.
17379 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
17380 x86_noieee1275 which are functionaly equivalent in this case.
17381 (grub-install): Make source on each platform explicit. Enable on
17383 * gentpl.py (x86_efi_pc): Removed group.
17384 (x86_noefi): Likewise.
17385 (i386_noefi): Likewise.
17386 (x86_noieee1275): Likewise.
17387 (i386_noieee1275): Likewise.
17388 (i386_noefi_noieee1275): Likewise.
17389 (i386_pc_qemu_coreboot): Likewise.
17390 (i386_coreboot_multiboot): Likewise.
17391 (i386_pc_coreboot_multiboot_qemu): Likewise.
17392 (x86_noefi_mips): Likewise.
17393 (noieee1275): Likewise.
17394 (ieee1275_mips): Likewise.
17395 (noemu_noieee1275): Likewise.
17398 (videoinkernel): Likewise.
17399 (videomodules): Likewise.
17400 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
17401 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
17402 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
17403 include/grub/loader.h, include/grub/msdos_partition.h,
17404 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
17405 include/grub/machine/console.h, include/grub/machine/vga.h,
17406 include/grub/machine/vbe.h, include/grub/machine/init.h,
17407 include/grub/machine/kernel.h, include/grub/cpu/time.h,
17408 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
17409 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
17410 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
17411 * grub-core/Makefile.core.def (kernel): Explicit the source for
17412 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
17413 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
17414 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
17415 Use videoinkernel tag.
17416 (usb): Enable on all usb.
17417 (usbserial_common): Likewise.
17418 (usbserial_pl2303): Likewise.
17419 (usbserial_ftdi): Likewise.
17420 (uhci): Enable on all x86.
17421 (ohci): Enable on all pci.
17422 (cmostest): Enable on all CMOS.
17423 (acpi): Include commands/acpi.c on all platforms.
17424 (halt): Add relevant lib/*/halt.c.
17425 (hdparm): Enable on all pci.
17427 (usbtest): Enable on all usb.
17428 (ata): Enable on all pci.
17429 (ata_pthru): Likewise.
17430 (usbms): Enable on all usb.
17431 (usb_keyboard): Likewise.
17432 (font): Use tag videomodules.
17434 (datetime): Use tag cmos. Enable on all noemu.
17435 (mmap): Use tags common and x86.
17436 (gfxterm): Use tag videomodules.
17437 (bitmap): Likewise.
17438 (bitmap_scale): Likewise.
17439 (video_fb): Likewise.
17441 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
17442 adjust padding accordingly. All users updated.
17443 (grub_ohci_transaction): Fix bad format specification.
17444 (GRUB_MOD_INIT): Add asserts for struct size.
17445 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
17446 (grub_alloc_td): Likewise.
17447 (grub_free_queue): Likewise.
17448 (grub_uhci_transfer): Likewise.
17449 (grub_uhci_transaction): Fix bad format specification.
17450 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
17451 (grub_usb_bulk_readwrite): Likewise.
17452 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
17453 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
17455 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
17457 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
17458 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
17459 Transformed into C.
17460 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
17461 Moved from here ...
17462 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
17463 ... here. Transformed into C. Made static.
17464 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
17465 Moved from here ...
17466 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
17467 ... here. Transformed into C. Made static.
17468 * grub-core/kern/i386/pc/startup.S
17469 (grub_biosdisk_check_int13_extensions): Moved from here ...
17470 * grub-core/disk/i386/pc/biosdisk.c
17471 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
17473 * grub-core/kern/i386/pc/startup.S
17474 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
17475 * grub-core/disk/i386/pc/biosdisk.c
17476 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
17477 Transformed into C. Made static.
17478 * grub-core/kern/i386/pc/startup.S
17479 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
17480 * grub-core/disk/i386/pc/biosdisk.c
17481 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
17482 Transformed into C. Made static.
17483 * grub-core/kern/i386/pc/startup.S
17484 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
17485 * grub-core/disk/i386/pc/biosdisk.c
17486 (grub_biosdisk_get_diskinfo_standard): ... here.
17487 Transformed into C. Made static.
17488 * grub-core/kern/i386/pc/startup.S
17489 (grub_biosdisk_get_num_floppies): Moved from here ...
17490 * grub-core/disk/i386/pc/biosdisk.c
17491 (grub_biosdisk_get_num_floppies): ... here.
17492 Transformed into C. Made static.
17493 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
17495 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
17496 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
17497 Transformed into C. Made static.
17498 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
17499 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
17500 Transformed into C. Made static.
17501 * grub-core/kern/i386/ieee1275/init.c: Removed.
17502 * grub-core/kern/i386/misc.S: Likewise.
17503 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
17504 Splitted from here ...
17505 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
17506 Transformed into C. Made static. All users updated.
17507 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
17508 Transformed into C. Made static. All users updated.
17509 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
17511 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
17512 Transformed into C. Made static. All users updated.
17513 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
17515 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
17516 Transformed into C. Made static. All users updated.
17517 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
17518 Removed (replaced by C version).
17519 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
17521 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
17522 Transformed into C. Made static.
17523 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
17525 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
17526 ... here. Transformed into C.
17527 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
17529 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
17530 ... here. Transformed into C.
17531 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
17533 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
17534 ... here. Transformed into C. Made static.
17535 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
17537 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
17538 ... here. Transformed into C.
17539 * grub-core/kern/i386/pc/startup.S
17540 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
17541 * grub-core/video/i386/pc/vbe.c
17542 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
17543 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
17545 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
17546 ... here. Transformed into C.
17547 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
17549 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
17550 ... here. Transformed into C.
17551 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
17553 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
17554 ... here. Transformed into C.
17555 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
17557 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
17558 ... here. Transformed into C.
17559 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
17561 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
17562 ... here. Transformed into C. Made static.
17563 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
17565 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
17566 ... here. Transformed into C. Made static.
17567 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
17569 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
17570 ... here. Transformed into C. Made static.
17571 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
17572 pxe_rm_entry as third argument.
17573 (grub_bios_interrupt): New function.
17574 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
17575 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
17576 of calling grub_stop.
17577 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
17578 * grub-core/lib/efi/halt.c (grub_halt): ...here.
17579 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
17580 * grub-core/lib/emu/halt.c (grub_halt): ... here.
17581 * grub-core/lib/i386/halt.c: Moved from here ...
17582 * grub-core/lib/i386/halt.c: ... here.
17583 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
17584 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
17585 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
17587 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
17588 * include/grub/i386/coreboot/init.h: Removed.
17589 * include/grub/i386/multiboot/init.h: Likewise.
17590 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
17591 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
17592 * include/grub/i386/pc/int.h: New file.
17593 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
17594 (grub_pxe_scan): Removed.
17595 (grub_pxe_call): Update prototype.
17596 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
17598 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
17599 * include/grub/i386/qemu/init.h: Removed.
17600 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
17602 (grub_halt): Likewise.
17603 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
17604 (grub_reboot): Likewise.
17605 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
17606 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
17607 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
17609 2010-08-30 Robert Millan <rmh@gnu.org>
17611 * NEWS: Document addition of ZFS support in `grub-install' and
17614 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
17616 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
17619 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17621 Remove leftover embedding of font objects.
17623 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
17624 * util/grub-install.in (font): Removed.
17625 * util/grub-mkimage.c (generate_image): Remove font support. All users
17628 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17630 Remove leftover embedding of font objects.
17632 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
17633 * util/grub-install.in (font): Removed.
17634 * util/grub-mkimage.c (generate_image): Remove font support. All users
17637 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17639 * docs/grub.texi (Network): Fix reference to pxe_blksize.
17640 Reported by: Ian Turner
17642 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17644 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
17645 timeout to avoid indefinite boot stalling.
17647 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17649 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
17650 (grub_env_write_color_highlight): Likewise.
17652 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17654 * grub-core/normal/term.c (print_more): Return to normal and not
17655 to standard state after printing "---MORE---".
17657 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17659 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
17660 Mask out the bit 0x80 since it has other meaning that specifiing color.
17662 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17664 New relocator. Allows for more kernel support and more straightforward
17667 * Makefile.am (BOOTTARGET): New variable.
17668 (QEMU32): Likewise.
17669 (linux.init.x86_64): New target.
17670 (linux.init.i386): Likewise.
17671 (multiboot.elf): Likewise.
17672 (kfreebsd.elf): Likewise.
17673 (kfreebsd.aout): Likewise.
17674 (pc-chainloader.elf): Likewise.
17675 (pc-chainloader.bin): Likewise.
17676 (ntldr.elf): Likewise.
17677 (ntldr.bin): Likewise.
17678 (multiboot2.elf): Likewise.
17679 (kfreebsd.init.x86_64): Likewise.
17680 (kfreebsd.init.i386): Likewise.
17681 (knetbsd.init.i386): Likewise.
17682 (kopenbsd.init.i386): Likewise.
17683 (knetbsd.init.x86_64): Likewise.
17684 (kopenbsd.init.x86_64): Likewise.
17685 (linux-initramfs.i386): Likewise.
17686 (linux-initramfs.x86_64): Likewise.
17687 (kfreebsd-mfsroot.i386.img): Likewise.
17688 (knetbsd.image.i386): Likewise.
17689 (kopenbsd.image.i386): Likewise.
17690 (kopenbsd.image.x86_64): Likewise.
17691 (knetbsd.miniroot-image.i386.img): Likewise.
17692 (kfreebsd-mfsroot.x86_64.img): Likewise.
17693 (knetbsd.image.x86_64): Likewise.
17694 (knetbsd.miniroot-image.x86_64.img): Likewise.
17695 (kfreebsd-mfsroot.i386.gz): Likewise.
17696 (bootcheck-kfreebsd-i386): Likewise.
17697 (kfreebsd-mfsroot.x86_64.gz): Likewise.
17698 (bootcheck-kfreebsd-x86_64): Likewise.
17699 (knetbsd.miniroot-image.i386.gz): Likewise.
17700 (bootcheck-knetbsd-i386): Likewise.
17701 (bootcheck-kopenbsd-i386): Likewise.
17702 (bootcheck-kopenbsd-x86_64): Likewise.
17703 (knetbsd.miniroot-image.x86_64.gz): Likewise.
17704 (bootcheck-knetbsd-x86_64): Likewise.
17705 (bootcheck-linux-i386): Likewise.
17706 (bootcheck-linux-x86_64): Likewise.
17707 (bootcheck-linux16-i386): Likewise.
17708 (bootcheck-linux16-x86_64): Likewise.
17709 (bootcheck-multiboot): Likewise.
17710 (bootcheck-multiboot2): Likewise.
17711 (bootcheck-kfreebsd-aout): Likewise.
17712 (bootcheck-pc-chainloader): Likewise.
17713 (bootcheck-ntldr): Likewise.
17714 (CLEANFILES): Add new targets.
17715 (BOOTCHECKS): New variable.
17716 (.PHONY): Add bootchecks.
17717 (SUCCESSFUL_BOOT_STRING): New variable.
17718 (BOOTCHECK_TIMEOUT): Likewise.
17719 (bootcheck): New target
17720 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
17721 * configure.ac: Correct efiemu excuse.
17722 * docs/grub.texi (Supported kernels): New chapter.
17723 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
17724 include/grub/mm_private.h. Simplify inclusion of
17725 include/grub/boot.h, include/grub/loader.h
17726 and include/grub/msdos_partition.h
17727 (KERNEL_HEADER_FILES) [i386_coreboot]:
17728 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
17729 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
17730 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
17731 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
17732 include/grub/machine/loader.h.
17733 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
17734 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
17736 (pci.mod): Enable on i386-multiboot.
17737 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
17738 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
17740 (relocator.mod): Rewritten.
17741 (aout.mod): Enable on all x86.
17742 (bsd.mod): Likewise.
17743 (ntldr.mod): New module.
17744 (linux.mod): Use loader/i386/linux.c on all x86.
17745 (xnu.mod): Enable on all x86.
17746 (vga_text.mod): disable on EFI and QEMU.
17747 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
17748 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
17749 * grub-core/efiemu/loadcore.c: Likewise.
17750 * grub-core/efiemu/main.c: Likewise.
17751 (grub_efiemu_exit_boot_services): Removed.
17752 (grub_efiemu_finish_boot_services): Likewise.
17753 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
17755 * grub-core/efiemu/i386/nocfgtables.c: New file.
17756 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
17757 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
17758 (grub_efi_finish_boot_services): Moved from here ...
17759 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
17760 Fille finish memory map and related data.
17761 (finish_mmap_buf): New variable.
17762 (grub_efi_uintn_t finish_mmap_size): Likewise.
17763 (grub_efi_uintn_t finish_key): Likewise.
17764 (grub_efi_uintn_t finish_desc_size): Likewise.
17765 (grub_efi_uint32_t finish_desc_version): Likewise.
17766 (grub_efi_is_finished): Likewise.
17767 (grub_efi_get_memory_map): Use saved memory map if EFI is already
17769 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
17770 (grub_elf64_phdr_iterate): Likewise.
17771 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
17772 (grub_os_area_size): Likewise.
17773 (grub_machine_init): Don't reserve os area.
17774 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
17775 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17776 * grub-core/kern/i386/loader.S: Removed.
17777 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
17778 (grub_os_area_size): Likewise.
17779 (grub_machine_init): Don't reserve os area.
17780 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
17781 Don't call grub_dl_unload_all.
17782 Don't include loader.S.
17783 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
17784 Declare the memory after _end as available.
17785 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
17786 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
17787 (GRUB_MM_ALLOC_MAGIC): Moved from here...
17788 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
17789 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
17790 * include/grub/mm_private.h (grub_mm_header): ... here.
17791 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
17792 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
17793 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
17794 (grub_mm_region): ..here. Removed addr. Added pre_size.
17796 * grub-core/kern/mm.c (base): Renamed to ...
17797 (grub_mm_base): ... this. Made global.
17798 (grub_real_malloc): Alloc from end of region.
17799 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
17800 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
17801 * grub-core/kern/powerpc/cache_flush.S: ... here.
17802 * grub-core/lib/efi/relocator.c: New file.
17803 * grub-core/lib/i386/relocator.c: Rewritten.
17804 * grub-core/lib/i386/relocator16.S: New file.
17805 * grub-core/lib/i386/relocator32.S: Likewise.
17806 * grub-core/lib/i386/relocator64.S: Likewise.
17807 * grub-core/lib/i386/relocator_asm.S: Rewritten.
17808 * grub-core/lib/i386/relocator_common.S: New file.
17809 * grub-core/lib/ieee1275/relocator.c: Likewise.
17810 * grub-core/lib/mips/relocator.c: Rewritten.
17811 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
17812 stylistic adjustments.
17813 * grub-core/lib/powerpc/relocator.c: New file.
17814 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
17815 * grub-core/lib/relocator.c: Rewritten.
17816 * grub-core/lib/x86_64/relocator_asm.S: New file.
17817 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
17818 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
17819 (bsd_tag): New struct.
17820 (tags): New variable.
17821 (tags_last): Likewise.
17822 (netbsd_module): New struct.
17823 (netbsd_mods): New variable.
17824 (netbsd_mods_last): Likewise.
17825 (openbsd_opts): New parameter "serial".
17826 (OPENBSD_SERIAL_ARG): New definition.
17827 (netbsd_opts): New parameter "serial".
17828 (NETBSD_SERIAL_ARG): New definition.
17829 (grub_freebsd_add_meta): Reorganised into ...
17830 (grub_bsd_add_meta): ...this. All users updated.
17831 (grub_freebsd_add_mmap): Reorganised into ...
17832 (generate_e820_mmap): ...this...
17833 (grub_bsd_add_mmap): ...and this. All users updated.
17834 (grub_freebsd_list_modules): Use tags.
17835 (grub_netbsd_add_meta_module): New function.
17836 (grub_netbsd_list_modules): Likewise.
17837 (grub_freebsd_boot): Use relocator and finish EFI.
17838 (grub_openbsd_boot): Likewise.
17839 (grub_netbsd_setup_video): New function.
17840 (grub_netbsd_add_modules): Likewise.
17841 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
17843 (grub_bsd_unload): Unload tags.
17844 (grub_bsd_load_aout): Use relocator.
17845 (grub_bsd_elf32_size_hook): New function.
17846 (grub_bsd_elf32_hook): Use relocator.
17847 (grub_bsd_elf64_size_hook): New function.
17848 (grub_bsd_elf64_hook): Use relocator.
17849 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
17850 (grub_bsd_load): Zero-out openbsd_ramdisk.
17851 (grub_bsd_load): Use relocator.
17852 (grub_cmd_openbsd): Support serial.
17853 (grub_cmd_netbsd): Support modules.
17854 (grub_cmd_freebsd_module): Use relocator.
17855 (grub_netbsd_module_load): New function.
17856 (grub_cmd_netbsd_module): Likewise.
17857 (grub_cmd_openbsd_ramdisk): Likewise.
17858 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
17860 (GRUB_MOD_FINI): Unregister new commands.
17861 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
17862 (grub_freebsd_load_elfmodule_obj): Use relocator.
17863 (grub_freebsd_load_elfmodule): Likewise.
17864 (grub_freebsd_load_elf_meta): Likewise.
17865 (grub_netbsd_load_elf_meta): New function.
17866 (grub_openbsd_find_ramdisk): Likewise.
17867 * grub-core/loader/i386/bsd_helper.S: Removed.
17868 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
17869 * grub-core/loader/i386/bsd_trampoline.S: Removed.
17870 * grub-core/loader/i386/efi/linux.c: Likewise.
17871 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
17872 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
17873 (DEFAULT_VIDEO_MODE): Likewise.
17874 (real_mode_target): New variable.
17875 (prot_mode_target): Likewise.
17876 (initrd_mem_target): Likewise.
17877 (relocator): Likewise.
17878 (efi_mmap_buf): Likewise.
17879 (efi_mmap_size): Likewise.
17880 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
17881 (free_pages): Use relocator.
17882 (allocate_pages): Account for efi_mmap and use relocator. Return error.
17883 (grub_linux_setup_video): Return error.
17884 (grub_linux_trampoline_start): Removed.
17885 (grub_linux_trampoline_end): Likewise.
17886 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
17887 andd video parameters depending on firmware.
17888 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
17889 [GRUB_MACHINE_EFI]: Pass EFI parameters.
17890 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
17891 (grub_cmd_initrd): Use relocator.
17892 * grub-core/loader/i386/linux_trampoline.S: Removed.
17893 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
17894 (elf_sec_entsize): Likewise.
17895 (elf_sec_shstrndx): Likewise.
17896 (elf_sections): Likewise.
17897 (grub_multiboot_load): Use relocator.
17898 (grub_multiboot_get_mbi_size): Account for sections.
17899 (grub_multiboot_make_mbi): Use relocator and support sections.
17900 (grub_multiboot_add_elfsyms): New function.
17901 (grub_multiboot_free_mbi): Free sections.
17902 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
17903 (grub_linux_real_target): Likewise.
17904 (grub_linux_real_chunk): Likewise.
17905 (grub_linux16_prot_size): Likewise.
17906 (grub_linux16_boot): Use relocator.
17907 (grub_linux_unload): Unload relocator.
17908 (grub_cmd_linux): Use relocator.
17909 (grub_cmd_initrd): Likewise.
17910 * grub-core/loader/i386/pc/ntldr.c: New file.
17911 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
17912 Don't try to guess CPU frequency.
17913 (grub_xnu_set_video): Stretch bitmap.
17914 (grub_xnu_boot): Use relocator.
17915 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
17916 (grub_linux_unload): Free relocator.
17917 (grub_linux_load32): Use relocator.
17918 (grub_linux_load64): Likewise.
17919 (grub_cmd_initrd): Likewise.
17920 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
17921 (grub_multiboot_unload): Unload relocator.
17922 (grub_cmd_multiboot): Use relocator.
17923 (grub_cmd_module): Likewise.
17924 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
17925 Use relocator and support sections.
17926 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
17927 (elf_sec_entsize): Likewise.
17928 (elf_sec_shstrndx): Likewise.
17929 (elf_sections): Likewise.
17930 (grub_multiboot_load): Use relocator.
17931 (grub_multiboot_get_mbi_size): Account for sections.
17932 (grub_multiboot_make_mbi): Use relocator and support sections.
17933 (grub_multiboot_add_elfsyms): New function.
17934 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
17935 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
17936 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
17937 Prototype changed. All users updated.
17938 (grub_xnu_align_heap): Simplified.
17939 (grub_xnu_writetree_toheap): Likewise.
17940 (grub_xnu_unload): Unload relocator.
17941 (grub_cmd_xnu_kernel): Use relocator.
17942 (grub_cmd_xnu_kernel64): Likewise.
17943 (grub_xnu_register_memory): Simplified.
17944 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
17945 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
17947 (grub_console_checkkey): Likewise.
17948 (grub_console_getkey): Likewise.
17949 (grub_console_getwh): Likewise.
17950 (grub_console_getxy): Likewise.
17951 (grub_console_gotoxy): Likewise.
17952 (grub_console_cls): Likewise.
17953 (grub_console_setcolorstate): Likewise.
17954 (grub_console_setcursor): Likewise.
17955 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
17956 * grub-core/tests/boot/kbsd.init-i386.S: New file.
17957 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
17958 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
17959 * grub-core/tests/boot/kernel-8086.S: Likewise.
17960 * grub-core/tests/boot/kernel-i386.S: Likewise.
17961 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
17962 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
17963 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
17964 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
17965 * grub-core/tests/boot/knetbsd.cfg: Likewise.
17966 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
17967 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
17968 * grub-core/tests/boot/linux.cfg: Likewise.
17969 * grub-core/tests/boot/linux.init-i386.S: Likewise.
17970 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
17971 * grub-core/tests/boot/linux16.cfg: Likewise.
17972 * grub-core/tests/boot/multiboot.cfg: Likewise.
17973 * grub-core/tests/boot/multiboot2.cfg: Likewise.
17974 * grub-core/tests/boot/ntldr.cfg: Likewise.
17975 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
17976 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
17977 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
17979 * include/grub/dl.h (grub_dl_unload_all): Removed.
17980 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
17981 (grub_efi_finish_boot_services): Change prototype.
17982 (grub_efi_is_finished): New variable.
17983 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
17985 (grub_efiemu_finish_boot_services): Removed.
17986 (grub_machine_efiemu_init_tables): New prototype.
17987 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
17988 (grub_elf64_phdr_iterate): Likewise.
17989 * include/grub/i386/bsd.h: Include relocator.h.
17990 (freebsd_tag_header): New struct.
17991 (grub_openbsd_bios_mmap): Removed.
17992 (grub_unix_real_boot): Removed.
17993 (grub_freebsd_load_elfmodule32): Changed prototype.
17994 (grub_freebsd_load_elfmodule_obj64): Likewise.
17995 (grub_freebsd_load_elf_meta32): Likewise.
17996 (grub_freebsd_load_elf_meta64): Likewise.
17997 (grub_freebsd_add_meta): Removed.
17998 (grub_netbsd_load_elf_meta32): New prototype.
17999 (grub_netbsd_load_elf_meta64): Likewise.
18000 (grub_bsd_add_meta): Likewise.
18001 (grub_openbsd_ramdisk_descriptor): New struct.
18002 (grub_openbsd_find_ramdisk32): New prototype.
18003 (grub_openbsd_find_ramdisk64): Likewise.
18004 * include/grub/i386/coreboot/loader.h: Removed.
18005 * include/grub/i386/efi/loader.h: Likewise.
18006 * include/grub/i386/ieee1275/loader.h: Likewise.
18007 * include/grub/i386/linux.h (linux_kernel_header): Change void *
18009 * include/grub/i386/loader.h: Removed.
18010 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
18012 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
18013 (grub_phys_addr_t): New type.
18014 (grub_vtop): New inline function.
18015 (grub_map_memory): Likewise.
18016 (grub_unmap_memory): Likewise.
18017 * include/grub/i386/multiboot/loader.h: Removed.
18018 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
18019 (NETBSD_BTINFO_CONSOLE): New definition.
18020 (NETBSD_BTINFO_SYMTAB): Likewise.
18021 (NETBSD_BTINFO_MODULES): Likewise.
18022 (NETBSD_BTINFO_FRAMEBUF): Likewise.
18023 (grub_netbsd_bootinfo): New struct.
18024 (grub_netbsd_btinfo_common): Use explicit bitsize.
18025 (grub_netbsd_btinfo_mmap_entry): Removed.
18026 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
18027 (grub_netbsd_btinfo_bootdisk): New struct.
18028 (grub_netbsd_btinfo_symtab): Likewise.
18029 (grub_netbsd_btinfo_serial): Likewise.
18030 (grub_netbsd_btinfo_modules): Likewise.
18031 (grub_netbsd_btinfo_framebuf): Likewise.
18032 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
18033 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
18035 (grub_openbsd_bootargs): Use explicit bitsize.
18036 (grub_openbsd_bootarg_console): New struct.
18037 (GRUB_OPENBSD_COM_MAJOR): New definition.
18038 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
18039 * include/grub/i386/pc/efiemu.h: Removed.
18040 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
18041 * include/grub/i386/qemu/loader.h: Removed.
18042 * include/grub/i386/relocator.h: Rewritten.
18043 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
18044 * include/grub/mips/memory.h: New file.
18045 * include/grub/mips/multiboot.h: Rewritten.
18046 * include/grub/mips/relocator.h: Rewritten.
18047 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
18048 (grub_vtop): New function.
18049 (grub_map_memory): Likewise.
18050 (grub_unmap_memory): Likewise.
18051 * include/grub/misc.h (ALIGN_DOWN): New definition.
18052 * include/grub/mm.h (grub_mm_check_real): New proto.
18053 (GRUB_MM_CHECK): New definition.
18054 * include/grub/mm_private.h: New file.
18055 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
18056 (grub_multiboot_get_mbi_size): Removed.
18057 (grub_multiboot_make_mbi): Change prottype.
18058 (grub_multiboot_set_accepts_video): New proto.
18059 (grub_multiboot_add_elfsyms): Likewise.
18060 (grub_multiboot_payload_eip): New variable.
18061 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
18063 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
18065 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
18066 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
18067 * include/grub/powerpc/ieee1275/loader.h: Removed.
18068 * include/grub/powerpc/memory.h: New file.
18069 * include/grub/powerpc/relocator.h: Likewise.
18070 * include/grub/relocator.h: Likewise.
18071 * include/grub/relocator_private.h: Likewise.
18072 * include/grub/sparc64/ieee1275/loader.h: Removed.
18073 * include/grub/x86_64/memory.h: New file.
18074 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
18075 (grub_xnu_heap_malloc): Likewise.
18076 (grub_xnu_heap_real_start): Removed.
18077 (grub_xnu_heap_start): Likewise.
18078 (grub_xnu_relocator): New variable.
18079 (grub_xnu_heap_target_start): Likewise.
18080 * tests/util/grub-shell.in: Support non-pc.
18081 * util/grub-mkimage.c (image_targets): Fix multiboot target.
18083 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18085 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
18087 (grub_bidi_logical_to_visual): Check that malloc succeded.
18088 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
18090 (grub_xputs_normal): Likewise.
18092 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18094 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
18097 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18099 * grub-core/efiemu/runtime/efiemu.sh: Removed.
18101 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18103 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
18105 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18107 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
18110 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
18112 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
18114 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18116 * grub-core/normal/term.c (print_more): Fix a memory leak.
18117 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
18118 (grub_xputs_normal): Likewise.
18120 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18122 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
18123 the begining of the string
18125 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18127 * grub-core/script/script.c (grub_script_parse): Free parsed on
18130 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18132 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
18135 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18137 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
18140 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18142 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
18143 (scroll_up): Fix a memory leak.
18145 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18147 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
18150 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
18152 Handle USB pendrives exposed as floppies.
18154 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
18156 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
18157 Check for partitions on all devices.
18159 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
18161 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
18162 (readkey): Likewise.
18164 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
18166 Multiple variable names support to "export" command.
18168 * normal/context.c (grub_cmd_export): "export" command supports
18169 multiple variable names.
18171 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
18173 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
18174 --target=drive output to Mach device name.
18176 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
18178 New Automake based build system for GRUB.
18180 * ABOUT-NLS: New file.
18181 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
18182 in Makefile.util.def file.
18183 * Makefile.util.def: New file. Autogen build definitions file for
18185 * conf/Makefile.common: New file. Common variables for GRUB host
18186 utils and target modules.
18187 * conf/Makefile.extra-dist: New file. Extra files for make dist.
18188 * docs/Makefile.am: New file. Automake file for docs.
18189 * gentpl.py: New file. Python script to generate Autogen
18191 * grub-core/Makefile.am: New file. GRUB target modules' rules
18192 that doesn't fit in Makefile.core.def file.
18193 * grub-core/Makefile.core.def: New file. Autogen build
18194 definitions file for GRUB target modules.
18195 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
18196 specific setjmp.S file.
18197 * po/Makefile.am: New file.
18199 * .bzrignore: New ignores.
18200 * INSTALL: New requirements, without Ruby.
18201 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
18202 * autogen.sh: Updated to invoke autogen as necessary.
18203 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
18204 and defines for Automake conditionals.
18205 * geninit.sh: Refactoring.
18207 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
18209 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
18212 * include/grub/test.h: Fix functional test modules' naming.
18213 * grub-core/tests/example_functional_test.c: Fix test module name.
18215 * util/misc.c: Hosted versions' of grub functions for libgrub.a
18216 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
18217 * util/grub-editenv.c: Likewise.
18218 * util/grub-fstest.c: Likewise.
18219 * util/grub-mkdevicemap.c: Likewise.
18220 * util/grub-mkfont.c: Likewise.
18221 * util/grub-mkimage.c: Likewise.
18222 * util/grub-mkpasswd-pbkdf2.c: Likewise.
18223 * util/grub-probe.c: Likewise.
18224 * util/grub-script-check.c: Likewise.
18225 * util/i386/pc/grub-setup.c: Likewise.
18226 * util/sparc64/ieee1275/grub-setup.c: Likewise.
18228 * tests/util/grub-shell.in: Fix override directory path.
18229 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
18230 * util/import_gcry.py: Create Makefile.gcry.def file instead.
18232 * util/lvm.c: Update #includes.
18233 * util/raid.c: Likewise.
18234 * util/resolve.c: Likewise.
18235 * grub-core/bus/emu/pci.c: Likewise.
18236 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
18237 * grub-core/lib/posix_wrap/string.h: Likewise.
18238 * grub-core/kern/emu/main.c: Likewise.
18240 * grub-core/gensymlist.sh: New file. Script for generating kernel
18242 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
18244 * grub-core/gentrigtables.c: Fix unused variable warnings.
18246 * Makefile.in: Removed.
18247 * conf/any-emu.rmk: Removed.
18248 * conf/common.rmk: Removed.
18249 * conf/i386-coreboot.rmk: Removed.
18250 * conf/i386-efi.rmk: Removed.
18251 * conf/i386-ieee1275.rmk: Removed.
18252 * conf/i386-multiboot.rmk: Removed.
18253 * conf/i386-pc.rmk: Removed.
18254 * conf/i386-qemu.rmk: Removed.
18255 * conf/i386.rmk: Removed.
18256 * conf/mips-yeeloong.rmk: Removed.
18257 * conf/mips.rmk: Removed.
18258 * conf/powerpc-ieee1275.rmk: Removed.
18259 * conf/sparc64-ieee1275.rmk: Removed.
18260 * conf/tests.rmk: Removed.
18261 * conf/x86-efi.rmk: Removed.
18262 * conf/x86_64-efi.rmk: Removed.
18263 * gendistlist.sh: Removed.
18264 * geninitheader.sh: Removed.
18265 * genkernsyms.sh.in: Removed.
18266 * genmk.rb: Removed.
18267 * gensymlist.sh.in: Removed.
18268 * mkinstalldirs: Removed.
18270 * grub-core/boot: ... to here.
18272 * grub-core/bus: ... to here.
18273 * commands: Moved ...
18274 * grub-core/commands: ... to here.
18276 * grub-core/disk: ... to here.
18277 * efiemu: Moved ...
18278 * grub-core/efiemu: ... to here.
18280 * grub-core/font: ... to here.
18282 * grub-core/fs: ... to here.
18283 * gencmdlist.sh: Moved ...
18284 * grub-core/gencmdlist.sh: ... to here.
18285 * genemuinit.sh: Moved ...
18286 * grub-core/genemuinit.sh: ... to here.
18287 * genemuinitheader.sh: Moved ...
18288 * grub-core/genemuinitheader.sh: ... to here.
18289 * genfslist.sh: Moved ...
18290 * grub-core/genfslist.sh: ... to here.
18291 * genhandlerlist.sh: Moved ...
18292 * grub-core/genhandlerlist.sh: ... to here.
18293 * genmoddep.awk: Moved ...
18294 * grub-core/genmoddep.awk: ... to here.
18295 * genmodsrc.sh: Moved ...
18296 * grub-core/genmodsrc.sh: ... to here.
18297 * genpartmaplist.sh: Moved ...
18298 * grub-core/genpartmaplist.sh: ... to here.
18299 * genparttoollist.sh: Moved ...
18300 * grub-core/genparttoollist.sh: ... to here.
18301 * genterminallist.sh: Moved ...
18302 * grub-core/genterminallist.sh: ... to here.
18303 * gentrigtables.c: Moved ...
18304 * grub-core/gentrigtables.c: ... to here.
18305 * genvideolist.sh: Moved ...
18306 * grub-core/genvideolist.sh: ... to here.
18307 * gettext: Moved ...
18308 * grub-core/gettext: ... to here.
18309 * gfxmenu: Moved ...
18310 * grub-core/gfxmenu: ... to here.
18311 * gnulib: Moved ...
18312 * grub-core/gnulib: ... to here.
18314 * grub-core/hello: ... to here.
18316 * grub-core/hook: ... to here.
18318 * grub-core/io: ... to here.
18320 * grub-core/kern: ... to here.
18322 * grub-core/lib: ... to here.
18323 * loader: Moved ...
18324 * grub-core/loader: ... to here.
18326 * grub-core/mmap: ... to here.
18327 * normal: Moved ...
18328 * grub-core/normal: ... to here.
18329 * partmap: Moved ...
18330 * grub-core/partmap: ... to here.
18331 * parttool: Moved ...
18332 * grub-core/parttool: ... to here.
18333 * script: Moved ...
18334 * grub-core/script: ... to here.
18336 * grub-core/term: ... to here
18337 * tests/example_functional_test.c: Moved ...
18338 * grub-core/tests/example_functional_test.c: ... to here.
18339 * tests/lib/functional_test.c: Moved ...
18340 * grub-core/tests/lib/functional_test.c: ... to here.
18341 * tests/lib/test.c: Moved ...
18342 * grub-core/tests/lib/test.c: ... to here.
18344 * grub-core/video: ... to here.
18346 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
18348 Replace --enable-grub-emu-modules with grub-emu-lite.
18350 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
18353 * include/grub/emu/misc.h (grub_emu_init): New prototype.
18354 * kern/emu/full.c: New file. For grub-emu specific initialization.
18355 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
18356 * kern/emu/main.c: Call initialization function grub_emu_init.
18358 * Makefile.in: Include grub-emu-lite in install.
18359 * commands/parttool.c: Use grub_no_autoload to differentiate
18360 between grub-emu and grub-emu-lite.
18361 * include/grub/misc.h: New variable grub_no_autoload.
18363 * conf/any-emu.rmk: New rules for grub-emu-lite.
18364 * configure.ac: Remove --enable-grub-emu-modules.
18365 * genmk.rb: Cleanup unnecessary rules.
18366 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
18368 * normal/main.c: Don't load list files on grub-emu-lite.
18369 * util/misc.c (grub_arch_sync_caches): Removed.
18371 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
18373 * kern/mips/startup.S (grub_prefix): Update comment to refer to
18374 grub-mkimage rather than grub-mkelfimage.
18375 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
18377 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
18379 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
18380 a key after CapsLock or NumLock. It's just a qemu bug.
18382 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
18384 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
18385 needed by libusb wrapper.
18387 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
18389 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
18391 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
18393 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
18394 --nounzip is passed.
18396 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
18398 USB hotunplugging and USB serial support.
18400 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
18401 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
18402 (grub_uhci_transfer): Respect timeout and set *actual.
18403 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
18404 non-standard length.
18405 (grub_usb_device_attach): Autoload modules.
18406 (GRUB_MOD_INIT): Set grub_term_poll_usb.
18407 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
18408 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
18410 (grub_usb_add_hub): Fill nports and children.
18411 (attach_root_port): Receive hub instead of controller.
18412 All users updated. Fill hub->devices.
18413 (grub_usb_root_hub): Allocate hub->devices.
18414 (detach_device): New function.
18415 (poll_nonroot_hub): Fill children and detach devices.
18416 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
18417 actual arguments. All users updated.
18418 (grub_usb_bulk_read_extended): New function.
18419 * bus/usb/serial/common.c: New file.
18420 * bus/usb/serial/ftdi.c: Likewise.
18421 * bus/usb/serial/pl2303.c: Likewise.
18422 * commands/terminal.c (handle_command): Support wildcard.
18423 * commands/usbtest.c: Output "Unknown" instead of empty string.
18424 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
18425 (usbserial_common_mod_SOURCES): New variable.
18426 (usbserial_common_mod_CFLAGS): Likewise.
18427 (usbserial_common_mod_LDFLAGS): Likewise.
18428 (pkglib_MODULES): Add usbserial_pl2303.mod.
18429 (usbserial_pl2303_mod_SOURCES): New variable.
18430 (usbserial_pl2303_mod_CFLAGS): Likewise.
18431 (usbserial_pl2303_mod_LDFLAGS): Likewise.
18432 (pkglib_MODULES): Add usbserial_ftdi.mod.
18433 (usbserial_ftdi_mod_SOURCES): New variable.
18434 (usbserial_ftdi_mod_CFLAGS): Likewise.
18435 (usbserial_ftdi_mod_LDFLAGS): Likewise.
18436 (pkglib_MODULES): Add serial.mod.
18437 (serial_mod_SOURCES): New variable.
18438 (serial_mod_CFLAGS): Likewise.
18439 (serial_mod_LDFLAGS): Likewise.
18440 * conf/i386-pc.rmk: Likewise.
18441 * conf/mips-yeeloong.rmk: Likewise.
18442 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
18443 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
18444 * disk/usbms.c (first_available_slot): New variable.
18445 (grub_usbms_attach): Don't reuse free slots due to potential cache
18447 * include/grub/serial.h: Moved to ..
18448 * include/grub/ns8250.h: ...this.
18449 * include/grub/serial.h: New file.
18450 * include/grub/term.h (grub_term_poll_usb): New variable.
18451 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
18452 readkey. All users updated.
18453 (grub_terminfo_output_state): Pass term to put.
18454 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
18455 (grub_usb_controller_dev): Add timeout and actual arguments to
18456 transfer. All users updated.
18457 (grub_usb_interface): New field detach_data.
18458 (grub_usb_device): New fields children and nports.
18459 (grub_usb_ep_type_t): New type.
18460 (grub_usb_get_ep_type): New function.
18461 (grub_usb_bulk_read_extended): Likewise.
18462 * include/grub/usbdesc.h (grub_usb_desc): New type.
18463 * include/grub/usbserial.h: New file.
18464 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
18465 * kern/term.c (grub_term_poll_usb): New variable.
18466 (grub_getkey): Call grub_term_poll_usb if set.
18467 (grub_checkkey): Likewise.
18468 (grub_getkeystatus): Likewise.
18469 * term/serial.c: Moved controller-specific parts to ...
18470 * term/ns8250.c: ... here.
18471 * term/serial.c: Mostly rewritten.
18472 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
18475 2010-08-20 Robert Millan <rmh@gnu.org>
18477 Make kFreeBSD code more generic to support ext2fs as root, ufs as
18478 a separate module and maybe other interesting combinations.
18480 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
18481 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
18482 (kfreebsd_entry): Add generic filesystem module load routine.
18483 Map GRUB `ext2' to kFreeBSD `ext2fs'.
18485 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
18487 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
18488 "numcenter" (I misunderstood the purpose of this entry).
18489 * docs/grub.texi (sendkey): Likewise.
18491 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
18493 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
18494 status flag options; simply omitting the option is equivalent and
18495 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
18496 (keysym_table): Rename "num5numlock" to "numlock".
18497 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
18498 can uniformly say that only the last of multiple `sendkey'
18499 invocations has any effect.
18500 * docs/grub.texi (sendkey): New section.
18502 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
18504 * commands/i386/pc/sendkey.c (options): Fix three typos.
18506 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18508 Implement sendkey support.
18510 * commands/i386/pc/sendkey.c: New file.
18511 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
18512 (sendkey_mod_SOURCES): New variable.
18513 (sendkey_mod_CFLAGS): Likewise.
18514 (sendkey_mod_LDFLAGS): Likewise.
18516 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
18518 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
18519 fix warnings from Autoconf.
18521 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
18523 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
18524 to avoid false positives with some assemblers that output things
18525 like "someprefix_func" as part of their output.
18527 2010-08-15 Robert Millan <rmh@gnu.org>
18529 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
18531 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
18532 grub_get_libzfs_handle() errors.
18534 2010-08-14 Robert Millan <rmh@gnu.org>
18536 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
18537 filesystem is not ZFS.
18539 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18541 Fix for misspelled color names defaulting to black/black (bug
18542 reported by Doug Nazar)
18544 * include/grub/normal.h (grub_parse_color_name_pair): Add return
18545 status to prototype.
18546 * normal/color.c (grub_parse_color_name_pair): Return failure
18548 (grub_env_write_color_normal): Ignore bad color names.
18549 (grub_env_write_color_highlight): Likewise.
18550 * normal/main.c (GRUB_MOD_INIT): Set default color names.
18552 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18554 "shift" command support to GRUB script.
18556 * include/grub/script_sh.h (grub_script_shift): New prototype.
18557 * script/execute.c (grub_script_shift): New function.
18558 * script/main.c (grub_script_init): Register shift command.
18559 (grub_script_fini): Unregister shift command.
18560 * util/grub-script-check.c (grub_script_cmd_shift): New function.
18562 * tests/grub_script_shift.in: New testcase.
18563 * conf/tests.rmk: Rules for new testcase.
18565 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18567 "continue" command support to GRUB script.
18569 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
18570 (grub_script_break): Continue support.
18571 * script/main.c (grub_script_init): Register continue command.
18572 (grub_script_fini): Unregister continue command.
18574 * tests/grub_script_continue.in: New testcase.
18575 * conf/tests.rmk: Rules for new testcase.
18577 2010-08-12 BVK Chaitanya <bvk@dbook>
18579 "break" command support to GRUB script.
18581 * conf/common.rmk: Rule updates to grub-script-check.
18582 * include/grub/misc.h (grub_min): New function.
18583 * include/grub/script_sh.h (grub_script_init): New prototype.
18584 (grub_script_fini): New prototype.
18585 (grub_script_break): New prototype.
18586 * script/main.c (grub_script_init): New function.
18587 (grub_script_fini): New function.
18588 * script/execute.c (grub_script_break): New function.
18589 * normal/main.c: Calls to grub_script_{init,fini}.
18590 * util/grub-script-check.c (grub_script_break): New function.
18592 * tests/grub_script_break.in: New testcase.
18593 * conf/tests.rmk: Rules for new test case.
18595 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18597 Function parameters support to GRUB script.
18599 * script/yylex.l (VARIABLE): Regular expression update.
18600 * script/function.c (grub_script_function_call): Moved ...
18601 * script/execute.c (grub_script_function_call): ... to here.
18602 (grub_script_execute_arglist_to_argv): Removed.
18603 (grub_script_arglist_to_argv): New function.
18604 * script/argv.c: New file.
18605 (grub_script_argv_free): New function.
18606 (grub_script_argv_next): Likewise.
18607 (grub_script_argv_append): Likewise.
18608 (grub_script_argv_split_append): Likewise.
18609 * include/grub/script_sh.h (grub_script_argv): New struct.
18610 (grub_script_argv_free): New function.
18611 (grub_script_argv_next): Likewise.
18612 (grub_script_argv_append): Likewise.
18613 (grub_script_argv_split_append): Likewise.
18615 * conf/common.rmk (normal.mod): New source script/argv.c.
18617 * tests/grub_script_echo1.in: More tests.
18618 * tests/grub_script_vars1.in: Likewise.
18619 * tests/grub_script_functions.in: New test case.
18620 * conf/tests.rmk: Rules for new testcase.
18622 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18624 Remove grub_script_cmdblock struct.
18626 * include/grub/script_sh.h: Remove grub_script_cmdblock.
18627 * script/parser.y: Likewise.
18628 * script/execute.c: Rename cmdblock suffix to cmdlist.
18629 * script/script.c: Likewise.
18630 * util/grub-script-check.c: Likewise.
18632 2010-08-11 Yves Blusseau <blusseau@zetam.org>
18634 * .bzrignore: add grub-macho2img
18636 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
18638 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
18640 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
18642 Remove the dump of sm712 initialisation sequence.
18644 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
18645 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
18646 (GRUB_VGA_IO_MISC_WRITE): Likewise.
18647 (GRUB_VGA_CR_*): Added many registers.
18648 (GRUB_VGA_SR_*): Likewise.
18649 (GRUB_VGA_GR_*): Likewise.
18650 (grub_vga_write_arx): New function.
18651 (grub_video_hw_config): New struct.
18652 (grub_vga_set_geometry): New function.
18653 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
18654 GRUB_PCI_CLASS_SUBCLASS_VGA.
18655 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
18656 * video/sm712.c (grub_sm712_write_reg): New function
18657 (grub_sm712_read_reg): Likewise.
18658 (grub_sm712_sr_write): Likewise.
18659 (grub_sm712_gr_write): Likewise.
18660 (grub_sm712_cr_write): Likewise.
18661 (grub_sm712_write_arx): Likewise.
18662 (grub_sm712_cr_shadow_write): Likewise.
18663 (grub_sm712_write_dda_lookup): Likewise.
18664 (grub_video_sm712_setup): Initialise the video rather then
18665 blindly replay the dump.
18666 (main) [TEST]: Add a routine to be able to compile as standalone for
18668 * video/sm712_init.c (sm712_init): Removed.
18669 (sm712_sr_seq1): New array.
18670 (sm712_sr_seq2): Likewise.
18672 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
18674 * include/grub/vga.h: Add missing grub/pci.h include.
18676 2010-08-10 Yves Blusseau <blusseau@zetam.org>
18678 * util/grub-macho2img.c (main): fix typo
18680 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
18682 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
18683 (grub_vga_gr_read): Likewise.
18684 (grub_vga_cr_write): Likewise.
18685 (grub_vga_cr_read): Likewise.
18686 (grub_vga_sr_write): Likewise.
18687 (grub_vga_sr_read): Likewise.
18688 (grub_vga_palette_read): Likewise.
18689 (grub_vga_palette_write): Likewise.
18690 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
18691 (grub_sm712_sr_read): New function.
18692 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
18693 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
18695 2010-08-09 Robert Millan <rmh@gnu.org>
18697 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
18698 out unused variables on non-ZFS build.
18700 2010-08-08 Robert Millan <rmh@gnu.org>
18702 Fix path generation for sub-filesystems in ZFS.
18704 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
18707 2010-08-08 Robert Millan <rmh@gnu.org>
18709 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
18711 2010-08-08 Robert Millan <rmh@gnu.org>
18713 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
18714 exist, issue a proper error message (rely on `ls' for translated
18717 2010-08-08 Robert Millan <rmh@gnu.org>
18719 Fix grub-probe invocation.
18721 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
18723 2010-08-04 Robert Millan <rmh@gnu.org>
18725 * configure.ac: Remove checks for getfsstat() and getmntany().
18726 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
18727 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
18728 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
18729 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
18730 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
18732 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
18733 via find_mount_point_from_dir() and getfsstat() / getmntany().
18735 2010-08-04 Robert Millan <rmh@gnu.org>
18737 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
18738 (grub_find_zpool_from_mount_point): Merge into ...
18739 (grub_find_zpool_from_dir): ... this.
18740 * kern/emu/misc.c: Likewise.
18743 (grub_make_system_path_relative_to_its_root): Replace
18744 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
18745 with grub_find_zpool_from_dir().
18746 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
18748 2010-08-04 Robert Millan <rmh@gnu.org>
18750 Support OpenSolaris in ZFS device resolution.
18752 * configure.ac: Check for getmntany().
18753 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
18754 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
18757 2010-08-03 Robert Millan <rmh@gnu.org>
18759 Fix grub-emu build.
18761 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
18762 * include/grub/emu/misc.h: ... here.
18764 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
18765 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
18767 * util/misc.c: Remove `<grub/util/libzfs.h>'.
18768 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
18769 (grub_get_libzfs_handle): Move to ...
18770 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
18771 (grub_get_libzfs_handle): ... here.
18773 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
18775 * script/execute.c (grub_script_execute_cmdline): Check for NULL
18776 as command name case.
18778 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
18780 * disk/raid.c (insert_array): Select unique numbers for named arrays
18781 as well, for use as keys in the disk cache.
18783 2010-08-01 Robert Millan <rmh@gnu.org>
18785 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
18786 kFreeBSD device name, except on ZFS where the filesystem label is
18788 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
18789 `/boot/zfs/zpool.cache'.
18790 Set mountfrom kernel variable using ${kfreebsd_device}.
18792 2010-08-01 Robert Millan <rmh@gnu.org>
18794 Make it even harder to use uninitialized `libzfs_handle' (and
18795 make the interface a bit simpler).
18797 * include/grub/util/misc.h (grub_util_init_libzfs)
18798 (libzfs_handle): Remove.
18799 (grub_get_libzfs_handle): New prototype.
18801 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
18803 (grub_util_init_libzfs): Remove.
18804 (grub_get_libzfs_handle): New function.
18806 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
18807 grub_get_libzfs_handle() to obtain a libzfs handle instead of
18808 accessing `libzfs_handle' directly.
18810 2010-08-01 Robert Millan <rmh@gnu.org>
18812 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
18813 (grub_find_zpool_from_mount_point): New function prototypes.
18815 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
18816 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
18818 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
18819 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
18820 `static' attribute.
18822 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
18823 finding zpool from mount point into ...
18824 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
18826 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
18827 requested path is part of a ZFS pool, use
18828 grub_find_zpool_from_mount_point() to detect its filesystem name,
18829 and generate a path with `/fsname@path' syntax.
18831 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18833 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
18834 (void) rather than () so that this is a proper prototype.
18836 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
18838 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
18840 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
18842 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
18843 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
18845 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18847 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
18849 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18851 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
18853 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18855 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
18856 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
18857 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
18858 disable gfxpayload.
18859 (Shell-like scripting): Add real content.
18860 (Serial terminal): Suggest `terminal_input serial; terminal_output
18861 serial' rather than putting the two commands on separate lines,
18862 since console input will be inoperative after the first command.
18863 (menuentry): Document --class, --users, and --hotkey options.
18864 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
18865 Vladimir Serbinenko).
18867 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
18868 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18870 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
18872 2010-08-01 Robert Millan <rmh@gnu.org>
18874 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
18875 (grub_find_zpool_from_mount_point): New function prototypes.
18877 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
18878 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
18880 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
18881 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
18882 `static' attribute.
18884 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
18885 finding zpool from mount point into ...
18886 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
18888 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
18889 requested path is part of a ZFS pool, use
18890 grub_find_zpool_from_mount_point() to detect its filesystem name,
18891 and generate a path with `/fsname@path' syntax.
18893 2010-08-01 Robert Millan <rmh@gnu.org>
18895 Prevent accidental use of uninitialized libzfs_handle.
18897 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
18898 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
18899 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
18901 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18903 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
18904 util/grub.d/10_linux.in). Fixes Debian bug #591093.
18906 2010-08-01 Robert Millan <rmh@gnu.org>
18908 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
18910 2010-07-31 Robert Millan <rmh@gnu.org>
18912 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
18914 2010-07-31 Robert Millan <rmh@gnu.org>
18916 * kern/emu/misc.c: Add missing license header.
18918 2010-07-31 Robert Millan <rmh@gnu.org>
18920 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
18922 * include/grub/util/libnvpair.h: Include `<config.h>'.
18923 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
18924 declaring libnvpair prototypes ourselves.
18925 * include/grub/util/libzfs.h: Include `<config.h>'.
18926 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
18927 declaring libzfs prototypes ourselves.
18929 (libzfs_handle): Moved to ...
18930 * include/grub/util/misc.h (libzfs_handle): ... here.
18931 Include `<grub/util/libzfs.h>'.
18933 2010-07-30 Robert Millan <rmh@gnu.org>
18935 * include/grub/emu/misc.h: Add missing license header.
18937 2010-07-30 Robert Millan <rmh@gnu.org>
18939 Enable `grub-probe -t device' resolution on ZFS.
18941 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
18942 * include/grub/util/libnvpair.h: New file.
18943 * include/grub/util/libzfs.h: New file.
18945 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
18946 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
18947 `<grub/util/libnvpair.h>'.
18948 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
18950 (find_mount_point_from_dir): New static function.
18951 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
18953 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
18954 find_root_device_from_libzfs() before ressorting to find_root_device().
18956 * include/grub/util/misc.h (grub_util_init_libzfs): New function
18958 * util/misc.c: Include `<grub/util/libzfs.h>'.
18959 (grub_util_init_libzfs): New function.
18960 [HAVE_LIBZFS] (libzfs_handle): New global variable.
18961 [HAVE_LIBZFS] (fini_libzfs): New static function.
18962 (grub_util_init_libzfs): New function.
18963 * util/grub-probe.c (main): Call grub_util_init_libzfs().
18965 2010-07-30 Robert Millan <rmh@gnu.org>
18967 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
18968 (xmalloc, xrealloc, xstrdup, xasprintf): Add
18969 `warn_unused_result' attribute.
18970 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
18971 (grub_xasprintf, grub_xvasprintf): Likewise.
18972 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
18974 2010-07-29 Robert Millan <rmh@gnu.org>
18976 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
18977 (probe): Handle `PRINT_FS_LABEL'.
18978 (main): Handle `-t fs_label'.
18980 2010-07-29 Robert Millan <rmh@gnu.org>
18982 * configure.ac: Remove grub-mkisofs checks.
18984 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
18986 * util/ieee1275/grub-install.in: Don't use empty grub_device.
18987 Reported by: Lennart Sorensen.
18989 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18991 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
18992 prior to terminal_input/terminal_output separation. It's been over 1.5
18993 years and those versions weren't widely deployed.
18995 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
18997 * disk/raid.c (insert_array): Don't count named arrays when looking
18998 for unused array numbers.
18999 Reported and tested by: Michael Guntsche.
19001 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19003 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
19004 implementation of this so that grub-emu links again, with a note
19005 that this should support hotplugging in the future.
19007 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19009 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
19011 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19013 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
19015 (grub_loopback_close): Remove empty function.
19016 (grub_loopback_dev): Remove close method.
19018 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19020 Disable EFI cursor when the EFI console becomes inactive.
19022 * term/efi/console.c (grub_efi_console_init): New function.
19023 (grub_efi_console_fini): New function.
19024 (grub_console_term_output): Register init and fini methods.
19026 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19028 * tests/util/grub-shell-tester.in: Remove bashism and declare as
19031 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19033 * disk/loopback.c (grub_loopback): Replace filename with file.
19034 (delete_loopback): Handle new semantics.
19035 (grub_cmd_loopback): Likewise.
19036 (grub_loopback_iterate): Likewise.
19037 (grub_loopback_close): Likewise.
19039 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19041 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
19043 Reported by: Tito Keitel.
19045 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19047 * docs/grub.texi (Naming convention): Document new naming convention.
19049 2010-07-20 Vadim Solomin <vadic052@gmail.com>
19050 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19052 Generate device.map in something closer to the old ordering.
19054 * util/deviceiter.c (struct device): New declaration.
19055 (compare_file_names): Rename to ...
19056 (compare_devices): ... this. Sort by kernel name in preference to
19057 the stable by-id name, but keep the latter as a fallback comparison.
19058 Update header comment.
19059 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
19060 of `struct device' rather than of plain file names.
19062 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
19064 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
19067 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19069 * commands/acpi.c (setup_common_tables): Use sizeof instead of
19071 (setv1table): Likewise.
19073 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19075 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
19076 removing the homehost if present.
19077 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
19078 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
19079 removing the homehost if present.
19080 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
19082 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
19084 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
19085 parameter. Set its pointer target to 0.
19086 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
19087 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
19088 `data_offset' value from the superblock for 1.x metadata.
19089 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
19090 data on the device.
19091 (insert_array): Record the start sector of data on the device.
19092 (grub_raid_register): Pass start_sector parameters to
19093 grub_raid_list->detect and insert_array.
19094 * include/grub/raid.h (struct grub_raid_array): Add start_sector
19096 (struct grub_raid): Add start_sector parameter to `detect'.
19098 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
19099 __attribute__ ((packed)), leaving a comment.
19100 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
19101 (grub_mdraid_detect_09): ... here and ...
19102 (grub_mdraid_detect_1x): ... here.
19104 2010-07-20 Peter Henn <peter.henn@web.de>
19106 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
19107 chunk size and disk size, which are already given as sector counts
19108 as distinct from the 0.90 units. Fetch the correct device number
19109 from the role table instead of using the table index.
19111 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
19113 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
19114 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
19115 (WriteMostly1): New macro.
19116 Set array->name to NULL for metadata format 0.90. Add support for
19117 metadata 1.x. Fix some comments.
19118 * disk/raid.c (): Add support for name based RAID arrays. Fix a
19120 * util/getroot.c (grub_util_get_grub_dev): Add support for
19121 /dev/md/name style devices.
19123 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19125 * .bzrignore: Ignore 20_linux_xen.
19127 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
19129 * util/import_unicode.py: Remove unnecessary imports.
19131 2010-07-17 Aleš Nesrsta <starous@volny.cz>
19133 Hotplugging and USB hub support.
19135 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
19136 (grub_ohci): Likewise.
19137 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
19138 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
19139 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
19140 (GRUB_OHCI_CTRL_EDS): Likewise.
19141 (GRUB_OHCI_BULK_EDS): Likewise.
19142 (GRUB_OHCI_TDS): Likewise.
19143 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
19144 (grub_ohci_ed_phys2virt): New function.
19145 (grub_ohci_virt_to_phys): Likewise.
19146 (grub_ohci_td_phys2virt): Likewise.
19147 (grub_ohci_td_virt2phys): Likewise.
19148 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
19150 (grub_ohci_find_ed): New function.
19151 (grub_ohci_alloc_td): Likewise.
19152 (grub_ohci_free_td): Likewise.
19153 (grub_ohci_free_tds): Likewise.
19154 (grub_ohci_transfer): Use previously allocated memory.
19155 (grub_ohci_portstatus): Reset status changed bit.
19156 (grub_ohci_detect_dev): Supply status changed.
19157 (grub_ohci_fini_hw): Free memory.
19158 (grub_ohci_restore_hw): Reallocate memory.
19159 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
19160 Reset status change.
19161 (grub_uhci_detect_dev): Supply status_change.
19162 * bus/usb/usb.c (attach_hooks): New var.
19163 (grub_usb_device_attach): New function.
19164 (grub_usb_register_attach_hook_class): Likewise.
19165 (grub_usb_unregister_attach_hook_class): Likewise.
19166 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
19167 (grub_usb_add_hub): Reset connection changed bit.
19168 (attach_root_port): New function.
19169 (grub_usb_root_hub): Likewise.
19170 (poll_nonroot_hub): Likewise.
19171 (grub_usb_poll_devices): Likewise.
19172 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
19173 * disk/usbms.c (grub_usbms_open): Use device hooks.
19174 (grub_usbms_iterate) :Poll devices.
19175 (grub_usbms_finddevs): Split into ...
19176 (grub_usbms_attach): ... this ...
19177 (grub_usbms_attach): ... and this.
19178 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
19180 (grub_usb_interface): New fields attached and detach_hook.
19181 (grub_usb_attach_hook_class): New type.
19182 (grub_usb_attach_desc): New struct.
19183 (grub_usb_register_attach_hook_class): New function.
19184 (grub_usb_unregister_attach_hook_class): Likewise.
19185 (grub_usb_poll_devices): Likewise.
19186 (grub_usb_device_attach): Likewise.
19187 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
19188 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
19190 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19192 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
19193 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
19194 delta determination style. Works with most NetBSD partitions too.
19196 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19198 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
19199 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
19201 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19203 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
19205 2010-07-14 Anton Blanchard <anton@samba.org>
19207 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
19210 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19212 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
19214 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19216 * kern/partition.c (grub_partition_check_containment): New function to
19217 check that a partition is physically contained in a parent. Since
19218 offsets are relative (and non-negative), this reduces to checking that
19219 the partition ends before its parent.
19220 (grub_partition_map_probe): Discard out-of-range sub-partitions.
19221 (grub_partition_iterate): Likewise.
19222 * include/grub/partition.h (grub_partition_map): Slightly more detailed
19224 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
19225 partitions that start before their parent, and add debug printfs.
19227 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
19229 * Makefile.in (.SUFFIX): Spell correctly, as ...
19230 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
19231 bare module name without `.mod', e.g. `test') tried to invoke a
19234 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
19236 * README: Point to the Info manual.
19238 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
19240 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
19241 2nd superblock position from partition size.
19243 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
19245 * Makefile.in (MAINTAINER_CLEANFILES): Remove
19246 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
19247 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
19250 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19252 Restructure SCSI .id handling.
19253 Reported and tested by: Aleš Nesrsta.
19255 * disk/ata.c (grub_atapi_close): Removed. All users updated.
19256 (grub_atapi_dev): Changed .name to "ata". New field .id.
19257 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
19258 (grub_usbms_dev): New field .id.
19259 * disk/scsi.c (grub_scsi_iterate): Generate name.
19260 (grub_scsi_open): Parse name.
19261 * include/grub/scsi.h (grub_make_scsi_id): New function.
19262 (grub_scsi_dev): Change iterate and open to number instead of naming
19263 busses. All users updated.
19264 (grub_scsi): Remove name. Add .bus.
19266 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19268 * commands/help.c (grub_cmd_help): Fix a typo.
19270 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19272 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
19273 Reported and tested by: Colin Watson.
19275 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19277 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
19280 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
19282 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
19284 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
19286 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
19289 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19291 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
19292 and disk/raid6_recover.c.
19293 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
19294 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
19296 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19298 * term/gfxterm.c (repaint_schedulded): Rename to ...
19299 (repaint_scheduled): ... this. Update all callers.
19300 (repaint_was_schedulded): Rename to ...
19301 (repaint_was_scheduled): ... this. Update all callers.
19303 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19305 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
19306 which we expect to be handled by upper layers.
19308 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
19310 * bus/usb/usbhub.c: #include time.h header.
19312 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19314 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
19315 entry_name also for entries without stat blocks (e.g. ".."); fixes
19316 corruption of the first entry in a directory.
19318 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19320 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
19321 after setting gfxterm as the active terminal. GRUB_BACKGROUND
19322 doesn't work otherwise.
19324 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19326 * docs/grub.texi (Features): Update list of supported file systems.
19327 (GNU/Linux): Update for GRUB 2.
19328 (Serial terminal): Remove mention of --disable-serial, which was a
19329 GRUB Legacy configure option. Update instructions to use
19330 `terminal_input' and `terminal_output' rather than `terminal'.
19331 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
19332 configuration' and `Installing GRUB using grub-install'.
19333 (Menu entry editor): Update for GRUB 2.
19334 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
19335 Document new -a, -u, and -v options.
19336 (initrd): New section.
19337 (initrd16): New section.
19338 (linux): New section.
19339 (linux16): New section.
19340 (search): The `var' argument to `--set' is optional.
19341 (GRUB only offers a rescue shell): Go into a little more detail on
19344 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19346 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
19348 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19350 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
19351 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
19353 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19355 * util/i386/pc/grub-setup.c (setup): Rename prefix to
19356 install_prefix, in line with install_dos_part and install_bsd_part.
19357 Add new prefix variable, which is copied to install_prefix after
19358 comparing core.img in memory with the one read from disk in the
19359 no-embedding case, and use that rather than overwriting
19360 install_prefix immediately when installing to a partition.
19361 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
19364 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
19366 * configure.ac: Avoid == in test command, it's not portable.
19367 * util/grub.d/30_os-prober.in: Likewise.
19369 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
19371 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
19373 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
19375 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
19376 multiple (top-level) partmaps.
19378 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19380 * util/i386/efi/grub-install.in: Don't use empty grub_device.
19381 Reported by: Tino Keitel.
19383 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19385 Bidi and diacritics support.
19387 * Makefile.in (widthspec.bin): New target.
19388 (widthspec.h): Likewise.
19389 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
19390 * autogen.sh: Generate unidata.c.
19391 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
19392 * commands/ls.c (grub_ls_list_devices): Likewise.
19393 (grub_ls_list_files): Likewise.
19394 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
19395 (grub_mini_cmd_lsmod): Likewise.
19396 * commands/read.c: Likewise.
19397 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
19398 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
19399 * lib/arg.c (grub_arg_show_help): Likewise.
19400 * lib/crypto.c (grub_password_get): Likewise.
19401 * normal/auth.c (grub_username_get): Likewise.
19402 * normal/misc.c (grub_normal_print_device_info): Likewise.
19403 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
19404 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
19405 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
19406 (normal/charset.c_DEPENDENCIES): New variable.
19407 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
19408 (pkglib_MODULES): Remove charset.mod.
19409 (charset_mod_SOURCES): Removed.
19410 (charset_mod_CFLAGS): Likewise.
19411 (charset_mod_LDFLAGS): Likewise.
19412 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
19413 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
19415 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19416 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19417 (kernel_img_HEADERS): Add terminfo.h.
19418 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
19419 Fill ->font. Reverse ascii bitmaps.
19420 (grub_font_get_xheight): New function.
19421 * font/font.c (grub_font_get_string_width): Moved from here ...
19422 * gfxmenu/font.c (grub_font_get_string_width): ... here.
19423 * font/font.c (grub_font_draw_string): Moved from here ...
19424 * gfxmenu/font.c (grub_font_draw_string): ... here.
19425 * font/font.c (grub_font_dup_glyph): New function.
19426 (grub_font_blit_glyph): Likewise.
19427 (grub_font_blit_glyph_mirror): Likewise.
19428 (blit_comb): Likewise.
19429 (grub_font_construct_dry_run): Likewise.
19430 (grub_font_get_constructed_device_width): Likewise.
19431 (grub_font_construct_glyph): Likewise.
19432 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
19433 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
19434 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
19435 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
19436 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
19437 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
19438 (grub_font_get_xheight): New proto.
19439 (grub_font_get_constructed_device_width): Likewise.
19440 (grub_font_construct_glyph): Likewise.
19441 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
19442 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
19443 * include/grub/font.h (grub_font_draw_string): Moved from here ...
19444 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
19445 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
19446 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
19447 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
19448 (grub_console_getcharwidth): Likewise.
19449 * include/grub/misc.h (grub_xputs): New proto.
19450 (grub_puts): Inlined.
19451 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
19452 (grub_normal_get_line_counter): Removed.
19453 (grub_install_newline_hook): Likewise.
19454 (grub_normal_get_char_counter): New proto.
19455 (grub_normal_reset_more): Likewise.
19456 (grub_xputs_normal): Likewise.
19457 * include/grub/powerpc/ieee1275/console.h: Removed.
19458 * include/grub/sparc64/ieee1275/console.h: Likewise.
19459 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
19460 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
19461 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
19462 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
19463 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
19464 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
19465 (grub_term_input): Pass reference to self. All users updated.
19466 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
19467 Pass reference to self. New fields normal_color, highlight_color and
19468 data. All users updated.
19469 (grub_putchar): Removed.
19470 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
19471 (grub_unicode_estimate_width): New function.
19472 (grub_term_getcharwidth): Add defaults.
19473 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
19474 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
19475 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
19476 (grub_cls): Remove EXPORT_FUNC.
19477 (grub_setcolorstate): Inline.
19478 (grub_newline_hook): Removed.
19479 * include/grub/terminfo.h: Rewritten. All users updated.
19480 * include/grub/unicode.h: New file.
19481 * include/grub/video.h (grub_video_signed_rect): New type.
19482 * kern/emu/console.c (grub_console_highlight_color): Removed.
19483 (grub_console_normal_color): Likewise.
19484 (grub_console_standard_color): Made static.
19485 (grub_ncurses_putchar): Remove mapping.
19486 (grub_ncurses_getcharwidth): Removed.
19487 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
19488 (grub_ncurses_setcolor): Removed.
19489 (grub_ncurses_getcolor): Likewise.
19490 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
19491 (grub_console_putchar): ... this.
19492 (grub_console_putchar): Handle argument difference.
19493 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
19494 console_init_early and console_init_lately.
19495 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
19496 * kern/misc.c (grub_puts): Removed.
19497 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
19498 (grub_vsnprintf_real): Remove str = NULL support.
19499 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
19500 * normal/charset.c (grub_utf8_to_ucs4): ... here.
19501 * kern/term.c (grub_putcode): Renamed to ...
19502 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
19503 (grub_putchar): Removed.
19504 (grub_xputs_dumb): New function.
19505 (grub_xputs): New variable.
19506 * lib/charset.c: Move from here ...
19507 * normal/charset.c: ... to here.
19508 (grub_ucs4_to_utf8): New function.
19509 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
19510 (join_types): New variable.
19511 (unpack_join): New function.
19512 (bidi_types): New variable.
19513 (unpack_bidi): New function.
19514 (get_bidi_type): Likewise.
19515 (get_join_type): Likewise.
19516 (is_mirrored): Likewise.
19517 (grub_unicode_get_comb_type): Likewise.
19518 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
19519 (is_type_after): Likewise.
19520 (grub_unicode_aglomerate_comb): Likewise.
19521 (bidi_line_wrap): Likewise.
19522 (grub_bidi_line_logical_to_visual): Likewise.
19523 (grub_bidi_logical_to_visual): Likewise.
19524 (grub_unicode_mirror_code): Likewise.
19525 (grub_unicode_shape_code): Likewise.
19526 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
19527 Don't use grub_putchar.
19528 * normal/main.c (grub_normal_init_page): Use grub_putcode.
19529 (grub_normal_reader_init): Likewise.
19530 (grub_xputs_saved): New variable.
19531 (GRUB_MOD_INIT): Set grub_xputs.
19532 (GRUB_MOD_FINI): Restore grub_xputs.
19533 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
19534 (menu_init): Avoid printing gfxmenu error.
19535 (show_menu): Use grub_normal_get_char_counter.
19536 * normal/menu_entry.c (update_screen): Fix out-of-array.
19537 (complete): Avoid NULL dereferencing.
19538 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
19539 * normal/menu_text.c (print_spaces): Removed.
19540 (grub_print_ucs4): Likewise.
19541 (grub_print_message_indented): Use grub_print_ucs4.
19542 (print_message): Use grub_putcode.
19543 (print_entry): Hanlde diacritics.
19544 * normal/term.c (term_state): New type.
19545 (grub_more_lines): Removed.
19546 (term_states): New variable.
19547 (grub_normal_line_counter): Renamed to ..
19548 (grub_normal_char_counter): ...this. All users updated.
19549 (grub_normal_get_line_counter): Renamed to ...
19550 (grub_normal_get_char_counter): ... this.
19551 (grub_normal_reset_more): New function.
19552 (process_newline): Removed.
19553 (print_more): New function.
19554 (grub_install_newline_hook): Removed.
19555 (map_code): New function.
19556 (grub_puts_terminal): Use grub_print_ucs4.
19557 (putglyph): New function.
19558 (putcode_real): Likewise.
19559 (grub_putcode): Use putcode_real.
19560 (get_maxwidth): New function.
19561 (get_startwidth): Likewise.
19562 (print_ucs4_terminal): Likewise.
19563 (find_term_state): Likewise.
19564 (put_glyphs_terminal): Likewise.
19565 (print_backlog): Likewise.
19566 (print_ucs4_real): Likewise.
19567 (grub_print_ucs4): Likewise.
19568 (grub_xputs_normal): Likewise.
19569 * term/efi/console.c (grub_console_putchar): Output diacritics.
19570 (grub_console_getcharwidth): Removed.
19571 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
19572 * term/gfxterm.c (clear_char): Free chars.
19573 (scroll_up): Avoid leaking memory.
19574 (grub_gfxterm_putchar): Support diacritics.
19575 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
19576 * term/i386/pc/console.c (grub_console_term_output): Declare as
19577 GRUB_TERM_CODE_TYPE_VGA.
19578 * term/i386/pc/vga.c (grub_vga_term): Declare as
19579 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
19580 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
19581 GRUB_TERM_CODE_TYPE_VGA.
19582 * term/i386/vga_common.c (map_char): Removed.
19583 (grub_console_putchar): Likewise.
19584 (grub_console_getcharwidth): Likewise.
19585 * term/ieee1275/ofconsole.c: Simplify using terminfo.
19586 (colors): Reordered to match terminfo.
19587 (grub_ofconsole_normal_color): Removed.
19588 (grub_ofconsole_writeesc): Likewise.
19589 (grub_ofconsole_highlight_color): Likewise.
19590 (grub_ofconsole_getcharwidth): Likewise.
19591 (grub_ofconsole_setcolorstate): Likewise.
19592 (grub_ofconsole_setcolor): Likewise.
19593 (grub_ofconsole_getcolor): Likewise.
19594 (grub_ofconsole_readkey): Renamed to ...
19595 (readkey): ... this. Remove escape sequence handling. Return -1 on no
19597 (grub_ofconsole_checkkey): Removed.
19598 (grub_ofconsole_getkey): Likewise.
19599 (grub_ofconsole_getxy): Likewise.
19600 (grub_ofconsole_gotoxy): Likewise.
19601 (grub_ofconsole_cls): Likewise.
19602 (grub_ofconsole_refresh): Likewise.
19603 (grub_ofconsole_terminfo_input): New struct.
19604 (grub_ofconsole_terminfo_output): Likewise.
19605 (grub_ofconsole_term_input): Use terminfo.
19606 (grub_ofconsole_term_output): Likewise.
19607 (grub_console_init): Split into ...
19608 (grub_console_init_early): ...this and ...
19609 (grub_console_init_lately): ...this. Use terminfo.
19610 (grub_ofconsole_putchar): Renamed to ...
19611 (put): ... this. Remove mapping.
19612 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
19613 * term/serial.c: Simplify using terminfo.
19616 (keep_track): Likewise.
19617 (registered): Likewise.
19618 (input_buf): Likewise.
19619 (npending): Likewise.
19620 (serial_translate_key_sequence): Likewise.
19621 (fill_input_buf): Likewise.
19622 (grub_serial_checkkey): Likewise.
19623 (grub_serial_getkey): Likewise.
19624 (grub_serial_getxy): Likewise.
19625 (grub_serial_gotoxy): Likewise.
19626 (grub_serial_putchar): Likewise.
19627 (grub_serial_cls): Likewise.
19628 (grub_serial_setcolorstate): Likewise.
19629 (grub_serial_setcursor): Likewise.
19630 (serial_hw_init): Use serial_hw_fetch.
19631 (grub_serial_terminfo_input): New variable.
19632 (grub_serial_terminfo_output): Likewise.
19633 (grub_serial_term_input): Use terminfo.
19634 (grub_serial_term_output): Likewise.
19635 * term/terminfo.c (putstr): Use put.
19636 (grub_terminfo_all_free): New function
19637 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
19638 (grub_terminfo_output_register): New function.
19639 (grub_terminfo_output_unregister): Likewise.
19640 (grub_terminfo_getxy): Likewise.
19641 (grub_terminfo_readkey): Likewise.
19642 (grub_terminfo_checkkey): Likewise.
19643 (grub_terminfo_getkey): Likewise.
19644 (grub_terminfo_input_init): Likewise.
19645 (print_terminfo): Likewise.
19646 (grub_cmd_terminfo): Handle encoding.
19647 (grub_terminfo_gotoxy): Track position.
19648 (grub_terminfo_cls): Likewise.
19649 (grub_terminfo_putchar): Likewise.
19650 (grub_terminfo_setcolorstate): Handle colors
19651 (grub_terminfo_cursor_on): This ...
19652 (grub_terminfo_cursor_off): ... and this merged into ...
19653 (grub_terminfo_setcursor): ... this.
19654 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
19655 * unicode/ArabicShaping.txt: New file (imported from Unicode).
19656 * unicode/BidiMirroring.txt: Likewise.
19657 * unicode/UnicodeData.txt: Likewise.
19658 * unicode/COPYING: Likewise.
19659 * util/grub-editenv.c (grub_putchar): Removed.
19660 (grub_xputs_real): New function.
19661 (grub_xputs): New variable.
19662 * util/grub-fstest.c (grub_putchar): Removed.
19663 (grub_xputs_real): New function.
19664 (grub_xputs): New variable.
19665 * util/grub-mkdevicemap.c (grub_putchar): Removed.
19666 (grub_xputs_real): New function.
19667 (grub_xputs): New variable.
19668 * util/grub-probe.c (grub_putchar): Removed.
19669 (grub_xputs_real): New function.
19670 (grub_xputs): New variable.
19671 * util/grub-script-check.c (grub_putchar): Removed.
19672 (grub_xputs_real): New function.
19673 (grub_xputs): New variable.
19674 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
19675 (grub_xputs_real): New function.
19676 (grub_xputs): New variable.
19677 * util/import_unicode.py: New file.
19678 * util/grub-mkfont.c (ft_errmsgs): New array.
19679 (grub_glyph_info): Make bitmap a pointer.
19680 (file_formats): New type WIDTH_SPEC.
19681 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
19682 (options): Add width-spec.
19684 (add_char): Renamed to ...
19685 (add_glyph): ... this.
19686 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
19687 (glyph_replace): New type.
19688 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
19689 (add_char): New function.
19690 (add_subst): Likewise.
19691 (process_cursive): Likewise.
19692 (add_font): Handle GSUB.
19693 (write_font_width_spec): New function.
19694 (main): Sort glyphs.
19695 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
19696 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
19697 * kern/term.c (grub_cls): Moved from here...
19698 * normal/term.c (grub_cls): ... here.
19700 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19702 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
19703 suitable for using within the format argument of printf when
19704 converting grub_size_t.
19705 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
19706 "x" to convert grub_size_t arguments.
19708 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19710 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
19712 (list_get_minimal_size): Take selection box into account.
19714 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19716 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
19719 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19721 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
19722 devices when iterating over /dev/disk/by-id; they will be handled
19723 later if appropriate, which they aren't always (e.g. LVM).
19725 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19727 * include/grub/misc.h (grub_reboot): Declare as noreturn.
19728 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
19730 (grub_halt): Likewise.
19731 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
19733 (grub_halt): Don't return, even if all of shut-down, power-off, and
19736 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19738 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
19739 arguments, not three.
19741 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19743 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
19744 * util/grub.d/10_linux.in: Use it to check for LVM, so that
19745 LVM-on-RAID is handled correctly.
19747 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19749 * docs/grub.texi (Changes from GRUB Legacy): New section.
19750 (Future): Fix typo.
19752 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19754 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
19755 grub.d/README accidentally ends up executable for one reason or
19756 another. Ignore it.
19758 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19760 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
19761 (gpt_partition_map_iterate): Support non-512B sectors.
19763 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19765 * kern/efi/init.c (grub_efi_init): Disable watchdog.
19766 Tested by: Seth Goldberg.
19768 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19770 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
19771 Properly align mbi.
19772 Reported by: Seth Goldberg.
19774 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
19776 * util/grub-mkrescue.in: Avoid module duplication.
19778 2010-07-01 Sean Finney <seanius@seanius.net>
19780 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
19782 2010-07-01 Sean Finney <seanius@seanius.net>
19784 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
19786 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
19788 * disk/lvm.c (grub_lvm_checkvalue): New function.
19789 (grub_lvm_check_flag): Likewise.
19791 2010-07-01 Robert Millan <rmh@gnu.org>
19793 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
19794 Support 'p' as partition separator on kernel of FreeBSD (used
19796 (grub_util_biosdisk_get_grub_dev): Likewise.
19798 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
19800 Yeeloong firmware port.
19802 * boot/mips/yeeloong/fwstart.S: New file.
19803 * bus/cs5536.c (gpiodump): New const.
19804 (set_io_space): New function.
19805 (set_iod): Likewise.
19806 (set_p2d): Likewise.
19807 (grub_cs5536_init_geode): Likewise.
19808 * commands/mips/yeeloong/lsspd.c: New file.
19809 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
19810 (serial_mod_SOURCES): New variable.
19811 (serial_mod_CFLAGS): Likewise.
19812 (serial_mod_LDFLAGS): Likewise.
19813 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
19814 term/terminfo.c and term/tparm.c.
19815 (pkglib_IMAGES): Add fwstart.img.
19816 (fwstart_img_SOURCES): New variable.
19817 (fwstart_img_CFLAGS): Likewise.
19818 (fwstart_img_ASFLAGS): Likewise.
19819 (fwstart_img_LDFLAGS): Likewise.
19820 (fwstart_img_FORMAT): Likewise.
19821 (pkglib_MODULES): Add lsspd.mod.
19822 (lsspd_mod_SOURCES): New variable.
19823 (lsspd_mod_CFLAGS): Likewise.
19824 (lsspd_mod_LDFLAGS): Likewise.
19825 (pkglib_MODULES): Add halt.mod.
19826 (halt_mod_SOURCES): New variable.
19827 (halt_mod_CFLAGS): Likewise.
19828 (halt_mod_LDFLAGS): Likewise.
19829 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
19830 (serial_mod_SOURCES): Removed.
19831 (serial_mod_CFLAGS): Likewise.
19832 (serial_mod_LDFLAGS): Likewise.
19833 * disk/ata.c (check_device): New function.
19834 (grub_ata_device_initialize): Use check_device.
19835 (grub_ata_iterate): Recheck devices.
19836 (grub_ata_open): Likewise.
19837 (grub_atapi_iterate): Likewise.
19838 (grub_atapi_open): Likewise.
19839 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
19840 (GRUB_ATA_CH1_PORT1): Likewise.
19841 (GRUB_ATA_CH0_PORT2): Likewise.
19842 (GRUB_ATA_CH1_PORT2): Likewise.
19843 * include/grub/mips/loongson.h: New file.
19844 * include/grub/mips/yeeloong/ec.h: Likewise.
19845 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
19846 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
19847 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
19848 * include/grub/misc.h (grub_halt): Declare as noreturn.
19849 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
19850 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
19851 (UART_ENABLE_FIFO_TRIGGER1): New definition.
19852 (UART_ENABLE_DTRRTS): Likewise.
19853 (UART_ENABLE_MODEM): Removed.
19854 (UART_ENABLE_OUT2): New const.
19855 * include/grub/term.h (grub_term_register_input_active): New function.
19856 (grub_term_register_output_active): Likewise.
19857 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
19859 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
19860 (init_pci): New function.
19861 (grub_machine_init): Execute platform init when firmware. Init serial.
19862 (grub_halt): Implement.
19863 (grub_exit): Likewise.
19864 (grub_reboot): Likewise.
19865 * term/serial.c (serial_hw_init): Update macros.
19866 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
19867 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
19868 (image_targets): New target mipsel-yeeloong-flash.
19869 (generate_image): Support IMAGE_YEELOONG_FLASH.
19870 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
19871 (grub_video_sm712_setup): Init card.
19872 (grub_video_sm712_set_palette): Removed.
19873 * video/sm712_init.c: New file.
19875 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
19877 * Makefile.in (install-local): Temporarily prepend $(builddir) to
19878 PATH when running help2man and then run it on the unadorned
19879 executable names, rather than passing $(builddir)/* paths to
19880 help2man. This avoids the build directory ending up in generated
19883 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
19885 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
19886 to avoid accidents when debugging with 'sh -x'.
19887 * util/grub-mkrescue.in: Likewise.
19888 * util/grub.d/00_header.in: Likewise.
19889 * util/grub.d/10_hurd.in: Likewise.
19890 * util/grub.d/10_kfreebsd.in: Likewise.
19891 * util/grub.d/10_linux.in: Likewise.
19892 * util/grub.d/10_netbsd.in: Likewise.
19893 * util/grub.d/10_windows.in: Likewise.
19894 * util/grub.d/20_linux_xen.in: Likewise.
19895 * util/grub.d/30_os-prober.in: Likewise.
19896 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
19898 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
19900 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
19901 last character in the buffer.
19902 Reported by: Vladimir Serbinenko.
19904 2010-06-29 Robert Millan <rmh@gnu.org>
19906 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
19907 (Command-line and menu entry commands): Document `badram' command.
19909 2010-06-28 Robert Millan <rmh@gnu.org>
19911 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
19912 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
19913 command using ${GRUB_BADRAM} as parameter.
19915 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19917 * docs/grub.texi (Device map): New section.
19918 (Themes): New section (stub).
19919 * Makefile.in (docs/grub.info): The info documentation now builds
19920 without errors. Make sure it stays that way.
19922 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
19924 Use normal parser for menu entries.
19925 Reported by: Thomas Frauendorfer
19927 * include/grub/parser.h (grub_parser_execute): Don't export.
19928 * normal/menu.c (grub_menu_execute_entry_real): New function.
19929 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
19931 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19933 * docs/grub.texi (Embedded configuration): New section (replacing
19934 old "Preset Menu" stub).
19935 (Images): New section.
19936 (configfile): Note that any menu entries defined in `file' are shown
19939 2010-06-28 Josh Triplett <josh@joshtriplett.org>
19941 * mmap/i386/pc/mmap_helper.S: Set CF on return.
19943 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19945 * util/grub-install.in: Add --debug-image= option.
19947 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19949 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
19952 * util/deviceiter.c (check_device): Rename to ...
19953 (check_device_readable_unique): ... this. Update all callers.
19954 Maintain and check a list of which devices (by canonicalized name)
19955 have already been seen.
19956 (clear_seen_devices): New function.
19957 (compare_file_names) [__linux__]: New function.
19958 (grub_util_iterate_devices): Clear the list of seen devices on exit
19959 and (just in case) on entry.
19960 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
19961 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
19962 seen-devices list, superseded by general code in check_device.
19964 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19966 * commands/cat.c (options): New variable.
19967 (grub_cmd_cat): Parse options. If the --dos option is given, print
19968 DOS-style "\r\n" line endings as simple newlines (Debian bug
19970 (GRUB_MOD_INIT): Use extcmd.
19971 (GRUB_MOD_FINI): Likewise.
19972 * docs/grub.texi (cat): Document --dos.
19974 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
19976 XEN with Linux grub-mkconfig support.
19978 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
19979 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
19980 GRUB_CMDLINE_XEN_DEFAULT.
19981 * util/grub.d/20_linux_xen.in: New file.
19983 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
19985 Initialise VGA video on qemu ourselves.
19987 * boot/i386/qemu/boot.S: Don't call 0xc000.
19988 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
19989 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
19990 (kernel_img_HEADERS): Add pci.h.
19991 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
19992 * configure.ac: Force unifont on qemu and yeeloong.
19993 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
19994 (grub_vga_palette_write): Use correct register.
19995 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
19996 Call grub_qemu_init_cirrus.
19997 * kern/i386/qemu/init.c: New file.
19998 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
20000 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
20002 2010-06-26 Pavel Roskin <proski@gnu.org>
20004 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
20007 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
20009 * docs/grub.texi (Simple configuration): Explain that
20010 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
20011 set to `true' to disable their respective recovery entries, not
20014 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
20016 Make the `source' command slightly faster.
20018 * normal/main.c (grub_normal_execute): Don't re-read list files when
20021 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
20023 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
20024 field position and mask size to red fields from mode_info, not
20026 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
20027 Remove redundant tag->common.framebuffer_type assignment.
20028 Reported by: Seth Goldberg.
20030 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
20032 Sync up other versions of the Linux loader with Robert Millan's
20033 change of 2010-01-09, "Make loader output a bit more user-friendly".
20035 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
20037 (grub_cmd_linux): Likewise.
20038 (grub_cmd_initrd): Likewise.
20039 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
20040 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
20042 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
20044 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
20045 larger than MEMORY_MAP_SIZE.
20047 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
20049 Fix parallel build.
20051 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
20053 * script/parser.y: #include grub_script.tab.h header.
20055 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20057 Support >3GiB and <16MiB RAM in i386-qemu.
20059 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
20060 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
20061 (grub_lower_mem): Removed.
20062 (grub_upper_mem): Likewise.
20063 (mem_size): Made static.
20064 (above_4g): New variable.
20065 (grub_machine_mmap_init): Detect small mem_size and above_4g.
20066 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
20069 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20071 Cirrus 5446 and Bochs video cards support.
20073 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
20075 (video_cirrus_mod_SOURCES): New variable.
20076 (video_cirrus_mod_CFLAGS): Likewise.
20077 (video_cirrus_mod_LDFLAGS): Likewise.
20078 (video_bochs_mod_SOURCES): Likewise.
20079 (video_bochs_mod_CFLAGS): Likewise.
20080 (video_bochs_mod_LDFLAGS): Likewise.
20081 * include/grub/vga.h: New file.
20082 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
20083 (grub_video_fb_set_page_t): New type.
20084 (grub_video_fb_setup): New prototype.
20085 (grub_video_fb_swap_buffers): Likewise.
20086 (grub_video_fb_get_info_and_fini): Likewise.
20087 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
20088 (CRTC_DATA_PORT): Likewise.
20089 (CRTC_CURSOR): Likewise.
20090 (CRTC_CURSOR_ADDR_HIGH): Likewise.
20091 (CRTC_CURSOR_ADDR_LOW): Likewise.
20092 (CRTC_CURSOR_DISABLE): Likewise.
20093 (update_cursor): Use grub_vga_cr_write.
20094 (grub_vga_text_setcursor): Likewise.
20095 * video/bochs.c: New file.
20096 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
20097 (palette): Likewise.
20098 (palette_size): Likewise.
20099 (framebuffer): New variable.
20100 (grub_video_fb_init): Use 'framebuffer'.
20101 (grub_video_fb_fini): Likewise.
20102 (grub_video_fb_get_info): Likewise.
20103 (grub_video_fb_get_palette): Likewise.
20104 (grub_video_fb_set_palette): Likewise.
20105 (grub_video_fb_set_viewport): Likewise.
20106 (grub_video_fb_get_viewport): Likewise.
20107 (grub_video_fb_map_color): Likewise.
20108 (grub_video_fb_map_rgb): Likewise.
20109 (grub_video_fb_map_rgba): Likewise.
20110 (grub_video_fb_unmap_color): Likewise.
20111 (grub_video_fb_unmap_color_int): Likewise.
20112 (grub_video_fb_fill_rect): Likewise.
20113 (grub_video_fb_blit_bitmap): Likewise.
20114 (grub_video_fb_blit_render_target): Likewise.
20115 (grub_video_fb_scroll): Likewise.
20116 (grub_video_fb_create_render_target): Likewise.
20117 (grub_video_fb_doublebuf_blit_init): Likewise.
20118 (grub_video_fb_set_active_render_target): Handle doublebuffering.
20119 (doublebuf_pageflipping_update_screen): New function.
20120 (doublebuf_pageflipping_init): Likewise.
20121 (grub_video_fb_setup): Likewise.
20122 (grub_video_fb_swap_buffers): Likewise.
20123 (grub_video_fb_get_info_and_fini): Likewise.
20124 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
20126 (doublebuf_pageflipping_commit): Restructured into ...
20127 (doublebuf_pageflipping_set_page): ... this.
20128 (doublebuf_pageflipping_update_screen): Removed.
20129 (doublebuf_pageflipping_init): Likewise.
20130 (double_buffering_init): Likewise.
20131 (grub_video_vbe_setup): Use grub_video_fb_setup.
20132 (grub_video_vbe_swap_buffers): Removed.
20133 (grub_video_vbe_set_active_render_target): Likewise.
20134 (grub_video_vbe_get_active_render_target): Likewise.
20135 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
20136 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
20137 grub_video_fb_set_active_render_target and
20138 grub_video_fb_get_active_render_target.
20139 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
20140 (SEQUENCER_DATA_PORT): Likewise.
20141 (MAP_MASK_REGISTER): Likewise.
20142 (CRTC_ADDR_PORT): Likewise.
20143 (CRTC_DATA_PORT): Likewise.
20144 (START_ADDR_HIGH_REGISTER): Likewise.
20145 (START_ADDR_LOW_REGISTER): Likewise.
20146 (GRAPHICS_ADDR_PORT): Likewise.
20147 (GRAPHICS_DATA_PORT): Likewise.
20148 (READ_MAP_REGISTER): Likewise.
20149 (INPUT_STATUS1_REGISTER): Likewise.
20150 (INPUT_STATUS1_VERTR_BIT): Likewise.
20151 (get_map_mask): Use grub_vga_sr_read.
20152 (set_map_mask): Use grub_vga_sr_write.
20153 (set_read_map): Use grub_vga_gr_write.
20154 (set_start_address): Use grub_vga_cr_write.
20155 * video/sm712.c (framebuffer): Remove leftover fields.
20157 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
20159 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
20160 setting GRUB_VIDEO_BACKEND. Make it available as a user override
20161 instead. Replace the gfxterm backend check with a check that
20162 ${GRUB_PREFIX}/video.lst is non-empty.
20163 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
20165 (load_video): New generated function. Call it before loading
20166 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
20167 * util/grub.d/10_linux.in (linux_entry): Call load_video.
20168 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
20169 * docs/grub.texi (Simple configuration): Document
20170 GRUB_VIDEO_BACKEND.
20172 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20174 Use video functions in linux and xnu loaders.
20176 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
20177 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
20178 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
20179 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
20180 loader/i386/pc/linux.c.
20181 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
20182 (find_line_len): Removed.
20183 (find_framebuf): Likewise.
20184 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
20185 * loader/i386/efi/xnu.c: Removed.
20186 * loader/i386/pc/xnu.c: Moved from here...
20187 * loader/i386/xnu.c: ...here.
20189 Enable priorities in video drivers.
20191 * include/grub/video.h (grub_video_adapter_prio_t): New type.
20192 (grub_video_adapter): New field prio.
20193 (grub_video_register): Respect prio when inserting.
20194 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
20195 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
20196 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
20197 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
20198 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
20199 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
20200 * video/sm712.c (grub_video_sm712_adapter): Likewise.
20204 * include/grub/video.h (grub_video_driver_id_t): New value
20205 GRUB_VIDEO_DRIVER_SDL.
20206 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
20208 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20210 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
20211 argument to printf.
20212 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20214 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20216 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
20217 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20219 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20221 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
20222 directly, and recommend grub-install instead.
20223 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20225 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20227 Fix i386-pc prefix handling with nested partitions (Debian bug
20228 #585068). Note that the case where the core image is booted using
20229 multiboot and relocated from its original location still requires
20232 * kern/i386/pc/init.c (make_install_device): If the prefix starts
20233 with "(,", fill the boot drive in between those two characters, but
20234 expect that a full partition specification including partition map
20236 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
20237 specified, write a prefix without the drive name but including a
20238 full partition specification.
20240 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
20242 * util/grub-mkconfig.in: Ignore non-option arguments, for
20243 compatibility with older versions (before 2010-06-12) which did the
20244 same. In particular, this makes it easier to ship an update-grub
20245 wrapper which is compatible with that used with GRUB Legacy (Debian
20248 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20250 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
20251 for manual page generation.
20253 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20255 * po/POTFILES: Remove leftover commands/handler.c.
20257 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
20259 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
20260 left this script non-functional.
20262 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
20264 * docs/man/grub-emu.h2m: New file.
20266 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
20268 * docs/grub.texi (Commands): Document reduced command set in rescue
20270 (cpuid): New section.
20272 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
20274 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
20275 new partition naming style.
20276 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
20278 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
20280 Add "-o grub.iso" like cmdline options support.
20282 * util/grub-install.in: Improve cmdline option parsing.
20283 * util/grub-mkconfig.in: Likewise.
20284 * util/grub-mkrescue.in: Likewise.
20285 * util/grub-reboot.in: Likewise.
20286 * util/grub-set-default.in: Likewise.
20287 * util/i386/efi/grub-install.in: Likewise.
20288 * util/ieee1275/grub-install.in: Likewise.
20289 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20291 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20293 * .bzrignore: Ignore 41_custom.
20295 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
20297 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
20299 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20301 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
20302 prototype declarations.
20304 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
20305 generating fs, partmap, and video lists.
20306 * include/grub/fs.h (grub_fs_register): Omit prototype if
20307 GRUB_LST_GENERATOR is defined.
20308 * include/grub/partition.h (grub_partition_map_register): Likewise.
20309 * include/grub/video.h (grub_video_register): Likewise.
20311 2010-06-12 Javier Martín <lordhabbit@gmail.com>
20313 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
20315 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
20317 * util/grub-mkrescue.in: Support --xorriso argument.
20319 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20321 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
20322 Suggested by: Thomas Schmitt.
20324 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20326 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
20327 Suggested by: Thomas Schmitt.
20329 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20331 custom.cfg support.
20333 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
20334 * util/grub.d/41_custom.in: New file.
20336 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20338 * util/grub-mkrescue.in (make_image): Remove sh module, which has
20339 been merged back into normal.
20341 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
20343 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
20344 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
20346 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
20348 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
20349 when generating manual pages.
20350 * docs/man/grub-bin2h.h2m: New file.
20351 * docs/man/grub-editenv.h2m: New file.
20352 * docs/man/grub-fstest.h2m: New file.
20353 * docs/man/grub-install.h2m: New file.
20354 * docs/man/grub-macho2img.h2m: New file.
20355 * docs/man/grub-mkconfig.h2m: New file.
20356 * docs/man/grub-mkdevicemap.h2m: New file.
20357 * docs/man/grub-mkfont.h2m: New file.
20358 * docs/man/grub-mkimage.h2m: New file.
20359 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
20360 * docs/man/grub-mkrelpath.h2m: New file.
20361 * docs/man/grub-mkrescue.h2m: New file.
20362 * docs/man/grub-ofpathname.h2m: New file.
20363 * docs/man/grub-pe2elf.h2m: New file.
20364 * docs/man/grub-probe.h2m: New file.
20365 * docs/man/grub-reboot.h2m: New file.
20366 * docs/man/grub-script-check.h2m: New file.
20367 * docs/man/grub-set-default.h2m: New file.
20368 * docs/man/grub-setup.h2m: New file.
20370 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
20372 Use FOR_* macros instead of *_iterate whenever possible.
20374 * commands/handler.c: Removed.
20375 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
20376 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
20377 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20378 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
20379 (grub_probe_SOURCES): Remove kern/parser.c.
20380 (util/grub-script-check.c_DEPENDENCIES): Removed.
20381 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
20382 and grub_script_check_init.c.
20383 (grub_script_check_init.lst): Removed.
20384 (grub_script_check_init.h): Likewise.
20385 (grub_script_check_init.c): Likewise.
20386 (pkglib_MODULES): Remove handler.mod and sh.mod.
20387 (handler_mod_SOURCES): Removed.
20388 (handler_mod_CFLAGS): Likewise.
20389 (handler_mod_LDFLAGS): Likewise.
20390 (normal_mod_SOURCES): Remove normal/handler.c.
20391 Add script/main.c, script/script.c, script/execute.c,
20392 script/function.c, script/lexer.c, grub_script.tab.c
20393 and grub_script.yy.c.
20394 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20395 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20396 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
20397 (grub_setup_SOURCES): Remove kern/parser.c.
20398 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20399 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
20400 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
20401 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20402 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20403 (grub_setup_SOURCES): Remove kern/parser.c.
20404 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20405 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
20406 * include/grub/command.h (grub_command_iterate): Removed.
20407 (FOR_COMMANDS): New macro.
20408 * include/grub/dl.h (grub_dl): New member next.
20409 (grub_dl_iterate): Removed.
20410 (grub_dl_head): New variable declaration.
20411 (FOR_DL_MODULES): New macro.
20412 * include/grub/fs.h: Include list.h.
20413 (grub_fs): Make next first element.
20414 (grub_fs_list): New variable declaration.
20415 (grub_fs_register): Make inline.
20416 (grub_fs_unregister): Likewise.
20417 (grub_fs_iterate): Removed.
20418 (FOR_FILESYSTEMS): New macro.
20419 * include/grub/handler.h: Removed.
20420 * include/grub/list.h (grub_list_hook_t): Removed.
20421 (grub_list_test_t): Likewise.
20422 (grub_list_pop): Likewise.
20423 (grub_list_iterate): Likewise.
20424 (grub_list_insert): Likewise.
20425 (FOR_LIST_ELEMENTS): New macro.
20426 * include/grub/parser.h (grub_parser_class): Removed.
20427 (grub_parser_register): Likewise.
20428 (grub_parser_unregister): Likewise.
20429 (grub_parser_get_current): Likewise.
20430 (grub_parser_set_current): Likewise.
20431 (grub_register_rescue_parser): Likewise.
20432 (grub_rescue_parse_line): New function.
20433 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
20434 * include/grub/script_sh.h (grub_script_function_list): New variable
20436 (FOR_SCRIPT_FUNCTIONS): New macro.
20437 (grub_script_function_iterate): Removed.
20438 (grub_normal_parse_line): New prototype.
20439 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
20440 (FOR_DISABLED_TERM_INPUTS): Likewise.
20441 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
20442 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
20443 * include/grub/video.h (grub_video_adapter): Move 'next' to first
20445 (grub_video_register): Inline.
20446 (grub_video_unregister): Likewise.
20447 (grub_video_adapter_list): New variable declaration.
20448 (grub_video_iterate): Removed.
20449 (FOR_VIDEO_ADAPTERS): New macro.
20450 * kern/dl.c (grub_dl_list): Removed. All users updated.
20451 (grub_dl_iterate): Removed.
20452 * kern/fs.c (grub_fs_list): Make global.
20453 (grub_fs_register): Removed.
20454 (grub_fs_unregister): Likewise.
20455 (grub_fs_iterate): Likewise.
20456 * kern/handler.c: Removed.
20457 * kern/list.c (grub_list_pop): Removed.
20458 (grub_list_iterate): Likewise.
20459 (grub_list_insert): Likewise.
20460 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
20461 (grub_prio_list_insert): Don't use grub_list_insert.
20462 * kern/main.c (grub_register_rescue_parser): Don't call
20463 grub_register_rescue_parser.
20464 * kern/parser.c (grub_parser_class): Removed.
20465 (grub_parser_execute): Use grub_rescue_parse_line.
20466 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
20467 (grub_rescue_parser): Removed.
20468 (grub_register_rescue_parser): Likewise.
20469 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
20470 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
20471 (grub_auth_check_authentication): Likewise.
20472 * normal/completion.c (iterate_command): Removed.
20473 (grub_normal_do_completion): Use FOR_COMMANDS.
20474 * normal/handler.c: Removed.
20475 * normal/main.c (read_config_file): Remove parser changing.
20476 (grub_normal_execute): Don't call read_handler_list.
20477 (grub_normal_read_line_real): Statically allocate prompt.
20478 (grub_cmdline_run): Use grub_normal_parse_line.
20479 (GRUB_MOD_FINI): Don't call free_handler_list.
20480 * normal/menu_entry.c (run): Likewise.
20481 * script/function.c (grub_script_function_list): Make global.
20482 (grub_script_function_iterate): Removed.
20483 * script/main.c (grub_normal_parse_line): Make global.
20484 (grub_sh_parser): Removed.
20485 (GRUB_MOD_INIT): Likewise.
20486 (GRUB_MOD_FINI): Likewise.
20487 * tests/lib/functional_test.c (grub_functional_test): Use
20489 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
20490 (grub_test_run): Use FOR_LIST_ELEMENTS.
20491 * tests/lib/unit_test.c (main): Likewise.
20492 * util/deviceiter.c (grub_util_iterate_devices): Don't use
20494 * util/grub-fstest.c (grub_term_input_class): Removed.
20495 (grub_term_output_class): Likewise.
20496 * util/grub-probe.c: Likewise.
20497 * util/i386/pc/grub-setup.c: Likewise.
20498 * util/sparc64/ieee1275/grub-setup.c: Likewise.
20499 * util/grub-script-check.c (main): Don't call grub_init_all and
20501 * video/video.c (grub_video_adapter_list): Make global.
20502 (grub_video_register): Removed.
20503 (grub_video_unregister): Likewise.
20504 (grub_video_iterate): Likewise.
20506 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
20508 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
20509 reported by Henrique Ferreiro.
20511 2010-06-09 Robert Millan <rmh@gnu.org>
20513 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
20514 ones, when both are available.
20516 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20518 Make --version uniform and avoid hard-coded program name.
20520 * util/grub-mkimage.c (main): Use `program_name' instead of
20522 * util/i386/pc/grub-setup.c (main): Likewise.
20523 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
20524 * util/grub-install.in: Save the basename of $0 in $self, and use the
20525 latter in informational messages. Use the same format for --version
20526 as the binary programs.
20527 * util/grub-mkconfig.in: Likewise.
20528 * util/grub-mkrescue.in: Likewise.
20529 * util/grub-reboot.in: Likewise.
20530 * util/grub-set-default.in: Likewise.
20531 * util/i386/efi/grub-install.in: Likewise.
20532 * util/ieee1275/grub-install.in: Likewise.
20533 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20535 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20537 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
20538 embedding area. Use <= instead of == when checking for non-emptiness.
20540 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20542 * configure.ac: Add `.' to the directories searched for unifont.
20544 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20546 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
20549 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20551 * docs/grub.texi (History): Expand to cover GRUB 2.
20552 (Serial terminal): Refer to `terminal_input' and `terminal_output'
20553 commands, not `terminal'.
20554 (serial): Likewise.
20555 (terminal_input): New section.
20556 (terminal_output): New section.
20557 (uppermem): New section (stub).
20558 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
20560 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20562 * docs/grub.texi (Security): Menu entries are unrestricted by
20563 default, not restricted to superusers as I had previously thought.
20564 Reword to account for this.
20566 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20568 * kern/emu/misc.c (device_mapper_null_log): New function.
20569 (grub_device_mapper_supported): New function.
20570 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
20572 * kern/emu/hostdisk.c (find_partition_start): Check whether
20573 device-mapper is supported before trying to use it.
20574 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
20576 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20578 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
20579 (File name syntax): Likewise.
20580 (help): --all is no longer supported in GRUB 2. Be more precise
20581 about pattern matching.
20583 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20585 * normal/completion.c (grub_normal_do_completion): When completing
20586 arguments to "set" and the current word contains an equals sign,
20587 skip to after the equals sign before starting completion.
20589 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20591 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
20593 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20595 * docs/grub.texi (Network): New section.
20596 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
20597 `(nd)' as in GRUB Legacy.
20598 (pxe_unload): New section.
20600 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20602 * docs/grub.texi (Troubleshooting): `echo' is not usually available
20603 in the rescue shell, so recommend using `set' instead. Thanks,
20606 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20608 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
20609 (password): New section.
20610 (password_pbkdf2): New section.
20611 (search): New section.
20612 (Security): New section.
20613 (Troubleshooting): New section, currently very incomplete.
20614 (Invoking grub-mkpasswd-pbkdf2): New section.
20615 (Internals): New section, currently very incomplete.
20617 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20619 * util/grub.d/00_header.in: Add some more quoting (of
20620 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
20622 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
20624 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20626 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
20627 to `count', fixing variable shadowing that broke the -c option.
20629 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
20631 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
20632 in case they contain spaces.
20634 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
20636 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
20637 "part_" to partmap module names, in line with grub-install.
20638 Reported by: Jindřich Makovička (Debian bug #584426).
20640 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
20642 * util/grub-mkimage.c: Make target-related error messages slightly
20643 more helpful; -O talks about "format". Explicitly point to the use
20644 of -O if no target is specified.
20645 Reported by: Didier Raboud (Debian bug #584415).
20647 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
20649 * INSTALL: Document several build requirements for optional features
20650 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
20652 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
20654 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
20655 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
20656 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
20658 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20660 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
20661 Thanks to Jordan Uggla for spotting this.
20663 2010-06-02 Aleš Nesrsta <starous@volny.cz>
20665 Finally make USB usable.
20667 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
20668 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
20669 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
20670 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
20671 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
20672 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
20673 (GRUB_OHCI_FSMPS): Likewise.
20674 (GRUB_OHCI_PERIODIC_START): Likewise.
20675 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
20676 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
20677 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
20678 (GRUB_OHCI_SET_PORT_RESET): Likewise.
20679 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
20680 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
20681 (grub_ohci_transaction): Likewise.
20682 (grub_ohci_transfer): Improve condition detection algorithms.
20683 Handle toggle property. Program the transactions correctly.
20684 Improve error handling. Various important fixups.
20685 (grub_ohci_portstatus): Put register writes in right order.
20686 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
20687 (grub_uhci_transfer): Don't show "failed" message on success.
20688 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
20690 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
20691 determine its size.
20692 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
20693 before initialization is completed. Use IN direction for empty
20694 transfers. Use last_trans and compute toggle.
20695 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
20696 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
20697 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
20698 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
20699 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
20700 (grub_usb_device): Increase toggle to 256.
20701 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
20702 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
20703 GRUB_USBMS_SUBCLASS_SFF8070.
20704 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
20705 (grub_scsi_inquiry): New member page and alloc_length.
20706 (grub_scsi_request_sense): New structure.
20707 (grub_scsi_request_sense_data): Likewise.
20708 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
20710 * disk/scsi.c (grub_scsi_request_sense): New function.
20711 (grub_scsi_test_unit_ready): Likewise.
20712 (grub_scsi_inquiry): Fill new fields.
20713 (grub_scsi_read_capacity): Likewise.
20714 (grub_scsi_read10): Add request sense at the end.
20715 (grub_scsi_read12): Likewise.
20716 (grub_scsi_write10): Likewise.
20717 (grub_scsi_write12): Likewise.
20718 (grub_scsi_open): Add Test Unit Ready.
20719 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
20720 Support additional subclasses. Con't clear halt yet. Activate the
20721 proper config. Calculate LUNs correctly.
20722 (grub_usbms_transfer): Various important fixups.
20724 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20726 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
20727 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
20728 (grub_ohci_fini_hw): New function.
20729 (grub_ohci_restore_hw): Likewise.
20730 (GRUB_MOD_INIT(ohci)): Register preboot hook.
20731 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
20732 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
20734 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20736 Dedicated DMA allocations.
20738 * bus/pci.c (grub_memalign_dma32): New function
20739 (grub_dma_free): Likewise.
20740 (grub_dma_get_virt): Likewise.
20741 (grub_dma_get_phys): Likewise.
20742 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
20743 (grub_ohci_pci_iter): Use dma32_alloc.
20744 (grub_ohci_transfer): Likewise.
20745 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
20746 (grub_usb_bulk_readwrite): Likewise.
20747 * include/grub/pci.h: Add declarations.
20749 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20753 * bus/cs5536.c: New file.
20754 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
20755 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
20756 (cs5536_mod_SOURCES): New variable.
20757 (cs5536_mod_CFLAGS): Likewise.
20758 (cs5536_mod_LDFLAGS): Likewise.
20759 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
20761 (kernel_img_SOURCES): Add bus/cs5536.c.
20762 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
20764 (usb_mod_SOURCES): New variable.
20765 (usb_mod_CFLAGS): New variable.
20766 (usb_mod_LDFLAGS): New variable.
20767 (usbtest_mod_SOURCES): New variable.
20768 (usbtest_mod_CFLAGS): New variable.
20769 (usbtest_mod_LDFLAGS): New variable.
20770 (ohci_mod_SOURCES): New variable.
20771 (ohci_mod_CFLAGS): New variable.
20772 (ohci_mod_LDFLAGS): New variable.
20773 (usbms_mod_SOURCES): New variable.
20774 (usbms_mod_CFLAGS): New variable.
20775 (usbms_mod_LDFLAGS): New variable.
20776 (usb_keyboard_mod_SOURCES): New variable.
20777 (usb_keyboard_mod_CFLAGS): New variable.
20778 (usb_keyboard_mod_LDFLAGS): New variable.
20779 * include/grub/smbus.h: New file.
20780 * include/grub/cs5536.h: New file.
20782 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20784 * util/grub.d/00_header.in: Add safety check to make sure that
20785 ${locale_dir} exists before trying to probe it.
20787 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20789 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
20790 per the GNU Coding Standards; this is now too obscure to be worth
20793 (chainloader): Remove cross-reference to `SCO UnixWare'.
20795 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20797 * docs/grub.texi (Chain-loading): New section.
20798 (DOS/Windows): New section, borrowed from GRUB Legacy with details
20799 adjusted for GRUB 2.
20800 (SCO UnixWare): Likewise.
20802 (chainloader): Add reference to `Block list syntax'.
20803 (drivemap): New section.
20804 (parttool): New section.
20806 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20808 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
20810 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
20811 (Installing GRUB using grub-install): Remove reference to the grub
20812 shell; mention `grub-mkimage' and `grub-setup' instead.
20813 (Invoking grub-install): Likewise.
20814 (Interface): Add reference to `Menu entry editor'.
20815 (serial): Remove `--device' option.
20817 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20819 * docs/grub.texi (Configuration): New section, documenting
20820 configuration file generation using grub-mkconfig. I've left a slot
20821 for documenting the full shell scripting format but have not yet
20822 started on writing that up.
20823 (Invoking grub-mkconfig): New section.
20825 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20827 * docs/grub.texi (direntry): Remove grub-terminfo reference.
20828 (GNU GRUB manual): Likewise.
20829 (General commands): Update description of `terminfo' for GRUB 2.
20831 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20833 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
20834 (GRUB_MOD_INIT): Fix capitalisation.
20835 * docs/grub.texi (Command-line and menu entry commands): Document
20836 gettext and gptsync commands.
20838 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20840 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
20841 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
20843 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
20845 Add btrfs probing support, currently only in the single-device case.
20847 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
20849 (grub_guess_root_device): Call find_root_device_from_mountinfo
20850 before looking in /dev.
20852 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20854 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
20855 GRUB_DISK_SIZE_UNKNOWN.
20856 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
20858 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
20860 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
20861 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
20862 corrupted or not synced properly.
20864 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20866 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
20867 Reported by: Seth Goldberg.
20869 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20871 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
20873 Reported by: Seth Goldberg.
20875 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20877 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
20878 Reported by: Seth Goldberg.
20880 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20882 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
20883 64-bit address as signed on MIPS.
20885 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
20887 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
20888 to the empty string.
20890 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
20892 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
20894 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
20895 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
20896 * kern/misc.c (__enable_execute_stack): Disable on
20899 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
20901 Make grub-probe work with symbolic links under /dev/mapper as well
20902 as with real block devices. The Linux world seems to be (at best)
20903 in transition here, and GRUB shouldn't get caught in the middle.
20905 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
20908 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
20910 * util/grub-script-check.c (main): Ensure defined behaviour on empty
20911 input files (in which case exit zero).
20913 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
20915 * kern/emu/misc.c (canonicalize_file_name): realpath can still
20916 return NULL for various reasons even if it has a maximum-length
20917 buffer: for example, there might be a symlink loop, or the path
20918 might exceed PATH_MAX. If this happens, return NULL.
20920 2010-05-27 Robert Millan <rmh@gnu.org>
20922 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
20923 partmap module to handle cross-partmap setups.
20924 Reported by Orestes Mas. Gràcies!
20926 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
20928 * util/grub-mkrescue.in: Initialise override_dir rather than
20929 assuming that it's unset or empty in the environment.
20931 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
20933 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
20934 variable index into p_index to suppress a warning with -Wshadow.
20936 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
20938 * INSTALL: Added flex >= 2.5.35 requirement.
20940 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20942 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
20944 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20948 * commands/i386/cmostest.c: New file.
20949 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
20950 (cmostest_mod_SOURCES): New variable.
20951 (cmostest_mod_CFLAGS): Likewise.
20952 (cmostest_mod_LDFLAGS): Likewise.
20953 * conf/i386-pc.rmk: Likewise.
20954 * docs/grub.texi (Vendor power-on keys): New section.
20955 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
20956 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
20957 and GRUB_BUTTON_CMOS_ADDRESS.
20958 * util/grub.d/00_header.in: Handle powering-on by separate button.
20960 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20962 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
20963 Removed drawing_scrollbar argument. All users updated
20965 Reported by Jo Shields
20967 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20969 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
20970 buffer since gfxterm handles double repaint.
20972 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20974 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
20975 * term/gfxterm.c (real_scroll): Likewise.
20977 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
20979 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
20980 before calling BIOS.
20982 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
20984 * include/grub/i18n.h: Always enable grub_gettext.
20986 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
20988 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
20989 partition naming style.
20991 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
20993 * util/grub-mkconfig.in: Fix handling of -o so that it works when
20994 not the first option.
20996 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
20998 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
21000 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
21002 * util/misc.c: Move inclusion of <limits.h> to ...
21003 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
21005 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
21007 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
21008 Fix merge error in NetBSD code.
21009 (find_partition_start) [__NetBSD__]: Likewise.
21011 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
21013 Fix grub-mkrescue usage unit testing.
21015 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
21017 2010-05-18 Christian Franke <franke@computer.org>
21019 * util/grub.d/10_windows.in: Use path names instead of
21020 drive letters to prevent warning from Cygwin 1.7.
21021 Add drivemap command to menuentry if needed.
21023 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
21025 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
21026 gnumach and gnumach.gz.
21028 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21030 * include/grub/i18n.h (gettext): Inline instead of using #define.
21031 (grub_gettext): Likewise.
21034 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21036 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
21037 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
21038 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
21039 (main): Add a slash after pkglibdirroot.
21041 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21043 * util/grub-install.in: Add missing "in" keyword.
21045 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21047 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
21048 Reported by: Seth Goldberg.
21050 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21052 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
21054 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
21056 * configure.ac: Check for Linux device-mapper support.
21058 * util/hostdisk.c (device_is_mapped): New function.
21059 (find_partition_start): New function, partly broken out from
21060 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
21061 device-mapper support added.
21062 (linux_find_partition): Use find_partition_start.
21063 (convert_system_partition_to_system_disk): Add `st' argument.
21064 Support Linux /dev/mapper/* devices if device-mapper support is
21065 available; only DM-RAID devices are understood at present.
21066 (find_system_device): Add `st' argument. Pass it to
21067 convert_system_partition_to_system_disk.
21068 (grub_util_biosdisk_get_grub_dev): Pass stat result to
21069 find_system_device and convert_system_partition_to_system_disk. Use
21070 find_partition_start.
21072 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
21073 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
21074 * util/deviceiter.c [__linux__]: Define MINOR.
21075 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
21076 * util/mkdevicemap.c (grub_putchar): New function.
21077 (grub_getkey): New function.
21078 (grub_refresh): New function.
21079 (main): Set debug=all if -v -v is used.
21081 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
21083 Fix build with non-GNU libcs.
21085 * util/misc.c (canonicalize_file_name): Move to ...
21086 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
21087 grub_make_system_path_relative_to_its_root.
21089 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
21091 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
21092 we handle finding grub-mkimage. Default to finding grub-mkimage in
21093 ${bindir} with program_transform_name applied, and provide a
21094 --grub-mkimage option to override this.
21096 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21098 Remove grub-mkisofs.
21100 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
21101 (grub_mkisofs_SOURCES): Removed.
21102 (grub_mkisofs_CFLAGS): Removed.
21103 * util/mkisofs/defaults.h: Removed.
21104 * util/mkisofs/eltorito.c: Likewise.
21105 * util/mkisofs/exclude.h: Likewise.
21106 * util/mkisofs/hash.c: Likewise.
21107 * util/mkisofs/include/: Likewise.
21108 * util/mkisofs/include/fctldefs.h: Likewise.
21109 * util/mkisofs/include/mconfig.h: Likewise.
21110 * util/mkisofs/include/prototyp.h: Likewise.
21111 * util/mkisofs/include/statdefs.h: Likewise.
21112 * util/mkisofs/iso9660.h: Likewise.
21113 * util/mkisofs/joliet.c: Likewise.
21114 * util/mkisofs/match.c: Likewise.
21115 * util/mkisofs/match.h: Likewise.
21116 * util/mkisofs/mkisofs.c: Likewise.
21117 * util/mkisofs/mkisofs.h: Likewise.
21118 * util/mkisofs/msdos_partition.h: Likewise.
21119 * util/mkisofs/multi.c: Likewise.
21120 * util/mkisofs/name.c: Likewise.
21121 * util/mkisofs/rock.c: Likewise.
21122 * util/mkisofs/tree.c: Likewise.
21123 * util/mkisofs/write.c: Likewise.
21125 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21127 Unify grub-mkimage accross platforms.
21129 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
21130 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
21131 (grub_mkelfimage_SOURCES): Removed.
21132 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
21133 (util/grub-mkimage.c_DEPENDENCIES): .. this.
21134 (bin_UTILITIES): Add grub-mkimage.
21135 (grub_mkimage_SOURCES): New variable.
21136 (kernel_img_HEADERS): Remove machine/kernel.h.
21137 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
21138 (pkglib_PROGRAMS): Add kernel.img.
21139 (kernel_img_HEADERS): Add machine/kernel.h.
21140 (kernel_img_FORMAT): Removed.
21141 (bin_UTILITIES): Remove grub-mkimage.
21142 (grub_mkimage_SOURCES): Removed.
21143 (grub_mkimage_CFLAGS): Likewise.
21144 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21145 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
21146 (pkglib_PROGRAMS): Add kernel.img.
21147 (bin_UTILITIES): Remove grub-mkimage.
21148 (grub_mkimage_SOURCES): Removed.
21149 (grub_mkimage_CFLAGS): Likewise.
21150 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21151 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
21152 (pkglib_PROGRAMS): Add kernel.img.
21153 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
21154 (pkglib_PROGRAMS): Add kernel.img.
21155 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
21156 (grub_mkimage_SOURCES): Removed.
21157 (grub_mkimage_CFLAGS): Likewise.
21158 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21159 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
21160 (pkglib_PROGRAMS): Add kernel.img.
21161 (bin_UTILITIES): Remove grub-mkimage.
21162 (grub_mkimage_SOURCES): Removed.
21163 (grub_mkimage_CFLAGS): Likewise.
21164 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21165 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
21166 (grub_mkimage_SOURCES): Removed.
21167 (grub_mkimage_CFLAGS): Likewise.
21168 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21169 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
21170 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
21171 (grub_pe32_optional_header): ... this.
21172 (grub_pe64_optional_header): ... and this. All users updated.
21173 (GRUB_PE32_PE32_MAGIC): Split into ..
21174 (GRUB_PE32_PE32_MAGIC): .. this.
21175 (GRUB_PE32_PE64_MAGIC): .. and this.
21176 (GRUB_PE32_SIGNATURE_SIZE): New definition.
21177 * include/grub/elf.h (PT_GNU_STACK): New definition.
21178 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
21179 * include/grub/i386/efi/kernel.h: Likewise.
21180 * include/grub/i386/kernel.h: Likewise.
21181 * include/grub/i386/pc/kernel.h: Likewise.
21182 * include/grub/i386/qemu/boot.h: Likewise.
21183 * include/grub/mips/kernel.h: Likewise.
21184 * include/grub/mips/qemu-mips/kernel.h: Likewise.
21185 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
21186 * include/grub/powerpc/kernel.h: Likewise.
21187 * include/grub/sparc64/ieee1275/boot.h: Likewise.
21188 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
21189 * include/grub/sparc64/kernel.h: Likewise.
21190 * include/grub/x86_64/efi/kernel.h: Likewise.
21191 * include/grub/x86_64/kernel.h: Likewise.
21192 * include/grub/offsets.h: New file.
21193 * include/grub/kernel.h (grub_module_info): Split into ...
21194 (grub_module_info32): ... this.
21195 (grub_module_info64): ... and this.
21196 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
21197 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
21198 (grub_boot_blocklist): Moved from here ...
21199 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
21200 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
21201 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
21202 * include/grub/types.h (grub_target_to_host16): Removed.
21203 (grub_target_to_host32): Likewise.
21204 (grub_target_to_host64): Likewise.
21205 (grub_host_to_target16): Likewise.
21206 (grub_host_to_target32): Likewise.
21207 (grub_host_to_target64): Likewise.
21208 (grub_host_to_target_addr): Likewise.
21210 Support grub-mkrescue for efi, coreboot and qemu.
21212 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
21213 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
21214 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
21215 * util/grub-mkrawimage.c: Moved from here ...
21216 * util/grub-mkimage.c: ... here. All users updated.
21217 (ALIGN_ADDR): Use image_target.
21218 (TARGET_NO_FIELD): New const.
21219 (image_target_desc): New type.
21220 (image_targets): New array.
21221 (grub_target_to_host64): Use image_target.
21222 (grub_target_to_host32): Likewise.
21223 (grub_target_to_host16): Likewise.
21224 (grub_host_to_target64): Likewise.
21225 (grub_host_to_target32): Likewise.
21226 (grub_host_to_target16): Likewise.
21227 (grub_host_to_target_addr): Likewise.
21228 (generate_image): Handle multiimage.
21229 (main): Require -O parameter. All users updated.
21230 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
21231 util/efi/grub-mkimage.c
21232 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
21233 New option --rom-directory.
21235 * util/i386/efi/grub-mkimage.c: Removed.
21236 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
21237 (grub_target_to_host32): Likewise.
21238 (grub_target_to_host64): Likewise.
21239 (grub_host_to_target16): Likewise.
21240 (grub_host_to_target32): Likewise.
21241 (grub_host_to_target64): Likewise.
21242 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
21243 (grub_target_to_host32): Likewise.
21244 (grub_target_to_host64): Likewise.
21245 (grub_host_to_target16): Likewise.
21246 (grub_host_to_target32): Likewise.
21247 (grub_host_to_target64): Likewise.
21249 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
21251 Source tree is reorganized for emu build.
21253 * include/grub/util/console.h: Move from here...
21254 * include/grub/emu/console.h: ...to here.
21255 * include/grub/util/getroot.h: Move from here...
21256 * include/grub/emu/getroot.h: ...to here.
21257 * include/grub/util/hostdisk.h: Move from here...
21258 * include/grub/emu/hostdisk.h: ...to here.
21259 * util/console.c: Move from here...
21260 * kern/emu/console.c: ...to here.
21261 * util/getroot.c: Move from here...
21262 * kern/emu/getroot.c: ...to here.
21263 * util/grub-emu.c: Move from here...
21264 * kern/emu/main.c: ...to here.
21265 * util/hostdisk.c: Move from here...
21266 * kern/emu/hostdisk.c: ...to here.
21267 * util/hostfs.c: Move from here...
21268 * kern/emu/hostfs.c: ...to here.
21269 * util/mm.c: Move from here...
21270 * kern/emu/mm.c: ...to here.
21271 * util/pci.c: Move from here...
21272 * bus/emu/pci.c: ...to here.
21273 * util/sdl.c: Move from here...
21274 * video/emu/sdl.c: ...to here.
21275 * util/time.c: Move from here...
21276 * kern/emu/time.c: ...to here.
21277 * util/usb.c: Move from here...
21278 * bus/usb/emu/usb.c: ...to here.
21280 * include/grub/emu/misc.h: New header for grub-emu functions.
21281 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
21283 * conf/any-emu.rmk: Rule updates for above renames.
21284 * conf/common.rmk: Likewise.
21285 * conf/i386-pc.rmk: Likewise.
21286 * conf/i386-qemu.rmk: Likewise.
21287 * conf/mips.rmk: Likewise.
21288 * conf/sparc64-ieee1275.rmk: Likewise.
21289 * conf/x86-efi.rmk: Likewise.
21291 * disk/lvm.h: #include updates for above renames.
21292 * util/grub-mkrelpath.c: Likewise.
21293 * util/grub-probe.c: Likewise.
21294 * util/i386/pc/grub-setup.c: Likewise.
21295 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21296 * kern/emu/console.c: Likewise.
21297 * kern/emu/getroot.c: Likewise.
21298 * kern/emu/hostdisk.c: Likewise.
21299 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
21301 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
21302 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
21303 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
21304 * util/misc.c: Remove grub-emu functions.
21306 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
21309 Reported by: Thorsten Grützmacher.
21311 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
21313 (circprog_set_property): Register and unregister timeout hook.
21314 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
21315 (label_destroy): Free template. and unregister hook.
21316 (label_set_state): New function.
21317 (label_set_property): Handle templates and hooks.
21318 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
21320 (progress_bar_set_property): Register and unregister timeout hook.
21321 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
21322 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
21323 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
21324 (update_timeout_visit): Removed.
21325 (update_timeouts): New function.
21326 (redraw_timeouts): Likewise.
21327 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
21328 (grub_gfxmenu_clear_timeout): Likewise.
21329 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
21330 (grub_gfxmenu_timeout_notify): Likewise.
21331 (grub_gfxmenu_timeout_notifications): New external variable.
21332 (grub_gfxmenu_timeout_register): New function.
21333 (grub_gfxmenu_timeout_unregister): Likewise.
21335 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
21337 Transform (broken) vga terminal into (working) vga video driver.
21339 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
21340 video/i386/pc/vga.c.
21341 * include/grub/video.h (grub_video_driver_id):
21342 Add GRUB_VIDEO_DRIVER_VGA.
21343 * term/i386/pc/vga.c: Renamed to ...
21344 * video/i386/pc/vga.c: ...this
21345 (DEBUG_VGA): Removed.
21346 (CHAR_WIDTH): Likewise.
21347 (CHAR_HEIGHT): Likewise.
21348 (TEXT_WIDTH): Likewise.
21349 (TEXT_HEIGHT): Likewise.
21350 (DEFAULT_FG_COLOR): Likewise.
21351 (DEFAULT_BG_COLOR): Likewise.
21352 (colored_char): Likewise.
21355 (cursor_state): Likewise.
21356 (fg_color): Likewise.
21357 (bg_color): Likewise.
21358 (text_buf): Likewise.
21361 (framebuffer): New variable.
21362 (set_read_map): Disabled.
21363 (setup): New variable.
21364 (is_target): Likewise.
21365 (grub_vga_mod_init): Likewise.
21366 (grub_vga_mod_fini): Likewise.
21367 (check_vga_mem): Likewise.
21368 (write_char): Likewise.
21369 (write_cursor): Likewise.
21370 (scroll_up): Likewise.
21371 (grub_vga_putchar): Likewise.
21372 (grub_vga_getcharwidth): Likewise.
21373 (grub_vga_getwh): Likewise.
21374 (grub_vga_getxy): Likewise.
21375 (grub_vga_gotoxy): Likewise.
21376 (grub_vga_cls): Likewise.
21377 (grub_vga_setcolorstate): Likewise.
21378 (grub_vga_setcursor): Likewise.
21379 (grub_video_vga_init): New function.
21380 (grub_video_vga_setup): Likewise.
21381 (grub_video_vga_fini): Likewise.
21382 (update_target): Likewise.
21383 (grub_video_vga_blit_bitmap): Likewise.
21384 (grub_video_vga_blit_render_target): Likewise.
21385 (grub_video_vga_set_active_render_target): Likewise.
21386 (grub_video_vga_get_active_render_target): Likewise.
21387 (grub_video_vga_swap_buffers): Likewise.
21388 (grub_video_vga_set_palette): Likewise.
21389 (grub_video_vga_get_info_and_fini): Likewise.
21390 (grub_vga_term): Removed.
21391 (grub_video_vga_adapter): New variable.
21392 (GRUB_MOD_INIT): Register a video driver instead of terminal.
21393 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
21395 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21397 * video/readers/jpeg.c: Indented.
21399 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21401 Various jpeg cleanups.
21403 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
21404 (grub_jpeg_decode_quan_table): Use sizeof.
21405 (grub_jpeg_decode_du): Use ARRAY_SIZE.
21407 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
21409 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
21410 tables. Ignore non-last ac bit.
21411 (grub_jpeg_decode_quan_table): Likewise.
21413 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21415 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
21416 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
21417 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21418 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
21419 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
21420 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
21422 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21424 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
21427 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21429 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
21431 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21433 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
21436 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21438 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
21441 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21443 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
21446 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21448 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
21450 2010-05-01 Christian Franke <franke@computer.org>
21452 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
21453 Remove broken Cygwin path conversion.
21454 * util/misc.c: [__CYGWIN__] Add include and define.
21455 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
21457 (make_system_path_relative_to_its_root): Simplify loop, replace early
21459 [__CYGWIN__] Add conversion to win32 path.
21460 Include "/" case in trailing slash removal.
21462 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21464 * kern/main.c (grub_load_config): Fix copy-pasted comment.
21465 Reported by: Seth Goldberg
21467 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21469 * commands/help.c (grub_cmd_help): Fix a typo.
21470 Reported by: Seth Goldberg
21472 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21474 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
21476 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
21477 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
21478 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
21479 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
21480 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
21481 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
21482 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
21483 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
21484 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
21485 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
21486 * normal/context.c (GRUB_MOD_INIT): Likewise.
21487 * normal/main.c (GRUB_MOD_INIT): Likewise.
21488 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
21489 * term/serial.c (GRUB_MOD_INIT): Likewise.
21490 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
21492 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21494 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
21497 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21499 * commands/iorw.c: New file.
21500 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
21501 (iorw_mod_SOURCES): New variable.
21502 (iorw_mod_CFLAGS): Likewise.
21503 (iorw_mod_LDFLAGS): Likewise.
21505 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21509 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
21510 * normal/main.c (hotkey_aliases): New variable.
21511 (grub_normal_add_menu_entry): Parse "--hotkey".
21512 * normal/menu_text.c (run_menu): Handle hotkeys.
21514 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21516 * kern/i386/coreboot/init.c (grub_machine_init): Call
21517 grub_machine_mmap_init on qemu.
21519 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21521 * boot/i386/qemu/boot.S: Add a missing .code16.
21523 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21525 Use LBIO on coreboot.
21527 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
21528 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
21529 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
21531 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
21532 grub_machine_mmap_init on coreboot.
21533 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
21534 GRUB_LINUXBIOS_MEMBER_LINK.
21535 (grub_machine_mmap_iterate): Fix declaration.
21536 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
21538 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21540 Split coreboot and multiboot ports.
21542 * conf/i386-multiboot.rmk: New file.
21543 * configure.ac: Add multiboot port.
21544 * include/grub/i386/multiboot/boot.h: New file.
21545 * include/grub/i386/multiboot/console.h: Likewise.
21546 * include/grub/i386/multiboot/init.h: Likewise.
21547 * include/grub/i386/multiboot/kernel.h: Likewise.
21548 * include/grub/i386/multiboot/loader.h: Likewise.
21549 * include/grub/i386/multiboot/memory.h: Likewise.
21550 * include/grub/i386/multiboot/serial.h: Likewise.
21551 * include/grub/i386/multiboot/time.h: Likewise.
21552 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
21553 * loader/multiboot.c: Likewise.
21554 * loader/multiboot_mbi2.c: Likewise.
21555 * util/grub-mkrescue.in: Generate multiboot rescue.
21557 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21559 * kern/parser.c (grub_parser_execute): Cope with read-only config.
21561 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21563 Merge handling of input and output terminals. Fix a hang.
21565 * commands/terminal.c (abstract_terminal): New struct.
21566 (handle_command): New function. Based on grub_cmd_terminal_input.
21567 (grub_cmd_terminal_input): Use handle_command.
21568 (grub_cmd_terminal_output): Use handle_command.
21570 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
21572 Fix comment handling.
21574 * tests/grub_script_comments.in: New testcase.
21575 * conf/tests.rmk: Rules for new testcase.
21576 * script/yylex.l: Updated flex rules.
21578 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
21580 * docs/grub.texi (play): Document that zero pitches produce rests.
21581 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
21584 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
21586 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
21589 2010-04-26 Christian Franke <franke@computer.org>
21591 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
21592 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
21593 (grub_get_prefix): Remove function.
21594 * util/grub-emu.c (main): Replace grub_get_prefix () call by
21595 make_system_path_relative_to_its_root ().
21596 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
21598 2010-04-24 Christian Franke <franke@computer.org>
21600 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
21601 (kernel_img_LDFLAGS): Remove -static-libgcc.
21603 2010-04-24 Christian Franke <franke@computer.org>
21605 * configure.ac: Do not CHECK_BSS_START_SYMBOL
21606 and CHECK_END_SYMBOL if grub-emu is built.
21607 Unset TARGET_OBJ2ELF if grub-emu is built
21608 without module support.
21610 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
21614 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
21615 (grub_fstest_SOURCES): Likewise.
21616 (pkglib_MODULES): Add nilfs2.mod.
21617 (nilfs2_mod_SOURCES): New variable.
21618 (nilfs2_mod_CFLAGS): Likewise.
21619 (nilfs2_mod_LDFLAGS): Likewise.
21620 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
21621 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
21622 * fs/nilfs2.c: New file.
21624 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
21626 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
21629 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
21631 Add grub-mkconfig support for NetBSD.
21633 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
21634 * util/grub-mkconfig.in: export new NetBSD specific variables.
21635 * po/POTFILES-shell: added 10_netbsd.in.
21636 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
21638 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
21640 Fix emu build with grub-emu-pci and grub-emu-modules.
21642 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
21644 * include/grub/libpciaccess.h: New file.
21645 * conf/any-emu.rmk: Update kernel headers for emu build.
21647 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21649 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
21651 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21653 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
21655 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21657 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
21658 Retrieve chosen/bootpath if bootpath isn't hardcoded.
21659 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
21660 util/ieee1275/ofpath.c.
21661 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
21662 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
21663 * include/grub/sparc64/ieee1275/boot.h
21664 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
21665 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
21666 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
21667 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
21669 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
21670 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
21671 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
21674 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
21676 * util/grub-mkconfig.in: Corrected two == equality tests.
21677 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
21678 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
21679 expect a number appended to it.
21680 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
21681 expects a number appended to it.
21683 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21685 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
21687 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21689 * util/hostdisk.c (make_device_name): Change to new partition naming.
21691 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
21693 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
21695 2010-04-17 Christian Franke <franke@computer.org>
21697 * Makefile.in: Add missing localedir setting.
21699 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
21701 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
21702 mistake in r2156. Noticed by Anthony Fok.
21704 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
21706 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
21708 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
21710 Fix a spurious, uninitialized variable warning.
21712 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
21713 Initialize variable, shdr.
21714 (grub_freebsd_load_elfmodule): Likewise.
21715 (grub_freebsd_load_elf_meta): Likewise.
21717 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
21719 Fix for escaped dollar in double quoted strings.
21721 * script/yylex.l: Updated flex rules.
21722 * conf/tests.rmk: Rule for new testcase.
21723 * tests/grub_script_dollar.in: New testcase.
21725 2010-04-13 Carles Pina i Estany <carles@pina.cat>
21726 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
21728 Enclose all translated strings in grub.cfg in single quotes, and
21729 escape them appropriately (Ubuntu bug #552921).
21731 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
21732 * util/grub.d/10_hurd.in: Use it.
21733 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
21734 * util/grub.d/10_linux.in (linux_entry): Likewise.
21736 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
21738 Fix cygwin compilation.
21740 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
21741 * include/grub/misc.h (__register_frame_info)
21742 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
21743 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
21744 * kern/misc.c (__register_frame_info)
21745 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
21746 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
21748 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
21750 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
21752 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
21754 Unify libgcc processing.
21756 * Makefile.in (kernel_img_LDFLAGS): New variable.
21757 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
21758 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
21760 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
21761 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
21762 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
21763 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
21764 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
21765 overwriting. Remove -lgcc and -static-libgcc
21766 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
21767 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
21768 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
21769 (kernel_img_LDFLAGS): Append instead of overwriting.
21770 Remove -lgcc and -static-libgcc
21771 * conf/sparc64-ieee1275.rmk: Likewise.
21772 * include/grub/powerpc/libgcc.h: Move to ...
21773 * include/grub/libgcc.h: .. this.
21774 * include/grub/libgcc.h: Don't export most of the function on x86.
21775 (__bswapsi2): New export.
21776 (__bswapdi2): Likewise.
21777 * include/grub/mips/libgcc.h: Removed.
21778 * include/grub/sparc64/libgcc.h: Likewise.
21780 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21782 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
21783 disk_info_msg (conflicts with gettexting into languages with cases).
21785 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
21787 Add grub-probe support for NetBSD.
21789 * util/getroot.c (find_root_device): Convert block device to
21790 character device on NetBSD.
21791 * util/probe.c (probe): Require character device on NetBSD.
21792 * util/hostdisk.c: NetBSD specific headers.
21793 (configure_device_driver): new function to tune device driver
21794 parameters (currently only for NetBSD floppy driver).
21795 (grub_util_biosdisk_open): NetBSD specific code (get disk size
21796 via disklabel ioctl).
21797 (open_device): call configure_device_driver on NetBSD.
21798 (convert_system_partition_to_system_disk): NetBSD specific code.
21799 (device_is_wholedisk): Likewise.
21800 (grub_util_biosdisk_get_grub_dev): Likewise.
21801 (make_device_name): Fixed a typo in bsd_part_str.
21802 * configure.ac: check for opendisk() and getrawpartition() on
21803 NetBSD and set LIBUTIL.
21804 * Makefile.in: add LIBUTIL to LIBS.
21806 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
21810 * util/grub-script-check.c: Better help message.
21812 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
21816 * configure.ac: Flex version check.
21817 * conf/common.rmk: Add -Wno-error to sh.mod.
21818 * script/yylex.l: Remove all #pragma.
21820 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21822 * include/grub/util/misc.h (canonicalise_file_name): Add missing
21824 Reported by: Seth Goldberg.
21826 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21828 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
21829 Rename "module" to "module2".
21830 Reported by: Seth Goldberg.
21832 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21834 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
21836 Reported by: Seth Goldberg.
21838 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21840 * lib/posix_wrap/locale.h: Add missing file.
21841 Reported by: Seth Goldberg.
21843 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21845 grub-emu module load support.
21847 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
21848 NO_DYNAMIC_MODULES switched to this.
21849 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
21850 (CFLAGS): Likewise.
21851 * conf/any-emu.rmk: Generate symlist.
21852 (kernel_img_HEADERS): Add util/datetime.h.
21853 (kernel_img_HEADERS) [sdl]: Add sdl.h.
21854 (kernel_img_HEADERS) [libusb]: Add libusb.h.
21855 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
21856 kern/$(target_cpu)/cache.S.
21857 * configure.ac (grub-emu-modules): New option.
21858 * genmk.rb: Handle multiple source lists.
21859 * include/grub/sdl.h: New file.
21860 * include/grub/libusb.h: Likewise.
21861 * util/grub-emu.c (main): Hanle (host) root.
21862 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
21863 GRUB_ERR_UNKNOWN_DEVICE.
21864 * util/misc.c: Move mm functions to ...
21865 * util/mm.c: ... here. All users updated.
21867 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21869 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
21870 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
21872 (maintainer-clean): Remove libgcrypt-grub.
21874 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21876 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
21878 2010-04-09 EFI Coder <eficoder@hotmail.com>
21880 * normal/menu_text.c (print_message): Clean up the message and show
21881 the Fn information when on EFI
21882 * term/efi/console.c (grub_console_checkkey): Add F4 support.
21884 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21886 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
21888 * normal/crypto.c (read_crypto_list): Likewise.
21889 * normal/dyncmd.c (read_command_list): Likewise.
21890 * normal/term.c (read_terminal_list): Likewise.
21891 * normal/main.c (read_lists): Use explicit prefix.
21892 (read_lists_hook): Use read_lists.
21893 (grub_normal_execute): Likewise.
21895 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21897 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
21898 Reported by: Thomas Schmitt.
21899 Add -no-emul-boot to grub-mkisofs parameters.
21901 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21903 * font/font.c: Indented.
21905 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
21907 Elif support to GRUB script (by Deepak Vankadaru).
21909 * tests/grub_script_if.in: New testcase.
21910 * conf/tests.rmk: Rule for new testcase.
21911 * script/parser.y: Grammar rules for elif.
21913 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
21915 While and until loops support to GRUB script.
21917 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
21918 (grub_script_create_cmdwhile): New function prototype.
21919 (grub_script_execute_cmdwhile): New function prototype.
21920 * script/execute.c (grub_script_execute_cmdwhile): New function.
21921 * script/parser.y (command): New commands.
21922 (whilecmd): New grammar rule.
21923 (untilcmd): New grammar rule.
21924 * script/script.c (grub_script_create_cmdwhile): New function.
21925 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
21928 * tests/grub_script_while1.in: New testcase.
21929 * conf/tests.rmk: Rule for new testcase.
21931 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21933 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
21936 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
21938 GRUB_BACKGROUND support.
21940 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
21941 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
21943 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21945 Load fonts and modules for gfxmenu in grub-mkconfig.
21946 Idea by: Mario Vazquez
21948 * util/grub.d/00_header.in: Load pf2 and image modules.
21950 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21952 grub-mkconfig multiple terminal support.
21954 * util/grub-mkconfig.in: Handle multiple terminals correctly.
21955 * util/grub.d/00_header.in: Likewise.
21957 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21959 * Makefile.in: Specify files explicitly instead of using $< and $@ since
21960 we use cd $(srcdir).
21962 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
21964 * util/grub.d/10_linux.in: Only use the first word of
21965 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
21966 spaces in GRUB_DISTRIBUTOR.
21967 * util/grub.d/10_kfreebsd.in: Likewise.
21968 * util/grub.d/10_hurd.in: Likewise.
21970 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
21972 Fix unit testing framework for Qemu 0.12.
21974 * tests/util/grub-shell.in: Remove -serial stdio option.
21976 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
21978 POSIX header file wrappers.
21980 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
21982 * lib/posix_wrap/ctype.h: Likewise.
21983 * lib/posix_wrap/errno.h: Likewise.
21984 * lib/posix_wrap/langinfo.h: Likewise.
21985 * lib/posix_wrap/limits.h: Likewise.
21986 * lib/posix_wrap/localcharset.h: Likewise.
21987 * lib/posix_wrap/stdint.h: Likewise.
21988 * lib/posix_wrap/stdio.h: Likewise.
21989 * lib/posix_wrap/stdlib.h: Likewise.
21990 * lib/posix_wrap/string.h: Likewise.
21991 * lib/posix_wrap/sys/types.h: Likewise.
21992 * lib/posix_wrap/unistd.h: Likewise.
21993 * lib/posix_wrap/wchar.h: Likewise.
21994 * lib/posix_wrap/wctype.h: Likewise.
21995 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
21996 (grub_script.yy.h): Likewise.
21997 * script/yylex.l: Remove POSIX emulation #defines.
21998 * Makefile.in (POSIX_CFLAGS): New variable.
21999 (GNULIB_UTIL_CFLAGS): Likewise.
22003 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
22004 (regexp_mod_SOURCES): New variable.
22005 (regexp_mod_CFLAGS): Likewise.
22006 (regexp_mod_LDFLAGS): Likewise.
22007 * commands/regexp.c: New file.
22008 * gnulib/regcomp.c: New file. Imported from gnulib.
22009 * gnulib/regex.c: Likewise.
22010 * gnulib/regex_internal.c: Likewise.
22011 * gnulib/regex_internal.h: Likewise.
22012 * gnulib/regexec.c: Likewise.
22013 * gnulib/regex.h: Likewise.
22015 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22017 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
22018 unsupported video mode types.
22020 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22022 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
22024 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22026 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
22027 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
22029 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
22031 Remove unused grub_vga_get_font.
22033 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
22034 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
22036 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22038 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
22039 * include/grub/misc.h: Likewise.
22041 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22043 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
22044 for which failure is fatal.
22046 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22048 * util/grub-install.in: Use mkdir -p to create grub directory.
22049 * util/i386/efi/grub-install.in: Likewise.
22050 * util/ieee1275/grub-install.in: Likewise.
22052 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22054 * Makefile.in (LEX): new variable.
22056 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22058 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
22059 `=' and added double quotes on operands of this equality test.
22061 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
22063 * Makefile.in (uninstall): Remove a leftover debug echo.
22064 Reported by: Grégoire Sutre
22066 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
22068 MIPS multiboot2 support.
22070 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
22071 (multiboot2_mod_SOURCES): New variable.
22072 (multiboot2_mod_CFLAGS): Likewise.
22073 (multiboot2_mod_LDFLAGS): Likewise.
22074 (multiboot2_mod_ASFLAGS): Likewise.
22075 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
22077 (MULTIBOOT_ENTRY_REGISTER): Likewise.
22078 (MULTIBOOT_MBI_REGISTER): Likewise.
22079 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
22080 (MULTIBOOT_ELF32_MACHINE): Likewise.
22081 (MULTIBOOT_ELF64_MACHINE): Likewise.
22082 * include/grub/mips/multiboot.h: New file.
22083 * include/grub/video.h (grub_video_driver_id): New type
22084 GRUB_VIDEO_DRIVER_SM712.
22085 (grub_video_get_info_and_fini): Export.
22086 (grub_video_get_palette): Likewise.
22087 (grub_video_get_driver_id): Likewise.
22088 * include/multiboot2.h: Resynced with spec.
22089 * loader/i386/multiboot.c: Moved from here ...
22090 * loader/multiboot.c: ... here. All users updated.
22091 (grub_multiboot_boot): Use platform-specific macros.
22092 * loader/i386/multiboot_elfxx.c: Moved from here ...
22093 * loader/multiboot_elfxx.c: ... here. All users updated.
22094 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
22095 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
22096 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
22098 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
22100 Import gnulib argp module.
22102 * gnulib/argp-ba.c: New file.
22103 * gnulib/argp-eexst.c: Likewise.
22104 * gnulib/argp-fmtstream.c: Likewise.
22105 * gnulib/argp-fmtstream.h: Likewise.
22106 * gnulib/argp-fs-xinl.c: Likewise.
22107 * gnulib/argp-help.c: Likewise.
22108 * gnulib/argp-namefrob.h: Likewise.
22109 * gnulib/argp-parse.c: Likewise.
22110 * gnulib/argp-pin.c: Likewise.
22111 * gnulib/argp-pv.c: Likewise.
22112 * gnulib/argp-pvh.c: Likewise.
22113 * gnulib/argp-version-etc.c: Likewise.
22114 * gnulib/argp-version-etc.h: Likewise.
22115 * gnulib/argp-xinl.c: Likewise.
22116 * gnulib/argp.h: Likewise.
22118 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
22120 * kern/device.c (grub_device_iterate): Clear errors after failed
22123 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
22125 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
22126 returned by firmware.
22128 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
22130 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
22131 compilation on coreboot and qemu
22133 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
22135 * include/multiboot2.h: Resync with spec.
22137 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
22139 Multiboot2 tag support
22141 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
22142 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
22143 Remove loader/multiboot_loader.c.
22144 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
22145 (grub_multiboot2_real_boot): Likewise.
22146 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
22147 (grub_get_multiboot_mmap_count): New proto.
22148 (grub_fill_multiboot_mmap): Likewise.
22149 (grub_multiboot_set_video_mode): Likewise.
22150 (grub_multiboot_set_console): Likewise.
22151 (grub_multiboot_load): Likewise.
22152 (grub_multiboot_load_elf): Likewise.
22153 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
22154 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
22155 * include/multiboot.h: Resynced with specification.
22156 * include/multiboot2.h: Resynced with specification.
22157 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
22158 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
22159 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
22160 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
22162 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
22163 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
22164 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
22166 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
22168 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
22169 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
22171 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
22172 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
22173 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
22175 * loader/i386/multiboot_mbi2.c: New file.
22177 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
22179 Resync with gnulib.
22181 * Makefile.in (GNULIB_CFLAGS): New variable.
22182 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
22183 (grub_script_check_CFLAGS): New variable.
22184 * gnulib/alloca.h: Resync with gnulib.
22185 * gnulib/error.c: Likewise.
22186 * gnulib/error.h: Likewise.
22187 * gnulib/fnmatch.c: Likewise.
22188 * gnulib/fnmatch_loop.c: Likewise.
22189 * gnulib/getdelim.c: Likewise.
22190 * gnulib/getline.c: Likewise.
22191 * gnulib/getopt.c: Likewise.
22192 * gnulib/getopt1.c: Likewise.
22193 * gnulib/getopt_int.h: Likewise.
22194 * gnulib/gettext.h: Likewise.
22195 * gnulib/progname.c: Likewise.
22196 * gnulib/progname.h: Likewise.
22198 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
22200 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
22201 which is the case with --disabled-nls.
22203 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
22204 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
22205 * util/misc.c: Likewise.
22206 * util/mkisofs/mkisofs.c: Likewise.
22207 * util/mkisofs/mkisofs.h: Likewise.
22209 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
22211 Simplify Apple CC support.
22213 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
22214 Add 0 byte at the end not to have a symbol with empty target.
22215 * mmap/i386/pc/mmap_helper.S: Likewise.
22216 * genmk.rb: Ignore errors 2030 and 2050.
22217 * kern/i386/pc/startup.S: Use LOCAL when possible.
22219 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
22221 Testcase and the fix for final semicolon on cmdline.
22223 * tests/grub_script_final_semicolon.in: New testcase.
22224 * conf/tests.rmk: Rules for the new testcase.
22225 * script/parser.y: Grammar fix.
22227 2010-03-26 BVK Chaitanya <bvk@localhost>
22229 Blank lines testcase for GRUB script.
22231 * tests/grub_script_blanklines.in: New testcase.
22232 * conf/tests.rmk: Rules for the new testcase.
22234 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22236 Don't use __FILE__.
22238 * genmk.rb: Add -DGRUB_FILE to all C targets.
22239 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
22240 * include/grub/list.h: Likewise.
22241 * include/grub/misc.h: Likewise.
22242 * include/grub/mm.h: Likewise.
22243 * include/grub/test.h: Likewise.
22244 * kern/mm.c: Likewise.
22245 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
22247 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22249 Sunpc partitions support.
22251 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
22252 (grub_fstest_SOURCES): Likewise.
22253 (pkglib_MODULES): Add part_sunpc.mod.
22254 (part_sunpc_mod_SOURCES): New variable.
22255 (part_sunpc_mod_CFLAGS): Likewise.
22256 (part_sunpc_mod_LDFLAGS): Likewise.
22257 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
22258 * partmap/sunpc.c: New file.
22260 2010-03-26 BVK Chaitanya <bvk@localhost>
22262 For loop support to GRUB script.
22264 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
22265 (grub_script_create_cmdfor): New function prototype.
22266 (grub_script_execute_cmdfor): New function prototype.
22267 * script/execute.c (grub_script_execute_cmdfor): New function.
22268 * script/parser.y (command): New for command.
22269 (forcmd): New grammar rule.
22270 * script/script.c (grub_script_create_cmdfor): New function.
22271 * util/grub-script-check.c (grub_script_execute_cmdfor): New
22273 * tests/grub_script_for1.in: New testcase.
22274 * conf/tests.rmk: Rules for new testcase.
22276 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22280 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
22281 'partition' is NULL, grub_partition_get_start already does that.
22282 * commands/loadenv.c (check_blocklists): Likewise.
22283 (write_blocklists): Likewise.
22284 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
22285 (grub_fstest_SOURCES): Likewise.
22286 (pkglib_MODULES): Add part_bsd.mod.
22287 (part_bsd_mod_SOURCES): New variable.
22288 (part_bsd_mod_CFLAGS): Likewise.
22289 (part_bsd_mod_LDFLAGS): Likewise.
22290 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
22291 (grub_emu_SOURCES): Likewise.
22292 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22293 * include/grub/bsdlabel.h: New file.
22294 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
22296 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
22297 (grub_partition_map_list): New variable.
22298 (grub_partition_map_register): Inline.
22299 (grub_partition_map_unregister): Likewise.
22300 (FOR_PARTITION_MAPS): New macro.
22301 (grub_partition_map_iterate): Removed.
22302 (grub_partition_get_start): Handle nested partitions.
22303 * include/grub/msdos_partition.h: Remove bsd-related entries.
22304 (grub_pc_partition): Remove.
22305 * kern/disk.c (grub_disk_close): Free partition data.
22306 (grub_disk_adjust_range): Handle nested partitions.
22307 * kern/partition.c (grub_partition_map_probe): New function.
22308 (grub_partition_probe): Parse name to number, handle subpartitions.
22309 (get_partmap): New function.
22310 (grub_partition_iterate): Handle subpartitions.
22311 (grub_partition_get_name): Likewise.
22312 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
22313 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
22314 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
22315 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
22317 (acorn_partition_map_probe): Remove.
22318 (acorn_partition_map_get_name): Likewise.
22319 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
22321 Set 'index' to 0 since there can be only one partition entry per sector.
22322 (amiga_partition_map_probe): Remove.
22323 (amiga_partition_map_get_name): Likewise.
22324 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
22326 Set 'offset' and 'index' to real positions of partitions.
22327 (apple_partition_map_probe): Remove.
22328 (apple_partition_map_get_name): Likewise.
22329 * partmap/bsdlabel.c: New file.
22330 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
22332 Allocate 'data' so it can be correctly freed.
22333 Set 'index' to offset inside sector.
22334 (gpt_partition_map_probe): Remove.
22335 (gpt_partition_map_get_name): Likewise.
22336 * partmap/msdos.c (grub_partition_parse): Remove.
22337 (pc_partition_map_iterate): Don't force raw access.
22339 Make 'ext_offset' a local variable.
22340 (pc_partition_map_probe): Remove.
22341 (pc_partition_map_get_name): Remove.
22342 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
22344 (sun_partition_map_probe): Remove.
22345 (sun_partition_map_get_name): Likewise.
22346 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
22347 (grub_pcpart_type): Likewise.
22348 * util/hostdisk.c (open_device): Handle new numbering scheme.
22349 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
22350 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
22351 * util/grub-probe.c (probe_partmap): Handle nested paritions.
22352 * util/grub-install.in: Insert all subpartition modules.
22353 * util/ieee1275/grub-install.in: Likewise.
22355 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
22357 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
22360 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
22362 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
22364 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
22366 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
22367 match where 'make install' puts them.
22368 * util/i386/efi/grub-install.in: Likewise.
22370 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
22372 * .bzrignore: Add gentrigtables, grub-script-check,
22373 grub_script_check_init.c, grub_script_check_init.h, and
22376 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
22378 * kern/parser.c: Indented.
22380 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
22382 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
22384 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
22386 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
22387 alpha_mask_size == 0 case.
22389 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
22391 GRUB shell lexer and parser improvements.
22393 * conf/any-emu.rmk: Build rule updates.
22394 * conf/common.rmk: Likewise.
22395 * conf/i386-coreboot.rmk: Likewise.
22396 * conf/i386-efi.rmk: Likewise.
22397 * conf/i386-ieee1275.rmk: Likewise.
22398 * conf/i386-pc.rmk: Likewise.
22399 * conf/powerpc-ieee1275.rmk: Likewise.
22400 * conf/x86_64-efi.rmk: Likewise.
22402 * configure.ac: Configure check for flex.
22404 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
22406 (grub_lexer_param): Struct member updates.
22407 (grub_parser_param): Likewise.
22408 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
22409 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
22410 (grub_script_lexer_init): Prototype update.
22411 (grub_script_lexer_record_start): Likewise.
22412 (grub_script_lexer_record_stop): Likewise.
22413 (grub_script_lexer_yywrap): New function prototype.
22414 (grub_script_lexer_fini): Likewise.
22415 (grub_script_execute_argument_to_string): Removed by...
22416 (grub_script_execute_argument_to_argv): ...better version.
22418 * script/execute.c (ROUND_UPTO): New macro.
22419 (grub_script_execute_cmdline): Out of memory fixes.
22420 (grub_script_execute_menuentry): Likewise.
22421 (grub_script_execute_argument_to_string): Removed. Update all
22423 (grub_script_execute_argument_to_argv): ...better version.
22424 * script/function.c (grub_script_function_create): Use
22425 grub_script_execute_argument_to_argv instead of
22426 grub_script_execute_argument_to_string.
22428 * script/lexer.c (check_varstate): Removed.
22429 (check_textstate): Removed.
22430 (grub_script_lexer_record_start): Likewise.
22431 (grub_script_lexer_record_stop): Likewise.
22432 (recordchar): Replaced with...
22433 (grub_script_lexer_record): ...new function.
22434 (nextchar): Removed.
22435 (grub_script_lexer_init): Rewritten.
22436 (grub_script_yylex): Rewritten.
22437 (append_newline): New function.
22438 (grub_script_lexer_yywrap): New function.
22439 (grub_script_lexer_fini): New function.
22440 (grub_script_yyerror): Sets error flag.
22442 * script/yylex.l: New file.
22443 (grub_lexer_yyfree): Wrapper for flex yyffre.
22444 (grub_lexer_yyalloc): Likewise.
22445 (grub_lexer_yyrealloc): Likewise.
22446 * script/parser.y: Refactored.
22448 * script/script.c (grub_script_arg_add): Out of memory fixes.
22449 (grub_script_add_arglist): Likewise.
22450 (grub_script_create_cmdline): Likewise.
22451 (grub_script_create_cmdmenu): Likewise.
22452 (grub_script_add_cmd): Likewise.
22453 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
22454 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
22457 * tests/grub_script_echo1.in: New testcase.
22458 * tests/grub_script_vars1.in: New testcase.
22459 * tests/grub_script_echo_keywords.in: New testcase.
22461 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22463 Remove some redundancy in build system.
22465 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
22466 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
22467 (TARGET_LDFLAGS): Add -nostdlib.
22468 (TARGET_IMG_LDFLAGS): Likewise.
22469 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
22470 anything since mmap isn't available.
22471 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
22473 (pkglib_MODULES): Remove reboot.mod.
22474 (reboot_mod_SOURCES): Removed.
22475 (reboot_mod_CFLAGS): Likewise.
22476 (reboot_mod_LDFLAGS): Likewise.
22477 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
22478 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
22479 (DEFSYMFILES): Add kernel_syms.lst.
22480 (kernel_img_HEADERS): Add common headers.
22481 (symlist.c): New target.
22482 (kernel_syms.lst): Likewise.
22483 (pkglib_MODULES): Add memdisk.mod.
22484 (memdisk_mod_SOURCES): New variable.
22485 (memdisk_mod_CFLAGS): Likewise.
22486 (memdisk_mod_LDFLAGS): Likewise.
22487 (pkglib_MODULES): Add reboot.mod.
22488 (reboot_mod_SOURCES): New variable.
22489 (reboot_mod_CFLAGS): Likewise.
22490 (reboot_mod_LDFLAGS): Likewise.
22491 (pkglib_MODULES): Add date.mod.
22492 (date_mod_SOURCES): New variable.
22493 (date_mod_CFLAGS): Likewise.
22494 (date_mod_LDFLAGS): Likewise.
22495 (pkglib_MODULES): Add datehook.mod.
22496 (datehook_mod_SOURCES): New variable.
22497 (datehook_mod_CFLAGS): Likewise.
22498 (datehook_mod_LDFLAGS): Likewise.
22499 (pkglib_MODULES): Add lsmmap.mod.
22500 (lsmmap_mod_SOURCES): New variable.
22501 (lsmmap_mod_CFLAGS): Likewise.
22502 (lsmmap_mod_LDFLAGS): Likewise.
22503 (pkglib_MODULES): Add boot.mod.
22504 (boot_mod_SOURCES): New variable.
22505 (boot_mod_CFLAGS): Likewise.
22506 (boot_mod_LDFLAGS): Likewise.
22507 * conf/i386-coreboot.rmk: Removed redundant parts.
22508 * conf/i386-ieee1275.rmk: Likewise.
22509 * conf/i386-pc.rmk: Likewise.
22510 * conf/mips-yeeloong.rmk: Likewise.
22511 * conf/mips.rmk: Likewise.
22512 * conf/powerpc-ieee1275.rmk: Likewise.
22513 * conf/sparc64-ieee1275.rmk: Likewise.
22514 * conf/x86_64-efi.rmk: Likewise.
22515 * conf/i386-coreboot.rmk: Moved qemu parts ..
22516 * conf/i386-qemu.rmk: ... here
22517 * conf/i386-efi.rmk: Moved common parts to...
22518 * conf/x86-efi.rmk: ... here.
22519 * conf/i386.rmk: Added modules common to all x86 variants.
22520 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
22521 * disk/memdisk.c: Remove grub/machine/kernel.h.
22522 * gensymlist.sh.in: Include symbol.h.
22523 * hook/datehook.c: Correct module name.
22524 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
22525 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
22526 * include/grub/i386/efi/serial.h: New file.
22527 * include/grub/x86_64/efi/serial.h: Likewise.
22528 * util/time.c: Likewise.
22529 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
22531 2010-03-14 Colin King <colin.king@ubuntu.com>
22532 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
22534 Shrink the pre-partition-table part of boot.img by eight bytes.
22536 * boot/i386/pc/boot.S (ERR): New macro.
22537 (chs_mode): Use ERR.
22538 (geometry_error): Likewise.
22539 (hd_probe_error): Remove. This is only used once, so we wrwite
22541 (read_error): Instead of printing read_error_string, just set up
22542 %si and fall through to ...
22543 (error_message): ... this new function, also used by ERR.
22545 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
22547 Speed up consecutive hostdisk operations on the same device.
22549 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
22550 (grub_util_biosdisk_open): Initialise disk->data.
22551 (struct linux_partition_cache): New structure.
22552 (linux_find_partition): Cache partition start positions; these are
22553 expensive to compute on every read and write.
22554 (open_device): Cache open file descriptor in disk->data, so that we
22555 don't have to reopen it and flush the buffer cache for consecutive
22556 operations on the same device.
22557 (grub_util_biosdisk_close): New function.
22558 (grub_util_biosdisk_dev): Set `close' member.
22560 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
22561 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
22562 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
22563 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
22564 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
22566 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22568 Compile parts of grub-emu as modules.
22570 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
22571 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
22572 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
22573 (all-local): Add $(GRUB_EMU).
22574 (install-local): Install $(GRUB_EMU).
22575 (uninstall): Uninstall $(GRUB_EMU).
22576 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
22577 * kern/dl.c: Likewise.
22578 * commands/sleep.c: Not include machine/time.h.
22579 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
22580 (COMMON_CFLAGS): Likewise.
22581 (sbin_UTILITIES): Remove grub-emu.
22582 (grub_emu_SOURCES): Removed.
22583 (kernel_img_RELOCATABLE): New variable.
22584 (pkglib_PROGRAMS): Add kernel.img.
22585 (kernel_img_SOURCES): New variable
22586 (kernel_img_CFLAGS): Likewise.
22587 (kernel_img_LDFLAGS): Likewise.
22588 (TARGET_NO_STRIP): Likewise.
22589 (TARGET_NO_DYNAMIC_MODULES): Likewise.
22590 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
22591 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
22592 (grub-emu): New target.
22593 (GRUB_EMU): New variable.
22594 * configure.ac: Whitelist -emu as possible x86_64 architecture.
22595 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
22596 * loader/xnu.c: Likewise.
22597 * include/grub/pci.h: Likewise.
22598 * genemuinit.sh: New file.
22599 * genemuinitheader.sh: Likewise.
22600 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
22601 Support TARGET_NO_DYNAMIC_MODULES.
22602 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
22603 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
22604 * disk/loopback.c: Likewise.
22605 * font/font_cmd.c: Likewise.
22606 * partmap/acorn.c: Likewise.
22607 * partmap/amiga.c: Likewise.
22608 * partmap/apple.c: Likewise.
22609 * partmap/gpt.c: Likewise.
22610 * partmap/msdos.c: Likewise.
22611 * partmap/sun.c: Likewise.
22612 * parttool/msdospart.c: Likewise.
22613 * term/gfxterm.c: Likewise.
22614 * video/bitmap.c: Likewise.
22615 * video/readers/jpeg.c: Likewise.
22616 * video/readers/png.c: Likewise.
22617 * video/readers/tga.c: Likewise.
22618 * video/video.c: Likewise.
22619 * util/grub-emu.c (read_command_list): Removed.
22620 (main): Don't call util_init_nls.
22621 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
22622 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
22624 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22626 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
22627 date.mod, datehook.mod.
22628 (datetime_mod_SOURCES): New variable.
22629 (datetime_mod_CFLAGS): Likewise.
22630 (datetime_mod_LDFLAGS): Likewise.
22631 (date_mod_SOURCES): Likewise.
22632 (date_mod_CFLAGS): Likewise.
22633 (date_mod_LDFLAGS): Likewise.
22634 (datehook_mod_SOURCES): Likewise.
22635 (datehook_mod_CFLAGS): Likewise.
22636 (datehook_mod_LDFLAGS): Likewise.
22637 * conf/sparc64-ieee1275.rmk: Likewise.
22638 * lib/ieee1275/datetime.c: New file.
22640 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22642 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
22643 (ieee1275_fb_mod_SOURCES): New variable.
22644 (ieee1275_fb_mod_CFLAGS): Likewise.
22645 (ieee1275_fb_mod_LDFLAGS): Likewise.
22646 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
22648 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
22649 (HEAP_MAX_ADDR): Likewise.
22650 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
22652 Correct stop condition.
22653 (grub_ieee1275_devices_iterate): New function.
22654 * video/ieee1275.c: New file.
22656 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22658 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
22660 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
22662 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
22663 SCRATCH_PAD_DISKBOOT as scratch.
22664 (bootit): Pass Openfirmware pointer in %o4.
22665 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
22667 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
22668 with util/grub-mkrawimage.c.
22669 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
22670 * include/grub/aout.h (AOUT_MID_SUN): New definition.
22671 (grub_aout_get_type) [GRUB_UTIL]: Removed.
22672 (grub_aout_load) [GRUB_UTIL]: Likewise.
22673 * include/grub/kernel.h (grub_modules_get_end): New proto.
22674 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
22675 (SCRATCH_PAD_BOOT): New definition.
22676 (SCRATCH_PAD_DISKBOOT): Likewise.
22677 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
22678 * include/grub/sparc64/ieee1275/ieee1275.h
22679 (grub_ieee1275_original_stack): New variable
22680 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
22682 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
22683 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
22684 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
22685 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
22686 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
22687 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
22688 (grub_platform_image_format_t): New type.
22689 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
22690 * kern/main.c (grub_modules_get_end)
22691 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
22692 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
22693 (codestart): Switch stacks.
22694 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
22696 (grub_heap_init): Use grub_modules_get_end.
22697 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
22699 * util/grub-mkrawimage.c (generate_image): Support sparc64.
22701 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
22703 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
22705 * util/grub-mkrescue.in: Base ISO UUID on UTC.
22707 2010-03-08 Matt Kraai <kraai@ftbfs.org>
22709 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
22712 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
22714 * genmoddep.awk: Output all missing symbols and not only first.
22716 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22718 * NEWS: Put the date of 1.98 release.
22720 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22722 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
22725 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22727 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
22728 completition in the middle of string.
22730 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22732 * util/grub-mkrescue.in: Use mktemp with explicit template.
22734 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22736 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
22738 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22740 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
22743 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
22745 Fix FreeBSD compilation.
22747 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
22748 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
22750 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
22752 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
22754 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22756 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
22758 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22760 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
22762 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
22764 Support relative image path in theme file.
22766 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
22767 (image_set_property): Handle theme_dir and relative path.
22769 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22771 * configure.ac: Alias amd64 to x86_64.
22773 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22775 * NEWS: mention multiboot on EFI.
22777 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22779 * kern/main.c (grub_load_modules): Handle errors from init functions of
22782 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22784 * normal/autofs.c (autoload_fs_module): Handle errors.
22786 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22788 Disable linux.mod on qemu-mips since it's not functional and leads
22789 to compilation failure.
22791 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
22792 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
22793 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
22794 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
22795 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
22796 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
22797 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
22798 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
22799 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
22800 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
22801 Reported by: BVK Chaitanya
22803 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
22805 * INSTALL: Add gettext as a dependency and add qemu to a new section
22806 "Prerequisites for make-check".
22808 2010-03-04 Christian Franke <franke@computer.org>
22810 * util/grub-pe2elf.c: Add missing include "progname.h".
22812 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22814 * normal/crypto.c (read_crypto_list): Fix a typo.
22815 Reported by: Seth Goldberg.
22817 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22819 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
22820 Reported by: Seth Goldberg.
22822 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22824 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
22827 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22829 * genmk.rb: Remove terminal*.lst in make clean.
22830 Reported by: Seth Goldberg.
22832 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22834 * util/i386/efi/grub-install.in: Copy gettext files.
22836 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22838 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
22840 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22842 Wait for user entry basing on presence of output rather than on errors.
22844 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
22845 (grub_install_newline_hook): Likewise.
22846 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
22847 * normal/menu.c (show_menu): Check line_counter to determine presence
22849 * normal/term.c (grub_normal_line_counter): New variable.
22850 (grub_normal_get_line_counter): New function.
22851 (grub_install_newline_hook): Likewise.
22853 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22855 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
22857 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22859 * configure.ac: Update version to 1.98.
22861 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
22863 * util/grub.d/10_linux.in (linux_entry): Don't default to
22864 gfxpayload=keep if Linux doesn't support video handover.
22866 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
22868 Don't compile video modules on yeeloong since video subsystem is part
22871 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
22872 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
22873 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
22874 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
22875 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
22876 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
22877 * include/grub/bitmap_scale.h: Likewise.
22878 * include/grub/bufio.h: Likewise.
22879 * include/grub/font.h: Likewise.
22880 * include/grub/gfxterm.h: Likewise.
22881 * include/grub/video.h: Likewise.
22882 * include/grub/vbe.h: Don't include video_fb.h.
22883 * video/i386/pc/vbe.c: Include video_fb.h.
22884 * commands/i386/pc/vbetest.c: Include video.h.
22886 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
22888 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
22889 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
22890 default entry if GRUB_SAVEDEFAULT=true. This allows using
22891 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
22892 saving a new default on every boot.
22894 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
22896 * normal/crypto.c (read_crypto_list): Fix a memory leak.
22897 * normal/term.c (read_terminal_list): Likewise.
22898 * normal/main.c (grub_normal_init_page): Likewise.
22899 (grub_normal_read_line_real): Likewise.
22901 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
22903 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
22905 Reported by: Seth Goldberg.
22907 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
22909 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
22910 duplicate declaration of `start'.
22912 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
22914 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
22916 Reported by: Georgy Buranov
22918 2010-02-20 Carles Pina i Estany <carles@pina.cat>
22920 * util/grub-mkrawimage.c (usage): Change string formatting to
22923 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22925 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
22928 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
22930 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
22931 Reported by: Michael Suchanek.
22933 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
22935 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
22936 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
22938 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
22940 Remove any reference to non-free fonts.
22942 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
22943 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
22944 uses non-free components.
22945 * font/font.c (grub_font_get_name): Remove example name.
22946 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
22947 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22948 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
22949 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
22951 2010-02-16 Georgy Buranov <gburanov@gmail.com>
22953 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
22955 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
22957 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
22959 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
22961 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
22963 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
22965 * gensymlist.sh.in: Use TARGET_CC instead of CC.
22967 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
22969 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
22970 * docs/grub.texi (Command-line and menu entry commands): Document play
22973 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
22975 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
22976 parse arguments as inline tempo and notes. Move code for playing notes
22978 (play): ... new function.
22980 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
22982 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
22983 grub_uint16_t instead of short.
22984 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
22985 disk from little endian to cpu endianness.
22987 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
22989 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
22990 GRUB_TICKS_PER_SECOND instead of 120.
22992 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22994 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
22995 escape sequence after \e.
22997 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22999 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
23000 non-ASCII characters.
23002 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23004 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
23005 set root in single quotes to prevent \, from being unescaped.
23007 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23009 Prevent unknown commands from stopping menuentry execution.
23011 * script/execute.c (grub_script_execute_cmdline): Print error after
23014 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23016 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
23017 Reported by: Pavel Pisa.
23019 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23021 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
23023 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23025 Merge grub_ieee1275_map_physical into grub_map and rename to
23028 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
23029 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
23031 * kern/ieee1275/openfw.c (grub_map): Rename to ...
23032 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
23034 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
23036 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23038 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
23039 opening and not after.
23041 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23043 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
23046 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23048 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
23049 (alloc_phys): Use ALIGN_UP instead of align_addr.
23051 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23053 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
23055 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23057 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
23059 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23061 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
23064 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23066 Fix over-4GiB seek on sparc64.
23068 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
23069 Replace pos_i and pos_lo with pos. All users updated.
23070 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
23072 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
23074 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
23077 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23079 * util/grub-mkrawimage.c (main): Call set_program_name.
23081 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23083 Properly align 64-bit targets.
23085 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
23086 (generate_image): Use ALIGN_ADDR.
23088 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23090 Properly create cross-endian images.
23092 * include/grub/types.h (grub_host_to_target_addr): New macro
23093 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
23095 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23097 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
23099 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23101 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
23103 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
23104 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
23105 (grub_linux_boot): Divide by 64K when on VESA.
23107 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23109 Support GRUB_GFXPAYLOAD_LINUX.
23111 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
23112 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
23114 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23116 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
23117 to show messages instead of discarding them.
23118 Process errors after executing command and not before. Keep old method
23121 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
23123 * configure.ac: Check for ft2build.h.
23125 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23127 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
23129 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23131 * genkernsyms.sh.in: Use TARGET_CC.
23133 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
23137 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23139 * include/grub/multiboot2.h: Remove leftover file.
23140 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
23141 * include/grub/partition.h [GRUB_UTIL]: Likewise.
23143 2010-02-07 Yves Blusseau <blusseau@zetam.org>
23145 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
23147 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23149 Fix warnings in grub-emu when compiling with maximum warning options.
23151 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
23152 (grub_arch_modules_addr): Return 0 and not NULL.
23153 * util/misc.c (ENABLE_RELOCATABLE): New definition.
23154 (xstrdup): Use newstr instead of dup.
23155 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
23156 of disk to dsk to avoid shadowing.
23157 (find_free_slot): Fix prototype.
23158 * util/getroot.c (grub_util_is_dmraid): Make static.
23159 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
23160 Add missing prototype.
23161 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
23163 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23165 * loader/i386/linux.c (grub_linux_setup_video): Handle error
23168 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23170 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
23173 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23175 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
23176 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
23177 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
23178 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
23179 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
23180 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
23182 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23184 * include/grub/err.h (grub_err_printf): Don't export.
23186 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23188 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
23190 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23192 * include/grub/i18n.h (grub_gettext_dummy): Removed.
23193 * kern/misc.c (grub_gettext_dummy): Make static.
23195 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23197 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
23199 * kern/term.c (grub_putchar): Likewise.
23201 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23203 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
23204 buggy hook call and memory leak.
23206 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23208 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
23210 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23212 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
23214 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23216 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
23218 Return grub_errno on allocation error.
23220 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23222 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
23224 2010-02-06 Yves Blusseau <blusseau@zetam.org>
23226 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
23227 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
23229 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23231 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
23233 (grub_pxefs_open): Likewise.
23235 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23237 * util/grub.d/10_hurd.in: Add --class information to menuentries.
23238 * util/grub.d/10_kfreebsd.in: Likewise.
23239 * util/grub.d/10_linux.in: Likewise.
23241 2010-02-06 Colin D Bennett <colin@gibibit.com>
23243 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
23244 (gfxmenu_mod_SOURCES): New variable.
23245 (gfxmenu_mod_CFLAGS): Likewise.
23246 (gfxmenu_mod_LDFLAGS): Likewise.
23247 * include/grub/term.h (grub_term_set_current_output): Declare
23249 * docs/gfxmenu-theme-example.txt: New file.
23250 * gfxmenu/gfxmenu.c: Likewise.
23251 * gfxmenu/gui_box.c: Likewise.
23252 * gfxmenu/gui_canvas.c: Likewise.
23253 * gfxmenu/gui_circular_progress.c: Likewise.
23254 * gfxmenu/gui_image.c: Likewise.
23255 * gfxmenu/gui_label.c: Likewise.
23256 * gfxmenu/gui_list.c: Likewise.
23257 * gfxmenu/gui_progress_bar.c: Likewise.
23258 * gfxmenu/gui_string_util.c: Likewise.
23259 * gfxmenu/gui_util.c: Likewise.
23260 * gfxmenu/icon_manager.c: Likewise.
23261 * gfxmenu/model.c: Likewise.
23262 * gfxmenu/named_colors.c: Likewise.
23263 * gfxmenu/theme_loader.c: Likewise.
23264 * gfxmenu/view.c: Likewise.
23265 * gfxmenu/widget-box.c: Likewise.
23266 * include/grub/gfxmenu_model.h: Likewise.
23267 * include/grub/gfxmenu_view.h: Likewise.
23268 * include/grub/gfxwidgets.h: Likewise.
23269 * include/grub/gui.h: Likewise.
23270 * include/grub/gui_string_util.h: Likewise.
23271 * include/grub/icon_manager.h: Likewise.
23273 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23275 Agglomerate scrolling in gfxterm.
23277 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
23278 (grub_virtual_screen_setup): Initialise 'total_screen'.
23279 (write_char): Split to ...
23280 (paint_char): ... this ...
23281 (write_char): ... and this.
23282 (paint_char): Handle delayed scrolling.
23283 (draw_cursor): Likewise.
23284 (scroll_up): Split to ...
23285 (real_scroll): ... this ...
23286 (scroll_up): ... and this.
23287 (real_scroll): Handle multi-line scroll and draw below-the-bottom
23289 (grub_gfxterm_refresh): Call real_scroll.
23291 2010-02-06 Colin D Bennett <colin@gibibit.com>
23293 * include/grub/misc.h (grub_iscntrl): New inline function.
23294 (grub_isalnum): Likewise.
23295 (grub_strtol): Likewise.
23297 2010-02-06 Colin D Bennett <colin@gibibit.com>
23299 * normal/menu_text.c (get_entry_number): Move from here ...
23300 * normal/menu.c (get_entry_number): ... moved here.
23301 * include/grub/menu.h (grub_menu_get_default_entry_index):
23303 * normal/menu.c (grub_menu_get_default_entry_index): New function.
23304 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
23305 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
23306 (grub_menu_viewer_should_return): Likewise.
23307 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
23308 * normal/menu_text.c (run_menu): Enable menu switching.
23309 * normal/menu_viewer.c (should_return): New variable.
23310 (menu_viewer_changed): Likewise.
23311 (grub_menu_viewer_show_menu): Handle menu viewer changes.
23312 (grub_menu_viewer_should_return): New function.
23313 (menuviewer_write_hook): Likewise.
23314 (grub_menu_viewer_init): Likewise.
23316 2010-02-06 Colin D Bennet <colin@gibibit.com>
23317 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23319 Support for gfxterm in a window.
23321 * include/grub/gfxterm.h: New file.
23322 * include/grub/video.h (struct grub_video_rect): New declaration.
23323 (grub_video_rect_t): Likewise.
23324 * term/gfxterm.c (struct grub_gfxterm_window): New type.
23325 (refcount): New variable.
23326 (render_target): Likewise.
23327 (window): Likewise.
23328 (repaint_callback): Likewise.
23329 (grub_virtual_screen_setup): Use 'render_target'.
23330 (init_window): New function.
23331 (grub_gfxterm_init_window): Likewise.
23332 (grub_gfxterm_init): Check reference counter.
23334 (destroy_window): New function.
23335 (grub_gfxterm_destroy_window): Likewise.
23336 (grub_gfxterm_fini): Check reference counter.
23337 Use destroy_window.
23338 (redraw_screen_rect): Restore viewport.
23339 Use 'render_target' and 'window'.
23340 Call 'repaint_callback'.
23341 (write_char): Use 'render_target'.
23342 (draw_cursor): Likewise.
23343 (scroll_up): Restore viewport.
23344 Use 'render_target' and 'window'.
23345 Call 'repaint_callback'.
23346 (grub_gfxterm_cls): Likewise.
23347 (grub_gfxterm_refresh): Use 'window'.
23348 (grub_gfxterm_set_repaint_callback): New function.
23349 (grub_gfxterm_background_image_cmd): Use 'window'.
23350 (grub_gfxterm_get_term): New function.
23351 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
23353 2010-02-06 Colin D Bennett <colin@gibibit.com>
23355 Bitmap scaling support.
23357 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
23358 (bitmap_scale_mod_SOURCES): New variable.
23359 (bitmap_scale_mod_CFLAGS): Likewise.
23360 (bitmap_scale_mod_LDFLAGS): Likewise.
23361 * include/grub/bitmap_scale.h: New file.
23362 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
23363 (background_image_cmd_options): New variable.
23364 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
23365 (cmd): Rename and change type to ...
23366 (background_image_cmd_handle): ... this. All users updated.
23367 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
23368 * video/bitmap_scale.c: New file.
23370 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23374 * Makefile.in (LIBSDL): New variable.
23375 (enable_grub_emu_sdl): Likewise.
23376 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
23377 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
23378 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
23379 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
23380 * util/sdl.c: New file.
23382 2010-02-06 Colin D Bennett <colin@gibibit.com>
23383 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23385 Double buffering support.
23387 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
23388 * include/grub/video.h: Update comment.
23389 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
23391 (grub_video_fb_doublebuf_blit_init): New prototype.
23392 * term/gfxterm.c (scroll_up): Support double buffering.
23393 (grub_gfxterm_refresh): Likewise.
23394 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
23395 (grub_video_fb_doublebuf_blit_init): Likewise.
23396 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
23397 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
23398 'displayed_page', 'render_page' and 'update_screen'.
23399 (grub_video_vbe_fini): Free offscreen buffer.
23400 (doublebuf_pageflipping_commit): New function.
23401 (doublebuf_pageflipping_update_screen): Likewise.
23402 (doublebuf_pageflipping_init): Likewise.
23403 (double_buffering_init): Likewise.
23404 (grub_video_vbe_setup): Enable doublebuffering.
23405 (grub_video_vbe_swap_buffers): Implement.
23406 (grub_video_vbe_set_active_render_target): Handle double buffering.
23407 (grub_video_vbe_get_active_render_target): Likewise.
23408 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
23409 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
23410 (grub_video_vbe_enable_double_buffering): Likewise.
23411 (grub_video_vbe_swap_buffers): Use update_screen.
23412 (grub_video_set_mode): Use double buffering.
23414 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23416 * maintainance/gentrigtables.py: Remove.
23417 * lib/trig.c: Likewise.
23419 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
23421 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
23423 (trigtables.c): New rule.
23424 (gentrigtables): Likewise.
23425 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
23427 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23429 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
23432 2010-02-06 Colin D Bennet <colin@gibibit.com>
23434 Trigonometry support.
23436 * include/grub/trig.h: New file.
23437 * lib/trig.c: Likewise.
23438 * maintainance/gentrigtables.py: Likewise.
23439 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
23440 (trig_mod_SOURCES): New variable.
23441 (trig_mod_CFLAGS): Likewise.
23442 (trig_mod_LDFLAGS): Likewise.
23444 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23446 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
23449 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23451 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
23454 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
23456 * util/hostdisk.c (open_device): Don't use partition device when reading
23457 before the partition.
23458 (grub_util_biosdisk_read): Don't read from partition and before the
23459 partition in single operation.
23460 (grub_util_biosdisk_write): Don't write to partition and before the
23461 partition in single operation.
23463 2010-02-03 Torsten Landschoff <torsten@debian.org>
23465 * kern/disk.c (grub_disk_read): Fix offset computation when reading
23468 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
23470 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
23472 (grub_biosdisk_write): Refuse to write to CDROM.
23474 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23476 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
23478 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23480 * font/font.c (find_glyph): Check that bmp_idx is available before
23482 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
23483 with (font == NULL).
23485 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
23487 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
23489 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
23491 * include/grub/script_sh.h (sourcecode): Add const qualifier.
23492 * util/grub-script-check.c (getline): Fix empty lines case.
23494 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
23496 * Makefile.in (check): Exit with fail status when one of the tests
23498 * tests/example_functional_test.c (example_test): Fix reversed assert.
23499 * tests/example_unit_test.c (example_test): Likewise.
23501 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
23503 * util/grub.d/10_linux.in: This script does not use any of the
23504 contents of gettext.sh, only the external command `gettext', so stop
23505 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
23506 the same prefix as GRUB.)
23507 * util/grub.d/10_kfreebsd.in: Likewise.
23509 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23511 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
23514 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23516 * kern/disk.c (grub_disk_read): Fix offset computation when reading
23519 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23521 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
23522 having a 4KiB and not 32KiB buffer size.
23524 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23526 * util/hostfs.c: Include `<errno.h>'.
23527 (grub_hostfs_read): Handle errors from fseeko() and fread().
23529 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23531 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
23532 loop when using read hooks on files whose size isn't sector-aligned.
23534 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23536 Remove unused parameter.
23538 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
23539 (grub_iso9660_open): Remove initialization of `data->length'.
23541 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23543 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
23544 memleak conditions.
23546 2010-01-27 Carles Pina i Estany <carles@pina.cat>
23548 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
23549 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
23551 2010-01-26 Carles Pina i Estany <carles@pina.cat>
23553 * util/bin2h.c (usage): Fix warning (space after backslash).
23555 2010-01-26 Carles Pina i Estany <carles@pina.cat>
23557 * font/font.c: Include `grub/fontformat.h.
23558 Remove font file format constants.
23559 (grub_font_load): Use the new macros.
23560 * include/grub/fontformat.h: New file.
23561 * util/grub-mkfont.c: Include `grub/fontformat.c'.
23562 (write_font_pf2): Use the new macros.
23564 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
23566 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
23569 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
23571 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
23573 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
23574 (_start): Macroify `0x7F'.
23576 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
23577 (make_install_device): Use "(pxe)" as fallback prefix when booting
23580 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
23582 * configure.ac: Reset LIBS after check for libgcc symbols.
23584 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
23586 * util/hostdisk.c (open_device): Add trailing newline to debug
23589 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
23591 * configure.ac: Check for `limits.h'.
23592 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
23594 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
23596 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
23597 capitalize error strings.
23599 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
23601 * util/grub.d/10_hurd.in: Add a recovery mode.
23603 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
23605 * configure.ac: Check for libgcc symbols with -nostdlib.
23607 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
23609 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
23611 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23613 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
23614 stack since heap may be unavailable at that point.
23615 (grub_ofconsole_gotoxy): Likewise.
23617 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23619 * configure.ac: Check for _restgpr_14_x.
23620 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
23621 and _savegpr_* prototypes.
23623 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
23625 Use generic grub_reboot() for i386-efi.
23627 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
23628 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
23629 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
23631 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23633 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
23634 presence of "prefix" variable as it breaks when normal.mod is
23637 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23639 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
23640 stack since heap is unavailable at that point.
23642 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23644 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
23645 (grub_freebsd_bootinfo): Rewritten.
23646 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
23648 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23650 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
23652 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
23654 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
23657 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
23659 * util/misc.c (make_system_path_relative_to_its_root): Change the work
23660 around for handling "/" to the correct fix. Fix a memory leak. Use
23661 xstrdup instead of strdup.
23663 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23665 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
23667 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23669 Optimise glyph lookup by Basic Multilingual Plane lookup array.
23671 * font/font.c (struct grub_font): New member 'bmp_idx'.
23672 (font_init): Initialise 'bmp_idx'.
23673 (load_font_index): Fill 'bmp_idx'.
23674 (find_glyph): Make inline. Use bmp_idx for BMP characters.
23676 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23678 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
23681 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23683 Move context handling out of the kernel.
23685 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
23686 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
23687 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
23688 * conf/i386-efi.rmk: Likewise.
23689 * conf/i386-ieee1275.rmk: Likewise.
23690 * conf/i386-pc.rmk: Likewise.
23691 * conf/powerpc-ieee1275.rmk: Likewise.
23692 * conf/sparc64-ieee1275.rmk: Likewise.
23693 * conf/x86_64-efi.rmk: Likewise.
23694 * include/grub/env.h: Include grub/menu.h.
23695 (grub_env_var_type): Removed.
23696 (grub_env_var): Replaced field 'type' with 'global'.
23697 (grub_env_find): New prototype.
23698 (grub_env_context_open): Remove EXPORT_FUNC.
23699 (grub_env_context_close): Likewise.
23700 (grub_env_export): Likewise.
23701 (grub_env_set_data_slot): Removed.
23702 (grub_env_get_data_slot): Likewise.
23703 (grub_env_unset_data_slot): Likewise.
23704 (grub_env_unset_menu): New prototype.
23705 (grub_env_set_menu): Likewise.
23706 (grub_env_get_menu): Likewise.
23707 * include/grub/env_private.h: New file.
23708 * include/grub/normal.h (grub_context_init): New prototype.
23709 (grub_context_fini): Likewise.
23710 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
23711 * normal/context.c (grub_cmd_export): ... to here.
23712 * kern/env.c: Include env_private.h.
23713 (HASHSZ): Moved to include/grub/env_private.h.
23714 (grub_env_context): Likewise.
23715 (grub_env_sorted_var): Likewise.
23716 (current_context): Renamed from this ...
23717 (grub_current_context): ...to this. 'static' removed. All users updated.
23718 (grub_env_find): Removed 'static'.
23719 (grub_env_context_open): Moved to normal/context.c.
23720 (grub_env_context_close): Likewise.
23721 (grub_env_export): Likewise.
23722 (mangle_data_slot_name): Removed.
23723 (grub_env_set_data_slot): Likewise.
23724 (grub_env_get_data_slot): Likewise.
23725 (grub_env_unset_data_slot): Likewise.
23726 * kern/main.c (grub_set_root_dev): Don't export root.
23727 It will be done later.
23728 (grub_main): Don't export prefix.
23729 It will be done later.
23730 * normal/context.c: New file.
23731 * normal/main.c (free_menu): Use grub_env_unset_menu.
23732 (grub_normal_add_menu_entry): Use grub_env_get_menu.
23733 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
23734 (GRUB_MOD_INIT(normal)): Call grub_context_init.
23735 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
23737 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23741 * commands/setpci.c: New file.
23742 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
23743 (setpci_mod_SOURCES): New variable.
23744 (setpci_mod_CFLAGS): Likewise.
23745 (setpci_mod_LDFLAGS): Likewise.
23747 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23749 Byte-addressable PCI configuration space.
23751 * bus/pci.c (grub_pci_make_address): Use byte address instead of
23753 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
23754 GRUB_PCI_REG_CACHELINE.
23755 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
23756 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
23757 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
23758 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
23759 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
23760 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
23761 grub_pci_make_address.
23762 (lock_rom_area): Likewise.
23763 * commands/lspci.c (grub_lspci_iter): Use macroses
23764 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
23765 of grub_pci_make_address.
23766 * disk/ata.c (grub_ata_pciinit): Likewise.
23767 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
23768 (GRUB_PCI_REG_VENDOR): Likewise.
23769 (GRUB_PCI_REG_DEVICE): Likewise.
23770 (GRUB_PCI_REG_COMMAND): Likewise.
23771 (GRUB_PCI_REG_STATUS): Likewise.
23772 (GRUB_PCI_REG_REVISION): Likewise.
23773 (GRUB_PCI_REG_CLASS): Likewise.
23774 (GRUB_PCI_REG_CACHELINE): Likewise.
23775 (GRUB_PCI_REG_LAT_TIMER): Likewise.
23776 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
23777 (GRUB_PCI_REG_BIST): Likewise.
23778 (GRUB_PCI_REG_ADDRESSES): Likewise.
23779 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23780 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23781 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23782 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23783 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23784 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23785 (GRUB_PCI_REG_CIS_POINTER): Likewise.
23786 (GRUB_PCI_REG_SUBVENDOR): Likewise.
23787 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
23788 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
23789 (GRUB_PCI_REG_CAP_POINTER): Likewise.
23790 (GRUB_PCI_REG_IRQ_LINE): Likewise.
23791 (GRUB_PCI_REG_IRQ_PIN): Likewise.
23792 (GRUB_PCI_REG_MIN_GNT): Likewise.
23793 (GRUB_PCI_REG_MAX_LAT): Likewise.
23794 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
23795 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
23796 * video/efi_uga.c (find_framebuf): Likewise.
23797 * video/sm712.c (grub_video_sm712_setup): Likewise.
23798 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
23801 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23803 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
23804 can be reliably determined to be supported.
23806 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23808 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
23809 that VESA is supported.
23810 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
23813 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23815 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
23817 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23819 * util/misc.c (make_system_path_relative_to_its_root): Work around
23820 special-casing of "/", as previous incarnation of this routine did.
23822 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23824 Fix any-emu compilation.
23826 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
23827 * grub_bin2h_SOURCES: New variable.
23829 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23831 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
23833 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23835 * util/grub.d/00_header.in: Fix handling of locale_dir.
23837 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23839 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
23840 as possible unifont location (Gentoo).
23841 Reported by: Alexander Brüning
23843 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23845 Don't try to generate lists for kernel.img.
23847 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
23848 (pkglib_MODULES): Remove kernel.img.
23849 (kernel_img_EXPORTS): Removed.
23850 (kernel_img_RELOCATABLE): New variable.
23851 * conf/x86_64-efi.rmk: Likewise.
23852 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
23854 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23856 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
23857 grub_xasprintf or grub_snprintf.
23858 (grub_vsprintf): Likewise.
23859 (grub_snprintf): New proto.
23860 (grub_vsnprintf): Likewise.
23861 (grub_xasprintf): Likewise.
23862 (grub_xvasprintf): Likewise.
23863 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
23864 (grub_sprintf): Removed.
23865 (grub_vsnprintf): New function.
23866 (grub_snprintf): Likewise.
23867 (grub_xvasprintf): Likewise.
23868 (grub_xasprintf): Likewise.
23869 (grub_vsprintf): Renamed to ...
23870 (grub_vsnprintf_real): ...this. New argument max_len.
23872 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
23874 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
23875 fix grub-script-check warning.
23877 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23879 * include/grub/font.h (grub_font_load): Fix prototype.
23881 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23883 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
23885 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23887 * include/grub/x86_64/at_keyboard.h: New file.
23889 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23891 * loader/mips/linux.c: Include missing grub/i18n.h.
23893 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23895 * normal/menu.c (notify_execution_failure): Clarify error message.
23897 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23899 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
23900 return value (and revert all return statements). Update users.
23902 2010-01-20 Dan Merillat <debian@dan.merillat.org>
23904 * kern/device.c (grub_device_iterate): Allocate new part_ent
23905 structure based on sizeof (*p) rather than sizeof (p->next), to
23906 account for structure padding.
23908 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
23909 disk is NULL, which might happen for LVM physical volumes with no
23912 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23914 * loader/mips/linux.c (grub_cmd_initrd)
23915 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
23917 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23919 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
23920 (grub_video_video_init, grub_video_bitmap_init)
23921 (grub_font_manager_init, grub_term_gfxterm_init)
23922 (grub_at_keyboard_init): New extern declarations.
23923 (grub_machine_init): Initialize gfxterm and at_keyboard.
23925 * kern/main.c (grub_main): Revert grub_printf delay kludge.
23927 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
23928 `gfxterm.mod' into core image.
23930 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
23931 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
23932 (kernel_img_FORMAT): Copy to ...
23934 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
23935 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
23936 (kernel_img_FORMAT): ... here, and ...
23938 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
23939 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
23940 (kernel_img_FORMAT): ... here.
23942 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
23943 and input (at_keyboard) terminals in kernel.
23944 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
23946 (pkglib_MODULES): Remove `pci.mod'.
23947 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
23948 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
23949 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
23950 (at_keyboard_mod_LDFLAGS): Remove variables.
23952 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
23954 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
23956 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
23958 * include/grub/mips/libgcc.h: Only export symbols for functions
23959 that libgcc provides.
23961 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
23965 * bus/bonito.c: New file.
23966 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
23967 GRUB_PCI_NUM_DEVICES.
23968 * term/i386/pc/serial.c: Move to ...
23969 * term/serial.c: ... here. All users updated.
23970 * util/i386/pc/grub-mkimage.c: Move to ...
23971 * util/grub-mkrawimage.c: ... here. All users updated.
23972 * term/i386/pc/at_keyboard.c: Move to ...
23973 * term/at_keyboard.c: ... here. All users updated.
23974 * conf/mips-qemu-mips.rmk: New file.
23975 * conf/mips-yeeloong.rmk: Likewise.
23976 * conf/mips.rmk: Likewise.
23977 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
23979 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
23981 (grub_ata_pciinit): Support CS5536.
23982 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
23983 * font/font_cmd.c (loadfont_command): Open file before passing it to
23985 (pseudo_file_read): New function.
23986 (pseudo_file_close): Likewise.
23987 (pseudo_fs): New structure.
23988 (load_font_module): New function.
23989 (GRUB_MOD_INIT(font_manager)): Load embedded font.
23990 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
23991 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
23992 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
23993 * include/grub/i386/at_keyboard.h: Split into ...
23994 * include/grub/at_keyboard.h: ... this ...
23995 * include/grub/i386/at_keyboard.h: ... and this.
23996 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
23998 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
24000 (grub_elf64_size): Likewise.
24001 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
24003 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
24004 * include/grub/i386/coreboot/serial.h: Rewritten.
24005 * include/grub/i386/ieee1275/serial.h: Include
24006 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
24007 * include/grub/i386/pc/serial.h: Moved from here ...
24008 * include/grub/serial.h: ... to here. All users updated.
24009 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
24010 (GRUB_PCI_NUM_BUS): Likewise.
24011 (GRUB_PCI_NUM_DEVICES): Likewise.
24012 (grub_pci_device_map_range): Add missing volatile keyword.
24013 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
24014 * include/grub/mips/at_keyboard.h: New file.
24015 * include/grub/mips/cache.h: Likewise.
24016 * include/grub/mips/io.h: Likewise.
24017 * include/grub/mips/kernel.h: Likewise.
24018 * include/grub/mips/libgcc.h: Likewise.
24019 * include/grub/mips/pci.h: Likewise.
24020 * include/grub/mips/qemu-mips/boot.h: Likewise.
24021 * include/grub/mips/qemu-mips/kernel.h: Likewise.
24022 * include/grub/mips/qemu-mips/loader.h: Likewise.
24023 * include/grub/mips/qemu-mips/memory.h: Likewise.
24024 * include/grub/mips/qemu-mips/serial.h: Likewise.
24025 * include/grub/mips/qemu-mips/time.h: Likewise.
24026 * include/grub/mips/relocator.h: Likewise.
24027 * include/grub/mips/time.h: Likewise.
24028 * include/grub/mips/types.h: Likewise.
24029 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
24030 * include/grub/mips/yeeloong/boot.h: Likewise.
24031 * include/grub/mips/yeeloong/kernel.h: Likewise.
24032 * include/grub/mips/yeeloong/loader.h: Likewise.
24033 * include/grub/mips/yeeloong/memory.h: Likewise.
24034 * include/grub/mips/yeeloong/pci.h: Likewise.
24035 * include/grub/mips/yeeloong/serial.h: Likewise.
24036 * include/grub/mips/yeeloong/time.h: Likewise.
24037 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
24038 * kern/elf.c (grub_elf32_size): New parameter. All users
24040 (grub_elf64_size): Likewise.
24041 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
24042 Load modules before saying "Welcome to GRUB!".
24043 Call grub_refresh after saying "Welcome to GRUB!".
24044 * kern/mips/cache.S: New file.
24045 * kern/mips/cache_flush.S: Likewise.
24046 * kern/mips/dl.c: Likewise.
24047 * kern/mips/init.c: Likewise.
24048 * kern/mips/qemu-mips/init.c: Likewise.
24049 * kern/mips/startup.S: Likewise.
24050 * kern/mips/yeeloong/init.c: Likewise.
24051 * kern/term.c (grub_putcode): Handle NULL terminal.
24052 (grub_getcharwidth): Likewise.
24053 (grub_getkey): Likewise.
24054 (grub_checkkey): Likewise.
24055 (grub_getkeystatus): Likewise.
24056 (grub_getxy): Likewise.
24057 (grub_getwh): Likewise.
24058 (grub_gotoxy): Likewise.
24059 (grub_cls): Likewise.
24060 (grub_setcolorstate): Likewise.
24061 (grub_setcolor): Likewise.
24062 (grub_getcolor): Likewise.
24063 (grub_refresh): Likewise.
24064 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
24065 (write_jump): Add hatch nop.
24066 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
24067 * lib/mips/setjmp.S: New file.
24068 * loader/mips/linux.c: Likewise.
24069 * term/i386/pc/at_keyboard.c: Move from here ...
24070 * term/at_keyboard.c: ... to here.
24071 * term/i386/pc/serial.c: Moved from here ...
24072 * term/serial.c: ... to here. All users updated.
24073 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
24074 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
24075 (serial_translate_key_sequence): Avoid deadlock.
24076 (grub_serial_getkey): Handle backspace.
24077 (grub_serial_putchar): Fix newline handling.
24078 * util/i386/pc/grub-mkimage.c: Move from here ...
24079 * util/grub-mkrawimage.c: ... to here. All users updated.
24080 (generate_image): New parameters 'font_path' and 'format'.
24081 Support embedding font.
24082 Use grub_host_to_target* instead of grub_cpu_to_le*.
24083 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
24084 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
24085 (options): New option "--font".
24087 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
24088 (main): Handle "--font".
24089 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
24090 (grub_virtual_screen_setup): Set bg_color_display.
24091 (redraw_screen_rect): Use bg_color_display instead of incorrect
24093 (grub_gfxterm_cls): Likewise.
24094 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
24095 Support embedding config file.
24096 (add_segments): Likewise.
24097 (options): New option "--config".
24098 (main): Handle "--config".
24099 * video/sm712.c: New file.
24101 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24103 Fix parallel builds.
24105 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
24106 font.c depend on ascii.h).
24108 2010-01-12 Carles Pina i Estany <carles@pina.cat>
24110 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
24112 2010-01-11 Carles Pina i Estany <carles@pina.cat>
24114 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
24115 By default: disabled.
24116 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
24119 2010-01-10 Carles Pina i Estany <carles@pina.cat>
24121 * font/font.c: Update copyright years.
24122 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
24124 2010-01-10 Carles Pina i Estany <carles@pina.cat>
24126 * font/font.c: Include `ascii.h'.
24127 (ASCII_BITMAP_SIZE): New macro.
24128 (ascii_font_glyph): Define.
24129 (ascii_glyph_lookup): New function.
24130 (grub_font_get_string_width): Change comment. If glyph not found, use
24131 ascii_glyph_lookup.
24132 (grub_font_get_glyph_with_fallback): If glyph not available returns
24133 ascii_glyph_lookup.
24134 * util/grub-mkfont.c (file_formats): New enum.
24135 (options): Add `ascii-bitmaps' new option.
24136 (usage): Add `asii-bitmaps' new option.
24137 (write_font_ascii_bitmap): New function.
24138 (write_font): Rename to ...
24139 (write_font_p2): ... this. Remove print_glyphs call.
24140 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
24141 used. Call print_glyphs.
24142 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
24144 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
24146 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
24147 (grub_bin2h_SOURCES): New variable.
24148 * util/bin2h.c: New file.
24150 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24152 * include/multiboot.h: Resynced with spec.
24153 * include/multiboot2.h: Likewise.
24154 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
24155 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
24157 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24159 * include/grub/term.h (grub_term_register_input,
24160 grub_term_register_output): Check return of terminal init()
24161 routines, and abort if errors are raised.
24163 * commands/terminal.c: Update copyright year.
24165 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24167 * commands/terminal.c (grub_cmd_terminal_input)
24168 (grub_cmd_terminal_output): Check return of terminal init()
24169 routines, and abort if errors are raised.
24171 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
24173 * include/grub/i386/bsd.h: Fix include pathes.
24175 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
24177 Add missing *BSD copyright headers.
24179 * include/grub/aout.h: Add BSD licence.
24180 * include/grub/i386/bsd.h: Parts under different licences moved to ...
24181 * include/grub/i386/freebsd_linker.h: ... here,
24182 * include/grub/i386/freebsd_reboot.h: ... here,
24183 * include/grub/i386/netbsd_bootinfo.h: ... here,
24184 * include/grub/i386/netbsd_reboot.h: ... here,
24185 * include/grub/i386/openbsd_bootarg.h: ... here,
24186 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
24187 licence to each file.
24189 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24191 * acinclude.m4: Remove `nop' assembly instruction; it's not
24192 implemented by all architectures.
24194 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24196 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
24197 ELILO. This is no longer necessary.
24199 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
24201 Added new tool, grub-scrit-check to verify grub.cfg syntax.
24203 * util/grub-script-check.c: grub-script-check tool.
24204 * conf/common.rmk: Make rules for grub-script-check.
24206 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24208 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
24209 spotting it back in 2008. Shame on me for forgetting he did.
24211 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
24213 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24215 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
24216 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
24217 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
24218 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
24219 (GRUB_VIDEO_TYPE_EFI): Rename to ...
24220 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
24222 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
24224 * include/grub/test.h: Add license header.
24225 * tests/example_functional_test.c: Likewise.
24226 * tests/example_unit_test.c: Likewise.
24227 * tests/lib/functional_test.c: Likewise.
24228 * tests/lib/test.c: Likewise.
24229 * tests/lib/unit_test.c: Likewise.
24231 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
24233 Use flag-based instead of hook-based video mode selection and "auto"
24236 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
24237 (grub_video_set_mode): Changed prototype. All users updated.
24238 (grub_video_check_mode_flag): New inline function.
24239 * video/video.c (parse_modespec): New function.
24240 (grub_video_set_mode): Parse flags and keywords.
24242 2010-01-17 Carles Pina i Estany <carles@pina.cat>
24244 * util/misc.c (grub_util_info): Fix the order of the parameters in a
24247 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
24249 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
24251 2010-01-16 Carles Pina i Estany <carles@pina.cat>
24253 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
24255 * util/grub-emu.c (usage): Likewise.
24256 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
24257 * util/i386/efi/grub-mkimage.c (usage): Likewise.
24258 * util/i386/pc/grub-mkimage.c (usage): Likewise.
24259 * util/i386/pc/grub-setup.c (usage): Likewise.
24261 2010-01-16 Carles Pina i Estany <carles@pina.cat>
24263 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
24265 (grub_util_info): Likewise.
24266 (grub_util_error): Likewise.
24267 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
24268 and/or new lines in `grub_util_warna', `grub_util_info',
24269 `grub_util_error' calls.
24270 * util/getroot.c: Likewise.
24271 * util/grub-editenv.c: Likewise.
24272 * util/grub-emu.c: Likewise.
24273 * util/grub-fstest.c: Likewise.
24274 * util/grub-mkdevicemap.c: Likewise.
24275 * util/grub-mkfont.c: Likewise.
24276 * util/grub-mkpasswd-pbkdf2.c: Likewise.
24277 * util/grub-mkrelpath.c: Likewise.
24278 * util/grub-pe2elf.c: Likewise.
24279 * util/grub-probe.c: Likewise.
24280 * util/hostdisk.c: Likewise.
24281 * util/i386/efi/grub-mkimage.c: Likewise.
24282 * util/i386/pc/grub-mkimage.c: Likewise.
24283 * util/i386/pc/grub-setup.c: Likewise.
24284 * util/ieee1275/ofpath.c: Likewise.
24285 * util/mkisofs/eltorito.c: Likewise.
24286 * util/mkisofs/rock.c: Likewise.
24287 * util/mkisofs/write.c: Likewise.
24288 * util/raid.c: Likewise.
24289 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
24290 * util/sparc64/ieee1275/grub-setup.c: Likewise.
24292 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24294 Enable multiboot on non-pc.
24296 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
24297 multiboot.mod and multiboot2.mod to ...
24298 * conf/i386.rmk (pkglib_MODULES): ... here.
24299 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
24301 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
24302 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
24304 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
24305 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
24307 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
24308 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
24310 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
24311 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
24313 (ata_mod_SOURCES): Removed.
24314 (ata_mod_CFLAGS): Likewise.
24315 (ata_mod_LDFLAGS): Likewise.
24316 (relocator_mod_SOURCES): Removed.
24317 (relocator_mod_CFLAGS): Likewise.
24318 (relocator_mod_ASFLAGS): Likewise.
24319 (relocator_mod_LDFLAGS): Likewise.
24321 * include/grub/x86_64/multiboot.h: New file.
24322 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
24325 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24327 Video multiboot support.
24329 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
24331 * include/multiboot.h: Resynced with multiboot specification.
24332 * include/multiboot2.h: Likewise.
24333 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
24334 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
24335 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
24336 (HAS_VGA_TEXT): Likewise.
24337 (accepts_video): New variable.
24338 (grub_multiboot_set_accepts_video): New function.
24339 (grub_multiboot_get_mbi_size): Account for video structures.
24340 (set_video_mode): New function.
24341 (retrieve_video_parameters): Likewise.
24342 (grub_multiboot_make_mbi): Fill video fields.
24344 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24348 * include/grub/video.h (grub_video_driver_id): New type.
24349 (grub_video_adapter): New member 'id'. All users updated.
24350 (grub_video_get_driver_id): New proto.
24351 * video/video.c (grub_video_get_driver_id): New function.
24353 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24355 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
24358 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24360 * normal/cmdline.c (print_completion): Gettextizze.
24362 2001-01-14 Carles Pina i Estany <carles@pina.cat>
24364 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
24366 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24368 * gettext/gettext.c (grub_gettext_translate): Push and pop
24370 (grub_gettext_delete_list): Change comment style.
24371 * kern/err.c (grub_error): Gettextizze.
24372 (grub_fatal): Gettextizze.
24374 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
24376 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
24377 (grub_linux16_real_boot): ... this.
24378 * kern/i386/loader.S: Likewise.
24379 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
24380 (grub_linux16_boot): New function. Switches to text mode and calls
24381 grub_linux16_real_boot().
24383 * loader/i386/bsd.c: Include `<grub/video.h>'.
24384 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
24385 text mode before calling grub_unix_real_boot().
24387 * loader/i386/multiboot.c: Include `<grub/video.h>'.
24388 (grub_multiboot_boot): Switch to text mode before calling
24389 grub_relocator32_boot().
24391 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
24392 (grub_chainloader_boot): Switch to text mode before calling
24393 grub_chainloader_real_boot().
24395 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24396 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24398 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
24401 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24402 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24404 * util/grub.d/00_header.in: Define a "savedefault" function for use
24406 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
24408 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24409 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24411 * util/grub-mkconfig_lib.in (save_default_entry): Only set
24412 saved_entry if boot_once is unset.
24413 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
24414 previous saved entry (i.e. grub-reboot).
24416 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24418 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
24420 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24422 * util/grub.d/00_header.in: Use `set var=val' rather than plain
24424 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
24426 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24428 * util/grub-reboot.in: Fix --version output.
24429 * util/grub-set-default.in: Likewise.
24431 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24433 * util/grub.d/00_header.in: Silently ignore zero-sized environment
24436 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24438 * util/grub.d/00_header.in: Quote the value assigned to `default',
24439 in case it contains spaces.
24441 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24443 * util/grub.d/30_os-prober.in: Fix merge error that moved a
24444 `save_default_entry' call from the macosx case to the linux case.
24446 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
24447 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
24449 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
24450 in `chosen' environment variable.
24451 * normal/menu_text.c (get_entry_number): Check if the variable
24452 matches the title of a menu entry.
24453 (run_menu): Pass menu to get_entry_number.
24455 * util/grub-reboot.in: New file.
24456 * util/grub-set-default.in: New file.
24457 * conf/common.rmk (grub-reboot): New utility.
24458 (grub-set-default): New utility.
24460 * util/grub-mkconfig_lib.in (save_default_entry): New function.
24461 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
24462 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
24463 move it to `saved_entry' for the next boot. Load environment on
24465 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
24466 * util/grub.d/10_hurd.in: Likewise.
24467 * util/grub.d/10_linux.in (linux_entry): Likewise.
24468 * util/grub.d/10_windows.in: Likewise.
24469 * util/grub.d/30_os-prober.in: Likewise.
24471 * util/grub-install.in: Create environment block.
24472 * util/i386/efi/grub-install.in: Likewise.
24473 * util/ieee1275/grub-install.in: Likewise.
24474 * util/sparc64/ieee1275/grub-install.in: Likewise.
24476 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
24478 Unit testing framework for GRUB.
24480 * Makefile.in: Test framework build rules for 'make check'.
24481 * conf/tests.rmk: Build rules for individual tests and framework.
24483 * include/grub/test.h: Header file for whitebox tests.
24484 * tests/lib/functional_test.c: Framework support for whitebox
24486 * tests/lib/test.c: Common whitebox testing code for unit and
24488 * tests/lib/unit_test.c: Framework support for whitebox unit
24491 * tests/util/grub-shell-tester.in: Support utility for grub-script
24493 * tests/util/grub-shell.in: Utility to execute grub-script
24494 commands in a Qemu instance.
24496 * tests/example_functional_test.c: Example whitebox functional
24498 * tests/example_grub_script_test.in: Example grub-script test.
24499 * tests/example_scripted_test.in: Example scripted test.
24500 * tests/example_unit_test.c: Example whitebox unit test.
24502 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
24504 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
24505 Add loader/i386/multiboot_mbi.c.
24506 (multiboot2_mod_SOURCES): Likewise.
24507 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
24508 (multiboot2_mod_SOURCES): Likewise.
24509 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
24510 (grub_multiboot_make_mbi): Likewise.
24511 (grub_multiboot_free_mbi): Likewise.
24512 (grub_multiboot_init_mbi): Likewise.
24513 (grub_multiboot_add_module): Likewise.
24514 (grub_multiboot_set_bootdev): Likewise.
24515 * loader/i386/multiboot.c (mbi): Removed.
24516 (mbi_dest): Likewise.
24517 (alloc_mbi): New variable.
24518 (grub_multiboot_payload_size): Removed. All users updated.
24519 (grub_multiboot_pure_size): New variable.
24520 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
24521 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
24522 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
24523 (grub_fill_multiboot_mmap): Likewise.
24524 (grub_multiboot_get_bootdev): Likewise.
24525 (grub_multiboot): Use multiboot_mbi functions.
24526 * loader/i386/multiboot_mbi.c: New file.
24528 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
24530 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
24531 it would result in module crash.
24533 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
24535 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
24536 (grub_ofconsole_getwh): Split to ...
24537 (grub_ofconsole_getwh): ... this.
24538 (grub_ofconsole_dimensions): ...and this.
24539 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
24541 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
24543 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
24545 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
24547 * loader/i386/pc/multiboot2.c: Removed stalled file.
24549 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
24551 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
24552 Reported by: Grégoire Sutre
24554 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
24556 * util/misc.c (canonicalize_file_name): New function.
24557 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
24558 instead of realpath().
24560 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
24562 * util/grub-install.in (usage): Clarify meaning of --root-directory,
24563 and make it clearer that it's optional. Based on confusion
24566 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
24568 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
24569 in premature implicit newline.
24571 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
24573 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
24574 which resulted in garbled command line at the end of screen.
24576 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24578 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
24579 initialization with similar approach as with other Linux loaders.
24581 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24583 Fix i386-ieee1275 build.
24585 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
24586 and grub_term_height() for video_{width,height} initialization.
24588 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24590 Fix grub-emu build.
24592 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
24594 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
24595 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
24597 Support for multiple terminals.
24599 * Makefile.in (pkglib_DATA): terminal.lst.
24600 (terminal.lst): New target.
24601 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
24602 (GRUB_MOD_INIT(handler)): Likewise.
24603 (GRUB_MOD_FINI(handler)): Likewise.
24604 * commands/help.c (grub_cmd_help): Handle multiple terminals.
24605 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
24606 * commands/sleep.c (do_print): Use grub_term_restore_pos.
24607 (grub_cmd_sleep): Use grub_term_save_pos.
24608 * commands/terminal.c: New file.
24609 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
24610 commands/terminal.c and lib/charset.c.
24611 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
24612 (pkglib_MODULES): Add terminal.mod.
24613 (terminal_mod_SOURCES): New variable.
24614 (terminal_mod_CFLAGS): Likewise.
24615 (terminal_mod_LDFLAGS): Likewise.
24616 * genhandlerlist.sh: Don't handle terminals.
24617 * genmk.rb: Generate terminal-*.lst.
24618 * genterminallist.sh: New file.
24619 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
24620 (grub_is_valid_utf8): Likewise.
24621 (grub_utf8_to_ucs4_alloc): Likewise.
24622 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
24623 (grub_menu_register_viewer): Changed argument.
24624 (grub_menu_try_text): New proto.
24625 (grub_gfxmenu_try_hook): New declaration.
24626 * include/grub/normal.h (grub_normal_exit_level): New declaration.
24627 (grub_menu_init_page): Additional argument term.
24628 (grub_normal_init_page): Likewise.
24629 (grub_cmdline_get): Arguments simplified.
24630 (grub_utf8_to_ucs4_alloc): Removed.
24631 (grub_print_ucs4): Additional argument term.
24632 (grub_getstringwidth): Likewise.
24633 (grub_print_message_indented): Likewise.
24634 (grub_menu_text_register_instances): New proto.
24635 (grub_show_menu): Likewise.
24636 (read_terminal_list): Likewise.
24637 (grub_set_more): Likewise.
24638 * include/grub/parser.h: Include handler.h.
24639 * include/grub/reader.h: Rewritten.
24640 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
24641 (GRUB_TERM_WIDTH): Changed to function.
24642 (GRUB_TERM_HEIGHT): Likewise.
24643 (GRUB_TERM_BORDER_WIDTH): Likewise.
24644 (GRUB_TERM_BORDER_HEIGHT): Likewise.
24645 (GRUB_TERM_NUM_ENTRIES): Likewise.
24646 (GRUB_TERM_ENTRY_WIDTH): Likewise.
24647 (GRUB_TERM_CURSOR_X): Likewise.
24648 (grub_term_input_class): Likewise.
24649 (grub_term_output_class): Likewise.
24650 (grub_term_outputs_disabled): New declaration.
24651 (grub_term_inputs_disabled): Likewise.
24652 (grub_term_outputs): Likewise.
24653 (grub_term_inputs): Likewise.
24654 (grub_term_register_input): Rewritten.
24655 (grub_term_register_output): Likewise.
24656 (grub_term_unregister_input): Likewise.
24657 (grub_term_unregister_output): Likewise.
24658 (FOR_ACTIVE_TERM_INPUTS): New macro.
24659 (FOR_DISABLED_TERM_INPUTS): Likewise.
24660 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
24661 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
24662 * include/grub/terminfo.h: Add oterm argument to all protypes.
24663 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
24664 Use grub_rescue_run.
24665 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
24667 * kern/reader.c: Removed. All users updated.
24668 * kern/rescue_reader.c (grub_rescue_init): Removed.
24669 (grub_rescue_reader): Likewise.
24670 (grub_register_rescue_reader): Likewise.
24671 (grub_rescue_run): New function based on kern/reader.c.
24672 * kern/term.c: Adapted for multiterm.
24673 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
24674 (grub_is_valid_utf8): Likewise.
24675 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
24676 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
24678 * loader/i386/linux.c (grub_linux_boot): Likewise.
24679 * normal/auth.c (grub_username_get): New function.
24680 (grub_auth_check_authentication): Use grub_username_get.
24681 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
24682 * normal/color.c: Adapt for multiterm.
24683 * normal/main.c (read_config_file): Don't use grub_reader_loop.
24684 (grub_normal_init_page): Additional argument term.
24685 (read_lists): Call read_terminal_lists.
24686 (grub_enter_normal_mode): Call grub_cmdline_run.
24687 Handle grub_normal_exit_level.
24688 (grub_cmd_normal): Make reentrant.
24689 (grub_cmd_normal_exit): New function.
24690 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
24691 * normal/menu.c: Adapt for multiterm.
24692 * normal/menu_entry.c: Likewise.
24693 * normal/menu_text.c: Likewise.
24694 * normal/menu_viewer.c: Removed. All users updated.
24695 * normal/term.c: New file.
24696 * util/console.c: Change order of includes to workaround a bug in
24698 * term/terminfo.c: New argument oterm on all exported functions.
24700 * util/grub-editenv.c (grub_term_input_class): Removed.
24701 (grub_term_output_class): Likewise.
24703 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
24705 Make loader output a bit more user-friendly.
24707 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
24708 is being loaded. Likewise for the Hurd.
24710 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
24711 that kernel of FreeBSD ${version} is being loaded.
24713 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
24715 (grub_cmd_initrd): Likewise.
24716 * util/grub.d/10_linux.in (linux_entry): Print message indicating
24717 that Linux ${version} is being loaded. Likewise for initrd.
24719 2010-01-09 Carles Pina i Estany <carles@pina.cat>
24721 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
24723 2010-01-08 Carles Pina i Estany <carles@pina.cat>
24725 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
24726 (GRUB_MOD_INIT): Gettextizze.
24727 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
24728 (GRUB_MOD_INIT): Gettextizze.
24729 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
24730 (grub_cmd_linux): Capitalise Linux.
24731 (GRUB_MOD_INIT): Gettextizze.
24732 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
24733 (grub_cmd_linux): Capitalise Linux.
24734 (GRUB_MOD_INIT): Gettextizze.
24735 * loader/i386/linux.c: Include `<grub/i18n.h>'.
24736 (grub_cmd_linux): Capitalise Linux.
24737 (GRUB_MOD_INIT): Gettextizze.
24738 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
24739 (GRUB_MOD_INIT): Gettextizze.
24740 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
24741 (grub_cmd_linux): Capitalise Linux.
24742 (GRUB_MOD_INIT): Gettextizze.
24743 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
24744 (grub_cpu_xnu_init): Gettextizze.
24745 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
24746 (GRUB_MOD_INIT): Gettextizze.
24747 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
24748 (GRUB_MOD_INIT): Gettextizze.
24749 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
24750 (grub_linux_load64): Capitalise Linux.
24751 (GRUB_MOD_INIT): Gettextizze.
24752 * loader/xnu.c: Include `<grub/i18n.h>'.
24753 (GRUB_MOD_INIT): Gettextizze.
24754 * po/POTFILES: Add `loader/efi/appleloader.c',
24755 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
24756 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
24757 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
24758 `loader/i386/xnu.c', `loader/multiboot_loader.c',
24759 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
24760 and `loader/xnu.c'.
24762 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
24764 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
24766 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
24768 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
24769 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
24770 * util/mkisofs/mkisofs.c (main): Readjust --version output.
24772 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24774 Reset Multiboot 2 support. New loader implements the draft in
24775 /branches/multiboot2 and shares as much code as possible with the
24776 production Multiboot 1 implementation.
24778 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
24779 * loader/multiboot2.c: Likewise.
24780 * loader/i386/multiboot_helper.S: Likewise.
24781 * include/multiboot2.h: Replace with latest version from the draft
24782 in /branches/multiboot2.
24784 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
24785 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
24786 and `loader/multiboot2.c'.
24787 (pkglib_MODULES): Add `multiboot2.mod'.
24788 (multiboot2_mod_SOURCES): New variable.
24789 (multiboot2_mod_LDFLAGS): Likewise.
24790 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
24792 * conf/i386-pc.rmk: Likewise.
24794 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
24795 (multiboot_mod_SOURCES): Remove variable.
24796 (multiboot_mod_LDFLAGS): Likewise.
24797 (multiboot_mod_CFLAGS): Likewise.
24799 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
24800 `<multiboot2.h>' instead of `<multiboot.h>'.
24801 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
24802 (MULTIBOOT_HEADER_MAGIC): New macros.
24804 * loader/multiboot_loader.c (module_version_status): Remove variable.
24805 (find_multi_boot2_header): Remove function.
24806 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
24807 logic. Always check for the Multiboot version we're compiling for.
24808 (grub_cmd_module_loader): Likewise.
24809 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
24810 command instead of `multiboot'.
24812 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24814 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
24815 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
24818 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24819 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
24821 Fix breakage introduced with previous commit.
24823 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
24825 * normal/handler.c (read_handler_list): Revert part of previous commit
24826 affecting this file.
24827 * normal/main.c (read_lists): Move read_handler_list() call back to ...
24828 (grub_normal_execute): ... here.
24830 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24832 Merge prefix-redefinition-fix branch.
24834 * normal/autofs.c (read_fs_list): Make function capable of being
24835 run multiple times, gracefuly replacing the previous data
24837 * normal/dyncmd.c (read_command_list): Likewise.
24838 * normal/handler.c (read_handler_list): Likewise.
24839 * normal/main.c (read_lists): New function. Calls all the
24840 list reading functions.
24841 (grub_normal_execute): Use read_lists() instead of calling all
24842 list reading functions explicitly. Register read_lists() as a
24843 variable hook attached to ${prefix}.
24845 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
24847 Merge crypto branch.
24849 * Makefile.in (pkglib_DATA): Add crypto.lst.
24850 (crypto.lst): New target.
24851 * commands/hashsum.c: New file.
24852 * commands/password.c (check_password): Use grub_crypto_memcmp.
24853 * commands/password_pbkdf2.c: New file.
24854 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
24855 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
24856 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
24857 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
24858 -I$(srcdir)/lib/libgcrypt_wrap.
24859 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
24860 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
24861 password_pbkdf2.mod.
24862 (crypto_mod_SOURCES): New variable.
24863 (crypto_mod_CFLAGS): Likewise.
24864 (crypto_mod_LDFLAGS): Likewise.
24865 (hashsum_mod_SOURCES): New variable.
24866 (hashsum_mod_CFLAGS): Likewise.
24867 (hashsum_mod_LDFLAGS): Likewise.
24868 (pbkdf2_mod_SOURCES): New variable.
24869 (pbkdf2_mod_CFLAGS): Likewise.
24870 (pbkdf2_mod_LDFLAGS): Likewise.
24871 (password_pbkdf2_mod_SOURCES): New variable.
24872 (password_pbkdf2_mod_CFLAGS): Likewise.
24873 (password_pbkdf2_mod_LDFLAGS): Likewise.
24874 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
24875 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
24876 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
24877 Include conf/gcry.rmk.
24878 * include/grub/auth.h: Rewritten.
24879 * include/grub/crypto.h: New file.
24880 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
24881 * include/grub/normal.h (read_crypto_list): New prototype.
24882 * lib/crypto.c: New file.
24883 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
24884 * lib/pbkdf2.c: Likewise.
24885 * normal/auth.c (grub_auth_strcmp): Removed.
24886 (grub_iswordseparator): Likewise.
24887 (grub_auth_strword): Likewise.
24888 (is_authenticated): Use grub_strword.
24889 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
24890 and grub_strword. Pass entered password to authentication callback.
24891 * normal/crypto.c: New file.
24892 * normal/main.c: Call read_crypto_list.
24893 * util/grub-mkpasswd-pbkdf2.c: New file.
24894 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
24896 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
24898 Fix descent and ascent calculation.
24900 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
24901 (options): New option "asce".
24903 (add_char): Ignore invalid glyphs for descent calculation.
24904 Calculate ascent from actual content.
24905 (print_glyphs): Use 'asce'.
24906 (write_font): Likewise. Allow ascent override.
24907 (main): Handle "asce" option.
24909 2010-01-06 Carles Pina i Estany <carles@pina.cat>
24911 * kern/err.c: Include `<grub/i18n.h>'.
24912 (grub_print_error): Add full stop. Gettextizze.
24913 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
24914 (grub_bsd_load_elf): Capitalise ELF.
24915 (grub_cmd_freebsd_loadenv): Add `s' in error string.
24916 (grub_cmd_freebsd_module): Likewise.
24917 (grub_cmd_freebsd_module_elf): Likewise.
24918 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
24920 2010-01-06 Carles Pina i Estany <carles@pina.cat>
24922 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
24923 * commands/search_file.c (HELP_MESSAGE): New macro.
24924 * commands/search_label.c (HELP_MESSAGE): Likewise.
24925 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
24926 * po/POTFILES: Add `commands/search_file.c',
24927 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
24928 `commands/search.c'.
24930 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
24932 * config.rpath: Update from Gnulib.
24934 2010-01-05 Yves Blusseau <blusseau@zetam.org>
24936 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
24938 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
24940 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
24942 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24944 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
24945 arguments to fread so that we get a return value in bytes, rather
24946 than something that will normally be rounded down to 0.
24947 Adjust error handling to avoid producing garbage when size_t is not
24948 the same size as long long.
24950 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24952 * util/mkisofs/write.c (padblock_write): Check return value of
24955 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
24957 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
24960 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
24962 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
24964 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
24965 instead of manual alignment.
24966 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
24967 verbose). Avoid attempts to read past end of the device
24968 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
24969 but GRUB_DISK_CACHE_SIZE may exceed that).
24971 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
24973 * commands/crc.c (grub_cmd_crc): Abort on read errors.
24974 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
24977 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
24979 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
24981 (grub_efi_piwg_device_path): New structure
24982 (grub_efi_piwg_device_path_t): New type.
24983 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
24984 (devpath_1): Transform to a structure. All users updated.
24985 (devpath_2): Likewise.
24986 (devpath_3): Likewise.
24987 (devpath_4): Likewise.
24988 (devpath_5): Likewise.
24990 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
24992 * loader/efi/appleloader.c: Restored. Update all users.
24994 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
24996 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
24998 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
24999 (struct boot_blocklist): Move from here ...
25000 * include/grub/i386/pc/boot.h [ASM_FILE]
25001 (struct grub_boot_blocklist): ... to here. Update all users.
25002 (setup): Only initialize `start' member of `first_block'
25003 structure. Add assert() calls to verify the other members.
25005 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
25006 (generate_image): Fix broken blocklist length initialization.
25007 Add assert() call to verify blocklist `segment' field.
25009 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25011 * loader/efi/appleloader.c: Remove. Update all users.
25013 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25015 * boot/i386/pc/boot.S: Update copyright year.
25016 * boot/i386/pc/cdboot.S: Likewise.
25017 * boot/i386/pc/diskboot.S: Likewise.
25018 * boot/i386/pc/lnxboot.S: Likewise.
25019 * boot/i386/pc/pxeboot.S: Likewise.
25020 * bus/pci.c: Likewise.
25021 * commands/cmp.c: Likewise.
25022 * commands/help.c: Likewise.
25023 * commands/hexdump.c: Likewise.
25024 * commands/i386/pc/halt.c: Likewise.
25025 * commands/i386/pc/play.c: Likewise.
25026 * commands/i386/pc/vbeinfo.c: Likewise.
25027 * commands/ls.c: Likewise.
25028 * commands/test.c: Likewise.
25029 * disk/dmraid_nvidia.c: Likewise.
25030 * disk/i386/pc/biosdisk.c: Likewise.
25031 * disk/ieee1275/nand.c: Likewise.
25032 * disk/ieee1275/ofdisk.c: Likewise.
25033 * disk/lvm.c: Likewise.
25034 * disk/raid.c: Likewise.
25035 * disk/raid6_recover.c: Likewise.
25036 * disk/scsi.c: Likewise.
25037 * fs/affs.c: Likewise.
25038 * fs/cpio.c: Likewise.
25039 * fs/ext2.c: Likewise.
25040 * fs/hfs.c: Likewise.
25041 * fs/iso9660.c: Likewise.
25042 * fs/ntfs.c: Likewise.
25043 * fs/sfs.c: Likewise.
25044 * fs/udf.c: Likewise.
25045 * fs/ufs.c: Likewise.
25046 * fs/xfs.c: Likewise.
25047 * gencmdlist.sh: Likewise.
25048 * genmk.rb: Likewise.
25049 * include/grub/disk.h: Likewise.
25050 * include/grub/efi/api.h: Likewise.
25051 * include/grub/efi/efi.h: Likewise.
25052 * include/grub/efi/pe32.h: Likewise.
25053 * include/grub/elf.h: Likewise.
25054 * include/grub/fs.h: Likewise.
25055 * include/grub/i386/at_keyboard.h: Likewise.
25056 * include/grub/i386/pc/memory.h: Likewise.
25057 * include/grub/i386/pc/vbe.h: Likewise.
25058 * include/grub/i386/pci.h: Likewise.
25059 * include/grub/i386/tsc.h: Likewise.
25060 * include/grub/ieee1275/ieee1275.h: Likewise.
25061 * include/grub/ntfs.h: Likewise.
25062 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
25063 * include/grub/sparc64/libgcc.h: Likewise.
25064 * include/grub/symbol.h: Likewise.
25065 * include/grub/types.h: Likewise.
25066 * include/multiboot2.h: Likewise.
25067 * io/gzio.c: Likewise.
25068 * kern/device.c: Likewise.
25069 * kern/disk.c: Likewise.
25070 * kern/efi/efi.c: Likewise.
25071 * kern/efi/mm.c: Likewise.
25072 * kern/elf.c: Likewise.
25073 * kern/file.c: Likewise.
25074 * kern/i386/dl.c: Likewise.
25075 * kern/i386/pc/init.c: Likewise.
25076 * kern/i386/pc/startup.S: Likewise.
25077 * kern/ieee1275/ieee1275.c: Likewise.
25078 * kern/ieee1275/init.c: Likewise.
25079 * kern/main.c: Likewise.
25080 * kern/mm.c: Likewise.
25081 * kern/powerpc/dl.c: Likewise.
25082 * kern/sparc64/dl.c: Likewise.
25083 * kern/x86_64/dl.c: Likewise.
25084 * lib/hexdump.c: Likewise.
25085 * loader/efi/appleloader.c: Likewise.
25086 * loader/i386/ieee1275/linux.c: Likewise.
25087 * loader/i386/pc/chainloader.c: Likewise.
25088 * loader/i386/pc/linux.c: Likewise.
25089 * loader/i386/pc/multiboot2.c: Likewise.
25090 * loader/ieee1275/multiboot2.c: Likewise.
25091 * loader/multiboot2.c: Likewise.
25092 * loader/multiboot_loader.c: Likewise.
25093 * loader/powerpc/ieee1275/linux.c: Likewise.
25094 * normal/completion.c: Likewise.
25095 * normal/menu_entry.c: Likewise.
25096 * partmap/apple.c: Likewise.
25097 * util/grub.d/10_hurd.in: Likewise.
25098 * util/hostfs.c: Likewise.
25099 * video/readers/png.c: Likewise.
25101 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
25103 * include/grub/misc.h (GNUC_PREREQ): New macro.
25104 (ATTRIBUTE_ERROR): New macro.
25105 * include/grub/list.h (grub_bad_type_cast_real): Use
25108 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25110 * normal/menu_text.c (print_message): Change messages.
25112 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25114 * normal/menu_entry.c (store_completion): Gettextizze.
25116 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25118 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
25120 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25122 * po/POTFILES: Sort correctly.
25124 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25126 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
25127 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
25128 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
25130 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
25131 summary. Gettextizze the strings.
25132 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
25133 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
25134 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
25136 (GRUB_MOD_INIT): Remove command name from summary.
25137 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
25139 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
25140 * term/i386/pc/serial.c (options): Add full stops.
25141 (GRUB_MOD_INIT): Remove command name from the summary.
25143 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25145 * commands/acpi.c: Gettextizze help strings and/or options. Include
25146 `grub/i18n.h' if needed.
25147 * commands/blocklist.c: Likewise.
25148 * commands/boot.c: Likewise.
25149 * commands/cat.c: Likewise.
25150 * commands/cmp.c: Likewise.
25151 * commands/configfile.c: Likewise.
25152 * commands/crc.c: Likewise.
25153 * commands/date.c: Likewise.
25154 * commands/echo.c: Likewise.
25155 * commands/efi/fixvideo.c: Likewise.
25156 * commands/efi/loadbios.c: Likewise.
25157 * commands/gptsync.c: Likewise.
25158 * commands/halt.c: Likewise.
25159 * commands/handler.c: Likewise.
25160 * commands/hdparm.c: Likewise.
25161 * commands/hexdump.c: Likewise.
25162 * commands/i386/cpuid.c: Likewise.
25163 * commands/i386/pc/drivemap.c: Likewise.
25164 * commands/i386/pc/halt.c: Likewise.
25165 * commands/i386/pc/pxecmd.c: Likewise.
25166 * commands/i386/pc/vbeinfo.c: Likewise.
25167 * commands/i386/pc/vbetest.c: Likewise.
25168 * commands/ieee1275/suspend.c: Likewise.
25169 * commands/keystatus.c: Likewise.
25170 * commands/loadenv.c: Likewise.
25171 * commands/ls.c: Likewise.
25172 * commands/lsmmap.c: Likewise.
25173 * commands/lspci.c: Likewise.
25174 * commands/memrw.c: Likewise.
25175 * commands/minicmd.c: Likewise.
25176 * commands/parttool.c: Likewise.
25177 * commands/password.c: Likewise.
25178 * commands/probe.c: Likewise.
25179 * commands/read.c: Likewise.
25180 * commands/reboot.c: Likewise.
25181 * commands/search.c: Likewise.
25182 * commands/sleep.c: Likewise.
25183 * commands/test.c: Likewise.
25184 * commands/true.c: Likewise.
25185 * commands/usbtest.c: Likewise.
25186 * commands/videotest.c: Likewise.
25187 * commands/xnu_uuid.c: Likewise.
25188 * disk/loopback.c: Likewise.
25189 * hello/hello.c: Likewise.
25190 * loader/i386/bsd.c: Likewise.
25191 * term/i386/pc/serial.c: Likewise.
25192 * po/POTFILES: Add new files.
25194 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
25196 * term/i386/pc/at_keyboard.c
25197 (keyboard_controller_wait_untill_ready): Rename to ...
25198 (keyboard_controller_wait_until_ready): ... this. Update all users.
25200 2010-01-01 Carles Pina i Estany <carles@pina.cat>
25202 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
25203 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
25204 string using string width.
25205 * normal/menu_text.c (grub_print_message_indented): Use
25206 grub_print_spaces and not print_spaces.
25207 (print_timeout): Likewise.
25208 (print_spaces): Move to...
25209 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
25211 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
25213 Import from Gnulib.
25215 * gnulib/getdelim.c: New file.
25216 * gnulib/getline.c: Likewise.
25218 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
25220 * include/grub/list.h (grub_assert_fail): Removed.
25221 (grub_bad_type_cast_real): New function.
25222 (grub_bad_type_cast): New macro.
25223 (GRUB_AS_LIST): Use grub_bad_type_cast.
25224 (GRUB_AS_LIST_P): Likewise.
25225 (GRUB_AS_NAMED_LIST): Likewise.
25226 (GRUB_AS_NAMED_LIST_P): Likewise.
25227 (GRUB_AS_PRIO_LIST): Likewise.
25228 (GRUB_AS_PRIO_LIST_P): Likewise.
25229 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
25231 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
25233 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
25236 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
25238 * configure.ac: Check for TARGET_CFLAGS initialization before we
25239 initialize it ourselves (sigh).
25240 Move a few modifications to TARGET_CFLAGS to be unconditional
25241 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
25244 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
25245 * term/i386/pc/at_keyboard.c
25246 (keyboard_controller_wait_untill_ready): Likewise.
25247 (keyboard_controller_led): Rename `led_status' paramter to avoid
25250 2009-12-28 Carles Pina i Estany <carles@pina.cat>
25252 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
25255 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25257 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
25259 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25261 * normal/menu_text.c (grub_print_message_indented): Prevent
25262 past-the-end-of-array dereference.
25264 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25266 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
25267 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
25269 2009-12-27 Carles Pina i Estany <carles@pina.cat>
25271 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
25272 * normal/main.c (grub_normal_read_line): Remove a space from the
25275 2009-12-27 Carles Pina i Estany <carles@pina.cat>
25277 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
25278 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25279 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
25280 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
25281 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25282 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25283 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25285 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25287 * video/readers/jpeg.c (cmd): Declare.
25288 (grub_cmd_jpegtest): Use `grub_command_t' type.
25289 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25291 (GRUB_MOD_FINI): Use `cmd' to unregister.
25292 * video/readers/png.c (cmd): Declare.
25293 (grub_cmd_pngtest): Use `grub_command_t' type.
25294 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25296 (GRUB_MOD_FINI): Use `cmd' to unregister.
25297 * video/readers/tga.c (cmd): Declare.
25298 (grub_cmd_tgatest): Use `grub_command_t' type.
25299 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25301 (GRUB_MOD_FINI): Use `cmd' to unregister.
25303 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25305 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
25307 * kern/corecmd.c (grub_register_core_commands): Likewise.
25308 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
25309 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
25310 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
25311 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25312 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
25313 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
25314 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
25315 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
25316 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25317 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25318 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25319 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25320 * normal/handler.c (insert_handler): Likewise.
25321 * normal/main.c (GRUB_MOD_INIT): Likewise.
25322 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
25324 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25326 * commands/help.c (grub_cmd_help): Print the command name before the
25328 (GRUB_MOD_INIT): Remove command name from the summary.
25329 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
25331 * lib/arg.c (find_long): Print the command name before the summary.
25332 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
25334 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
25335 * commands/cat.c (GRUB_MOD_INIT): Likewise.
25336 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
25337 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
25338 * commands/crc.c (GRUB_MOD_INIT): Likewise.
25339 * commands/date.c (GRUB_MOD_INIT): Likewise.
25340 * commands/echo.c (GRUB_MOD_INIT): Likewise.
25341 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
25342 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
25343 * commands/handler.c (GRUB_MOD_INIT): Likewise.
25344 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
25345 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
25346 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
25347 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
25348 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
25349 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
25350 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
25351 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
25352 * commands/ls.c (GRUB_MOD_INIT): Likewise.
25353 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
25354 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
25355 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
25356 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
25357 * commands/password.c (GRUB_MOD_INIT): Likewise.
25358 * commands/probe.c (GRUB_MOD_INIT): Likewise.
25359 * commands/read.c (GRUB_MOD_INIT): Likewise.
25360 * commands/search.c (GRUB_MOD_INIT): Likewise.
25361 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
25362 * commands/test.c (GRUB_MOD_INIT): Likewise.
25363 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
25364 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
25365 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
25366 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
25367 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
25368 * lib/arg.c (GRUB_MOD_INIT): Likewise.
25369 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
25370 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
25371 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25372 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25373 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
25374 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
25375 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
25376 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
25378 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25380 Use search command for preliminar UUID search.
25382 * commands/search.c: Split into ...
25383 * commands/search_wrap.c: ...this
25384 * commands/search.c: ...and this.
25385 * commands/search_file.c: New file.
25386 * commands/search_label.c: New file.
25387 * commands/search_uuid.c: New file.
25388 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
25389 Add commands/search_wrap.c, commands/search_file.c,
25390 commands/search_label.c and commands/search_uuid.c.
25391 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
25392 (search_mod_SOURCES): Set to commands/search_wrap.c.
25393 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
25395 (search_fs_file_mod_SOURCES): New variable.
25396 (search_fs_file_mod_CFLAGS): Likewise.
25397 (search_fs_file_mod_LDFLAGS): Likewise.
25398 (search_label_mod_SOURCES): Likewise.
25399 (search_label_mod_CFLAGS): Likewise.
25400 (search_label_mod_LDFLAGS): Likewise.
25401 (search_fs_uuid_mod_SOURCES): New variable.
25402 (search_fs_uuid_mod_CFLAGS): Likewise.
25403 (search_fs_uuid_mod_LDFLAGS): Likewise.
25404 (fs_file_mod_SOURCES): Removed.
25405 (fs_file_mod_CFLAGS): Likewise.
25406 (fs_file_mod_LDFLAGS): Likewise.
25407 (fs_uuid_mod_SOURCES): Removed.
25408 (fs_uuid_mod_CFLAGS): Likewise.
25409 (fs_uuid_mod_LDFLAGS): Likewise.
25410 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
25411 Set to util/grub-install.in.
25412 * disk/fs_file.c: Removed.
25413 * disk/fs_uuid.c: Likewise.
25414 * include/grub/search.h: New file.
25415 * util/grub-install.in: Handle sparc64.
25416 Create and use load.cfg.
25417 * util/sparc64/ieee1275/grub-install.in: Removed.
25419 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25421 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
25422 Ignore return status if CF is cleared.
25423 (grub_biosdisk_get_diskinfo_standard): Likewise.
25425 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
25427 * term/i386/pc/at_keyboard.c
25428 (keyboard_controller_wait_untill_ready): New function.
25429 (grub_keyboard_controller_write, grub_keyboard_controller_read)
25430 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
25431 for keyboard polling, rather than duplicate the same loop. This
25432 saves a few bytes in code size.
25434 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25436 Support for (pxe[:server[:gateway]]) syntax and
25437 use environment variable for PXE.
25439 * commands/i386/pc/pxecmd.c (options): Removed.
25440 (print_ip): Removed.
25441 (grub_cmd_pxe): Removed
25442 (grub_cmd_pxe_unload): New function.
25443 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
25444 (grub_pxe_your_ip): Made static.
25445 (grub_pxe_default_server_ip): Likewise.
25446 (grub_pxe_default_gateway_ip): Likewise.
25447 (grub_pxe_blksize): Likewise.
25448 (parse_ip): New function.
25449 (grub_pxe_open): Support server and gateway specification.
25450 (grub_pxe_close): Free disk->data.
25451 (grub_pxefs_open): Use disk->data.
25452 (grub_pxefs_read): Likewise.
25453 (grub_env_write_readonly): New function.
25454 (set_mac_env): Likewise.
25455 (set_env_limn_ro): Likewise.
25456 (parse_dhcp_vendor): Likewise.
25457 (grub_pxe_detect): Set the environment variables.
25458 (set_ip_env): New function.
25459 (write_ip_env): Likewise.
25460 (grub_env_write_pxe_default_server): Likewise.
25461 (grub_env_write_pxe_default_gateway): Likewise.
25462 (grub_env_write_pxe_blocksize): Likewise.
25463 (GRUB_MOD_INIT(pxe)): Set environment variables.
25464 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
25465 (grub_pxe_mac_addr_t): ... this. All users updated.
25466 (grub_pxe_your_ip): Removed.
25467 (grub_pxe_server_ip): Likewise.
25468 (grub_pxe_gateway_ip): Likewise.
25469 (grub_pxe_blksize): Likewise.
25471 2009-12-25 Carles Pina i Estany <carles@pina.cat>
25473 * commands/help.c: Include `<grub/i18n.h>'.
25474 (grub_cmd_help): Gettextizze.
25475 (GRUB_MOD_INIT): Likewise.
25476 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
25477 (GRUB_MOD_INIT): Gettextizze.
25478 * commands/search.c: Include `<grub/i18n.h>'.
25479 (options): Gettextizze.
25480 (GRUB_MOD_INIT): Gettextizze.
25481 * lib/arg.c: Include `<grub/i18n.h>'.
25482 (help_options): Gettextizze.
25483 (find_long): Likewise.
25484 (grub_arg_show_help): Likewise.
25485 * normal/dyncmd.c: Include `<grub/i18n.h>'.
25486 (read_command_list): Gettextizze.
25487 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
25488 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
25490 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
25492 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
25493 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
25494 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
25495 (led_status): New variable.
25496 (keyboard_controller_led): New function.
25497 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
25498 update led status for caps lock, num lock and scroll lock.
25500 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
25502 * util/hostdisk.c (open_device): Fix a comment.
25504 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25506 * util/grub-install.in (host_os): New variable.
25507 * util/i386/efi/grub-install.in (host_os): Likewise.
25509 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25511 * util/mkisofs/write.c (padblock_write): Abort when given an
25512 excedingly large embed image, instead of silently truncating it.
25514 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25516 * include/multiboot.h: Indentation fixes.
25518 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25520 * include/multiboot.h (struct multiboot_aout_symbol_table)
25521 (struct multiboot_elf_section_header_table): New structure
25522 declarations (stolen from GRUB Legacy).
25523 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
25526 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
25527 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
25530 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25532 * include/multiboot.h: Make comments src2texi-friendly.
25534 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25536 For consistency with [multiboot]/docs/boot.S.
25538 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
25539 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
25540 (MULTIBOOT_MAGIC2): Rename from this ...
25541 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
25543 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25545 * include/multiboot.h: Remove `<grub/types.h>'.
25546 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
25547 types. Update all users.
25549 2009-12-25 Carles Pina i Estany <carles@pina.cat>
25551 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
25552 `couldn't' and `can not' by `cannot'.
25553 * commands/i386/pc/drivemap.c: Likewise.
25554 * disk/ata.c: Likewise.
25555 * disk/ieee1275/nand.c: Likewise.
25556 * fs/affs.c: Likewise.
25557 * fs/fat.c: Likewise.
25558 * fs/hfs.c: Likewise.
25559 * fs/hfsplus.c: Likewise.
25560 * fs/iso9660.c: Likewise.
25561 * fs/jfs.c: Likewise.
25562 * fs/minix.c: Likewise.
25563 * fs/reiserfs.c: Likewise.
25564 * fs/sfs.c: Likewise.
25565 * fs/udf.c: Likewise.
25566 * fs/ufs.c: Likewise.
25567 * fs/xfs.c: Likewise.
25568 * loader/powerpc/ieee1275/linux.c: Likewise.
25569 * loader/sparc64/ieee1275/linux.c: Likewise.
25570 * util/grub-probe.c: Likewise.
25571 * util/misc.c: Likewise.
25573 2009-12-24 Carles Pina i Estany <carles@pina.cat>
25575 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
25577 * commands/acpi.c: Likewise.
25578 * commands/blocklist.c: Likewise.
25579 * commands/efi/loadbios.c: Likewise.
25580 * commands/i386/pc/drivemap.c: Likewise.
25581 * commands/loadenv.c: Likewise.
25582 * commands/memrw.c: Likewise.
25583 * commands/password.c: Likewise.
25584 * commands/videotest.c: Likewise.
25585 * disk/ata.c: Likewise.
25586 * disk/ata_pthru.c: Likewise.
25587 * disk/dmraid_nvidia.c: Likewise.
25588 * disk/ieee1275/nand.c: Likewise.
25589 * disk/ieee1275/ofdisk.c: Likewise.
25590 * disk/loopback.c: Likewise.
25591 * disk/lvm.c: Likewise.
25592 * disk/mdraid_linux.c: Likewise.
25593 * disk/raid.c: Likewise.
25594 * disk/raid6_recover.c: Likewise.
25595 * disk/scsi.c: Likewise.
25596 * efiemu/main.c: Likewise.
25597 * efiemu/mm.c: Likewise.
25598 * efiemu/pnvram.c: Likewise.
25599 * efiemu/symbols.c: Likewise.
25600 * font/font.c: Likewise.
25601 * fs/cpio.c: Likewise.
25602 * fs/hfsplus.c: Likewise.
25603 * fs/iso9660.c: Likewise.
25604 * fs/jfs.c: Likewise.
25605 * fs/minix.c: Likewise.
25606 * fs/ntfs.c: Likewise.
25607 * fs/ntfscomp.c: Likewise.
25608 * fs/reiserfs.c: Likewise.
25609 * fs/ufs.c: Likewise.
25610 * fs/xfs.c: Likewise.
25611 * gettext/gettext.c: Likewise.
25612 * include/grub/auth.h: Likewise.
25613 * kern/elf.c: Likewise.
25614 * kern/file.c: Likewise.
25615 * kern/ieee1275/init.c: Likewise.
25616 * kern/ieee1275/mmap.c: Likewise.
25617 * kern/ieee1275/openfw.c: Likewise.
25618 * kern/powerpc/dl.c: Likewise.
25619 * kern/sparc64/dl.c: Likewise.
25620 * lib/arg.c: Likewise.
25621 * loader/i386/bsd.c: Likewise.
25622 * loader/i386/bsdXX.c: Likewise.
25623 * loader/i386/efi/linux.c: Likewise.
25624 * loader/i386/efi/xnu.c: Likewise.
25625 * loader/i386/ieee1275/linux.c: Likewise.
25626 * loader/i386/linux.c: Likewise.
25627 * loader/i386/multiboot.c: Likewise.
25628 * loader/i386/pc/linux.c: Likewise.
25629 * loader/i386/pc/multiboot2.c: Likewise.
25630 * loader/i386/xnu.c: Likewise.
25631 * loader/ieee1275/multiboot2.c: Likewise.
25632 * loader/macho.c: Likewise.
25633 * loader/machoXX.c: Likewise.
25634 * loader/multiboot2.c: Likewise.
25635 * loader/multiboot_loader.c: Likewise.
25636 * loader/powerpc/ieee1275/linux.c: Likewise.
25637 * loader/sparc64/ieee1275/linux.c: Likewise.
25638 * loader/xnu.c: Likewise.
25639 * loader/xnu_resume.c: Likewise.
25640 * mmap/i386/pc/mmap.c: Likewise.
25641 * normal/menu_viewer.c: Likewise.
25642 * partmap/acorn.c: Likewise.
25643 * partmap/amiga.c: Likewise.
25644 * partmap/apple.c: Likewise.
25645 * script/lexer.c: Likewise.
25646 * term/gfxterm.c: Likewise.
25647 * term/i386/pc/serial.c: Likewise.
25648 * term/i386/pc/vga.c: Likewise.
25649 * term/ieee1275/ofconsole.c: Likewise.
25650 * term/terminfo.c: Likewise.
25651 * video/bitmap.c: Likewise.
25652 * video/efi_gop.c: Likewise.
25653 * video/efi_uga.c: Likewise.
25654 * video/fb/video_fb.c: Likewise.
25655 * video/i386/pc/vbe.c: Likewise.
25656 * video/readers/tga.c: Likewise.
25657 * video/video.c: Likewise.
25659 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
25661 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
25662 * commands/lspci.c: Likewise.
25663 * commands/probe.c: Likewise.
25664 * commands/xnu_uuid.c: Likewise.
25665 * conf/i386-coreboot.rmk: Likewise.
25666 * conf/i386-efi.rmk: Likewise.
25667 * conf/i386-ieee1275.rmk: Likewise.
25668 * conf/i386-pc.rmk: Likewise.
25669 * conf/powerpc-ieee1275.rmk: Likewise.
25670 * conf/sparc64-ieee1275.rmk: Likewise.
25671 * conf/x86_64-efi.rmk: Likewise.
25672 * fs/i386/pc/pxe.c: Likewise.
25673 * gettext/gettext.c: Likewise.
25674 * include/grub/efi/graphics_output.h: Likewise.
25675 * include/grub/i386/pc/memory.h: Likewise.
25676 * kern/env.c: Likewise.
25677 * kern/i386/qemu/startup.S: Likewise.
25678 * lib/i386/pc/biosnum.c: Likewise.
25679 * lib/i386/relocator.c: Likewise.
25680 * lib/i386/relocator_asm.S: Likewise.
25681 * lib/relocator.c: Likewise.
25682 * loader/i386/bsd.c: Likewise.
25683 * loader/i386/multiboot.c: Likewise.
25684 * loader/i386/pc/chainloader.c: Likewise.
25685 * loader/i386/xnu.c: Likewise.
25686 * loader/xnu.c: Likewise.
25687 * normal/main.c: Likewise.
25688 * normal/menu_text.c: Likewise.
25689 * util/getroot.c: Likewise.
25690 * util/grub-mkconfig_lib.in: Likewise.
25691 * util/grub.d/00_header.in: Likewise.
25692 * util/i386/pc/grub-mkimage.c: Likewise.
25693 * util/mkisofs/eltorito.c: Likewise.
25694 * util/mkisofs/exclude.h: Likewise.
25695 * util/mkisofs/hash.c: Likewise.
25696 * util/mkisofs/iso9660.h: Likewise.
25697 * util/mkisofs/joliet.c: Likewise.
25698 * util/mkisofs/mkisofs.c: Likewise.
25699 * util/mkisofs/mkisofs.h: Likewise.
25700 * util/mkisofs/multi.c: Likewise.
25701 * util/mkisofs/name.c: Likewise.
25702 * util/mkisofs/rock.c: Likewise.
25703 * util/mkisofs/tree.c: Likewise.
25704 * util/mkisofs/write.c: Likewise.
25705 * video/efi_gop.c: Likewise.
25707 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
25709 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
25712 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25714 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
25715 * genmk.rb (class SCRIPT): Modify the target file instead of source.
25717 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25719 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
25720 (GRUB_MOD_INIT(memrw)): Update help line.
25722 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25724 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
25725 Use grub_extcmd_t. All users updated.
25726 (options): New variable.
25727 (grub_cmd_read): Restructure for readability. Support "-v" option.
25728 (grub_cmd_write): Restructure for readability.
25730 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25732 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
25734 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25736 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
25737 with the actual contents of the correspondending make variable.
25738 * util/grub-mkrescue.in (pkglib_DATA): New variable.
25739 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
25740 specifying `*.lst' and `efiemu??.o'
25742 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25744 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
25745 after function name.
25746 Noticed by Rene Engelhard <rene@debian.org>.
25748 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25750 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
25751 (options): New variable.
25752 (iospace): Likewise.
25753 (grub_lspci_iter): List IO spaces if "-i" was given.
25754 (grub_cmd_lspci): Parse options.
25755 (GRUB_MOD_INIT(lspci)): Use extcmd.
25756 (GRUB_MOD_FINI(lspci)): Likewise.
25758 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25760 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
25761 `function' keyword.
25762 Patch by Tony Mancill <tmancill@debian.org>.
25764 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25766 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
25767 (grub_uhci_portstatus): Likewise.
25768 (grub_uhci_portstatus): Add necessary delay.
25769 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
25771 2009-12-21 Carles Pina i Estany <carles@pina.cat>
25773 * commands/acpi.c (options): Fix capitalizations and/or full stops.
25774 (GRUB_MOD_INIT): Likewise.
25775 * commands/boot.c (GRUB_MOD_INIT): Likewise.
25776 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
25777 * commands/echo.c (options): Fix capitalizations and/or full stops.
25778 * commands/efi/loadbios.c (enable_rom_area): Likewise.
25779 (enable_rom_area): Likewise.
25780 (GRUB_MOD_INIT): Likewise.
25781 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
25782 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
25783 * commands/handler.c (GRUB_MOD_INIT): Likewise.
25784 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
25785 * commands/hexdump.c (options): Likewise.
25786 * commands/i386/cpuid.c (options): Likewise.
25787 (GRUB_MOD_INIT): Likewise.
25788 * commands/i386/pc/drivemap.c (options): Likewise.
25789 (GRUB_MOD_INIT): Likewise.
25790 * commands/i386/pc/halt (options): Likewise.
25791 (GRUB_MOD_INIT): Likewise.
25792 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
25793 * commands/i386/pc/pxecmd.c (options): Likewise.
25794 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
25795 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
25796 * commands/keystatus.c (options): Likewise.
25797 (GRUB_MOD_INIT): Likewise.
25798 * commands/loadenv.c (options): Likewise.
25799 * commands/ls.c (options): Likewise.
25800 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
25801 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
25802 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
25803 * commands/parttool.c (helpmsg): Likewise.
25804 * commands/probe.c (options): Likewise.
25805 * commands/read.c (GRUB_MOD_INIT): Likewise.
25806 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
25807 * commands/search.c (options): Likewise.
25808 * commands/sleep.c (options): Likewise.
25809 * commands/test.c (GRUB_MOD_INIT): Likewise.
25810 * commands/true.c (GRUB_MOD_INIT): Likewise.
25811 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
25812 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
25813 * lib/arg.c (help_options): Likewise.
25814 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
25816 * po/POTFILES: Add `commands/loadenv.c'.
25818 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
25820 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
25821 instead of specifying them explicit.
25823 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25825 * NEWS: Add grub-probe support for GNU/Hurd.
25827 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25829 * NEWS: gettext was added after 1.97.
25831 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25833 * util/mkisofs/msdos_partition.h: New file (based on
25834 include/grub/msdos_partition.h).
25835 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
25836 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
25837 (ld_options, main): Recognize --protective-msdos-label.
25838 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
25839 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
25840 (padblock_write): If `use_protective_msdos_label' is set, patch a
25841 protective DOS-style label in the output image.
25843 * util/grub-mkrescue.in: Use --protective-msdos-label.
25845 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25847 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
25850 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25852 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
25854 (ld_options, main): Recognize `--embedded-boot'.
25855 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
25857 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
25858 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
25859 (padblock_write): Likewise. Rewrite to support embedded boot image.
25861 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
25862 for BIOS-based disk boot instead of only ElTorito.
25864 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25866 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
25867 build (not needed for bootstrap).
25869 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25871 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
25872 from i386-pc build (not needed for bootstrap).
25873 Rewrite a pair of strings.
25875 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25877 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
25879 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
25881 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
25883 2009-12-21 Andreas Born <futur.andy@googlemail.com>
25885 * kern/env.c (grub_env_context_open): Mark exported variable for
25888 2009-12-21 Andreas Born <futur.andy@googlemail.com>
25890 * kern/env.c (grub_env_export): Create nonexistent variables before
25893 2009-12-20 Carles Pina i Estany <carles@pina.cat>
25895 * include/grub/auth.h: Include `<grub/i18n.h>'.
25896 (GRUB_GET_PASSWORD): Gettextizze string.
25897 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
25899 (grub_utf8_to_ucs4_alloc): Fix indentation.
25900 (grub_print_ucs4): Likewise.
25901 (grub_getstringwidth): Likewise.
25902 (print_message_indented): New declaration.
25903 * normal/auth.c: Include `<grub/i18n.h>'.
25904 (grub_auth_check_authentication): Gettexttize string.
25905 * normal/cmdline.c: Include `<grub/i18n.h>'.
25906 (grub_cmdline_get): Gettextizze.
25907 * normal/color.c: Include `<grub/i18n.h>'.
25908 (grub_parse_color_name_pair): Gettexttize strings.
25909 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
25910 string (use `print_message_indented').
25911 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
25912 `include/grub/normal.h'.
25913 (print_message_indented): Renamed to ...
25914 (grub_print_message_indented): ... this. Remove `static' qualifer (now
25915 used in normal/main.c).
25916 (print_message): Use `grub_print_message_indented' instead of
25917 `print_message_indented'.
25918 (print_timeout): Likewise.
25919 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
25920 (grub_normal_print_device_info): Gettexttize strings.
25921 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
25923 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
25925 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
25926 of arguments. Return number of tokens and not arguments. All users
25929 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
25931 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
25932 non-MSDOS paritions.
25934 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
25936 * include/grub/types.h (UNUSED): Removed since it conflicts with
25937 NetBSD headers. All users changed to direct __attribute__ ((unused)).
25938 Reported by Grégoire Sutre.
25940 2009-12-19 Carles Pina i Estany <carles@pina.cat>
25942 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
25943 (grub_print_ucs4_alloc): Likewise.
25944 (grub_getstringwidth): Likewise.
25945 * normal/main.c (grub_normal_init_page): Gettextize version string.
25946 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
25947 (getstringwidth): Renamed to ...
25948 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
25949 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
25950 (grub_print_ucs4): Remove `static' qualifer (now used in
25952 * po/POTFILES: Add normal/main.c.
25954 2009-12-19 Carles Pina i Estany <carles@pina.cat>
25956 * normal/menu_text.c (STANDARD_MARGIN): New macro.
25957 (print_message_indented): Add `margin_left' and `margin_right'
25959 (print_message): Update `print_message_indented' calls. Adds '\n' to the
25961 (print_timeout): Use `print_message_indented' to print the message.
25962 Deletes `second_stage' parameter.
25963 (run_menu): Update `print_timeout' calls.
25965 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
25967 Fix console palette on OpenFirmware.
25969 * term/ieee1275/ofconsole.c (MAX): Removed.
25970 (colors): Redone based on VGA palette.
25971 (grub_ofconsole_setcolor): Discard brightness bit since only 8
25972 colors are supported.
25973 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
25975 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
25977 Fix potential EfiEmu double prepare.
25979 * efiemu/main.c (prepared): New variable
25980 (grub_efiemu_unload): Set prepare to '0'.
25981 (grub_efiemu_prepare): Return if already prepared. Set prepared.
25983 set_virtual_address_map support.
25985 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
25987 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
25989 (grub_efiemu_crc32): Likewise.
25990 (grub_efiemu_crc64): Likewise.
25991 (grub_efiemu_set_virtual_address_map): Likewise.
25992 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
25994 (grub_autoefi_set_virtual_address_map): Likewise.
25995 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
25996 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
25997 Restructure flow to accomodate it.
25998 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
25999 (grub_efiemu_crc): Recompute CRC32.
26000 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
26001 (efiemu_ptv_relocated): ... this. Made global. All users updated.
26002 * efiemu/symbols.c (relocated_handle): New variable.
26003 (grub_efiemu_free_syms): Free relocated_handle.
26004 (grub_efiemu_alloc_syms): Allocate relocated_handle.
26005 (grub_efiemu_write_sym_markers): New function.
26006 (grub_efiemu_set_virtual_address_map): Likewise.
26008 Newer XNU parameters.
26010 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
26011 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
26012 (grub_xnu_fill_devicetree): New prototype.
26013 (grub_xnu_heap_real_start): New variable.
26014 * loader/xnu.c (get_name_ptr): New function.
26015 (grub_xnu_load_driver): Fill namelen and name.
26017 64-bit xnu support.
26019 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
26020 and 'loader/macho64.c'.
26021 * conf/i386-pc.rmk: Likewise.
26022 * conf/x86_64-efi.rmk: Likewise.
26023 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
26024 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
26025 * include/grub/macho.h (grub_macho_segment64): New structure.
26026 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
26027 (grub_macho_size32): ... to this.
26028 (grub_macho32_get_entry_point): Renamed from ...
26029 (grub_macho_get_entry_point32): ... to this.
26030 (grub_macho_contains_macho64): New prototype.
26031 (grub_macho_size64): Likewise.
26032 (grub_macho_get_entry_point64): Likewise.
26033 (grub_macho32_load): Renamed from ...
26034 (grub_macho_load32): ... to this.
26035 (grub_macho32_filesize): Renamed from ...
26036 (grub_macho_filesize32): ... to this.
26037 (grub_macho32_readfile): Renamed from ...
26038 (grub_macho_readfile32): ... to this.
26039 (grub_macho_filesize64): New prototype.
26040 (grub_macho_readfile64): Likewise.
26041 (grub_macho_parse32): Likewise.
26042 (grub_macho_parse64): Likewise.
26043 * loader/macho.c: Split into ...
26044 * loader/machoXX.c: ... and this. Replace 32 with XX.
26045 * loader/macho32.c: New file.
26046 * loader/macho64.c: Likewise.
26047 * loader/xnu.c (grub_xnu_is_64bit): New variable.
26048 (grub_cmd_xnu_kernel): Make 32-bit only.
26049 (grub_cmd_xnu_kernel64): New function.
26050 (grub_xnu_load_driver): Support Mach-O 64.
26051 (grub_cmd_xnu_mkext): Likewise.
26052 * util/grub.d/30_os-prober.in (osx_entry): New function.
26053 Generate entries for 64-bit boot too.
26055 Eliminate ad-hoc tree format in XNU and EfiEmu.
26057 * efiemu/main.c (grub_efiemu_prepare): Update comment.
26058 * efiemu/pnvram.c: Rewritten to use environment variables.
26061 Inline utf16_to_utf8.
26063 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
26064 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
26066 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
26068 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
26069 * commands/usbtest.c (grub_usb_get_string): ... move here.
26070 (usb_print_str): Fix error handling.
26071 * include/grub/usb.h (grub_usb_get_string): Remove.
26073 UTF-8 to UTF-16 transformation.
26075 * conf/common.rmk (pkglib_MODULES): Add charset.mod
26076 (charset_mod_SOURCES): New variable.
26077 (charset_mod_CFLAGS): Likewise.
26078 (charset_mod_LDFLAGS): Likewise.
26079 * include/grub/utf.h: New file.
26080 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
26082 Support for device properties.
26084 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
26085 (grub_xnu_devprop_device_header): Likewise.
26086 (grub_xnu_devprop_device_descriptor): Likewise.
26087 (grub_xnu_devprop_add_device): New prototype.
26088 (grub_xnu_devprop_remove_device): Likewise.
26089 (grub_xnu_devprop_remove_property): Likewise.
26090 (grub_xnu_devprop_add_property_utf8): Likewise.
26091 (grub_xnu_devprop_add_property_utf16): Likewise.
26092 (grub_cpu_xnu_init): Likewise.
26093 (grub_cpu_xnu_fini): Likewise.
26094 (grub_cpu_xnu_unload): Likewise.
26095 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
26096 (property_descriptor): Likewise.
26097 (devices): New variable.
26098 (grub_xnu_devprop_remove_property): New function.
26099 (grub_xnu_devprop_add_device): Likewise.
26100 (grub_xnu_devprop_remove_device): Likewise.
26101 (grub_xnu_devprop_add_property): Likewise.
26102 (grub_xnu_devprop_add_property_utf8): Likewise.
26103 (grub_xnu_devprop_add_property_utf16): Likewise.
26104 (hextoval): Likewise.
26105 (grub_cpu_xnu_fill_devprop): Likewise.
26106 (grub_cmd_devprop_load): Likewise.
26107 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
26108 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
26109 (cmd_devprop_load): New variable.
26110 (grub_cpu_xnu_init): New function.
26111 (grub_cpu_xnu_fini): Likewise.
26112 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
26113 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
26114 (grub_cmd_xnu_devtree): Likewise.
26115 (hextoval): New function.
26116 (unescape): Likewise.
26117 (grub_xnu_fill_devicetree): Likewise.
26119 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
26120 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
26122 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26124 Workaround for broken ATI VBE.
26126 * video/i386/pc/vbe.c (last_set_mode): New variable.
26127 (grub_vbe_set_video_mode): Set 'last_set_mode'.
26128 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
26129 (grub_video_vbe_setup): Don't check for reserved flag.
26131 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
26133 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
26134 the `find' command.
26136 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
26138 UUID support for HFS.
26140 * fs/hfs.c (grub_hfs_uuid): New function.
26141 (grub_hfs_fs): New value .uuid.
26142 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
26144 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
26146 Fix a segfault with parsing unknown long options.
26148 * util/grub-mkrelpath.c (options): Zero terminate it.
26150 2009-12-13 Carles Pina i Estany <carles@pina.cat>
26152 * include/grub/misc.h (grub_puts): New declaration.
26153 (grub_puts_): Likewise.
26154 * kern/misc.c (grub_puts): New definition.
26155 (grub_puts_): Likewise.
26157 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
26159 * util/grub-probe.c (probe): Improve error message.
26161 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
26163 * loader/i386/multiboot_elfxx.c
26164 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
26167 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
26169 Relocator framework
26171 * loader/i386/xnu_helper.S: Removed. All users updated.
26172 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
26173 (relocator_mod_SOURCES): New variable.
26174 (relocator_mod_CFLAGS): Likewise.
26175 (relocator_mod_LDFLAGS): Likewise.
26176 (relocator_mod_ASFLAGS): Likewise.
26177 * conf/x86_64.rmk: Likewise.
26178 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
26179 (grub_multiboot_payload_entry_offset): Likewise.
26180 (grub_multiboot_forward_relocator): Likewise.
26181 (grub_multiboot_forward_relocator_end): Likewise.
26182 (grub_multiboot_backward_relocator): Likewise.
26183 (grub_multiboot_backward_relocator_end): Likewise.
26184 (grub_multiboot_payload_eip): New variable.
26185 (grub_multiboot_payload_orig): Likewise.
26186 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
26187 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
26188 * include/grub/i386/memory.h
26189 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
26190 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
26191 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
26192 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
26193 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
26194 * include/grub/i386/relocator.h: New file.
26195 * include/grub/x86_64/relocator.h: Likewise.
26196 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
26197 (XNU_RELOCATOR): New macro.
26198 (grub_xnu_launcher_start): Remove.
26199 (grub_xnu_launcher_end): Likewise.
26200 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
26201 (grub_xnu_heap_real_start): Remove.
26202 (grub_xnu_heap_start): Change to void *. All users updated.
26203 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
26204 * lib/i386/relocator.c: New file.
26205 * lib/i386/relocator_asm.S: Likewise.
26206 * lib/i386/relocator_backward.S: Likewise.
26207 * lib/mips/relocator.c: Likewise.
26208 * lib/mips/relocator_asm.S: Likewise.
26209 * lib/relocator.c: Likewise.
26210 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
26212 (playground): Likewise.
26213 (grub_multiboot_payload_orig): New variable.
26214 (grub_multiboot_payload_dest): Likewise.
26215 (grub_multiboot_payload_size): Likewise.
26216 (grub_multiboot_payload_eip): Likewise.
26217 (grub_multiboot_payload_esp): Likewise.
26218 (grub_multiboot_boot): Use grub_relocator32_boot.
26219 (grub_multiboot_unload): Free relocators.
26220 (grub_multiboot): Setup stack. Use relocators.
26221 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
26222 (grub_multiboot_load_elfXX): Use relocators.
26223 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
26224 (grub_multiboot_payload_size): Likewise.
26225 (grub_multiboot_payload_dest): Likewise.
26226 (grub_multiboot_payload_entry_offset): Likewise.
26227 (grub_multiboot_forward_relocator): Likewise.
26228 (grub_multiboot_backward_relocator): Likewise.
26229 (grub_multiboot_real_boot): Likewise.
26230 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
26231 (grub_xnu_entry_point): Likewise.
26232 (grub_xnu_arg1): Likewise.
26233 (grub_xnu_stack): Likewise.
26234 (grub_xnu_launch): Removed.
26235 (grub_xnu_boot_resume): New function.
26236 (grub_xnu_boot): Use relocators.
26237 * loader/i386/xnu_helper.S: Removed.
26238 * loader/xnu.c (grub_xnu_heap_start): New variable.
26239 (grub_xnu_heap_size): Likewise.
26240 (grub_xnu_heap_malloc): Use relocators.
26241 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
26243 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
26245 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
26248 2009-12-13 Carles Pina i Estany <carles@pina.cat>
26250 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
26251 GRUB_ERR_NONE before calling grub_env_set.
26253 2009-12-12 Robert Millan <rmh@aybabtu.com>
26255 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
26256 * genmk.rb (video): New variable.
26257 (CLEANFILES, VIDEOFILES): Add #{video}.
26258 (#{video}): New target rule.
26259 * genvideolist.sh: New file.
26260 * Makefile.in (pkglib_DATA): Add video.lst.
26261 (video.lst): New target rule.
26262 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
26264 * util/grub.d/30_os-prober.in: Replace `vbe' with
26265 ${GRUB_VIDEO_BACKEND}.
26267 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
26269 * THANKS: Add David Miller.
26271 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
26273 libpciaccess support.
26275 * Makefile.in (LIBPCIACCESS): New variable.
26276 (enable_grub_emu_pci): Likewise.
26277 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
26278 util/pci.c and commands/lspci.c.
26279 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
26280 * configure.ac (grub-emu-pci): New option.
26281 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
26282 (grub_pci_device_unmap_range): Likewise.
26283 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
26284 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
26285 (grub_pci_address_t) [!GRUB_UTIL]: New type.
26286 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
26287 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
26288 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
26289 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
26290 * include/grub/pciutils.h: New file.
26291 * util/pci.c: Likewise.
26293 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
26295 * util/misc.c: Don't include <errno.h> twice.
26297 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
26299 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
26300 name in an error message.
26301 (grub_biosdisk_rw): Likewise.
26303 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26305 Eliminate NTFS 4Gib barrier.
26307 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
26308 (read_run_data): Likewise.
26309 (grub_ntfs_read_run_list): Likewise.
26310 (grub_ntfs_read_block): Likewise.
26311 (grub_ntfs_iterate_dir): Likewise.
26312 (read_mft): Likewise.
26313 (read_data): Likewise.
26315 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
26316 to avoid 64-bit division
26317 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
26318 (grub_ntfs_rlst): Use grub_disk_addr_t.
26320 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26322 Eliminate grub-fstest 4Gib barrier.
26324 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
26325 (read_file): Fix error reporting.
26327 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26329 Eliminate hexdump 4Gib barrier.
26331 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
26332 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
26334 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26336 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
26339 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
26341 Remove miscellaneous files in distclean target.
26343 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
26345 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
26347 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
26348 if they're already set. This resolves the conflict between my
26349 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
26350 fixing the --grub-probe option again.
26351 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
26352 change on 2009-10-06, so that we now once again source
26353 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
26355 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
26357 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
26358 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
26359 `util/devicemap.c'.
26361 2009-12-08 Carles Pina i Estany <carles@pina.cat>
26363 * include/grub/misc.h (grub_printf_): New declaration.
26364 * kern/misc.c (grub_printf_): New definition.
26365 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
26366 instead of `grub_printf' and `_'.
26367 * normal/menu_entry.c (store_completion): Likewise.
26369 (grub_menu_entry_run): Likewise.
26370 * normal/menu_text.c (grub_wait_after_message): Likewise.
26371 (notify_booting): Likewise.
26372 (notify_fallback): Likewise.
26373 (notify_execution_failure): Likewise.
26375 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
26377 * configure.ac: Check for vasprintf.
26378 * util/misc.c (asprintf): Move allocation from here ...
26379 (vasprintf): ... to here. New function.
26380 (xasprintf): New function.
26381 * include/grub/util/misc.h (vasprintf, xasprintf): Add
26383 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26384 * util/grub-mkfont.c (write_font): Likewise.
26385 * util/grub-probe.c (probe): Likewise.
26386 * util/hostdisk.c (make_device_name): Likewise.
26388 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
26390 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
26391 anything even prefixed with 'cdrom' as a cdrom.
26393 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
26395 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
26398 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26400 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
26401 grub_gettext_msg_list.
26402 (grub_gettext_gettranslation_from_position): Return const char *
26404 (grub_gettext_translate): Add the translated strings into a list,
26405 returns from the list if existing there.
26406 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
26407 (grub_gettext_delete_list): Delete the list.
26408 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
26409 lang environment variable is changed.
26410 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
26412 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
26414 Rename kernel.mod to kernel.img.
26416 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
26417 (kernel_mod_EXPORTS): Rename to ...
26418 (kernel_img_EXPORTS): ... this.
26419 (kernel_mod_SOURCES): Rename to ...
26420 (kernel_img_SOURCES): ... this.
26421 (kernel_mod_HEADERS): Rename to ...
26422 (kernel_img_HEADERS): ... this. All users updated.
26423 (kernel_mod_CFLAGS): Rename to ...
26424 (kernel_img_CFLAGS): ... this.
26425 (kernel_mod_ASFLAGS): Rename to ...
26426 (kernel_img_ASFLAGS): ... this.
26427 (kernel_mod_LDFLAGS): Rename to ...
26428 (kernel_img_LDFLAGS): ... this.
26429 * conf/x86_64-efi.rmk: Likewise.
26430 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
26431 (read_kernel_image): ... this. All users updated.
26432 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
26434 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26436 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
26437 (print_spaces): New function.
26438 (grub_print_ucs4): New function.
26439 (getstringwidth): New function.
26440 (print_message_indented): New function.
26441 (print_message): Gettexttize strings using print_message_indented.
26442 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
26444 (get_entry_number): Gettextize and uses dynamic terminal width.
26445 (notify_booting, notify_fallback, notify_execution_failure):
26447 * normal/menu_entry.c (store_completion): Cleanup the gettextized
26450 (grub_menu_entry_run): Likewise.
26451 * PO/POTFILES: Add normal/menu_entry.c.
26453 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
26455 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
26457 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26459 * util/grub-install.in: Install gettext .mo files.
26460 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
26462 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26464 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
26467 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
26469 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
26470 non-firmware-dependant one in realmode.S takes precedence.
26472 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
26474 * commands/halt.c: Replace misc arch-specific headers with
26476 * commands/reboot.c: Likewise.
26477 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
26479 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
26480 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
26481 (kernel_img_SOURCES): ... to here.
26483 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
26484 * include/grub/i386/pc/init.h: Likewise.
26485 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
26486 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
26488 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
26490 * include/grub/i386/halt.h: Remove.
26491 * include/grub/i386/reboot.h: Likewise.
26493 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
26495 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
26497 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
26498 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
26499 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
26501 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
26502 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26503 (usage): Add missing comma in printf.
26505 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
26507 Use the same reboot approach on i386 coreboot and qemu as we do on
26510 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
26511 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
26512 * kern/i386/reboot.c: Remove.
26513 * include/grub/i386/reboot.h (grub_reboot): Export function.
26514 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
26515 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
26516 0xf000:0xfff0 instead of 0xffff:0x0000.
26517 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
26518 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
26520 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
26522 Fix $srcdir != $objdir build.
26524 * Makefile.in (po/%.po): Rewrite as ...
26525 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
26527 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
26529 Fix GNU/Hurd grub-install crash.
26530 * util/grub-probe.c (probe): Try to access `path' only when it is not
26533 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26535 Correct module naming.
26537 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
26538 (GRUB_MOD_INIT(efi_uga)): ... to this
26539 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
26540 (GRUB_MOD_FINI(efi_uga)): ... to this
26541 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
26542 (GRUB_MOD_INIT(efi_gop)): ... to this
26543 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
26544 (GRUB_MOD_FINI(efi_gop)): ... to this
26546 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
26548 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
26550 (usage): Translate `arg' strings using gettext().
26551 Thanks to Jordi Mallach for the suggestion.
26553 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26555 GOP support. Based on patch from Bean
26556 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
26558 * video/efi_gop.c: New file.
26559 * include/grub/efi/graphics_output.h: Likewise.
26560 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
26561 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
26563 * conf/x86_64-efi.rmk: Likewise.
26565 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26567 Rename efi_fb to efi_uga.
26569 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
26571 (efi_fb_mod_SOURCES): Rename this ...
26572 (efi_uga_mod_SOURCES): ... to this.
26573 (efi_fb_mod_CFLAGS): Rename this ...
26574 (efi_uga_mod_CFLAGS): ... to this.
26575 (efi_fb_mod_LDFLAGS): Rename this ...
26576 (efi_uga_mod_LDFLAGS): ... to this.
26577 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
26579 (efi_fb_mod_SOURCES): Rename this ...
26580 (efi_uga_mod_SOURCES): ... to this.
26581 (efi_fb_mod_CFLAGS): Rename this ...
26582 (efi_uga_mod_CFLAGS): ... to this.
26583 (efi_fb_mod_LDFLAGS): Rename this ...
26584 (efi_uga_mod_LDFLAGS): ... to this.
26585 * video/efi_fb.c: Move this ...
26586 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
26588 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26590 * po/README: New file. Explain our PO file workflow.
26592 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26594 * po/ChangeLog: Remove. Move relevant entries back to ...
26595 * ChangeLog: ... here.
26596 * po/ca.po: Remove (now handled by TLP).
26597 * po/id.po: Likewise.
26598 * po/zh_CN.po: Likewise.
26599 * Makefile.in (LINGUAS): Initialize in a way that supports
26602 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26604 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
26605 reliing on po/LINGUAS.
26606 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
26607 (po/%.po): ... this.
26609 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26611 * util/i386/efi/grub-mkimage.c: Include "progname.h".
26612 (main): Use `program_name' instead of nonexistent `progname'.
26614 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26616 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26617 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
26619 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
26621 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
26623 * conf/i386-efi.rmk: Likewise.
26624 * conf/i386-ieee1275.rmk: Likewise.
26625 * conf/powerpc-ieee1275.rmk: Likewise.
26626 * conf/sparc64-ieee1275.rmk: Likewise.
26627 * conf/x86_64-efi.rmk: Likewise.
26629 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26631 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
26633 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26635 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
26637 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
26639 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
26640 (grub_mkdevicemap_SOURCES): New variable.
26641 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
26642 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
26643 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
26644 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
26645 (grub_mkdevicemap_SOURCES): Remove.
26646 * conf/i386-efi.rmk: Likewise.
26647 * conf/i386-ieee1275.rmk: Likewise.
26648 * conf/i386-pc.rmk: Likewise.
26649 * conf/powerpc-ieee1275.rmk: Likewise.
26650 * conf/sparc64-ieee1275.rmk: Likewise.
26651 * conf/x86_64-efi.rmk: Likewise.
26652 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
26653 (usage): Fix strings to use `program_name'.
26654 (main): Initialize gettext.
26655 * util/grub-editenv.c: Likewise.
26656 * util/grub-emu.c: Likewise.
26657 * util/grub-fstest.c: Likewise.
26658 * util/grub-mkdevicemap.c: Likewise.
26659 * util/grub-mkfont.c: Likewise.
26660 * util/grub-mkrelpath.c: Likewise.
26661 * util/grub-pe2elf.c: Likewise.
26662 * util/grub-probe.c: Likewise.
26663 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
26664 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
26665 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26667 * util/misc.c: Include `"progname.h"'.
26668 (progname): Remove variable.
26669 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
26671 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
26673 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
26674 printf and print a newline after the menuentry header line.
26675 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
26677 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
26679 autoconf >= 2.60 support $(localedir).
26681 * INSTALL: Note that autoconf 2.60 is required.
26682 * configure.ac (AC_PREREQ): Bump to 2.60.
26683 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
26684 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
26686 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
26688 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
26691 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
26693 * normal/main.c (grub_normal_read_line): Fix off-by-one
26696 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
26698 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
26699 "parser.grub" in grub_command_execute() call.
26701 2009-11-24 Carles Pina i Estany <carles@pina.cat>
26703 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
26704 * conf/i386-efi.rmk: Likewise.
26705 * conf/i386-ieee1275.rmk: Likewise.
26706 * conf/i386-pc.rmk: Likewise.
26707 * conf/powerpc-ieee1275.rmk: Likewise.
26708 * conf/sparc64-ieee1275.rmk: Likewise.
26709 * conf/x86_64-efi.rmk: Likewise.
26710 * gettext/gettex.c: Include <grub/i18n.h>.
26711 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
26713 * include/grub/i18n.h: ... to here
26714 * include/grub/i18n.h: ... to here.
26715 * kern/misc.c: Include <grub/i18n.h>
26716 (grub_gettext_dummy): Move above user.
26718 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26720 * util/Makefile.in (install-local): Convert a `for' into a normal
26723 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
26725 * autogen.sh: Add automake call.
26726 * config.guess: Remove.
26727 * config.sub: Likewise.
26728 * install-sh: Likewise.
26730 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26732 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
26734 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26736 * util/Makefile.in (install-local): Convert a make `$(foreach)'
26737 function to a normal shell `for'.
26739 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26741 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26743 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26745 * util/grub-mkrelpath.c: New file.
26746 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
26747 (grub_mkrelpath_SOURCES): New variable.
26748 * include/grub/util/misc.h: New function prototype.
26749 * util/misc.c (make_system_path_relative_to_its_root): New function.
26751 * util/grub-mkconfig_lib.in (bindir): New variable.
26752 (grub_mkrelpath): Likewise.
26753 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
26755 * util/probe.c (probe): Make the file path relative to its root.
26756 Change a info message to use the GRUB path. Enable again the
26757 check if we can read the file with GRUB facilities.
26759 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
26762 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26764 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
26767 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26769 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
26772 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26774 * util/getroot.c (grub_util_is_dmraid): New function.
26775 (grub_util_get_dev_abstraction): Treat dmraid and multipath
26776 devices as normal ones, not as LVM.
26778 2009-11-23 Carles Pina i Estany <carles@pina.cat>
26780 * conf/common.rmk: Add grub-gettext_lib target and updates
26781 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
26783 * gettext/gettext.c: New file. (Reads mo files).
26784 * include/grub/file.h (grub_file_pread): New prototype.
26785 * include/grub/i18n.h (_): New prototype.
26786 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
26788 * kern/misc.c (grub_gettext_dummy): New function.
26789 * normal/menu_text.c: Include <grub/i18n.h>.
26790 * normal/menu_text.c (print_timeout): Gettexttize string.
26791 * normal/menu_text.c (print_message): Gettexttize string.
26792 * po/POTFILES: Add `normal/menu_text.c'.
26793 * po/ca.po: Add new translations.
26794 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
26795 gettext module and defines locale_dir and lang in grub.cfg.
26796 * NEWS: Add gettext support.
26798 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26800 * util/hostdisk.c: Include `<grub/i18n.h>'.
26801 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
26802 (make_device_name): Rewrite using asprintf.
26803 (convert_system_partition_to_system_disk): Replace 0 with NULL.
26804 (find_system_device): If a device is not found, generate one just
26805 by reusing the OS path name.
26806 (read_device_map): Make it permissible for device.map not to exist.
26808 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26810 * script/sh/execute.c: Move from here ...
26811 * script/execute.c: ... to here. Update all users.
26812 * script/sh/function.c: Move from here ...
26813 * script/function.c: ... to here. Update all users.
26814 * script/sh/lexer.c: Move from here ...
26815 * script/lexer.c: ... to here. Update all users.
26816 * script/sh/main.c: Move from here ...
26817 * script/main.c: ... to here. Update all users.
26818 * script/sh/parser.y: Move from here ...
26819 * script/parser.y: ... to here. Update all users.
26820 * script/sh/script.c: Move from here ...
26821 * script/script.c: ... to here. Update all users.
26823 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26825 * configure.ac: Detect all `emu' platforms. Define
26826 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
26827 --enable-grub-emu logic. Disable include/grub/machine
26828 symlink on `emu' platforms.
26830 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
26831 * gensymlist.sh.in: Likewise.
26833 * include/grub/i386/coreboot/machine.h: Remove file.
26834 * include/grub/i386/efi/machine.h: Likewise.
26835 * include/grub/i386/ieee1275/machine.h: Likewise.
26836 * include/grub/i386/pc/machine.h: Likewise.
26837 * include/grub/i386/qemu/machine.h: Likewise.
26838 * include/grub/powerpc/ieee1275/machine.h: Likewise.
26839 * include/grub/sparc64/ieee1275/machine.h: Likewise.
26840 * include/grub/x86_64/efi/machine.h: Likewise.
26842 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
26843 * commands/halt.c: Likewise.
26844 * commands/reboot.c: Likewise.
26845 * include/grub/autoefi.h: Likewise.
26846 * include/grub/i386/at_keyboard.h: Likewise.
26847 * include/grub/i386/kernel.h: Likewise.
26848 * include/grub/i386/loader.h: Likewise.
26849 * include/grub/i386/pc/memory.h: Likewise.
26850 * kern/dl.c: Likewise.
26851 * kern/i386/coreboot/init.c: Likewise.
26852 * loader/i386/bsd.c: Likewise.
26853 * loader/i386/linux.c: Likewise.
26854 * loader/multiboot_loader.c: Likewise.
26855 * term/i386/pc/serial.c: Likewise.
26856 * term/usb_keyboard.c: Likewise.
26858 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
26859 `<grub/machine/machine.h>'
26860 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
26861 * util/misc.c: Remove `<grub/machine/machine.h>' and
26862 `<grub/machine/time.h>'.
26864 * Makefile.in (enable_grub_emu): Remove variable.
26865 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
26867 * conf/any-emu.rmk: New file.
26868 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
26869 (grub_emu_init.c): Move from here ...
26870 * conf/any-emu.rmk: ... to here.
26872 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
26873 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
26874 * conf/any-emu.rmk: ... to here.
26876 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26878 * include/grub/parser.h (grub_parser_register): Document need
26879 of `name' parameter.
26880 * normal/main.c (grub_normal_read_line): Simplify prompt string.
26881 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
26884 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26886 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
26888 * include/grub/i18n.h (N_): New macro.
26889 * util/mkisofs/mkisofs.h: Likewise.
26890 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
26892 (usage): Use gettext() to translate help strings when printing them.
26894 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26896 Based on patch from Bean
26897 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
26899 * video/efi_fb.c: New file.
26900 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
26901 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
26903 * conf/x86_64-efi.rmk: Likewise.
26905 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
26907 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
26908 * util/i386/pc/grub-setup.c: Likewise.
26910 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
26912 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
26914 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
26915 file_get_storage_info to implement grub_guess_root_device.
26917 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
26919 * Makefile.in (target): Use make's builtin $(shell) function
26920 instead of calling directly $(SHELL) to create the locale directories,
26921 inside the $(foreach) function.
26923 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
26925 * util/grub-mkrescue.in: Print an error and usage if output option
26926 has not been given.
26928 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
26930 Patch from Loïc Minier <loic.minier@ubuntu.com>.
26931 * util/grub.d/30_os-prober.in: Cope with Linux entries where
26932 root and /boot are on different devices.
26934 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
26936 Fix build for srcdir != objdir.
26938 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
26939 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
26941 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
26942 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
26943 reference for input.
26945 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
26947 * util/grub-mkrescue.in: Use source directory direcly (without copiing
26948 or hardlinking it). Remove -J option, Joliet is not compatible with
26949 multiple source directories.
26951 2009-11-21 Carles Pina i Estany <carles@pina.cat>
26952 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
26954 * util/grub-mkrescue.in: Recognize `--override-directory' option.
26955 (process_input_dir): New function. Process an arbitrary input
26957 Misc adjustments to support both "override mode" and system-wide mode.
26959 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
26961 * configure.ac (UNIFONT_BDF): Rename to ...
26962 (FONT_SOURCE): ... this. Update all users.
26964 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
26966 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
26967 to the list of unifont files to look for.
26969 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
26971 Patch from Joe Auricchio <jauricchio@gmail.com>
26972 * commands/minicmd.c (grub_mini_cmd_clear): New function.
26973 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
26974 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
26976 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
26978 * Makefile.in (install-local): Add a missing backslash.
26980 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
26982 * include/grub/x86_64/io.h: New file.
26984 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
26986 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
26987 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
26988 Include `"progname.h"'.
26989 (main): Initialize gettext.
26990 * util/i386/pc/grub-setup.c: Gettexttize.
26991 * util/i386/pc/grub-mkimage.c: Likewise.
26993 * Makefile.in (po/*.po): Redefine as ...
26994 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
26996 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
26998 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27000 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
27001 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
27002 (program_name): Remove.
27003 (main): Initialize gettext support.
27004 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
27005 Include `<libintl.h>'.
27008 * util/mkisofs/eltorito.c: Gettexttize.
27009 * util/mkisofs/joliet.c: Likewise.
27010 * util/mkisofs/mkisofs.c: Likewise.
27011 * util/mkisofs/multi.c: Likewise.
27012 * util/mkisofs/rock.c: Likewise.
27013 * util/mkisofs/tree.c: Likewise.
27014 * util/mkisofs/write.c: Likewise.
27016 * po/POTFILES: Update with new files.
27018 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27020 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
27021 * util/mkisofs/iso9660.h: Likewise.
27022 * util/mkisofs/joliet.c: Likewise.
27023 * util/mkisofs/mkisofs.c: Likewise.
27024 * util/mkisofs/mkisofs.h: Likewise.
27025 * util/mkisofs/rock.c: Likewise.
27026 * util/mkisofs/tree.c: Likewise.
27027 * util/mkisofs/write.c: Likewise.
27029 * util/mkisofs/eltorito.c (rcsid): Remove.
27030 * util/mkisofs/hash.c: Likewise.
27031 * util/mkisofs/joliet.c: Likewise.
27032 * util/mkisofs/name.c: Likewise.
27033 * util/mkisofs/rock.c: Likewise.
27034 * util/mkisofs/tree.c: Likewise.
27035 * util/mkisofs/write.c: Likewise.
27037 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27039 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
27040 instead of static allocation.
27041 * util/mkisofs/match.h: Likewise.
27043 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27045 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
27046 and `util/grub.d/10_linux.in'.
27047 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
27048 translatable Shell files.
27050 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27052 * Makefile.in ($(srcdir)/aclocal.m4): New target.
27054 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27056 * INSTALL: Document Automake is needed for bootstrap.
27057 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
27058 * util/grub.d/10_kfreebsd.in (bindir): New variable.
27059 Add gettext initialization.
27060 (kfreebsd_entry): Make menuentry output translatable.
27062 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27064 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
27065 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
27066 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
27067 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
27068 (LINGUAS): Auto-generate using `po/LINGUAS'.
27069 * po/LINGUAS: New file.
27071 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27073 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
27075 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
27076 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
27077 bindtextdomain() calls for gettext initialization.
27079 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27081 * gnulib/progname.c: New file (imported from Gnulib).
27082 * gnulib/progname.h: Likewise.
27083 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
27084 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
27085 (usage): Replace `progname' with `program_name'.
27086 (main): Use set_program_name() for program name initialization.
27088 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27090 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
27092 * Makefile.in (CPPFLAGS): ... to here.
27094 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27096 * aclocal.m4: Move from here ...
27097 * acinclude.m4: ... to here.
27098 * autogen.sh: Add call to `aclocal'.
27099 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
27101 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27103 * Makefile.in (CLEANFILES): Add `po/*.mo'.
27104 (LINGUAS): New variable.
27105 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
27106 (install-local): Install MO files.
27107 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
27108 * include/grub/i18n.h: New file.
27109 * po/POTFILES: New file.
27110 * po/ca.po: New file.
27111 * util/grub.d/10_linux.in (bindir): New variable.
27112 Add gettext initialization.
27113 (linux_entry): Make menuentry output translatable.
27114 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
27115 (usage): Make --help output translatable.
27116 (main): Initialize gettext.
27118 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27120 * import_gcry.py: New file (written by Vladimir with minor
27122 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
27124 * INSTALL: Document that Python is required for bootstrap.
27126 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27128 Import ciphers from libgcrypt 1.4.4.
27130 * lib/libgcrypt/cipher/ChangeLog
27131 * lib/libgcrypt/cipher/ac.c
27132 * lib/libgcrypt/cipher/arcfour.c
27133 * lib/libgcrypt/cipher/bithelp.h
27134 * lib/libgcrypt/cipher/blowfish.c
27135 * lib/libgcrypt/cipher/camellia-glue.c
27136 * lib/libgcrypt/cipher/camellia.c
27137 * lib/libgcrypt/cipher/camellia.h
27138 * lib/libgcrypt/cipher/cast5.c
27139 * lib/libgcrypt/cipher/cipher.c
27140 * lib/libgcrypt/cipher/crc.c
27141 * lib/libgcrypt/cipher/des.c
27142 * lib/libgcrypt/cipher/dsa.c
27143 * lib/libgcrypt/cipher/ecc.c
27144 * lib/libgcrypt/cipher/elgamal.c
27145 * lib/libgcrypt/cipher/hash-common.c
27146 * lib/libgcrypt/cipher/hash-common.h
27147 * lib/libgcrypt/cipher/hmac-tests.c
27148 * lib/libgcrypt/cipher/md.c
27149 * lib/libgcrypt/cipher/md4.c
27150 * lib/libgcrypt/cipher/md5.c
27151 * lib/libgcrypt/cipher/primegen.c
27152 * lib/libgcrypt/cipher/pubkey.c
27153 * lib/libgcrypt/cipher/rfc2268.c
27154 * lib/libgcrypt/cipher/rijndael-tables.h
27155 * lib/libgcrypt/cipher/rijndael.c
27156 * lib/libgcrypt/cipher/rmd.h
27157 * lib/libgcrypt/cipher/rmd160.c
27158 * lib/libgcrypt/cipher/rsa.c
27159 * lib/libgcrypt/cipher/seed.c
27160 * lib/libgcrypt/cipher/serpent.c
27161 * lib/libgcrypt/cipher/sha1.c
27162 * lib/libgcrypt/cipher/sha256.c
27163 * lib/libgcrypt/cipher/sha512.c
27164 * lib/libgcrypt/cipher/tiger.c
27165 * lib/libgcrypt/cipher/twofish.c
27166 * lib/libgcrypt/cipher/whirlpool.c
27168 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27170 Fix build for systems without error().
27172 * gnulib/error.c: New file (imported from Gnulib).
27173 * gnulib/error.h: Likewise.
27174 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
27175 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
27176 (this variable is now used by error()).
27178 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
27180 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
27181 instead of relying that char is signed.
27183 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
27185 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
27186 blocksize different from specified.
27187 (grub_pxefs_read): Likewise.
27189 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
27191 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
27193 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
27194 (grub_ata_readwrite): Likewise. Update 2 format strings.
27195 (grub_atapi_read): Likewise.
27197 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
27198 * conf/i386.rmk (pkglib_MODULES): ... to here ...
27199 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
27200 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
27201 (ata_mod_LDFLAGS): Move from here ...
27202 * conf/i386.rmk: ... to here ...
27203 * conf/x86_64-efi.rmk: ... and here.
27204 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
27205 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
27207 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27209 Relicense multiboot.h, with RMS' blessing.
27211 * include/multiboot.h: Change to X11 license.
27213 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
27215 Support --version in grub-mkisofs.
27217 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
27218 (OPTION_VERSION): New macro.
27219 (ld_options): Recognize --version.
27220 (usage): Move `program_name' from here ...
27221 (program_name): ... to here. Add `static' qualifier.
27222 (main): Recognize `OPTION_VERSION'.
27224 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
27226 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
27227 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
27229 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
27231 Fix help2man generation for mkisofs.
27233 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
27234 (usage): Send output to stdout (rather than stderr).
27236 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
27238 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
27239 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
27240 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
27241 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
27242 (bin_SCRIPTS): Add `grub-mkfloppy'.
27243 (grub_mkfloppy_SOURCES): New variable.
27245 * util/grub-mkrescue.in: New file.
27246 * util/i386/pc/grub-mkfloppy.in: New file.
27248 * util/i386/coreboot/grub-mkrescue.in: Remove.
27249 * util/i386/pc/grub-mkrescue.in: Remove.
27251 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27253 * include/grub/multiboot.h (struct grub_multiboot_header): Move
27255 * include/multiboot.h (struct multiboot_header): ... to here. Update
27257 * include/grub/multiboot.h (struct grub_multiboot_info): Move
27259 * include/multiboot.h (struct multiboot_info): ... to here. Update
27261 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
27263 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
27265 * include/grub/multiboot.h (struct grub_mod_list): Move
27267 * include/multiboot.h (struct multiboot_mod_list): ... to here.
27270 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27272 * include/multiboot2.h (multiboot_word): Rename from this ...
27273 (multiboot2_word): ... to this. Update all users.
27274 (multiboot_header): Rename from this ...
27275 (multiboot2_header): ... to this. Update all users.
27276 (multiboot_tag_header): Rename from this ...
27277 (multiboot2_tag_header): ... to this. Update all users.
27278 (multiboot_tag_start): Rename from this ...
27279 (multiboot2_tag_start): ... to this. Update all users.
27280 (multiboot_tag_name): Rename from this ...
27281 (multiboot2_tag_name): ... to this. Update all users.
27282 (multiboot_tag_module): Rename from this ...
27283 (multiboot2_tag_module): ... to this. Update all users.
27284 (multiboot_tag_memory): Rename from this ...
27285 (multiboot2_tag_memory): ... to this. Update all users.
27286 (multiboot_tag_unused): Rename from this ...
27287 (multiboot2_tag_unused): ... to this. Update all users.
27288 (multiboot_tag_end): Rename from this ...
27289 (multiboot2_tag_end): ... to this. Update all users.
27291 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27293 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
27294 this platform we should support Multiboot1 first.
27296 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
27297 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
27298 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
27300 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
27302 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
27303 of write calls (converting them to fwrite() if they aren't already).
27304 (get_torito_desc): Likewise.
27305 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
27307 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
27309 * util/i386/pc/grub-install.in: Move from here ...
27310 * util/grub-install.in: ... to here. Update all users.
27312 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
27314 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
27316 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
27318 Support for El Torito without floppy emulation.
27320 * util/mkisofs/eltorito.c: Include `<errno.h>'.
27321 (init_boot_catalog): Improve error handling.
27322 (get_torito_desc): Don't use floppy emulation unless requested by
27323 user. Patch boot information table when requested via
27324 `-boot-info-table'.
27325 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
27326 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
27327 (use_boot_info_table): New variables.
27328 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
27329 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
27330 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
27331 `--eltorito-emul-floppy'.
27332 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
27333 and `OPTION_ELTORITO_EMUL_FLOPPY'.
27334 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
27335 (use_boot_info_table, get_731): New prototypes.
27336 * util/mkisofs/write.c (get_731): New function.
27338 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
27340 Fix the generation of the man page.
27342 * util/pc/i386/grub-install.in: Source
27343 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
27345 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
27347 Large file support for grub-mkisofs.
27349 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
27350 * util/mkisofs/mkisofs.c (next_extent, last_extent)
27351 (session_start): Upgrade type to `uint64_t'. Update all users.
27352 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
27353 (struct directory_entry): Upgrade type of `starting_block' and
27354 `size' to `uint64_t'. Update all users.
27355 (struct deferred): Remove unused structure.
27356 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
27358 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
27359 file is larger than `UINT32_MAX'.
27360 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
27361 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
27363 (struct deferred_write): Upgrade type of `extent' and `size' to
27364 `uint64_t'. Update all users.
27365 (last_extent_written): Upgrade type to `uint64_t'. Update all
27367 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
27368 Update all users. Upgrade type of `remain' to `int64_t' and
27369 `use' to `size_t'. Use error() to handle fread() errors.
27370 (write_files): Rely on write_one_file() rather than calling
27371 xfwrite() directly.
27373 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
27375 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
27377 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27379 * util/mkisofs/fnmatch.c: Remove.
27380 * util/mkisofs/getopt1.c: Likewise.
27381 * util/mkisofs/getopt.c: Likewise.
27382 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
27383 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
27384 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
27385 `gnulib/getopt1.c' and `gnulib/getopt.c'.
27386 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
27388 * configure.ac: Detect `mingw32msvc' host_os.
27389 Check for lstat(), getuid() and getgid().
27391 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
27392 instances of `u_char' with `uint8_t'.
27394 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
27395 [!HAVE_GETUID] (getuid): New function (stub).
27396 [!HAVE_GETGID] (getgid): Likewise.
27397 [!HAVE_LSTAT] (lstat): Likewise.
27398 [!S_IROTH] (S_IROTH): New macro (dummy).
27399 [!S_IRGRP] (S_IRGRP): Likewise.
27401 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27403 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
27404 conditional expression).
27406 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27408 Import from Gnulib.
27410 * gnulib/fnmatch.c: New file.
27411 * gnulib/fnmatch.h: Likewise.
27412 * gnulib/fnmatch_loop.c: Likewise.
27413 * gnulib/getopt.c: Likewise.
27414 * gnulib/getopt.h: Likewise.
27415 * gnulib/getopt1.c: Likewise.
27416 * gnulib/getopt_int.h: Likewise.
27417 * gnulib/gettext.h: Likewise.
27419 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27421 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
27422 * normal/handler.c (read_handler_list): Likewise.
27424 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27428 * kern/command.c (grub_register_command_prio): Use
27429 grub_zalloc() instead of explicitly zeroing data.
27430 * kern/list.c: Include `<grub/mm.h>'.
27431 (grub_named_list_find): Replace `0' with `NULL'.
27432 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
27433 (fs_module_list): Change type to `grub_named_list_t'. Update all
27435 * normal/dyncmd.c (read_command_list): Add space between function
27436 call and parenthesis.
27437 * normal/handler.c (read_handler_list): Likewise.
27439 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27441 * normal/auth.c (punishment_delay): Moved from here ...
27442 (grub_auth_strcmp): ... to here (inside function).
27444 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27446 * include/grub/list.h (struct grub_named_list): Remove `const'
27447 qualifier from `name'.
27448 (struct grub_prio_list): Likewise.
27450 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27452 * normal/auth.c: Include `<grub/time.h>'.
27453 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
27455 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27457 * normal/auth.c (punishment_delay): New variable.
27458 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
27459 (grub_auth_check_authentication): Punish failed login attempts with
27460 an incremental (2^N) delay.
27462 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27464 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
27465 path with $(srcdir).
27467 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
27469 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
27471 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27473 * util/i386/coreboot/grub-mkrescue.in: New file.
27474 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
27477 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
27478 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
27479 * configure.ac: Add header and function checks to satisfy grub-mkisofs
27481 * util/mkisofs/defaults.h: New file.
27482 * util/mkisofs/eltorito.c: Likewise.
27483 * util/mkisofs/exclude.h: Likewise.
27484 * util/mkisofs/fnmatch.c: Likewise.
27485 * util/mkisofs/getopt.c: Likewise.
27486 * util/mkisofs/getopt1.c: Likewise.
27487 * util/mkisofs/hash.c: Likewise.
27488 * util/mkisofs/include/fctldefs.h: Likewise.
27489 * util/mkisofs/include/mconfig.h: Likewise.
27490 * util/mkisofs/include/prototyp.h: Likewise.
27491 * util/mkisofs/include/statdefs.h: Likewise.
27492 * util/mkisofs/iso9660.h: Likewise.
27493 * util/mkisofs/joliet.c: Likewise.
27494 * util/mkisofs/match.c: Likewise.
27495 * util/mkisofs/match.h: Likewise.
27496 * util/mkisofs/mkisofs.c: Likewise.
27497 * util/mkisofs/mkisofs.h: Likewise.
27498 * util/mkisofs/multi.c: Likewise.
27499 * util/mkisofs/name.c: Likewise.
27500 * util/mkisofs/rock.c: Likewise.
27501 * util/mkisofs/tree.c: Likewise.
27502 * util/mkisofs/write.c: Likewise.
27504 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
27506 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
27509 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27511 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
27512 `grub-mkimage' (and use $0 when possible).
27514 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27516 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
27517 error message for excessively large memory map.
27519 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27521 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
27524 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27526 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
27527 message for coreboot users.
27529 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
27531 Fix build with GNU gold.
27533 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
27534 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
27535 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
27537 * aclocal.m4: Likewise.
27539 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
27541 * configure.ac (AC_PREREQ): Bump to 2.59d.
27542 * INSTALL: Make it more clear when Autoconf and Ruby are
27543 needed and when to run `./autogen.sh'.
27545 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
27547 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
27550 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27552 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
27554 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27556 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
27557 giving it to GNU Mach.
27559 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27561 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
27562 GNU partition number to get internal GRUB partition number.
27564 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27566 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
27567 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
27569 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
27571 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
27572 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
27575 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
27577 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
27579 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
27583 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
27584 `-isystem=$(srcdir)/include'.
27586 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
27588 * util/i386/pc/grub-install.in: Remove hint that device.map should be
27589 checked (grub-install doesn't currently rely on it).
27591 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
27595 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
27596 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
27597 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
27598 * conf/i386-ieee1275.rmk: Likewise.
27599 * conf/i386-pc.rmk: Likewise.
27600 * conf/powerpc-ieee1275.rmk: Likewise.
27601 * conf/sparc64-ieee1275.rmk: Likewise.
27602 * conf/x86_64-efi.rmk: Likewise.
27604 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27606 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
27608 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27610 * include/grub/misc.h: Stop checking for APPLE_CC.
27612 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27614 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
27615 doesn't cause an infinite call loop.
27617 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
27619 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
27622 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27624 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
27626 * Makefile.in: Likewise.
27628 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27630 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
27632 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27634 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
27636 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27638 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
27640 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27642 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
27644 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
27646 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27648 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
27649 in $(MAKEINFO) invocation. This makes it clear in output that
27650 errors are being ignored.
27652 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27654 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
27656 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
27657 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
27658 * conf/i386-ieee1275.rmk: Likewise.
27659 * conf/i386-pc.rmk: Likewise.
27660 * conf/powerpc-ieee1275.rmk: Likewise.
27661 * conf/sparc64-ieee1275.rmk: Likewise.
27662 * conf/x86_64-efi.rmk: Likewise.
27664 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
27666 * util/grub-editenv.c (main): If only a command is given, use
27667 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
27668 (usage): FILENAME is now optional and has a default.
27670 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
27672 Improve grub-mkconfig performance when there are several menu
27673 entries on a single filesystem.
27675 * util/grub.d/10_linux.in (linux_entry): Cache the output of
27676 prepare_grub_to_access_device.
27677 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
27678 * util/grub.d/30_os-prober.in: Likewise.
27680 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27682 * util/grub.d/10_freebsd.in: Remove.
27683 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
27684 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
27686 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27688 * docs/grub.cfg: Fix example usage of *BSD loaders.
27690 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27692 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
27693 grub_util_error() call.
27695 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27697 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
27698 `reserved_first_sector' member.
27699 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
27700 `reserved_first_sector' to 1.
27701 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
27702 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
27703 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
27704 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
27705 filesystems which begin at first sector.
27706 (options): New option --skip-fs-probe.
27707 (main): Handle --skip-fs-probe and pass it to setup().
27709 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27711 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
27712 (memset): Fix function prototype.
27714 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27715 2009-10-25 Vasily Averin <vvs@parallels.com>
27717 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
27718 `dirent.direntlen == 0'.
27720 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27722 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
27724 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
27726 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27728 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
27729 `__trampoline_setup' and `__ucmpdi2'.
27730 * include/grub/powerpc/libgcc.h: Only export symbols for functions
27731 that libgcc provides.
27733 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27735 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
27736 * include/grub/sparc64/libgcc.h (memset): Likewise.
27737 * include/grub/misc.h (memset, memcmp): New function prototypes.
27739 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27741 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
27743 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
27745 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27747 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
27748 * docs/grub.cfg: Compensate for recent change in multiboot
27749 loader (since 2009-08-14 it won't pass filename to payload).
27750 * util/grub.d/10_hurd.in: Likewise.
27752 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
27754 * config.guess: Update to latest version from config git
27756 * config.sub: Likewise.
27758 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
27760 Fix build on sparc64.
27762 * configure.ac: Perform checks for libgcc symbols before
27763 adding `-nostdlib' to LDFLAGS.
27765 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
27767 Let user specify OpenBSD root device.
27769 * loader/i386/bsd.c (openbsd_root): New variable.
27770 (openbsd_opts): New option 'root'.
27771 (OPENBSD_ROOT_ARG): New macro.
27772 (grub_openbsd_boot): Use 'openbsd_root'.
27773 (grub_cmd_openbsd): Fill 'openbsd_root'.
27775 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
27777 * NEWS: Misc adjustments.
27779 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
27781 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
27783 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
27785 * configure.ac: Bump version to 1.97.
27787 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
27789 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
27790 -mno-3dnow on x86 architectures. Some toolchains enable these
27791 features by default, but they rely on registers that aren't enabled
27792 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
27794 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
27796 Make entry text a bit more readable.
27798 * util/grub.d/10_linux.in: Add `with' before `Linux'.
27800 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27802 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
27804 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27806 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
27809 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27811 * configure.ac: Add missing dollar.
27813 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27815 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
27817 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
27818 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
27820 * include/grub/sparc64/libgcc.h: Likewise. Use
27821 preprocessor conditionals.
27823 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
27825 * conf/common.rmk (grub-dumpbios): Remove rule.
27826 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
27827 * util/grub-dumpbios.in: Remove file.
27829 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
27831 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
27832 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
27834 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
27835 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
27838 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
27839 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
27840 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
27841 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
27844 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
27846 * term/tparm.c: Switch to GPLv3.
27848 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
27850 * include/grub/i386/cpuid.h: Add header protection.
27852 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
27854 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
27856 * include/grub/i386/cpuid.h: New file.
27857 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
27858 (has_longmode): Rename to ...
27859 (grub_cpuid_has_longmode): ... this. Update all users. Remove
27860 `static' attribute.
27861 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
27862 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
27863 on a CPU that doesn't implement AMD64 instruction set.
27865 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
27867 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
27868 that version.texi is rebuilt on version number changes.
27870 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
27872 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
27875 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
27877 * util/i386/pc/grub-install.in: Source
27878 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
27879 that the --grub-probe option will work.
27880 * util/sparc64/ieee1275/grub-install.in: Likewise.
27882 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
27884 * configure.ac: Bump version to 1.97~beta4.
27886 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
27888 Resync grub-mkdevicemap in x86_64-efi.
27890 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
27891 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
27892 `util/devicemap.c'.
27894 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
27896 * util/grub-editenv.c (create_envblk_file): Write new block with a
27897 .new suffix and then rename it into place, to ensure atomic
27900 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
27902 Do not automatically install headers.
27904 * Makefile.in (include_DATA): Remove. Update all users.
27906 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
27908 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
27909 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
27911 * util/osdetect.lua: Remove.
27912 * script/lua/lauxlib.c: Likewise.
27913 * script/lua/ldebug.c: Likewise.
27914 * script/lua/grub_main.c: Likewise.
27915 * script/lua/lauxlib.h: Likewise.
27916 * script/lua/ldebug.h: Likewise.
27917 * script/lua/ltablib.c: Likewise.
27918 * script/lua/liolib.c: Likewise.
27919 * script/lua/lstrlib.c: Likewise.
27920 * script/lua/lualib.h: Likewise.
27921 * script/lua/ldo.c: Likewise.
27922 * script/lua/ldump.c: Likewise.
27923 * script/lua/ldo.h: Likewise.
27924 * script/lua/loslib.c: Likewise.
27925 * script/lua/lundump.c: Likewise.
27926 * script/lua/grub_lib.c: Likewise.
27927 * script/lua/ldblib.c: Likewise.
27928 * script/lua/lundump.h: Likewise.
27929 * script/lua/lmem.c: Likewise.
27930 * script/lua/grub_lib.h: Likewise.
27931 * script/lua/lmathlib.c: Likewise.
27932 * script/lua/lstate.c: Likewise.
27933 * script/lua/ltm.c: Likewise.
27934 * script/lua/lvm.c: Likewise.
27935 * script/lua/lmem.h: Likewise.
27936 * script/lua/lstate.h: Likewise.
27937 * script/lua/ltm.h: Likewise.
27938 * script/lua/ltable.c: Likewise.
27939 * script/lua/lvm.h: Likewise.
27940 * script/lua/llex.c: Likewise.
27941 * script/lua/lgc.c: Likewise.
27942 * script/lua/grub_lua.h: Likewise.
27943 * script/lua/loadlib.c: Likewise.
27944 * script/lua/lfunc.c: Likewise.
27945 * script/lua/lopcodes.c: Likewise.
27946 * script/lua/lparser.c: Likewise.
27947 * script/lua/ltable.h: Likewise.
27948 * script/lua/llex.h: Likewise.
27949 * script/lua/lgc.h: Likewise.
27950 * script/lua/lfunc.h: Likewise.
27951 * script/lua/lbaselib.c: Likewise.
27952 * script/lua/lopcodes.h: Likewise.
27953 * script/lua/lparser.h: Likewise.
27954 * script/lua/lzio.c: Likewise.
27955 * script/lua/linit.c: Likewise.
27956 * script/lua/lobject.c: Likewise.
27957 * script/lua/llimits.h: Likewise.
27958 * script/lua/lstring.c: Likewise.
27959 * script/lua/lzio.h: Likewise.
27960 * script/lua/lapi.c: Likewise.
27961 * script/lua/lcode.c: Likewise.
27962 * script/lua/lua.h: Likewise.
27963 * script/lua/lobject.h: Likewise.
27964 * script/lua/lstring.h: Likewise.
27965 * script/lua/lapi.h: Likewise.
27966 * script/lua/lcode.h: Likewise.
27967 * script/lua/luaconf.h: Likewise.
27969 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
27971 * docs/grub.texi (Command-line and menu entry commands): Document
27972 date and echo commands.
27974 2009-09-24 Pavel Roskin <proski@gnu.org>
27976 * include/grub/kernel.h (struct grub_module_header): Remove
27977 `grub_module_header_types'. Make `type' unsigned. Make `size'
27978 32-bit on all platforms.
27979 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
27980 8-bit field. Use grub_host_to_target32() for `size'.
27981 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
27982 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
27983 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
27985 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
27987 Fix "lost keypress" bug in at_keyboard.
27989 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
27990 Checks for readyness of input buffer (without flushing it).
27991 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
27992 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
27994 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
27996 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
27997 size check within GRUB_MACHINE_PCBIOS section.
27999 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28001 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
28003 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
28004 KEYBOARD_ISREADY check.
28005 (grub_at_keyboard_checkkey): Rename to ...
28006 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
28007 Remove gratuitous cast.
28009 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
28011 * configure.ac: Call AC_PROG_MKDIR_P.
28012 * Makefile.in (docs/stamp-vti): Create docs directory. Create
28013 version.texi in $(builddir) rather than $(srcdir).
28014 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
28015 to makeinfo's @include search path.
28017 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
28019 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
28021 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
28023 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
28026 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
28028 Build info documentation. Some code borrowed from Automake.
28030 * configure.ac: Check for makeinfo.
28031 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
28032 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
28034 (MOSTLYCLEANFILES): Add vti.tmp.
28035 (docs/version.texi, docs/stamp-vti): Update automatically.
28036 (docs/grub.info): Build info documentation. Use --force and ignore
28038 (all-local): Add $(INFOS).
28039 (install-local): Install info files.
28040 (uninstall): Uninstall info files.
28041 * docs/version.texi: Remove from revision control. This file is
28042 automatically generated on build now.
28043 * gendistlist.sh: Add `*.info'.
28045 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
28047 * kern/term.c: Fix indentation.
28049 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
28051 * util/hostdisk.c: Fix a comment.
28053 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
28055 Fix regression introduced in r2539.
28057 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
28060 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
28062 * util/grub.d/30_os-prober.in: Don't throw away stderr from
28063 os-prober. Under normal operation, it does not print anything to
28064 stderr; if it does, we need to debug it, and throwing away stderr
28065 makes that excessively difficult.
28067 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
28069 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
28071 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
28073 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
28074 AC_LANG_PROGRAM from autoconf.
28075 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
28076 prototypes (fixes warning).
28078 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
28079 `--disable-werror' was used.
28081 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
28083 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
28084 uninitialized `lastaddr'.
28086 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
28088 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
28090 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
28092 * commands/test.c (get_fileinfo): Return immediately if
28093 grub_fs_probe fails.
28095 2009-09-14 José Martínez <xosemp@gmail.com>
28097 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
28099 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
28101 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
28104 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
28106 * configure.ac: Remove --enable-grub-pe2elf. Only build
28107 grub-pe2elf when needed by the build system itself.
28108 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
28110 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28112 * configure.ac: Bump version to 1.97~beta3.
28113 * docs/version.texi: Likewise.
28115 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28117 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
28118 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
28120 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
28121 (grub_linux_setup_video): ... to here (with some adjustments).
28123 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28125 Fix memory corruption issue (spotted by Colin Watson).
28127 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
28128 causing returned size to be stored in an incorrect memory location.
28129 Fix use of uninitialized value when storing the returned size.
28131 2009-09-12 Yves Blusseau <blusseau@zetam.org>
28133 Change clean rules to properly remove files
28135 * genmk.rb: add new clean rules
28136 * Makefile.in (clean): add the new targets
28137 (mostlyclean): likewise
28139 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
28141 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
28143 * fs/ntfs.c (init_file): Understand 64-bit sizes for
28144 non-resident files.
28146 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
28148 * configure.ac: Don't look for help2man when cross-compiling. Fixes
28149 part of bug #27349.
28151 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
28153 * util/grub-mkconfig.in: Make the created config mode 400 and
28154 print a warning if it fails.
28156 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
28158 * util/grub.d/40_custom.in: Ask user to type custom entries below
28159 comment, rather than below 'exec tail' line.
28161 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
28163 * util/grub.d/40_custom.in: Make sure that the explanatory text is
28164 visible in grub.cfg.
28166 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
28168 * util/grub.d/40_custom.in: Make it a little clearer how to use this
28171 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
28173 * docs/grub.cfg: Add an example menu entry for memtest86+.
28175 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
28177 * config.guess: Update to latest version from config git.
28178 * config.sub: Likewise.
28180 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
28182 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
28183 unknown-command case. Fixes bug #27320.
28185 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
28187 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
28188 `help' if the command exists.
28190 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
28192 * INSTALL: Require GCC 4.1.3 or later.
28194 2009-09-06 Yves Blusseau <blusseau@zetam.org>
28196 * Makefile.in (RMKFILES): add i386-qemu.rmk
28197 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
28198 $(srcdir)/stamp-h.in
28200 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
28202 * util/grub-probe.c (probe): Comment out buggy codepath, which
28203 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
28204 should be re-enabled after 1.97.
28206 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
28208 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
28211 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
28213 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
28214 unnecessary calls to grub_error.
28216 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
28218 * NEWS: Mention `keystatus' and Unicode fonts.
28220 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
28222 * configure.ac: Bump version to 1.97~beta2.
28223 * docs/version.texi: Likewise.
28225 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
28227 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
28228 containing unwind information in some cases where it previously did
28229 not. Use -fno-dwarf2-cfi-asm if available to restore the old
28230 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
28233 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
28235 Embedding loadenv module into grub-emu
28237 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
28239 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
28240 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
28241 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
28242 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
28243 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
28244 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
28246 2009-09-03 Magnus Granberg <zorry@ume.nu>
28248 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
28249 include -fPIE in the default specs.
28250 * configure.ac: Check if pie_possible is yes and add -fno-PIE
28253 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
28255 * INSTALL: Note that GNU Bison 2.3 or later is required.
28257 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
28259 * kern/i386/pc/startup.S: Fix typo.
28261 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
28263 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
28266 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28268 * docs/grub.texi (Naming convention): Describe one-based partition
28270 (Device syntax): Likewise.
28271 (File name syntax): Likewise.
28272 (Block list syntax): Likewise.
28273 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
28275 (File name syntax): Likewise.
28276 (Command-line and menu entry commands): Document acpi, blocklist,
28277 crc, export, insmod, keystatus, ls, set, and unset commands.
28279 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28281 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
28282 to avoid implying that only one of --shift, --ctrl, or --alt may be
28285 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28287 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
28288 rather than comparing against S_IFREG, which will almost never work.
28290 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
28292 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
28293 (write_blocklists): Likewise.
28295 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
28297 * script/lua/grub_lua.h (fputs): Supply a format string as the first
28298 argument to grub_printf.
28300 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
28302 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
28305 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
28307 * kern/file.c (grub_file_read): Spelling fix
28309 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
28311 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
28312 loading of headers in some cases.
28314 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
28316 * configure.ac: Bump version to 1.97~beta1.
28317 * docs/version.texi: Likewise.
28319 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
28321 * include/grub/i386/xnu.h: Add license header.
28322 include grub/err.h explicitly.
28324 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
28326 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
28327 to `ufs' in the vfs.root.mountfrom kernel parameter.
28329 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
28331 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
28333 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
28334 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
28336 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
28337 `ARRAY_SIZE' macro.
28339 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28341 * kern/file.c (grub_file_read): Check offset.
28342 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
28343 * fs/jfs.c (grub_jfs_read_file): Likewise.
28344 * fs/ntfs.c (grub_ntfs_read): Likewise.
28345 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
28346 * fs/minix.c (grub_minix_read_file): Correct offset check.
28347 * fs/ufs.c (grub_ufs_read_file): Likewise.
28349 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28351 * term/i386/pc/console.c (bios_data_area): Cast
28352 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
28354 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28356 1-bit optimised blitters.
28358 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
28360 (grub_video_fbblit_replace_24bit_1bit): Likewise.
28361 (grub_video_fbblit_replace_16bit_1bit): Likewise.
28362 (grub_video_fbblit_replace_8bit_1bit): Likewise.
28363 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
28364 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
28365 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
28366 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
28368 (grub_video_fbblit_replace_24bit_1bit): Likewise.
28369 (grub_video_fbblit_replace_16bit_1bit): Likewise.
28370 (grub_video_fbblit_replace_8bit_1bit): Likewise.
28371 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
28372 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
28373 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
28374 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
28376 * video/video.c (grub_video_get_blit_format): Return
28377 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
28379 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28381 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
28382 the first argument to grub_printf.
28384 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28385 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
28387 Add `getkeystatus' terminal method. Add a new `keystatus' command
28390 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
28391 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
28392 modifier key bitmasks.
28393 (struct grub_term_input): Add `getkeystatus' member.
28394 (grub_getkeystatus): Add prototype.
28395 * kern/term.c (grub_getkeystatus): New function.
28397 * include/grub/i386/pc/memory.h
28398 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
28399 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
28401 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
28402 (grub_console_term_input): Set `getkeystatus' member.
28403 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
28405 (grub_usb_keyboard_getreport): Likewise.
28406 (grub_usb_keyboard_checkkey): Likewise.
28407 (grub_usb_keyboard_getkeystatus): New function.
28408 (grub_usb_keyboard_term): Set `getkeystatus' member.
28410 * commands/keystatus.c: New file.
28411 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
28412 (keystatus_mod_SOURCES): New variable.
28413 (keystatus_mod_CFLAGS): Likewise.
28414 (keystatus_mod_LDFLAGS): Likewise.
28415 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
28416 commands/keystatus.c.
28417 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28418 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28419 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28420 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28421 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28422 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28424 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28426 Split befs.mod and afs.mod into *_be.mod and *.mod
28428 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
28429 (grub_fstest_SOURCES): Likewise.
28430 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
28431 (afs_be_mod_SOURCES): New variable.
28432 (afs_be_mod_CFLAGS): Likewise.
28433 (afs_be_mod_LDFLAGS): Likewise.
28434 (befs_be_mod_SOURCES): Likewise.
28435 (befs_be_mod_CFLAGS): Likewise.
28436 (befs_be_mod_LDFLAGS): Likewise.
28437 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
28438 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28439 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28440 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
28441 (grub_emu_SOURCES): Likewise.
28442 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28443 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28444 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28445 * fs/afs_be.c: New file.
28446 * fs/befs_be.c: New file.
28447 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
28448 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
28449 (U16): Replaced with ...
28450 (grub_afs_to_cpu16): ...this. All users updated.
28451 (U32): Replaced with ...
28452 (grub_afs_to_cpu32): ...this. All users updated.
28453 (U64): Replaced with ...
28454 (grub_afs_to_cpu64): ...this. All users updated.
28455 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
28456 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
28457 (grub_afs_validate_sblock): Check only one endianness.
28458 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
28459 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
28460 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
28461 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
28462 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
28463 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
28464 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
28465 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
28467 2009-08-26 Bean <bean123ch@gmail.com>
28469 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
28471 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
28472 (grub_xfs_inode_block): Change return type to grub_uint64_t.
28473 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
28475 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28477 NetBSD memory map support.
28479 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
28480 (grub_netbsd_btinfo_mmap_header): New structure.
28481 (grub_netbsd_btinfo_mmap_entry): Likewise.
28482 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
28484 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28486 Enable bsd.mod on coreboot.
28488 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
28489 (bsd_mod_SOURCES): New variable.
28490 (bsd_mod_CFLAGS): Likewise.
28491 (bsd_mod_LDFLAGS): Likewise.
28492 (bsd_mod_ASFLAGS): Likewise.
28493 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
28494 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
28496 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28498 Cleanup NetBSD root support.
28500 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
28501 grub_bsd_get_device.
28504 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
28506 * util/grub.d/00_header.in: Move check for the video backend of
28507 gfxterm from here ...
28508 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
28509 a suitable video backend.
28511 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28513 Fix breakage in grub-setup.
28515 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
28516 "msdos_partition_map".
28518 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28520 Fix breakage in normal/auth.c.
28522 * normal/auth.c (grub_iswordseparator): New function.
28524 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28526 Authentication support.
28528 * commands/password.c: New file.
28529 * conf/common.rmk (pkglib_MODULES): Add password.mod.
28530 (password_mod_SOURCES): New variable.
28531 (password_mod_CFLAGS): Likewise.
28532 (password_mod_LDFLAGS): Likewise.
28533 (normal_mod_SOURCES): Add normal/auth.c.
28534 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
28536 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28537 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28538 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28539 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28540 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28541 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28542 * include/grub/auth.h: New file.
28543 * include/grub/err.h (grub_err_t): New enum value
28544 GRUB_ERR_ACCESS_DENIED.
28545 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
28547 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
28548 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
28550 * normal/auth.c: New file.
28551 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
28552 (grub_cmdline_run): Don't allow to go to command line without
28554 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
28555 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
28556 menuentry without superuser rights.
28557 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
28558 user isn't a superuser.
28560 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28562 Save space by inlining misc.c functions.
28564 * kern/misc.c (grub_iswordseparator): Made static.
28565 * kern/misc.c (grub_strcat): Moved from here ...
28566 * include/grub/misc.h (grub_strcat): ... here. Inlined.
28567 * kern/misc.c (grub_strncat): Moved from here ...
28568 * include/grub/misc.h (grub_strncat): ... here. Inlined.
28569 * kern/misc.c (grub_strcasecmp): Moved from here ...
28570 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
28571 * kern/misc.c (grub_strncasecmp): Moved from here ...
28572 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
28573 * kern/misc.c (grub_isalpha): Moved from here ...
28574 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
28575 * kern/misc.c (grub_isdigit): Moved from here ...
28576 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
28577 * kern/misc.c (grub_isgraph): Moved from here ...
28578 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
28579 * kern/misc.c (grub_tolower): Moved from here ...
28580 * include/grub/misc.h (grub_tolower): ... here. Inlined.
28582 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28584 * script/sh/function.c (grub_script_function_find): Cut error message
28585 not to flood terminal.
28586 * script/sh/lexer.c (grub_script_yylex): Remove command line length
28588 * script/sh/script.c (grub_script_arg_add): Duplicate string.
28590 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
28592 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
28593 `report' grub_uint8_t *.
28594 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
28595 Use a 50-millisecond timeout rather than just repeating
28596 grub_usb_keyboard_getreport 50 times.
28597 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
28599 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28601 Rename *_partition_map to part_*
28603 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
28604 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
28605 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
28606 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
28608 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
28610 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
28611 * util/grub-probe.c (probe_partmap): Don't transform partition name
28612 to get module name.
28614 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28616 Fix OpenBSD and NetBSD support.
28618 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
28619 memory address conflict.
28620 (OPENBSD_MMAP_ACPI): New definition.
28621 (OPENBSD_MMAP_NVS): Likewise.
28622 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
28623 and OPENBSD_MMAP_NVS.
28624 Add memory map terminator
28625 Explicit cast when calling grub_unix_real_boot.
28626 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
28628 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28630 Let user specify NetBSD root device.
28632 * loader/i386/bsd.c (netbsd_root): New variable.
28633 (netbsd_opts): New option 'root'.
28634 (NETBSD_ROOT_ARG): New macro.
28635 (grub_netbsd_boot): Use 'netbsd_root'.
28636 (grub_bsd_unload): Free 'netbsd_root'.
28637 (grub_cmd_netbsd): Fill 'netbsd_root'.
28639 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28641 Support for 64-bit NetBSD.
28643 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
28644 point when booting non-FreeBSD.
28646 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28648 Support --no-smp and --no-acpi for NetBSD.
28650 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
28651 (NETBSD_AB_NOACPI): Likewise.
28652 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
28653 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
28655 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28657 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
28659 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
28660 errors. Call grub_error when needed.
28662 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28664 * commands/search.c (search_fs): Try searching without autoload first.
28665 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
28666 filesystem module explicitly for faster booting.
28668 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
28670 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
28672 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
28674 * util/grub.d/30_os-prober.in: Disable os-prober if
28675 `GRUB_DISABLE_OS_PROBER' was set to true.
28677 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
28679 * partmap/pc.c: Rename to ...
28680 * partmap/msdos.c: ... this. Update all users.
28681 (grub_pc_partition_map): Rename to ...
28682 (grub_msdos_partition_map): ... this. Update all users.
28684 * parttool/pcpart.c: Rename to ...
28685 * parttool/msdospart.c: ... this. Update all users.
28687 * include/grub/pc_partition.h: Rename to ...
28688 * include/grub/msdos_partition.h: ... this. Update all users.
28689 (grub_pc_partition_bsd_entry): Rename to ...
28690 (grub_msdos_partition_bsd_entry): ... this. Update all users.
28691 (grub_pc_partition_disk_label): Rename to ...
28692 (grub_msdos_partition_disk_label): ... this. Update all users.
28693 (grub_pc_partition_entry): Rename to ...
28694 (grub_msdos_partition_entry): ... this. Update all users.
28695 (grub_pc_partition_mbr): Rename to ...
28696 (grub_msdos_partition_mbr): ... this. Update all users.
28697 (grub_pc_partition): Rename to ...
28698 (grub_msdos_partition): ... this. Update all users.
28699 (grub_pc_partition_is_empty): Rename to ...
28700 (grub_msdos_partition_is_empty): ... this. Update all users.
28701 (grub_pc_partition_is_extended): Rename to ...
28702 (grub_msdos_partition_is_extended): ... this. Update all users.
28703 (grub_pc_partition_is_bsd): Rename to ...
28704 (grub_msdos_partition_is_bsd): ... this. Update all users.
28706 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
28707 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
28708 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
28709 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
28710 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
28711 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
28712 (gpt_mod_LDFLAGS): Rename to ...
28713 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
28714 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
28715 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
28716 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
28717 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
28718 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
28719 (part_gpt_mod_LDFLAGS): ... this.
28720 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
28721 `pcpart.mod' to `msdospart.mod'.
28722 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
28724 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
28725 (msdospart_mod_LDFLAGS): ... this.
28727 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28729 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
28730 (openbsd_opts): Likewise.
28731 (netbsd_opts): Likewise.
28732 (freebsd_flags): Added 0 terminator.
28733 (openbsd_flags): Likewise.
28734 (netbsd_flags): Likewise.
28735 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
28736 (grub_cmd_freebsd): Transformed into extended command.
28737 (grub_cmd_openbsd): Likewise.
28738 (grub_cmd_netbsd): Likewise.
28739 (cmd_freebsd): Changed type to grub_extcmd_t.
28740 (cmd_openbsd): Likewise.
28741 (cmd_netbsd): Likewise.
28742 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
28743 grub_cmd_openbsd as extended commands.
28744 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
28745 cmd_netbsd and cmd_openbsd
28747 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
28749 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
28751 2009-08-21 Pavel Roskin <proski@gnu.org>
28753 * Makefile.in (install-local): When checking if a file is in the
28754 build directory, use "test -e" to detect symlinks.
28756 * Makefile.in (install-local): Remove all files in
28757 $(DESTDIR)$(pkglibdir) before installing new files there.
28759 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
28761 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
28764 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
28766 * util/grub-mkconfig.in: Don't use gfxterm by default if not
28767 explicitly specified by the user.
28769 2009-08-18 Pavel Roskin <proski@gnu.org>
28771 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
28772 grub_uint8_t pointer for data.
28773 * include/grub/fbutil.h (struct grub_video_fbblit_info):
28775 * video/fb/fbutil.c: Remove unnecessary casts.
28777 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
28781 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
28782 (grub_vbe_set_video_mode): Save active mode info
28783 only after setting the mode.
28784 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
28787 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
28789 Rename variables for clarity.
28791 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
28792 (active_vbe_mode_info): ... this. All users updated.
28793 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
28795 (initial_mode): Rename to ...
28796 (initial_vbe_mode): ... this. All users updated.
28797 (mode_in_use): Rename to ..
28798 (vbe_mode_in_use): ... this. All users updated.
28799 (mode_list): Rename to ..
28800 (vbe_mode_list): ... this. All users updated.
28801 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
28802 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
28803 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
28804 'mode_list_size' to 'vbe_mode_list_size'.
28805 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
28806 'best_mode_info' to 'best_vbe_mode_info' and
28807 'best_mode' to 'best_vbe_mode'
28809 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
28811 Remove duplicate grub_video_fb_get_video_ptr.
28813 * include/grub/fbutil.h (get_data_ptr): Rename to ...
28814 (grub_video_fb_get_video_ptr): ... this.
28815 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
28816 * video/fb/fbutil.c: Add comment about addressing.
28817 (get_data_ptr): Rename to ...
28818 (grub_video_fb_get_video_ptr): ... this. All users updated.
28819 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
28821 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
28823 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
28824 grub_dprintf() that was just added.
28826 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
28828 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
28829 (DEFAULT_VIDEO_MODE): Remove macros.
28830 (grub_linux_boot): Remove assumption that Linux has FB support,
28831 and use "text" as default video mode.
28833 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
28835 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
28837 * fs/fat.c (grub_fat_read_data): Likewise.
28839 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28841 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
28843 (grub_module): Likewise.
28845 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28847 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
28848 mbi->cmdline but free playground.
28850 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28852 Handle group offset on UFS1.
28854 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
28855 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
28857 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28859 Split ufs.mod into ufs1.mod and ufs2.mod.
28861 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
28862 (grub_fstest_SOURCES): Likewise.
28863 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
28864 (ufs_mod_SOURCES): Remove.
28865 (ufs_mod_CFLAGS): Likewise.
28866 (ufs_mod_LDFLAGS): Likewise.
28867 (ufs1_mod_SOURCES): New variable.
28868 (ufs1_mod_CFLAGS): Likewise.
28869 (ufs1_mod_LDFLAGS): Likewise.
28870 (ufs2_mod_SOURCES): New variable.
28871 (ufs2_mod_CFLAGS): Likewise.
28872 (ufs2_mod_LDFLAGS): Likewise.
28873 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
28874 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
28876 (grub_emu_SOURCES): Likewise.
28877 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28878 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28879 (grub_setup_SOURCES): Likewise.
28880 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28881 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
28882 (grub_setup_SOURCES): Likewise.
28883 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
28885 * fs/ufs2.c: New file.
28886 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
28888 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28892 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
28893 subsystem at the end.
28894 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
28895 (video_fb_mod_SOURCES): New variable.
28896 (video_fb_mod_CFLAGS): Likewise.
28897 (video_fb_mod_LDFLAGS): Likewise.
28898 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
28899 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
28900 * video/i386/pc/vbeblit.c: Moved from here ...
28901 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
28902 * video/i386/pc/vbefill.c: Moved from here ...
28903 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
28904 * video/i386/pc/vbeutil.c: Moved from here ...
28905 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
28906 * include/grub/i386/pc/vbeblit.h: Moved from here ...
28907 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
28908 * include/grub/i386/pc/vbefill.h: Moved from here ...
28909 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
28910 * include/grub/i386/pc/vbeutil.h: Moved from here ...
28911 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
28912 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
28913 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
28914 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
28915 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
28916 (grub_video_adapter): Added 'get_info_and_fini'.
28917 (grub_video_get_info_and_fini): New prototype.
28918 (grub_video_set_mode): make modestring const char *.
28919 * loader/i386/linux.c (grub_linux_setup_video): Use
28920 grub_video_get_info_and_fini.
28921 (grub_linux_boot): Move modesetting just before booting.
28922 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
28923 grub_video_get_info_and_fini.
28924 * video/i386/pc/vbe.c: Moved framebuffer part ...
28925 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
28926 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
28927 grub_video_fbstd_colors and grub_video_fb_set_palette.
28928 (grub_video_vbe_init): Clear 'framebuffer' variable and use
28929 grub_video_fb_init.
28930 (grub_video_vbe_fini): Use grub_video_fb_fini.
28931 (grub_video_vbe_setup): Use framebuffer.render_target instead of
28932 render_target and use grub_video_fb_set_active_render_target and
28933 grub_video_fb_set_palette.
28934 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
28935 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
28936 (grub_video_vbe_adapter): Use framebuffer.
28937 * video/video.c (grub_video_get_info_and_fini): New function.
28938 (grub_video_set_mode): Make modestring const char *.
28939 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
28940 values are already initialised.
28942 2009-08-14 Pavel Roskin <proski@gnu.org>
28944 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
28946 * boot/i386/pc/diskboot.S: Likewise.
28947 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
28948 sectors allow compilation on MacOSX.
28949 * conf/i386-pc.rmk: Enable unconditional compilation of
28952 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
28954 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
28955 * util/grub.d/00_header.in: Enter interruptible sleep if
28956 GRUB_HIDDEN_TIMEOUT is set.
28958 2009-08-13 Yves Blusseau <blusseau@zetam.org>
28960 * include/grub/symbol.h: Add the LOCAL macro.
28961 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
28962 starting with "L_".
28964 2009-08-13 Pavel Roskin <proski@gnu.org>
28966 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
28967 any modern compilers we support.
28969 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
28970 Use local labels starting with "L_" so that Apple assembler
28971 knows they are local.
28973 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
28975 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
28976 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
28977 (bsd_kernel_types): ... this enum.
28979 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
28980 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
28981 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
28983 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
28984 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
28985 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
28988 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
28990 * util/grub-dumpdevtree: Moved from here ...
28991 * util/i386/efi/grub-dumpdevtree: ... to here.
28992 (hexify): New function. Converts a string to its hex version.
28993 Generate hex versions of "efi" and "device-properties" by calling
28994 hexify() on the ASCII strings rather than by hardcoding numbers.
28996 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
28998 * fs/jfs.c: Update copyright year.
29000 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
29002 * util/grub.d/00_header.in: Fix a comment.
29003 * util/grub.d/10_linux.in: Likewise.
29004 * util/grub.d/10_windows.in: Likewise.
29005 * util/grub.d/10_hurd.in: Likewise.
29007 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
29009 * util/grub-mkconfig.in: Allow the user to specify the used font
29012 2009-08-08 Pavel Roskin <proski@gnu.org>
29014 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
29015 available, xfs.mod needs it now.
29017 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
29018 the "g" modifier in sed when the intention is to strip something
29019 once. This fixes comparison of kernels with multiple dashes.
29021 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
29022 on it. Add missing space before closing bracket. Fix
29023 misleading formatting.
29025 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29027 * docs/grub.texi: Major overhaul. Remove all sections that are
29028 specific to GRUB Legacy, or mostly composed of Legacy-specific
29031 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29033 * docs/version.texi: New file. Provides version information for
29036 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29038 * docs/grub.texi: Update CVS information to SVN.
29039 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
29041 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
29043 * util/grub-mkconfig.in: Remove a wrong `fi'.
29045 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
29047 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
29048 (grub_jfs_uuid): New function.
29049 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
29051 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
29053 * util/grub-mkconfig_lib.in (font_path): Move the functionality
29055 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
29056 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
29058 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29060 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
29061 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
29064 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
29065 not just "vmlinu[zx]".
29066 Moved from here ...
29067 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
29070 * util/grub.d/10_linux.in (find_latest): Moved from here ...
29071 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
29074 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29076 * util/grub.d/10_freebsd.in: Use an absolute device path for
29077 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
29079 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
29081 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
29082 handling of multiple abstraction modules.
29084 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
29086 Fix a bug resulting in black screen when loading Linux using a
29089 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
29092 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
29093 (grub_vbe_bios_getset_dac_palette_width): New function.
29094 (grub_vbe_bios_get_dac_palette_width)
29095 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
29096 grub_vbe_bios_getset_dac_palette_width()).
29098 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
29099 check for return status.
29100 (grub_vbe_get_video_mode_info): When getting information for a packed
29101 mode (<= 8 bpp), obtain DAC palette width using
29102 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
29103 {red,green,blue}_mark_size.
29105 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
29107 * commands/search.c (options): Fix help output to match actual code.
29109 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
29111 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
29114 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29116 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
29117 on XFS or ReiserFS.
29119 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29121 Support Apple partition map with sector size different from 512 bytes.
29123 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
29124 (apple_partition_map_iterate): Respect 'aheader.blocksize'
29125 and 'apart.partmap_size'.
29127 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29128 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
29132 * commands/i386/cpuid.c (options): New variable.
29133 (grub_cmd_cpuid): Return real error.
29134 (GRUB_MOD_INIT(cpuid)): Declare options.
29136 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
29138 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
29141 2009-07-31 Bean <bean123ch@gmail.com>
29143 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
29145 (grub_fshelp_node): Move inode field to the end.
29146 (grub_xfs_data): Remove inode field.
29147 (grub_xfs_inode_block): Calculate inode size using sblock.
29148 (grub_xfs_inode_offset): Likewise.
29149 (grub_xfs_read_inode): Calculate inode size using sblock.
29150 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
29151 (grub_xfs_iterate_dir): Calculate inode size using sblock.
29152 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
29153 to match inode size.
29154 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
29155 not accessible when data is null.
29156 (grub_xfs_open): Likewise.
29158 2009-07-31 Bean <bean123ch@gmail.com>
29160 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
29161 Don't change pv->disk if it's already set.
29163 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
29164 (grub_raid_register): ... here.
29165 (grub_raid_rescan): Removed.
29167 * include/grub/raid.h (grub_raid_rescan): Removed.
29169 * util/grub-fstest.c: Remove include file <grub/raid.h>.
29170 (fstest): Replace grub_raid_rescan with module fini function followed
29173 * util/grub-probe.c: Add include file <grub/raid.h>.
29174 (probe_raid_level): New function.
29175 (probe): Detect abstraction by walking the disk device, support two
29176 level of abstraction (LVM on RAID) when detecting partition map.
29178 2009-07-31 Pavel Roskin <proski@gnu.org>
29180 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
29181 to grub_zalloc(), it was erroneous.
29182 Reported by Bean <bean123ch@gmail.com>
29184 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
29186 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
29187 embedding zone, not only the first one.
29189 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
29191 * term/gfxterm.c (clear_char): New function.
29192 (grub_virtual_screen_setup): Use clear_char.
29193 (scroll_up): Likewise.
29194 (grub_virtual_screen_cls): Likewise.
29196 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
29198 * util/deviceiter.c (get_acceleraid_disk_name): New static
29200 (grub_util_iterate_devices): Handle Accelraid devices.
29201 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
29203 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
29205 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
29206 separator for the suggested gfxpayload string (';' collides with the
29207 parser and needs escaping).
29209 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
29211 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
29212 Clear direction flag before jumping to OS.
29213 (grub_multiboot2_real_boot): Likewise.
29215 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
29217 * util/i386/pc/grub-install: Fix parsing of --disk-module
29220 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
29222 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
29225 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
29227 * util/grub-mkconfig.in (package_version): New variable.
29228 Use it do display the version.
29230 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
29232 * kern/file.c (grub_file_open): Revert to previous check with
29235 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
29237 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
29238 from help line. It's out of sync with code.
29240 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
29242 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
29243 entries on failed boot.
29245 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
29247 * kern/file.c (grub_file_open): Fix an error check.
29249 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
29251 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
29252 partition map couldn't be identified.
29254 2009-07-23 Pavel Roskin <proski@gnu.org>
29256 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
29257 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
29258 case of little endian words becomes just an optimization.
29259 Respect const modifier.
29260 (md5_final): Use code that doesn't depend on endianness.
29262 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
29263 to avoid loss of upper bits if align is unsigned and shorter
29266 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
29268 UUID support for UFS
29270 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
29271 (grub_ufs_uuid): New function.
29272 (grub_ufs_fs): add .uuid
29274 2009-07-21 Pavel Roskin <proski@gnu.org>
29276 * kern/dl.c (grub_dl_check_header): Make static.
29278 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
29280 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
29281 add drivemap for Vista. It breaks Windows 7.
29283 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
29285 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
29288 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29292 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
29293 (grub_fstest_SOURCES): Likewise.
29294 (pkglib_MODULES): Add befs.mod.
29295 (befs_mod_SOURCES): New variable.
29296 (befs_mod_CFLAGS): Likewise.
29297 (befs_mod_LDFLAGS): Likewise.
29298 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
29299 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29300 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29301 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29302 (grub_setup_SOURCES): Likewise.
29303 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29304 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29305 (grub_setup_SOURCES): Likewise.
29306 * fs/befs.c: New file.
29307 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
29308 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
29309 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
29310 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
29311 (B_KEY_INDEX_ALIGN): New declaration.
29312 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
29313 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
29314 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
29315 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
29316 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
29317 (grub_afs_mount) [MODE_BFS]: Likewise.
29318 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
29319 (grub_afs_fs): Use GRUB_AFS_FSNAME
29320 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
29321 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
29322 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
29323 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
29325 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
29327 * util/getroot.c (find_root_device): Add support for MacOSX.
29328 * util/hostdisk.c: Likewise.
29330 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29332 * font/font.c (find_glyph): Check whether a font is present to avoid
29333 segmentation fault.
29335 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
29337 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
29339 2009-07-20 Pavel Roskin <proski@gnu.org>
29341 * configure.ac: Trim excessively wordy excuses.
29343 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29345 Add symlink, mtime and label support to AtheFS.
29347 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
29348 (grub_afs_iterate_dir): Handle symlinks.
29349 (grub_afs_open): Use grub_afs_read_symlink.
29350 (grub_afs_dir): Likewise.
29352 (grub_afs_label): New function.
29353 (grub_afs_fs): Add grub_afs_label.
29354 (grub_afs_read_symlink): New function.
29356 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29358 Fix AtheFS support.
29360 * fs/afs.c: Fix comments style.
29361 (grub_afs_blockrun): Declare as packed.
29362 (grub_afs_datastream): Likewise.
29363 (grub_afs_bnode): Likewise.
29364 (grub_afs_btree): Likewise.
29365 (grub_afs_sblock): Likewise.
29366 Declare `name' as char.
29367 (grub_afs_inode): Declare as packed.
29368 Change void *vnode to grub_uint32_t unused.
29369 (grub_afs_iterate_dir): Check that key_size is positive.
29370 (grub_afs_mount): Don't read superblock twice.
29371 (grub_afs_dir): Don't free node in case of error,
29372 grub_fshelp_find_file already handles this.
29373 (grub_afs_open): Likewise.
29375 2009-07-19 Pavel Roskin <proski@gnu.org>
29377 * Makefile.in: Remove LIBLZO and enable_lzo.
29378 * conf/i386-pc.rmk: Remove lzo support.
29379 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
29380 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
29382 * kern/i386/pc/lzo1x.S: Remove.
29383 * kern/i386/pc/startup.S: Remove lzo support.
29384 * util/i386/pc/grub-mkimage.c: Likewise.
29386 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
29388 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
29389 * fs/xfs.c (grub_xfs_dir): Likewise.
29390 * fs/afs.c (grub_afs_dir): Likewise.
29391 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
29392 (grub_iso9660_open): Likewise.
29393 * fs/jfs.c (grub_jfs_open): Likewise.
29394 * fs/ext2.c (grub_ext2_dir): Likewise.
29395 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
29396 * script/sh/lexer.c (grub_script_yylex): Likewise.
29398 2009-07-16 Pavel Roskin <proski@gnu.org>
29400 * configure.ac: Never add "-c" to CFLAGS.
29402 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
29404 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
29405 grub_cv_cc_efiemu should be used.
29407 * configure.ac: Typo fixes.
29409 * kern/mm.c (grub_zalloc): New function.
29410 (grub_debug_zalloc): Likewise.
29411 * include/grub/mm.h: Declare grub_zalloc() and
29412 grub_debug_zalloc().
29413 * util/misc.c (grub_zalloc): New function.
29414 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
29415 instead of grub_malloc(), remove unneeded initializations.
29416 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
29417 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
29418 * commands/parttool.c (grub_cmd_parttool): Likewise.
29419 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
29420 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
29421 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
29422 * disk/usbms.c (grub_usbms_finddevs): Likewise.
29423 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
29424 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
29425 (grub_cmd_efiemu_pnvram): Likewise.
29426 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
29427 * fs/iso9660.c (grub_iso9660_mount): Likewise.
29428 (grub_iso9660_iterate_dir): Likewise.
29429 * fs/jfs.c (grub_jfs_opendir): Likewise.
29430 * fs/ntfs.c (list_file): Likewise.
29431 (grub_ntfs_mount): Likewise.
29432 * kern/disk.c (grub_disk_open): Likewise.
29433 * kern/dl.c (grub_dl_load_core): Likewise.
29434 * kern/elf.c (grub_elf_file): Likewise.
29435 * kern/env.c (grub_env_context_open): Likewise.
29436 (grub_env_set): Likewise.
29437 (grub_env_set_data_slot): Likewise.
29438 * kern/file.c (grub_file_open): Likewise.
29439 * kern/fs.c (grub_fs_blocklist_open): Likewise.
29440 * loader/i386/multiboot.c (grub_module): Likewise.
29441 * loader/xnu.c (grub_xnu_create_key): Likewise.
29442 (grub_xnu_create_value): Likewise.
29443 * normal/main.c (grub_normal_add_menu_entry): Likewise.
29444 (read_config_file): Likewise.
29445 * normal/menu_entry.c (make_screen): Likewise.
29446 * partmap/sun.c (sun_partition_map_iterate): Likewise.
29447 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
29448 * script/sh/script.c (grub_script_parse): Likewise.
29449 * video/bitmap.c (grub_video_bitmap_create): Likewise.
29450 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
29451 * video/readers/png.c (grub_png_output_byte): Likewise.
29452 (grub_video_reader_png): Likewise.
29454 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29456 Enable all targets that can be built by default
29458 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
29459 grub-mkfont and grub-fstest if they can be built
29461 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29463 Fix hang and segmentation fault in grub-emu-usb
29465 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
29466 * util/usb.c (grub_libusb_devices): likewise
29467 (grub_libusb_init): rename to ...
29468 (GRUB_MOD_INIT (libusb)):...this
29469 (grub_libusb_fini): rename to ..
29470 (GRUB_MOD_FINI (libusb)):...this
29471 * disk/usbms.c (grub_usbms_transfer): fix retry logic
29472 * include/grub/disk.h (grub_raid_init): removed, it's useless
29473 (grub_raid_fini): likewise
29474 (grub_lvm_init): likewise
29475 (grub_lvm_fini): likewise
29476 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
29479 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29483 * Makefile.in (LIBUSB): new macro
29484 * genmk.rb (Utility/print_tail): new method
29485 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
29486 (top level): call util.print_tail at the end.
29488 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29490 Make FreeBSD accept zpool.cache
29492 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
29493 type is /boot/zfs/zpool.cache
29495 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29499 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
29500 correct wrong typedef
29501 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
29503 2009-07-15 Pavel Roskin <proski@gnu.org>
29505 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
29506 * kern/disk.c (struct grub_disk_cache): Likewise.
29508 * commands/probe.c (options): Typo fix.
29510 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
29511 Increase to 0x5a to accommodate FAT32. Adjust other offsets
29513 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
29515 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
29516 the end of "Error" to make the message more readable.
29518 * boot/i386/pc/boot.S (kernel_segment): Remove.
29519 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
29522 * boot/i386/pc/boot.S (boot_version): Remove.
29523 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
29526 * include/grub/i386/pc/boot.h: Sort all offsets.
29527 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
29528 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
29529 * boot/i386/pc/boot.S: Assert location of every offset listed in
29530 include/grub/i386/pc/boot.h.
29532 2009-07-13 Pavel Roskin <proski@gnu.org>
29534 * include/grub/i386/coreboot/machine.h: Rename
29535 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
29536 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
29537 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
29539 * kern/dl.c: Force native word size to suppress warnings when
29540 compiling grub-emu.
29542 * kern/device.c (grub_device_iterate): Change struct part_ent to
29543 hold the name, not a pointer to it. Use one grub_malloc() per
29544 partition, not two. Free partition_name if grub_malloc() fails.
29545 Set ents to NULL only before grub_partition_iterate() is called.
29547 2009-07-11 Bean <bean123ch@gmail.com>
29549 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
29552 2009-07-10 Bean <bean123ch@gmail.com>
29553 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
29555 * kern/ieee1275/openfw.c (grub_children_iterate)
29556 (grub_devalias_iterate): Fix size evaluation for property or path
29557 strings, which was broken since r2132.
29559 2009-07-07 Pavel Roskin <proski@gnu.org>
29561 * commands/search.c (search_file): Merge into ...
29562 (search_fs): ... this. Accept search type as argument.
29563 (grub_cmd_search): Pass search type to search_fs().
29565 * include/grub/util/console.h: New file.
29566 * util/console.c: Use it instead of grub/machine/console.h.
29567 * util/grub-emu.c: Likewise.
29569 * lib/arg.c (find_long_option): Remove.
29570 (find_long): Add `len' argument, make `s' const char *.
29571 (grub_arg_parse): Parse long options in place, not in a
29574 2009-07-06 Pavel Roskin <proski@gnu.org>
29576 * commands/search.c (search_fs): Fix potential NULL pointer
29579 * commands/search.c (search_fs): Replace QUID macro with quid_fn
29582 2009-07-06 Daniel Mierswa <impulze@impulze.org>
29584 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
29587 2009-07-05 Pavel Roskin <proski@gnu.org>
29589 * include/grub/i386/linux.h (struct linux_kernel_params):
29590 Restore padding3, it's still needed.
29592 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
29594 * util/osdetect.lua: Likewise.
29596 2009-07-05 Bean <bean123ch@gmail.com>
29598 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
29600 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
29601 (grub_lua_getenv): Likewise.
29602 (grub_lua_setenv): Likewise.
29603 (save_errno): New function.
29604 (push_result): Likewise.
29605 (grub_lua_enum_device): Likewise.
29606 (grub_lua_enum_file): Likewise.
29607 (grub_lua_file_open): Likewise.
29608 (grub_lua_file_close): Likewise.
29609 (grub_lua_file_seek): Likewise.
29610 (grub_lua_file_read): Likewise.
29611 (grub_lua_file_getline): Likewise.
29612 (grub_lua_file_getsize): Likewise.
29613 (grub_lua_file_getpos): Likewise.
29614 (grub_lua_file_eof): Likewise.
29615 (grub_lua_file_exist): Likewise.
29616 (grub_lua_add_menu): Likewise.
29618 * script/lua/grub_lua.h (isupper): New inline function.
29619 (islower): Likewise.
29620 (ispunct): Likewise.
29621 (isxdigit): Likewise.
29622 (strcspn): Change to normal function.
29623 (strpbkr): New function declaration.
29624 (memchr): Likewise.
29626 * script/lua/grub_main.c (scan_str): New function.
29627 (strcspn): Likewise.
29628 (strpbrk): Likewise.
29629 (memchr): Likewise.
29631 * script/lua/linit.c (lualibs): Enable the string library.
29633 * util/osdetect.lua: New file.
29635 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
29637 * include/grub/i386/linux.h (struct linux_kernel_params): Add
29638 `capabilities' member.
29640 2009-07-02 Pavel Roskin <proski@gnu.org>
29642 * genparttoollist.sh: Add missing newline at the end.
29644 2009-07-01 Pavel Roskin <proski@gnu.org>
29646 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
29648 * util/hostdisk.c (open_device): Remove `const' from
29649 `sysctl_size', as sysctlbyname() can change it (in this case it
29650 doesn't actually happen).
29652 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
29653 using signed long int constants.
29655 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
29656 constant to avoid a warning on FreeBSD.
29658 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
29661 * Makefile.in: Install include/grub/machine symlink.
29663 * Makefile.in: When installing symlinks, use "cp -fR", which
29664 works on FreeBSD and MacOSX.
29665 From Yves Blusseau <cl7m42e02@sneakemail.com>
29667 * kern/dl.c (grub_dl_resolve_symbol): Make static.
29668 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
29670 * util/misc.c: Move grub_reboot() and grub_halt() ...
29671 * util/grub-emu.c: ... here. Make main_env static.
29672 * include/grub/util/misc.h: Remove main_env.
29674 * kern/mm.c: Use correct format to print size_t.
29676 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
29677 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
29678 * kern/powerpc/dl.c: Likewise.
29679 * kern/sparc64/dl.c: Likewise.
29680 * kern/x86_64/dl.c: Likewise.
29682 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29684 Fix grub-emu build on sparc64-ieee1275.
29686 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
29687 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
29689 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29691 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
29692 (grub_reboot, grub_halt): New functions.
29694 * util/i386/pc/misc.c: Delete. Update all users.
29695 * util/sparc64/ieee1275/misc.c: Likewise.
29696 * util/powerpc/ieee1275/misc.c: Likewise.
29698 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29700 * conf/i386.rmk (setjmp_mod_SOURCES)
29701 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
29702 * conf/common.rmk (setjmp_mod_SOURCES)
29703 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
29704 to use $(target_cpu).
29705 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
29706 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
29707 * conf/powerpc-ieee1275.rmk: Likewise.
29708 * conf/sparc64-ieee1275.rmk: Likewise.
29710 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
29711 $(target_cpu) for kern/$(target_cpu)/dl.c.
29712 * conf/i386-efi.rmk: Likewise.
29713 * conf/i386-ieee1275.rmk: Likewise.
29714 * conf/x86_64-efi.rmk: Likewise.
29715 * conf/i386-coreboot.rmk: Likewise.
29716 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
29717 $(target_cpu) for kern/$(target_cpu)/dl.c and for
29718 kern/$(target_cpu)/cache.S.
29719 * conf/sparc64-ieee1275.rmk: Likewise.
29721 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29723 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
29724 type to `grub_uint8_t', and adjust `padding9' accordingly.
29726 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29728 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
29730 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
29731 assembly in final jump, using register constraints.
29733 (grub_linux_boot): For text mode, initialize `have_vga' using
29734 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
29736 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
29737 right before the final jump.
29739 Set `video_mode' to 0x3.
29741 Document initialization of `video_page', `video_mode' and
29744 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29746 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
29747 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
29748 and set GRUB_LINUX_FLAG_QUIET appropriately.
29750 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29752 Fix build on Debian / sparc.
29754 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
29756 2009-06-28 Pavel Roskin <proski@gnu.org>
29758 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
29761 * util/grub.d/10_linux.in: Match SUSE style initrd names.
29763 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
29765 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
29768 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
29772 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
29773 file can't be opened. grub_file_open() is already supposed to set
29774 grub_errno / grub_errmsg appropriately.
29775 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
29777 2009-06-27 Pavel Roskin <proski@gnu.org>
29778 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
29780 * include/grub/dl.h: Include grub/elf.h.
29781 (struct grub_dl): Add symtab field.
29782 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
29783 GRUB_MODULES_MACHINE_READONLY.
29784 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
29785 of the header for read-only modules.
29786 (grub_dl_unload): Free mod->symtab for read-only modules.
29787 * kern/i386/dl.c: Use mod->symtab.
29788 * kern/powerpc/dl.c: Likewise.
29789 * kern/sparc64/dl.c: Likewise.
29790 * kern/x86_64/dl.c: Likewise.
29792 * conf/i386-qemu.rmk: New file.
29793 * kern/i386/qemu/startup.S: Likewise.
29794 * kern/i386/qemu/mmap.c: Likewise.
29795 * boot/i386/qemu/boot.S: Likewise.
29796 * include/grub/i386/qemu/time.h: Likewise.
29797 * include/grub/i386/qemu/serial.h: Likewise.
29798 * include/grub/i386/qemu/kernel.h: Likewise.
29799 * include/grub/i386/qemu/console.h: Likewise.
29800 * include/grub/i386/qemu/boot.h: Likewise.
29801 * include/grub/i386/qemu/init.h: Likewise.
29802 * include/grub/i386/qemu/machine.h: Likewise.
29803 * include/grub/i386/qemu/loader.h: Likewise.
29804 * include/grub/i386/qemu/memory.h: Likewise.
29806 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
29807 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
29808 [qemu] (pkglib_IMAGES): Add `boot.img'.
29809 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
29810 [qemu] (boot_img_FORMAT): New variables.
29811 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
29812 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
29813 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
29814 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
29815 [qemu] (kernel_img_FORMAT): New variables.
29817 * configure.ac: Recognise `i386-qemu'.
29819 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
29820 (for no compression).
29821 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
29822 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
29823 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
29824 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
29827 2009-06-27 Pavel Roskin <proski@gnu.org>
29829 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
29831 * efiemu/prepare32.c: Likewise.
29832 * efiemu/prepare64.c: Likewise.
29834 2009-06-26 Pavel Roskin <proski@gnu.org>
29836 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
29837 * include/grub/elf.h: Define symbols without "32" or "64" based
29838 on GRUB_TARGET_WORDSIZE.
29839 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
29840 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
29842 * efiemu/loadcore64.c: Likewise.
29843 * loader/i386/bsd32.c: Likewise.
29844 * loader/i386/bsd64.c: Likewise.
29845 * kern/dl.c: Remove own ELF definitions.
29846 * util/i386/efi/grub-mkimage.c: Likewise.
29848 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
29850 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
29851 segment 0x0 unconditionally, because the reference generated by
29852 GAS is an absolute address.
29854 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29856 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
29857 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
29859 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29861 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
29862 indexes. Check for -f explicitly.
29863 (search_file): Improve error message.
29864 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
29866 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29868 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
29869 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
29871 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29873 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
29874 * conf/i386-ieee1275.rmk: Likewise.
29875 * conf/i386-coreboot.rmk: Likewise.
29877 * kern/i386/pc/startup.S (grub_stop): Remove function.
29878 * kern/i386/ieee1275/startup.S: Likewise.
29879 * kern/i386/coreboot/startup.S: Likewise.
29880 * kern/i386/misc.S (grub_stop): New function.
29882 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29884 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
29885 * kern/i386/realmode.S (real_to_prot): ... to here.
29887 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29889 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
29891 (kernel_elf_SOURCES): Rename to ...
29892 (kernel_img_SOURCES): ... this.
29893 (kernel_elf_HEADERS): Rename to ...
29894 (kernel_img_HEADERS): ... this. Update all users.
29895 (kernel_elf_ASFLAGS): Rename to ...
29896 (kernel_img_ASFLAGS): ... this.
29897 (kernel_elf_CFLAGS): Rename to ...
29898 (kernel_img_CFLAGS): ... this.
29899 (kernel_elf_LDFLAGS): Rename to ...
29900 (kernel_img_LDFLAGS): ... this.
29901 * conf/i386-coreboot.rmk: Likewise.
29902 * conf/powerpc-ieee1275.rmk: Likewise.
29904 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
29907 2009-06-21 Pavel Roskin <proski@gnu.org>
29909 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
29910 to match nested functions.
29911 * loader/sparc64/ieee1275/linux.c: Likewise.
29913 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
29915 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
29917 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
29918 all i386 platforms.
29920 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
29922 Fix asm file handling on ELF, and remove workarounds.
29924 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
29925 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
29926 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
29927 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
29929 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
29931 Load BSD ELF modules
29933 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
29934 and loader/i386/bsd64.c
29935 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
29936 (FREEBSD_MODTYPE_ELF_MODULE): New definition
29937 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
29938 (grub_freebsd_load_elfmodule32): New declaration
29939 (grub_freebsd_load_elfmoduleobj64): Likewise
29940 (grub_freebsd_load_elf_meta32): Likewise
29941 (grub_freebsd_load_elf_meta64): Likewise
29942 (grub_freebsd_add_meta): Likewise
29943 (grub_freebsd_add_meta_module): Likewise
29944 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
29945 (grub_freebsd_add_meta_module): Likewise and move module-specific
29946 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
29947 (grub_cmd_freebsd): Add elf-kernel specific parts
29948 based on grub_freebsd_add_meta_module
29949 (grub_cmd_freebsd_module): Add type parsing moved from
29950 grub_freebsd_add_meta_module
29951 (grub_cmd_freebsd_module_elf): New function
29952 (cmd_freebsd_module_elf): New variable
29953 (GRUB_MOD_INIT): Register freebsd_module_elf
29954 * loader/i386/bsd32.c: New file
29955 * loader/i386/bsd64.c: Likewise
29956 * loader/i386/bsdXX.c: Likewise
29957 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
29958 (grub_elf64_load): Likewise
29959 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
29961 (grub_elf64_load_hook_t): Likewise
29963 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
29965 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
29967 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
29968 don't write a menu entry for recovery mode.
29970 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
29972 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
29973 after it's no longer needed.
29975 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
29977 * include/grub/i386/loader.h (grub_linux_prot_size)
29978 (grub_linux_tmp_addr, grub_linux_real_addr)
29979 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
29980 GRUB_MACHINE_PCBIOS.
29981 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
29982 common grub_util_info() call to ...
29983 (generate_image): ... here.
29984 Fix use of uninitialized memory, comparison of signed with
29985 unsigned integers and memory leak.
29986 Remove bogus module address message.
29988 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
29990 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
29992 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
29994 2009-06-19 Pavel Roskin <proski@gnu.org>
29996 * configure.ac: Remove stray AC_MSG_CHECKING.
29998 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
30000 * disk/scsi.c (grub_scsi_open): use continue instead of big if
30002 2009-06-18 Pavel Roskin <proski@gnu.org>
30004 * conf/common.rmk: Add fs_file.mod.
30005 * disk/fs_file.c: New file.
30006 * include/grub/disk.h (enum grub_disk_dev_id): Add
30007 GRUB_DISK_DEVICE_FILE_ID.
30009 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30011 Fix build with Apple's toolchain. Part 2
30013 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
30016 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30018 Fix build with Apple's toolchain. Part 1
30020 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
30022 * configure.ac: remove a leftover AC_MSG_RESULT
30023 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
30026 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30030 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
30031 (decomp_block): initialize ch
30032 use grub_memcpy instead of memcpy
30034 2009-06-17 Pavel Roskin <proski@gnu.org>
30036 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
30037 version, use declarations needed to use vga_text as the startup
30040 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
30041 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
30043 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
30044 and grub_at_keyboard_fini(), it's done on module load and
30047 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
30049 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
30050 file can't be found.
30051 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
30053 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
30055 Fix newline handling
30057 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
30058 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
30059 (grub_script_yylex): don't segfault on unterminated script
30060 newline terminates command and variable
30062 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
30064 avoid double grub_adjust_range call. Bug reported by David Simner
30066 * kern/disk.c (grub_disk_write): change to raw disk access before
30069 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
30071 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
30072 spaces, for the benefit of help2man.
30073 * util/i386/efi/grub-mkimage.c (usage): Likewise.
30075 2009-06-16 Pavel Roskin <proski@gnu.org>
30077 * kern/i386/halt.c: Include grub/machine/init.h.
30078 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
30080 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
30082 * util/grub.d/30_os-prober.in: Use ${root} in the generated
30083 drivemap menuentry.
30085 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
30087 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
30090 2009-06-16 Pavel Roskin <proski@gnu.org>
30092 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
30093 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
30094 save %dx, we only need %dl and we never change it.
30095 * boot/i386/pc/cdboot.S: Don't set the root drive.
30096 * boot/i386/pc/pxeboot.S: Likewise.
30097 * include/grub/i386/pc/boot.h: Remove
30098 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
30099 GRUB_BOOT_MACHINE_DRIVE_CHECK.
30100 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
30101 * kern/i386/pc/init.c (make_install_device): Remove references
30102 to grub_root_drive.
30103 * kern/i386/pc/startup.S: Likewise.
30104 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
30106 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
30110 * commands/xnu_uuid.c: new file
30111 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
30112 (xnu_uuid_mod_SOURCES): new variable
30113 (xnu_uuid_mod_CFLAGS): likewise
30114 (xnu_uuid_mod_LDFLAGS): likewise
30115 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
30116 * conf/i386-ieee1275.rmk: likewise
30117 * conf/i386-pc.rmk: likewise
30118 * conf/powerpc-ieee1275.rmk: likewise
30119 * conf/sparc64-ieee1275.rmk: likewise
30120 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
30122 2009-06-16 Pavel Roskin <proski@gnu.org>
30124 * configure.ac: Avoid '==' in test command, it's not portable.
30126 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
30130 * commands/probe.c: new file
30131 * conf/common.rmk (pkglib_MODULES): add probe.mod
30132 (probe_mod_SOURCES): new variable
30133 (probe_mod_CFLAGS): likewise
30134 (probe_mod_LDFLAGS): likewise
30135 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
30136 * conf/i386-ieee1275.rmk: likewise
30137 * conf/i386-pc.rmk: likewise
30138 * conf/powerpc-ieee1275.rmk: likewise
30139 * conf/sparc64-ieee1275.rmk: likewise
30141 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
30143 Fix handling of string like \"hello\" and "a
30146 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
30147 (grub_script_yylex): fix parsing of quoting, escaping and newline
30149 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
30151 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
30154 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
30156 * util/grub-mkconfig.in: Fix parsing of --output option.
30158 2009-06-12 Pavel Roskin <proski@gnu.org>
30160 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
30161 genmk.rb don't need to be generated or installed.
30163 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
30165 * commands/i386/pc/drivemap_int13h.S: add more comments
30167 2009-06-11 Pavel Roskin <proski@gnu.org>
30169 * Makefile.in (uninstall): Uninstall manuals.
30171 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
30172 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
30173 and update-grub_lib in two places.
30174 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
30176 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
30177 a compiler warning.
30179 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
30180 `entry_lo' to fix variable shadowing.
30182 2009-06-11 Christian Franke <franke@computer.org>
30184 * kern/misc.c (__enable_execute_stack): Add missing return type
30185 to prevent gcc warning.
30187 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
30189 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
30191 2009-06-11 Pavel Roskin <proski@gnu.org>
30193 * Makefile.in: Don't rely on any scripts being executable.
30194 Always use $(SHELL) to run shell scripts.
30196 * configure.ac: Always define ___main if using -nostdlib. This
30197 fixes tests on Cygwin.
30199 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
30203 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
30204 is in bytes and not in blocks
30206 2009-06-11 Pavel Roskin <proski@gnu.org>
30208 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
30211 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
30213 * util/grub.d/30_os-prober.in: Fix a comment. Source
30214 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
30215 to set the root device. Place drivemap command in the generated
30218 2009-06-11 Pavel Roskin <proski@gnu.org>
30220 * configure.ac: Remove host_m32. Issues with 64-bit utilities
30221 have long been resolved.
30223 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
30225 * util/grub.d/10_linux.in: Capitalise "Linux".
30227 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
30229 2009-06-11 Pavel Roskin <proski@gnu.org>
30231 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
30232 fix a gcc warning and ensure that the function won't ever exit.
30234 * kern/i386/ieee1275/init.c: Add missing prototype for
30235 grub_stop_floppy().
30237 * loader/ieee1275/multiboot2.c [__i386__]: Include
30238 grub/cpu/multiboot.h.
30240 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
30241 casts to short - they are not portable and cause warnings. Fix
30242 use of uninitialized values in input_buf. Use ARRAY_SIZE.
30244 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
30248 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
30250 (grub_get_root_biosnumber_saved): new variable
30251 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
30252 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
30253 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
30254 %dx after the call if necessary
30255 * conf/common.rmk (pkglib_MODULES): remove boot.mod
30256 (boot_mod_SOURCES): remove
30257 (boot_mod_CFLAGS): remove
30258 (boot_mod_LDFLAGS): remove
30259 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
30260 (boot_mod_SOURCES): new variable
30261 (boot_mod_CFLAGS): likewise
30262 (boot_mod_LDFLAGS): likewise
30263 * conf/i386-efi.rmk: likewise
30264 * conf/i386-ieee1275.rmk: likewise
30265 * conf/i386-pc.rmk: likewise
30266 * conf/powerpc-ieee1275.rmk: likewise
30267 * conf/sparc64-ieee1275.rmk: likewise
30268 * conf/x86_64-efi.rmk: likewise
30269 * include/grub/i386/pc/biosnum.h: new file
30270 * lib/i386/pc/biosnum.c: likewise
30271 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
30272 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
30273 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
30275 2009-06-10 Pavel Roskin <proski@gnu.org>
30277 * io/gzio.c (test_header): Don't reuse one buffer for all data.
30278 Use separate variables. Read only the file size at the end, but
30279 not the checksum that we don't use.
30281 * kern/file.c (grub_file_read): Use void pointer for the buffer.
30282 Adjust all callers.
30284 * kern/ieee1275/openfw.c: Remove libc includes.
30285 * kern/ieee1275/cmain.c: Likewise.
30286 * include/grub/ieee1275/ieee1275.h: Likewise.
30288 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
30291 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
30293 * Makefile.in: Remove all trailing whitespace.
30294 * conf/i386-pc.rmk: Likewise.
30295 * conf/powerpc-ieee1275.rmk: Likewise.
30296 * conf/sparc64-ieee1275.rmk: Likewise.
30297 * docs/grub.texi: Likewise.
30298 * docs/texinfo.tex: Likewise.
30299 * disk/fs_uuid.c: Likewise.
30300 * disk/lvm.c: Likewise.
30301 * disk/scsi.c: Likewise.
30302 * disk/ata.c: Likewise.
30303 * disk/ieee1275/ofdisk.c: Likewise.
30304 * disk/i386/pc/biosdisk.c: Likewise.
30305 * disk/host.c: Likewise.
30306 * disk/raid.c: Likewise.
30307 * disk/efi/efidisk.c: Likewise.
30308 * disk/usbms.c: Likewise.
30309 * disk/memdisk.c: Likewise.
30310 * disk/loopback.c: Likewise.
30311 * kern/powerpc/dl.c: Likewise.
30312 * kern/device.c: Likewise.
30313 * kern/dl.c: Likewise.
30314 * kern/sparc64/dl.c: Likewise.
30315 * kern/ieee1275/ieee1275.c: Likewise.
30316 * kern/term.c: Likewise.
30317 * kern/fs.c: Likewise.
30318 * kern/i386/dl.c: Likewise.
30319 * kern/i386/pc/startup.S: Likewise.
30320 * kern/i386/pc/init.c: Likewise.
30321 * kern/i386/pc/mmap.c: Likewise.
30322 * kern/i386/pc/lzo1x.S: Likewise.
30323 * kern/i386/ieee1275/init.c: Likewise.
30324 * kern/i386/realmode.S: Likewise.
30325 * kern/i386/tsc.c: Likewise.
30326 * kern/partition.c: Likewise.
30327 * kern/corecmd.c: Likewise.
30328 * kern/file.c: Likewise.
30329 * kern/efi/efi.c: Likewise.
30330 * kern/efi/init.c: Likewise.
30331 * kern/efi/mm.c: Likewise.
30332 * kern/main.c: Likewise.
30333 * kern/err.c: Likewise.
30334 * kern/env.c: Likewise.
30335 * kern/disk.c: Likewise.
30336 * kern/generic/millisleep.c: Likewise.
30337 * kern/generic/rtc_get_time_ms.c: Likewise.
30338 * kern/misc.c: Likewise.
30339 * kern/parser.c: Likewise.
30340 * genmk.rb: Likewise.
30341 * configure.ac: Likewise.
30342 * boot/i386/pc/diskboot.S: Likewise.
30343 * boot/i386/pc/pxeboot.S: Likewise.
30344 * boot/i386/pc/boot.S: Likewise.
30345 * boot/i386/pc/lnxboot.S: Likewise.
30346 * boot/i386/pc/cdboot.S: Likewise.
30347 * parttool/pcpart.c: Likewise.
30348 * video/readers/tga.c: Likewise.
30349 * video/video.c: Likewise.
30350 * video/bitmap.c: Likewise.
30351 * lib/envblk.c: Likewise.
30352 * lib/i386/setjmp.S: Likewise.
30353 * fs/xfs.c: Likewise.
30354 * fs/afs.c: Likewise.
30355 * fs/fat.c: Likewise.
30356 * fs/ntfs.c: Likewise.
30357 * fs/udf.c: Likewise.
30358 * fs/affs.c: Likewise.
30359 * fs/iso9660.c: Likewise.
30360 * fs/hfs.c: Likewise.
30361 * fs/fshelp.c: Likewise.
30362 * fs/ext2.c: Likewise.
30363 * fs/jfs.c: Likewise.
30364 * fs/reiserfs.c: Likewise.
30365 * fs/hfsplus.c: Likewise.
30366 * fs/minix.c: Likewise.
30367 * fs/cpio.c: Likewise.
30368 * fs/sfs.c: Likewise.
30369 * fs/ufs.c: Likewise.
30370 * efiemu/prepare.c: Likewise.
30371 * efiemu/loadcore_common.c: Likewise.
30372 * efiemu/runtime/efiemu.sh: Likewise.
30373 * efiemu/runtime/efiemu.S: Likewise.
30374 * efiemu/runtime/efiemu.c: Likewise.
30375 * efiemu/pnvram.c: Likewise.
30376 * efiemu/main.c: Likewise.
30377 * efiemu/i386/pc/cfgtables.c: Likewise.
30378 * efiemu/i386/loadcore64.c: Likewise.
30379 * efiemu/i386/loadcore32.c: Likewise.
30380 * efiemu/loadcore.c: Likewise.
30381 * efiemu/symbols.c: Likewise.
30382 * efiemu/mm.c: Likewise.
30383 * include/grub/autoefi.h: Likewise.
30384 * include/grub/datetime.h: Likewise.
30385 * include/grub/term.h: Likewise.
30386 * include/grub/hfs.h: Likewise.
30387 * include/grub/lvm.h: Likewise.
30388 * include/grub/i386/tsc.h: Likewise.
30389 * include/grub/i386/linux.h: Likewise.
30390 * include/grub/i386/xnu.h: Likewise.
30391 * include/grub/i386/efiemu.h: Likewise.
30392 * include/grub/i386/pc/biosdisk.h: Likewise.
30393 * include/grub/i386/pc/memory.h: Likewise.
30394 * include/grub/i386/pc/vbe.h: Likewise.
30395 * include/grub/parttool.h: Likewise.
30396 * include/grub/video.h: Likewise.
30397 * include/grub/memory.h: Likewise.
30398 * include/grub/fs.h: Likewise.
30399 * include/grub/partition.h: Likewise.
30400 * include/grub/xnu.h: Likewise.
30401 * include/grub/efi/api.h: Likewise.
30402 * include/grub/efi/pe32.h: Likewise.
30403 * include/grub/efi/memory.h: Likewise.
30404 * include/grub/multiboot.h: Likewise.
30405 * include/grub/usbdesc.h: Likewise.
30406 * include/grub/multiboot2.h: Likewise.
30407 * include/grub/acpi.h: Likewise.
30408 * include/grub/efiemu/efiemu.h: Likewise.
30409 * include/grub/disk.h: Likewise.
30410 * include/grub/ieee1275/ieee1275.h: Likewise.
30411 * include/grub/net.h: Likewise.
30412 * include/grub/machoload.h: Likewise.
30413 * include/grub/macho.h: Likewise.
30414 * include/multiboot.h: Likewise.
30415 * genmoddep.awk: Likewise.
30416 * normal/main.c: Likewise.
30417 * normal/menu_entry.c: Likewise.
30418 * normal/menu_viewer.c: Likewise.
30419 * normal/completion.c: Likewise.
30420 * normal/cmdline.c: Likewise.
30421 * normal/misc.c: Likewise.
30422 * normal/datetime.c: Likewise.
30423 * bus/usb/usbtrans.c: Likewise.
30424 * bus/usb/ohci.c: Likewise.
30425 * bus/usb/uhci.c: Likewise.
30426 * bus/usb/usb.c: Likewise.
30427 * mmap/efi/mmap.c: Likewise.
30428 * mmap/i386/pc/mmap_helper.S: Likewise.
30429 * mmap/i386/pc/mmap.c: Likewise.
30430 * mmap/i386/mmap.c: Likewise.
30431 * mmap/i386/uppermem.c: Likewise.
30432 * mmap/mmap.c: Likewise.
30433 * commands/acpi.c: Likewise.
30434 * commands/echo.c: Likewise.
30435 * commands/blocklist.c: Likewise.
30436 * commands/loadenv.c: Likewise.
30437 * commands/usbtest.c: Likewise.
30438 * commands/boot.c: Likewise.
30439 * commands/parttool.c: Likewise.
30440 * commands/search.c: Likewise.
30441 * commands/cat.c: Likewise.
30442 * commands/i386/pc/play.c: Likewise.
30443 * commands/i386/pc/drivemap.c: Likewise.
30444 * commands/i386/pc/vbeinfo.c: Likewise.
30445 * commands/i386/pc/acpi.c: Likewise.
30446 * commands/i386/pc/vbetest.c: Likewise.
30447 * commands/ls.c: Likewise.
30448 * commands/cmp.c: Likewise.
30449 * commands/test.c: Likewise.
30450 * commands/efi/acpi.c: Likewise.
30451 * commands/gptsync.c: Likewise.
30452 * commands/help.c: Likewise.
30453 * partmap/amiga.c: Likewise.
30454 * partmap/apple.c: Likewise.
30455 * partmap/acorn.c: Likewise.
30456 * partmap/pc.c: Likewise.
30457 * partmap/sun.c: Likewise.
30458 * partmap/gpt.c: Likewise.
30459 * script/sh/lexer.c: Likewise.
30460 * script/sh/function.c: Likewise.
30461 * font/font.c: Likewise.
30462 * font/font_cmd.c: Likewise.
30463 * loader/powerpc/ieee1275/linux.c: Likewise.
30464 * loader/efi/chainloader.c: Likewise.
30465 * loader/multiboot_loader.c: Likewise.
30466 * loader/macho.c: Likewise.
30467 * loader/i386/multiboot.c: Likewise.
30468 * loader/i386/linux.c: Likewise.
30469 * loader/i386/pc/linux.c: Likewise.
30470 * loader/i386/pc/multiboot2.c: Likewise.
30471 * loader/i386/pc/chainloader.c: Likewise.
30472 * loader/i386/pc/xnu.c: Likewise.
30473 * loader/i386/bsd_trampoline.S: Likewise.
30474 * loader/i386/efi/linux.c: Likewise.
30475 * loader/i386/multiboot_elfxx.c: Likewise.
30476 * loader/i386/bsd_helper.S: Likewise.
30477 * loader/i386/bsd.c: Likewise.
30478 * loader/i386/linux_trampoline.S: Likewise.
30479 * loader/i386/xnu_helper.S: Likewise.
30480 * loader/i386/xnu.c: Likewise.
30481 * loader/i386/bsd_pagetable.c: Likewise.
30482 * loader/i386/multiboot_helper.S: Likewise.
30483 * loader/xnu.c: Likewise.
30484 * loader/xnu_resume.c: Likewise.
30485 * io/gzio.c: Likewise.
30486 * term/efi/console.c: Likewise.
30487 * term/terminfo.c: Likewise.
30488 * term/ieee1275/ofconsole.c: Likewise.
30489 * term/i386/pc/serial.c: Likewise.
30490 * term/i386/pc/vesafb.c: Likewise.
30491 * term/i386/pc/vga.c: Likewise.
30492 * term/usb_keyboard.c: Likewise.
30493 * term/gfxterm.c: Likewise.
30494 * aclocal.m4: Likewise.
30495 * util/lvm.c: Likewise.
30496 * util/grub.d/30_os-prober.in: Likewise.
30497 * util/grub.d/10_hurd.in: Likewise.
30498 * util/console.c: Likewise.
30499 * util/grub-macho2img.c: Likewise.
30500 * util/grub-probe.c: Likewise.
30501 * util/hostfs.c: Likewise.
30502 * util/i386/pc/grub-mkimage.c: Likewise.
30503 * util/i386/pc/grub-setup.c: Likewise.
30504 * util/i386/efi/grub-mkimage.c: Likewise.
30505 * util/grub-mkconfig.in: Likewise.
30506 * util/raid.c: Likewise.
30507 * util/resolve.c: Likewise.
30508 * util/grub-mkdevicemap.c: Likewise.
30509 * util/grub-emu.c: Likewise.
30510 * util/getroot.c: Likewise.
30511 * util/hostdisk.c: Likewise.
30512 * util/usb.c: Likewise.
30513 * util/grub-editenv.c: Likewise.
30514 * util/misc.c: Likewise.
30516 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
30518 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
30519 `genparttoollist.sh'.
30520 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
30521 Add `*.sh' to the list find searches for and change `mdate.sh'
30524 2009-06-10 Pavel Roskin <proski@gnu.org>
30526 * include/grub/multiboot2.h: Provide compatibility defines for
30528 * include/multiboot2.h: Include stdint.h only if needed, using
30530 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
30532 * loader/ieee1275/multiboot2.c: Likewise.
30533 * loader/multiboot2.c: Likewise.
30534 * loader/multiboot_loader.c: Likewise.
30536 * configure.ac: Use -nostdlib when probing for the target. It
30537 should not be required to have libc for the target.
30539 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
30540 they fail without libc headers for the target.
30541 * include/grub/powerpc/libgcc.h: Use weak attribute for all
30543 * include/grub/sparc64/libgcc.h: Likewise. Don't use
30544 preprocessor conditionals.
30546 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
30547 build system doesn't need to be aware of the tar.c internals.
30549 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
30551 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
30553 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
30555 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
30556 disk limit to 26 for IDE, Virtio, Xen and SCSI.
30558 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
30560 * util/i386/pc/grub-install.in: Change the error message if UUIDs
30561 aren't available if ata.mod gets used.
30563 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
30565 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
30566 initialising controller.
30567 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
30569 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30571 * util/i386/pc/grub-install.in: Add a parameter --disk-module
30572 to choose between ata and biosdisk module on i386-pc.
30574 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
30576 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
30577 Subclass and Programming Interface fields in terms of the 3 byte
30578 Class Code register.
30579 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
30581 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
30582 interface is OHCI. Add grub_dprintf for symmetry with
30584 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
30585 interface is UHCI. Add interf variable for programming
30586 interface. Print interface with class/subclass.
30588 * bus/usb/ohci.c: Set interf with correct field.
30590 * bus/usb/uhci.c: Remove unneeded doubled lines.
30591 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
30592 Remove whitespace inside comment.
30594 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
30596 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
30597 as fallback an equivalent option without depth.
30599 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
30601 Not fail if unable to retrieve C/H/S on LBA disks
30603 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
30604 if unable to retrieve C/H/S on LBA disks
30606 2009-06-08 Pavel Roskin <proski@gnu.org>
30608 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
30611 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30613 * Makefile.in (uninstall): Remove all $lib_DATA files.
30615 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
30617 Bugfix: install on partitionless device
30619 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
30622 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30624 * Makefile.in (uninstall): Remove all $include_DATA files.
30626 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30628 * commands/true.c: New file. Implement the true and false commands.
30629 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
30630 (true_mod_SOURCES): New variable.
30631 (true_mod_CFLAGS): Likewise.
30632 (true_mod_LDFLAGS): Likewise.
30634 2009-06-05 Colin D Bennett <colin@gibibit.com>
30636 Optimized font character lookup using binary search instead of linear
30637 search. Fonts now are required to have the character index ordered by
30640 * font/font.c (load_font_index): Verify that fonts have ordered
30642 (find_glyph): Use binary search instead of linear search to find a
30643 character in a font.
30645 2009-06-05 Michael Scherer <misc@mandriva.org>
30647 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
30648 uses case sensitive btree.
30649 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
30650 only for case insensitive filesystems.
30652 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
30654 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
30655 * conf/common.rmk (search_mod_CFLAGS): likewise
30657 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30659 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
30660 compensate a compiler bug
30662 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30664 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
30667 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30669 Definitions for creating asm symbols with Apple's CC
30671 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
30672 [APPLE_CC] (VARIABLE): likewise
30674 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30676 Disable lnxboot.img when compiled
30679 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
30680 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
30681 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
30682 [! APPLE_CC] (CODE_LENG): skip
30683 [! APPLE_CC] (setup_sects): likewise
30684 [! APPLE_CC]: skip filling
30686 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30688 Address in trampolines based on 32-bit registers when compiled
30691 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
30693 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
30695 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30697 Avoid aliases when compiling with Apple's CC for PCBIOS machine
30699 * kern/misc.c [APPLE_CC] (memcpy): new function
30700 [APPLE_CC] (memmove): likewise
30701 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
30702 (memcpy): define alias conditionally on !APPLE_CC
30705 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
30706 APPLE_CC are defined
30707 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
30708 (grub_assert_fail): make prototype conditional
30710 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30712 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
30714 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
30716 (CLEANFILES): add grub-macho2img
30717 (grub_macho2img_SOURCES): new variable
30718 * kern/i386/pc/startup.S (bss_start): new variable
30719 (bss_end): likewise
30720 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
30721 * util/grub-macho2img.c: new file
30723 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30725 Use objconv when compiling with Apple's CC
30727 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
30728 (efiemu64.o): likewise
30729 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
30730 when compiling with Apple's CC
30731 (efiemu64_s.o): likewise
30732 * configure.ac: check for objconv when compiling with Apple's CC
30733 * genmk.rb: use objconv for modules when compiled with Apple's CC
30735 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30737 Define segment as well as section when compiling with
30740 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
30741 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
30742 (efiemu_convert_pointer): likewise
30743 (efiemu_set_virtual_address_map): likewise
30744 (efiemu_convert_pointer): likewise
30745 (efiemu_getcrc32): likewise
30746 (init_crc32_table): likewise
30747 (reflect): likewise
30748 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
30749 (GRUB_MOD_DEP): likewise
30751 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30753 Allow a compilation without -mcmodel=large
30755 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
30756 when compiled without -mcmodel=large
30757 (filter_memory_map): remove memory post 4 GiB when compiled
30758 without -mcmodel=large
30759 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
30760 TARGET_CFLAGS when -mcmodel=large isn't supported
30762 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30764 Remove nested functions in efiemu core
30766 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
30768 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30770 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
30772 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
30774 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
30776 (grub_cpu_is_tsc_supported): likewise
30777 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
30779 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30781 Absolute addressing through constant with Apple's cc
30783 * kern/i386/pc/startup.S: Define necessary constants
30784 and address through it when using ABS with Apple's CC
30785 * boot/i386/pc/diskboot.S: likewise
30786 * boot/i386/pc/boot.S: likewise
30787 * boot/i386/pc/lnxboot.S: likewise
30788 * boot/i386/pc/cdboot.S: likewise
30789 * mmap/i386/pc/mmap_helper.S: likewise
30790 * commands/i386/pc/drivemap_int13h.S: likewise
30792 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30794 Check if compiler is apple cc
30796 * Makefile.in (ASFLAGS): new variable
30797 (TARGET_ASFLAGS): likewise
30798 (TARGET_MODULE_FORMAT): likewise
30799 (TARGET_APPLE_CC): likewise
30800 (OBJCONV): likewise
30801 (TARGET_IMG_CFLAGS): likewise
30802 (TARGET_CPPFLAGS): add includedir
30803 * configure.ac: call grub_apple_cc and grub_apple_target_cc
30804 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
30805 Check for linker script only if compiler isn't Apple's CC
30806 (TARGET_MODULE_FORMAT): set
30807 (TARGET_APPLE_CC): likewise
30808 (TARGET_ASFLAGS): likewise
30809 (ASFLAGS): likewise
30810 Check for objcopy only if compiler isn't Apple's CC
30811 Check for BSS symbol only if compiler isn't Apple's CC
30812 * genmk.rb: adapt nm options if we use Apple's utils
30813 * aclocal.m4 (grub_apple_cc): new test
30814 (grub_apple_target_cc): likewise
30816 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30818 Simplify sed expressions and improve awk
30820 * Makefile.in (install-local): simplify sed expression
30821 * gencmdlist.sh: likewise
30822 * genmoddep.awk: avoid adding module as a dependency of itself
30824 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30826 Add missing start symbols
30828 * boot/i386/pc/boot.S: add start
30829 * boot/i386/pc/pxeboot.S: likewise
30831 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30833 Fix wrong assumptions with grub-mkimage on EFI
30835 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
30836 (relocate_addresses): consider both r_addend and value at offset
30837 (make_mods_section): zerofill modinfo and header
30838 (convert_elf): write prefix here
30840 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30842 Use .asciz instead of .string
30844 * i386/pc/diskboot.S: use .asciz instead of .string
30845 * i386/pc/boot.S: likewise
30846 * include/grub/dl.h (GRUB_MOD_DEP): likewise
30847 (GRUB_MOD_NAME): likewise
30849 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30853 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
30854 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
30855 (grub_video_setup): remove
30856 (grub_video_set_mode): new prototype
30857 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
30859 (linux_vesafb_res): compile only on PCBIOS
30860 (grub_linux_boot): support gfxpayload
30861 * loader/i386/pc/xnu.c (video_hook): new function
30862 (grub_xnu_set_video): support gfxpayload
30863 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
30864 (DEFAULT_VIDEO_HEIGHT): likewise
30865 (DEFAULT_VIDEO_FLAGS): likewise
30866 (DEFAULT_VIDEO_MODE): new definition
30867 (video_hook): new function
30868 (grub_gfxterm_init): use grub_video_set_mode
30869 * util/grub.d/30_os-prober.in: remove explicit modesetting before
30871 * video/video.c (grub_video_setup): removed
30872 (grub_video_set_mode): new function based on grub_gfxterm_init and
30875 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30877 Avoid calling biosdisk in drivemap
30879 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
30880 (revparse_biosdisk): likewise
30881 (list_mappings): derive name from id directly
30882 (grub_cmd_drivemap): use tryparse_diskstring
30884 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30888 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
30889 (grub_lexer_param): add tokenonhold
30890 (grub_script_create_cmdline): remove cmdline. All callers updated
30891 (grub_script_function_create): make functionname
30892 grub_script_arg. All callers updated
30893 (grub_script_execute_argument_to_string): new prototype
30894 * kern/parser.c (state_transitions): reorder
30895 (grub_parser_cmdline_state): fix a bug and make more compact
30896 * script/sh/execute.c (grub_script_execute_argument_to_string):
30898 (grub_script_execute_cmdline): use new format
30899 * script/sh/function.c (grub_script_function_create): make functionname
30900 grub_script_arg. All callers updated
30901 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
30902 (grub_script_yylex): remove
30903 (grub_script_yylex2): renamed to ...
30904 (grub_script_yylex): ...renamed
30905 parse the expressions like a${b}c
30906 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
30907 (GRUB_PARSER_TOKEN_VAR): remove
30908 (GRUB_PARSER_TOKEN_NAME): likewise
30909 ("if"): declare as typeless
30910 ("while"): likewise
30911 ("function"): likewise
30916 (argument): likewise
30917 (script): accept empty scripts and make exit on error
30918 (arguments): use GRUB_PARSER_TOKEN_ARG
30919 (function): likewise
30920 (command): move error handling to script
30921 (menuentry): move grub_script_lexer_ref before
30922 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
30923 argument. All callers updated
30925 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
30927 Prevent GRUB from probing floppies during boot.
30929 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
30930 * commands/search.c (options): Add --no-floppy.
30931 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
30932 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
30933 --no-floppy when searching for UUIDs.
30935 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
30937 Simplify the code duplication in commands/search.c.
30939 * commands/search.c (search_label, search_fs_uuid): Merge into ...
30940 (search_fs): ... this. Update all users.
30942 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
30944 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
30946 2009-05-28 Pavel Roskin <proski@gnu.org>
30948 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
30949 Remove the original symlink explicitly.
30951 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
30952 just one slash. That's how grub_fshelp_find_file() does it.
30954 2009-05-26 Pavel Roskin <proski@gnu.org>
30956 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
30959 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
30962 2009-05-25 Christian Franke <franke@computer.org>
30964 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
30966 (grub_atapi_identify): Add wait after drive select.
30967 (grub_ata_identify): Do more strict status register check before
30968 calling grub_atapi_identify (). Suppress error message if status
30969 register is 0x00 after command failure. Add status register
30970 check after PIO read to avoid bogus identify due to stuck DRQ.
30971 Thanks to Pavel Roskin for testing.
30972 (grub_device_initialize): Remove unsafe status register check.
30973 Thanks to 'phcoder' for problem report and patch.
30974 Prevent sign extension in debug message.
30976 2009-05-23 Colin D Bennett <colin@gibibit.com>
30978 Cleaned up `include/grub/normal.h'. Grouped prototypes by
30979 definition file, and functions defined in `normal/menu.c' have had
30980 their prototypes moved to `include/grub/menu.h' for consistency.
30982 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
30984 (grub_menu_get_entry): Likewise.
30985 (grub_menu_get_timeout): Likewise.
30986 (grub_menu_set_timeout): Likewise.
30987 (grub_menu_execute_entry): Likewise.
30988 (grub_menu_execute_with_fallback): Likewise.
30989 (grub_menu_entry_run): Likewise.
30991 * include/grub/normal.h: Re-ordered and grouped function
30992 prototypes by file that the function is defined in.
30993 (grub_menu_execute_callback): Removed; moved to menu.h.
30994 (grub_menu_get_entry): Likewise.
30995 (grub_menu_get_timeout): Likewise.
30996 (grub_menu_set_timeout): Likewise.
30997 (grub_menu_execute_entry): Likewise.
30998 (grub_menu_execute_with_fallback): Likewise.
30999 (grub_menu_entry_run): Likewise.
31000 (grub_menu_addentry): Renamed from this ...
31001 (grub_normal_add_menu_entry): ... to this.
31003 * normal/main.c (grub_menu_addentry): Renamed from this ...
31004 (grub_normal_add_menu_entry): ... to this.
31006 * script/sh/execute.c (grub_script_execute_menuentry): Update
31007 reference to renamed grub_menu_addentry function.
31009 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
31011 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
31013 2009-05-22 Pavel Roskin <proski@gnu.org>
31015 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
31016 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
31017 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
31018 compiling for the i386 targets, but not for the utilities.
31020 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
31022 (grub_root_drive): Likewise.
31023 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
31025 (grub_root_drive): Change size to byte.
31026 (grub_start_addr): Remove.
31027 (grub_end_addr): Likewise.
31028 (grub_apm_bios_info): Likewise.
31030 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
31032 * normal/i386: Remove.
31033 * normal/powerpc: Likewise.
31034 * normal/sparc64: Likewise.
31035 * normal/x86_64: Likewise.
31037 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
31039 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
31040 * loader/i386/linux_trampoline.S: Fix indentation
31041 * loader/i386/xnu_helper.S: Likewise
31043 2009-05-18 Colin D Bennett <colin@gibibit.com>
31045 Display error messages when parsing a Lua statement fails.
31046 Previously, executing a syntactically invalid statement like
31047 ")foo" or "bar;" would silently fail.
31049 * script/lua/grub_main.c (handle_lua_error): New function.
31050 (grub_lua_parse_line): Improved reporting of Lua parser and
31053 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
31055 Remove -Werror which causes build to fail on some systems
31057 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
31058 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
31059 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
31061 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
31063 trampoline for linux on 64-bit platform
31065 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
31066 loader/i386/efi/linux_trampoline.S
31067 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
31069 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
31071 * loader/i386/linux_trampoline.S: moved here
31072 * loader/i386/efi/linux.c (allocate_pages): reserve space for
31074 (jumpvector): removed
31075 (grub_linux_trampoline_start): new declaration
31076 (grub_linux_trampoline_end): likewise
31077 (grub_linux_boot): use trampoline when on 64-bit platform
31078 * loader/i386/linux.c: likewise
31080 2009-05-16 Pavel Roskin <proski@gnu.org>
31082 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
31083 const to avoid a warning.
31084 (grub_lua_setenv): Likewise.
31085 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
31086 lmsg to fix a warning.
31088 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
31090 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
31091 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31092 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
31093 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31094 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
31095 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31096 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
31097 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31099 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
31101 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
31103 2009-05-16 Bean <bean123ch@gmail.com>
31105 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
31106 (lua_mod_SOURCES): New variable.
31107 (lua_mod_CFLAGS): Likewise.
31108 (lua_mod_LDFLAGS): Likewise.
31110 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
31111 (setjmp_mod_SOURCES): New variable.
31112 (setjmp_mod_CFLAGS): Likewise.
31113 (setjmp_LDFLAGS): Likewise.
31115 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
31116 (setjmp_mod_SOURCES): New variable.
31117 (setjmp_mod_CFLAGS): Likewise.
31118 (setjmp_LDFLAGS): Likewise.
31120 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
31121 (setjmp_mod_SOURCES): New variable.
31122 (setjmp_mod_CFLAGS): Likewise.
31123 (setjmp_LDFLAGS): Likewise.
31125 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
31126 (setjmp_mod_SOURCES): New variable.
31127 (setjmp_mod_CFLAGS): Likewise.
31128 (setjmp_LDFLAGS): Likewise.
31130 * normal/i386/setjmp.S: Moved from here ...
31131 * lib/i386/setjmp.S: ... Moved here
31132 * normal/x86_64/setjmp.S: Moved from here ...
31133 * lib/x86_64/setjmp.S: ... Moved here
31134 * normal/powerpc/setjmp.S: Moved from here ...
31135 * lib/powerpc/setjmp.S: ... Moved here
31136 * normal/sparc64/setjmp.S: Moved from here ...
31137 * lib/sparc64/setjmp.S: ... Moved here
31139 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
31140 returns_twice in mingw.
31142 * script/lua/grub_lib.c: New file.
31143 * script/lua/grub_lib.h: Likewise.
31144 * script/lua/grub_lua.h: Likewise.
31145 * script/lua/grub_main.c: Likewise.
31146 * script/lua/lapi.c: Likewise.
31147 * script/lua/lapi.h: Likewise.
31148 * script/lua/lauxlib.c: Likewise.
31149 * script/lua/lauxlib.h: Likewise.
31150 * script/lua/lbaselib.c: Likewise.
31151 * script/lua/lcode.c: Likewise.
31152 * script/lua/lcode.h: Likewise.
31153 * script/lua/ldblib.c: Likewise.
31154 * script/lua/ldebug.c: Likewise.
31155 * script/lua/ldebug.h: Likewise.
31156 * script/lua/ldo.c: Likewise.
31157 * script/lua/ldo.h: Likewise.
31158 * script/lua/ldump.c: Likewise.
31159 * script/lua/lfunc.c: Likewise.
31160 * script/lua/lfunc.h: Likewise.
31161 * script/lua/lgc.c: Likewise.
31162 * script/lua/lgc.h: Likewise.
31163 * script/lua/linit.c: Likewise.
31164 * script/lua/liolib.c: Likewise.
31165 * script/lua/llex.c: Likewise.
31166 * script/lua/llex.h: Likewise.
31167 * script/lua/llimits.h: Likewise.
31168 * script/lua/lmathlib.c: Likewise.
31169 * script/lua/lmem.c: Likewise.
31170 * script/lua/lmem.h: Likewise.
31171 * script/lua/loadlib.c: Likewise.
31172 * script/lua/lobject.c: Likewise.
31173 * script/lua/lobject.h: Likewise.
31174 * script/lua/lopcodes.c: Likewise.
31175 * script/lua/lopcodes.h: Likewise.
31176 * script/lua/loslib.c: Likewise.
31177 * script/lua/lparser.c: Likewise.
31178 * script/lua/lparser.h: Likewise.
31179 * script/lua/lstate.c: Likewise.
31180 * script/lua/lstate.h: Likewise.
31181 * script/lua/lstring.c: Likewise.
31182 * script/lua/lstring.h: Likewise.
31183 * script/lua/lstrlib.c: Likewise.
31184 * script/lua/ltable.c: Likewise.
31185 * script/lua/ltable.h: Likewise.
31186 * script/lua/ltablib.c: Likewise.
31187 * script/lua/ltm.c: Likewise.
31188 * script/lua/ltm.h: Likewise.
31189 * script/lua/lua.h: Likewise.
31190 * script/lua/luaconf.h: Likewise.
31191 * script/lua/lualib.h: Likewise.
31192 * script/lua/lundump.c: Likewise.
31193 * script/lua/lundump.h: Likewise.
31194 * script/lua/lvm.c: Likewise.
31195 * script/lua/lvm.h: Likewise.
31196 * script/lua/lzio.c: Likewise.
31197 * script/lua/lzio.h: Likewise.
31199 2009-05-16 Bean <bean123ch@gmail.com>
31201 * include/grub/kernel.h (grub_module_header_types): Add type
31204 * kern/main.c (grub_load_config): New function.
31205 (grub_main): Call grub_load_config to read boot config.
31207 * grub-mkimage (generate_image): New parameter config_path.
31208 (options): New option --config.
31209 (main): Parse --config option, and pass it to generate_image.
31211 2009-05-14 Christian Franke <franke@computer.org>
31213 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
31214 This fixes build on Cygwin.
31216 2009-05-14 Pavel Roskin <proski@gnu.org>
31218 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
31219 jump. This saves two bytes, so the typical case of 2 swapped
31220 drives would fit 32 bytes.
31222 2009-05-13 Pavel Roskin <proski@gnu.org>
31224 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
31225 grub_uint32_t to avoid a warning.
31227 * loader/i386/linux.c (allocate_pages): When assigning
31228 real_mode_mem, cast through grub_size_t to fix a warning. The
31229 code already makes sure that the value would fit a pointer.
31230 (grub_linux_setup_video): Cast render_target->data to
31231 grub_size_t to fix a warning.
31233 2009-05-13 Javier Martín <lordhabbit@gmail.com>
31235 * commands/i386/pc/drivemap.c: New file - implement drivemap
31237 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
31238 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
31240 2009-05-13 Pavel Roskin <proski@gnu.org>
31242 * util/i386/pc/grub-setup.c (setup): Remove unused variable
31243 embedding_area_exists.
31245 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
31247 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
31248 it easier to understand / work with.
31249 Improve warning messages for cases where there's no embedding area,
31250 or when it is too small (or core.img too large).
31252 2009-05-13 Pavel Roskin <proski@gnu.org>
31254 * loader/i386/pc/multiboot2.c: Add necessary includes for
31255 grub_multiboot2_real_boot().
31257 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
31258 PX record is always little-endian. We only need the lower 2
31261 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
31262 facilitate code reuse.
31263 (grub_cpio_mount): Use "struct head", not a char buffer. This
31264 fixes a warning reported by gcc 4.4.
31266 * kernel/disk.c (grub_disk_read): Use void pointer for the
31268 (grub_disk_write): Use const void pointer for the buffer.
31269 Adjust all callers. Remove unnecessary casts.
31271 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
31273 * util/i386/pc/grub-install.in: Update copyright year.
31275 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
31279 * commands/gptsync.c: new file
31280 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
31281 (gptsync_mod_SOURCES): new variable
31282 (gptsync_mod_CFLAGS): likewise
31283 (gptsync_mod_LDFLAGS): likewise
31284 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
31286 (GRUB_PC_PARTITION_TYPE_HFS): likewise
31287 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
31288 * conf/i386-ieee1275.rmk: likewise
31289 * conf/i386-pc.rmk: likewise
31290 * conf/powerpc-ieee1275.rmk: likewise
31292 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
31296 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
31297 (grub_dl_ref): likewise
31299 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
31301 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
31302 split in two functions (one for msdos and one for gpt).
31304 2009-05-08 Pavel Roskin <proski@gnu.org>
31306 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
31309 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
31310 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
31311 Initialize them with -1. Add sanity check for bad1. Eliminate
31314 2009-05-08 David S. Miller <davem@davemloft.net>
31316 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
31318 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
31320 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
31323 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
31325 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
31326 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
31328 2009-05-05 David S. Miller <davem@davemloft.net>
31330 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
31332 2009-05-05 Pavel Roskin <proski@gnu.org>
31334 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
31335 of grub_dl_ref() and grub_dl_unref().
31336 * commands/parttool.c: Remove preprocessor conditionals around
31337 grub_dl_ref() and grub_dl_unref().
31338 * fs/affs.c: Likewise.
31339 * fs/afs.c: Likewise.
31340 * fs/cpio.c: Likewise.
31341 * fs/ext2.c: Likewise.
31342 * fs/fat.c: Likewise.
31343 * fs/hfs.c: Likewise.
31344 * fs/hfsplus.c: Likewise.
31345 * fs/iso9660.c: Likewise.
31346 * fs/jfs.c: Likewise.
31347 * fs/minix.c: Likewise.
31348 * fs/ntfs.c: Likewise.
31349 * fs/reiserfs.c: Likewise.
31350 * fs/sfs.c: Likewise.
31351 * fs/udf.c: Likewise.
31352 * fs/ufs.c: Likewise.
31353 * fs/xfs.c: Likewise.
31354 * include/grub/dl.h: Likewise.
31355 * loader/xnu.c: Likewise.
31357 2009-05-04 Pavel Roskin <proski@gnu.org>
31359 * commands/acpi.c: Remove unused variable my_mod.
31360 * partmap/amiga.c: Likewise.
31361 * partmap/apple.c: Likewise.
31362 * partmap/gpt.c: Likewise.
31363 * partmap/pc.c: Likewise.
31364 * partmap/sun.c: Likewise.
31365 * term/gfxterm.c: Likewise.
31366 * term/i386/pc/vesafb.c: Likewise.
31367 * term/i386/pc/vga.c: Likewise.
31369 2009-05-04 David S. Miller <davem@davemloft.net>
31371 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
31372 pointer args to grub_ieee1275_get_property().
31374 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
31376 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
31377 devices, and do not traverse down under controller nodes.
31379 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
31380 (grub_ofdisk_open): Use it to un-escape "," characters.
31381 * kern/disk.c (find_part_sep): New.
31382 (grub_disk_open): Use it to find the first non-escaped ','
31383 character in the disk name.
31384 * util/ieee1275/devicemap.c (escape_of_path): New.
31385 (grub_util_emit_devicemap_entry): Use it.
31386 * util/sparc64/ieee1275/grub-install.in: Update script to
31387 strip partition specifiers properly by not triggering on
31388 '\' escaped ',' characters.
31390 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31392 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
31394 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
31396 (linux_vesafb_modes): Add a lot of additional modes to the list (based
31397 on documentation from Wikipedia).
31399 2009-05-04 Pavel Roskin <proski@gnu.org>
31401 * disk/ata.c: Spelling fixes.
31402 * disk/raid.c: Likewise.
31403 * disk/usbms.c: Likewise.
31404 * disk/dmraid_nvidia.c: Likewise.
31405 * kern/ieee1275/openfw.c: Likewise.
31406 * kern/ieee1275/init.c: Likewise.
31407 * kern/ieee1275/cmain.c: Likewise.
31408 * boot/i386/pc/cdboot.S: Likewise.
31409 * video/readers/png.c: Likewise.
31410 * video/i386/pc/vbe.c: Likewise.
31411 * fs/udf.c: Likewise.
31412 * fs/hfs.c: Likewise.
31413 * fs/reiserfs.c: Likewise.
31414 * efiemu/runtime/efiemu.c: Likewise.
31415 * efiemu/main.c: Likewise.
31416 * efiemu/mm.c: Likewise.
31417 * include/grub/elf.h: Likewise.
31418 * include/grub/xnu.h: Likewise.
31419 * include/grub/usbdesc.h: Likewise.
31420 * include/grub/usb.h: Likewise.
31421 * include/grub/script_sh.h: Likewise.
31422 * include/grub/lib/LzmaEnc.h: Likewise.
31423 * include/grub/efiemu/efiemu.h: Likewise.
31424 * include/grub/command.h: Likewise.
31425 * normal/menu.c: Likewise.
31426 * normal/main.c: Likewise.
31427 * normal/datetime.c: Likewise.
31428 * bus/usb/uhci.c: Likewise.
31429 * mmap/i386/uppermem.c: Likewise.
31430 * mmap/mmap.c: Likewise.
31431 * commands/acpi.c: Likewise.
31432 * commands/test.c: Likewise.
31433 * partmap/apple.c: Likewise.
31434 * font/font.c: Likewise.
31435 * loader/sparc64/ieee1275/linux.c: Likewise.
31436 * loader/macho.c: Likewise.
31437 * loader/i386/bsd_trampoline.S: Likewise.
31438 * loader/i386/bsd.c: Likewise.
31439 * loader/xnu.c: Likewise.
31440 * term/i386/pc/vesafb.c: Likewise.
31441 * term/usb_keyboard.c: Likewise.
31442 * util/resolve.c: Likewise.
31443 * util/getroot.c: Likewise.
31445 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
31447 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
31449 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31451 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
31454 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31456 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
31457 parameter only available on BIOS.
31459 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31461 Removed wrong semicolon in declaration
31463 * grub/misc.h (grub_dprintf): remove semicolon
31465 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31467 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
31468 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
31469 is done by grub_cmd_linux() now).
31470 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
31471 restore video to text mode.
31472 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
31473 indicates lack of "vga=" parameter. "vga=0" is mapped to
31474 `GRUB_LINUX_VID_MODE_NORMAL'.
31476 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
31478 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
31479 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
31480 and `normal/script.c'. Add `kern/rescue_reader.c',
31481 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
31482 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
31483 `grub_script.tab.c'.
31485 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31486 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
31487 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31488 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
31489 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31491 * Makefile.in: Remove duplicated 2008 in Copyright line.
31493 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31495 * util/misc.c (grub_util_warn): New function. Emits a warning
31497 * include/grub/util/misc.h (grub_util_warn): New declaration.
31499 * util/i386/pc/grub-install.in: Understand --force and pass it down
31502 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
31504 (setup): Improve error messages and add warnings when requested to
31505 install in odd layouts. Refuse to install using blocklists unless
31508 2009-05-04 martin f. krafft <madduck@madduck.net>
31510 * disk/raid.c (grub_raid_scan_device): Improve debug message.
31512 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31514 Updated copyright year
31516 * fs/hfsplus.c: updated copyright year
31518 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31522 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
31523 in the space previously used by unused3
31524 (grub_hfsplus_uuid): new function
31525 (grub_hfsplus_fs): added uuid field
31527 2009-05-03 Pavel Roskin <proski@gnu.org>
31529 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
31530 suppress warnings. It's no longer needed.
31531 * disk/host.c: Likewise.
31532 * disk/ata_pthru.c: Likewise.
31533 * disk/loopback.c: Likewise.
31534 * hook/datehook.c: Likewise.
31535 * parttool/pcpart.c: Likewise.
31536 * fs/i386/pc/pxe.c: Likewise.
31537 * fs/ntfscomp.c: Likewise.
31538 * efiemu/main.c: Likewise.
31539 * mmap/mmap.c: Likewise.
31540 * commands/crc.c: Likewise.
31541 * commands/hexdump.c: Likewise.
31542 * commands/hdparm.c: Likewise.
31543 * commands/acpi.c: Likewise.
31544 * commands/echo.c: Likewise.
31545 * commands/minicmd.c: Likewise.
31546 * commands/blocklist.c: Likewise.
31547 * commands/memrw.c: Likewise.
31548 * commands/loadenv.c: Likewise.
31549 * commands/usbtest.c: Likewise.
31550 * commands/lsmmap.c: Likewise.
31551 * commands/boot.c: Likewise.
31552 * commands/parttool.c: Likewise.
31553 * commands/configfile.c: Likewise.
31554 * commands/search.c: Likewise.
31555 * commands/ieee1275/suspend.c: Likewise.
31556 * commands/cat.c: Likewise.
31557 * commands/i386/pc/pxecmd.c: Likewise.
31558 * commands/i386/pc/play.c: Likewise.
31559 * commands/i386/pc/halt.c: Likewise.
31560 * commands/i386/pc/vbeinfo.c: Likewise.
31561 * commands/i386/pc/vbetest.c: Likewise.
31562 * commands/lspci.c: Likewise.
31563 * commands/date.c: Likewise.
31564 * commands/handler.c: Likewise.
31565 * commands/ls.c: Likewise.
31566 * commands/test.c: Likewise.
31567 * commands/cmp.c: Likewise.
31568 * commands/efi/loadbios.c: Likewise.
31569 * commands/efi/fixvideo.c: Likewise.
31570 * commands/halt.c: Likewise.
31571 * commands/help.c: Likewise.
31572 * commands/reboot.c: Likewise.
31573 * hello/hello.c: Likewise.
31574 * script/sh/main.c: Likewise.
31575 * loader/xnu.c: Likewise.
31576 * term/terminfo.c: Likewise.
31577 * term/i386/pc/serial.c: Likewise.
31578 * term/usb_keyboard.c: Likewise.
31580 2009-05-03 David S. Miller <davem@davemloft.net>
31582 * normal/menu.c: Include grub/parser.h
31584 2009-05-03 Pavel Roskin <proski@gnu.org>
31586 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
31588 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
31589 Suggested by Javier Martín <lordhabbit@gmail.com>
31591 * util/i386/pc/grub-mkrescue.in: Allow for the case when
31592 efiemu??.o doesn't exist.
31593 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
31596 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
31598 FreeBSD 64-bit support
31600 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
31601 and loader/i386/bsd_trampoline.S
31602 (bsd_mod_ASFLAGS): new variable
31603 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
31604 (FREEBSD_MODTYPE_KERNEL64): likewise
31605 (grub_bsd64_trampoline_start): likewise
31606 (grub_bsd64_trampoline_end): likewise
31607 (grub_bsd64_trampoline_selfjump): likewise
31608 (grub_bsd64_trampoline_gdt): likewise
31609 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
31610 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
31611 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
31612 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
31613 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
31615 * loader/i386/bsd_pagetable.c: new file
31616 * loader/i386/bsd_trampoline.S: likewise
31617 * loader/i386/bsd.c (ALIGN_QWORD): new macro
31618 (ALIGN_VAR): likewise
31619 (entry_hi): new variable
31620 (kern_end_mdofs): likewise
31621 (is_64bit): likewise
31622 (grub_freebsd_add_meta): use ALIGN_VAR
31623 (grub_e820_mmap): new declaration
31624 (grub_freebsd_add_mmap): new function
31625 (grub_freebsd_add_meta_module): support 64 bit kernels
31626 (grub_freebsd_list_modules): use ALIGN_VAR
31627 (gdt_descriptor): new declaration
31628 (grub_freebsd_boot): support 64 bit kernels
31629 (grub_bsd_elf64_hook): new function
31630 (grub_bsd_load_elf): support elf64
31632 2009-05-03 Bean <bean123ch@gmail.com>
31634 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
31635 after we get the result of if statement.
31637 2009-05-03 Bean <bean123ch@gmail.com>
31639 * Makefile.in (enable_efiemu): New variable.
31641 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
31643 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
31645 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
31646 path, add -mno-red-zone option.
31647 (efiemu64_s.o): Likewise.
31648 (efiemu64.o): Use macro $^ for source file.
31650 * configure.ac (--enable-efiemu): New option.
31652 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
31656 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
31657 (pkglib_MODULES): add xnu.mod
31658 (xnu_mod_SOURCES): new variable
31659 (xnu_mod_CFLAGS): likewise
31660 (xnu_mod_LDFLAGS): likewise
31661 (xnu_mod_ASFLAGS): likewise
31662 * conf/i386-pc.rmk: likewise
31663 * conf/x86_64-efi.rmk: likewise
31664 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
31666 * include/grub/i386/macho.h: new file
31667 * include/grub/i386/xnu.h: likewise
31668 * include/grub/macho.h: likewise
31669 * include/grub/machoload.h: likewise
31670 * include/grub/x86_64/macho.h: likewise
31671 * include/grub/x86_64/xnu.h: likewise
31672 * include/grub/xnu.h: likewise
31673 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
31674 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
31675 * loader/i386/efi/xnu.c: new file
31676 * loader/i386/pc/xnu.c: likewise
31677 * loader/i386/xnu.c: likewise
31678 * loader/i386/xnu_helper.S: likewise
31679 * loader/macho.c: likewise
31680 * loader/xnu.c: likewise
31681 * loader/xnu_resume.c: likewise
31682 * util/grub-dumpdevtree: likewise
31683 * include/grub/i386/pit.h: include grub/err.h
31684 (grub_pit_wait): export
31685 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
31687 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31691 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
31692 _linux_efi, linux_efi.
31693 new files in grub-emu
31694 new targets efiemu32.o and efiemu64.o
31695 * loader/linux_normal_efiemu.c: likewise
31696 * loader/i386/efi/linux.c: added preliminary efiemu support
31697 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
31699 * include/grub/autoefi.h: new file
31700 * include/grub/i386/efiemu.h: likewise
31701 * include/grub/i386/pc/efiemu.h: likewise
31702 * include/grub/efi/api.h: add LL suffix when necessary
31703 new definitions relating to tables
31704 * include/grub/efiemu/efiemu.h: new file
31705 * include/grub/efiemu/runtime.h: likewise
31706 * efiemu/prepare.c: likewise
31707 * efiemu/loadcore_common.c: likewise
31708 * efiemu/loadcore64.c: likewise
31709 * efiemu/runtime/efiemu.sh: likewise
31710 * efiemu/runtime/efiemu.S: likewise
31711 * efiemu/runtime/efiemu.c: likewise
31712 * efiemu/runtime/config.h: likewise
31713 * efiemu/prepare32.c: likewise
31714 * efiemu/main.c: likewise
31715 * efiemu/modules/pnvram.c: likewise
31716 * efiemu/modules/i386: likewise
31717 * efiemu/modules/i386/pc: likewise
31718 * efiemu/modules/acpi.c: likewise
31719 * efiemu/i386/pc/cfgtables.c: likewise
31720 * efiemu/i386/loadcore64.c: likewise
31721 * efiemu/i386/loadcore32.c: likewise
31722 * efiemu/prepare64.c: likewise
31723 * efiemu/loadcore.c: likewise
31724 * efiemu/symbols.c: likewise
31725 * efiemu/mm.c: likewise
31726 * efiemu/loadcore32.c: likewise
31728 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31732 * commands/acpi.c: new file
31733 * commands/i386/pc/acpi.c: likewise
31734 * commands/efi/acpi.c: likewise
31735 * include/grub/acpi.h: likewise
31736 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
31737 (acpi_mod_SOURCES): new variable
31738 (acpi_mod_CFLAGS): likewise
31739 (acpi_mod_LDFLAGS): likewise
31740 * conf/i386-efi.rmk: likewise
31741 * conf/x86_64-efi.rmk: likewise
31743 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31745 Missing part from mmap patch
31747 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
31748 (grub_mmap_unregister)
31749 (grub_mmap_free_and_unregister): use grub_mmap_register
31751 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31755 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
31756 * loader/i386/linux.c (find_mmap_size): likewise
31757 (allocate_pages): likewise
31758 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
31759 (grub_fill_multiboot_mmap): likewise
31760 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
31761 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
31762 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
31763 (OPENBSD_MMAP_RESERVED): likewise
31764 * include/grub/i386/pc/memory.h: include grub/memory.h
31765 (grub_lower_mem): removed
31766 (grub_upper_mem): likewise
31767 (GRUB_MACHINE_MEMORY_ACPI): new definition
31768 (GRUB_MACHINE_MEMORY_NVS): likewise
31769 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
31770 (GRUB_MACHINE_MEMORY_HOLE): likewise
31771 (grub_machine_mmap_register): likewise
31772 (grub_machine_mmap_unregister): likewise
31773 (grub_machine_get_upper): likewise
31774 (grub_machine_get_lower): likewise
31775 (grub_machine_get_post64): likewise
31776 * include/grub/i386/efi/memory.h: new file
31777 * include/grub/x86_64/efi/memory.h: likewise
31778 * include/grub/efi/memory.h: likewise
31779 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
31780 (mmap_mod_SOURCES): new variable
31781 (mmap_mod_LDFLAGS): likewise
31782 (mmap_mod_ASFLAGS): likewise
31783 * conf/i386-coreboot.rmk: likewise
31784 * conf/i386-ieee1275.rmk: likewise
31785 * conf/i386-efi.rmk: likewise
31786 * conf/x86_64-efi.rmk: likewise
31787 * include/grub/types.h (UINT_TO_PTR): new macro
31788 (PTR_TO_UINT32): likewise
31789 (PTR_TO_UINT64): likewise
31790 * include/grub/memory.h: new file
31791 * mmap/i386/pc/mmap.c: likewise
31792 * mmap/i386/pc/mmap_helper.S: likewise
31793 * mmap/i386/uppermem.c: likewise
31794 * mmap/mmap.c: likewise
31795 * mmap/efi/mmap.c: likewise
31796 * kern/i386/coreboot/init.c (grub_machine_init): don't use
31798 * kern/i386/pc/init.c (grub_lower_mem): removed variable
31799 (grub_upper_mem): likewise
31800 (grub_machine_init): don't use grub_upper_mem,
31801 make grub_lower_mem local
31802 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
31803 grub_mmap_iterate and grub_mmap_get_upper
31804 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
31806 2009-05-02 Bean <bean123ch@gmail.com>
31808 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
31809 script/sh/parser.y.
31810 (pkglib_MODULES): Add normal.mod and sh.mod.
31811 (normal_SOURCES): New variable.
31812 (normal_mod_CFLAGS): Likewise.
31813 (normal_mod_LDFLAGS): Likewise.
31814 (sh_mod_SOURCES): Likewise.
31815 (sh_mod_CFLAGS): Likewise.
31816 (sh_mod_LDFLAGS): Likewise.
31818 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
31819 script/sh/lexer.c_DEPENDENCIES.
31820 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
31821 kern/rescue_reader.c and kern/rescue_parser.c.
31822 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
31823 (grub_emu_SOURCES): Change source files.
31824 (pkglib_MODULES): Remove normal.mod.
31825 (normal_SOURCES): Removed.
31826 (normal_mod_CFLAGS): Likewise.
31827 (normal_mod_LDFLAGS): Likewise.
31828 * conf/i386-coreboot.rmk: Likewise.
31829 * conf/i386-efi.rmk: Likewise.
31830 * conf/i386-ieee1276.rmk: Likewise.
31831 * conf/powerpc-ieee1275.rmk: Likewise.
31832 * conf/sparc64-ieee1275.rmk: Likewise.
31833 * conf/x86_64-efi.rmk: Likewise.
31835 * include/grub/command.h (grub_command_execute): New inline function.
31837 * include/grub/menu.h (grub_menu_entry): Removed commands field.
31839 * include/grub/normal.h: Remove <grub/setjmp.h>.
31840 (grub_fs_module_list): Moved to normal/autofs.c.
31841 (grub_exit_env): Removed.
31842 (grub_command_execute): Likewise.
31843 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
31845 (read_command_list): New function declaration.
31846 (read_fs_list): Likewise.
31848 * include/parser.h: Include <grub/reader.h>.
31849 (grub_parser_split_cmdline): Change type of getline parameter.
31850 (grub_parser): New structure.
31851 (grub_parser_class): New variable.
31852 (grub_parser_execute): New function declaration.
31853 (grub_register_rescue_parser): Likewise.
31854 (grub_parser_register): New inline function.
31855 (grub_parser_unregister): Likewise.
31856 (grub_parser_get_current): Likewise.
31857 (grub_parser_set_current): Likewise.
31859 * include/grub/reader.h: New file.
31860 * kern/reader.c: Likewise.
31861 * kern/rescue_parser.c: Likewise.
31862 * kern/rescue_reader.c: Likewise.
31863 * normal/autofs.c: Likewise.
31864 * normal/dyncmd.c: Likewise.
31866 * include/grub/rescue.h: Removed.
31867 * normal/command.h: Likewise.
31869 * include/grub/script.h: Moved to ...
31870 * include/grub/script_sh.h: ... Moved here.
31871 * normal/execute.c: Moved to ...
31872 * script/sh/execute.c: ... Moved here.
31873 * normal/function.c: Moved to ...
31874 * script/sh/function.c: ... Moved here.
31875 * normal/lexer.c: Moved to ...
31876 * script/sh/lexer.c: ... Moved here.
31877 * normal/parser.y: Moved to ...
31878 * script/sh/parser.y: ... Moved here.
31879 * normal/script.c: Moved to ...
31880 * script/sh/script.c: ... Moved here.
31882 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
31884 (grub_exit_env): Removed.
31885 (fs_module_list): Moved to normal/autofs.c.
31886 (grub_file_getline): Don't handle comment here.
31887 (free_menu): Skip removed field entry->commands.
31888 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
31890 (read_config_file): Removed nested parameter, change getline function.
31891 (grub_enter_normal_mode): Removed.
31892 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
31893 (read_command_list): Likewise.
31894 (autoload_fs_module): Moved to normal/autofs.c.
31895 (read_fs_list): Likewise.
31896 (reader_nested): New variable.
31897 (grub_normal_execute): Run parser.sh to switch to sh parser.
31898 (grub_cmd_rescue): Removed.
31899 (cmd_normal): Removed.
31900 (grub_cmd_normal): Unregister itself at the beginning. Don't register
31902 (grub_cmdline_run): New function.
31903 (grub_normal_reader_init): Likewise.
31904 (grub_normal_read_line): Likewise.
31905 (grub_env_write_pager): Likewise.
31906 (cmdline): New variable.
31907 (grub_normal_reader): Likewise.
31908 (GRUB_MOD_INIT): Register normal reader and set as current, register
31909 pager hook, register normal command with grub_register_command_prio,
31910 so that it won't show up in command.lst.
31911 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
31912 grub_fs_autoload_hook.
31914 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
31915 (grub_menu_execute_entry): Replace grub_script_execute with
31916 grub_parser_execute, change parameter to grub_command_execute.
31918 * normal/menu_text.c: Remove <grub/script.h>.
31920 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
31921 and <grub/parser.h>.
31922 (run): Change editor_getline to use new parser interface. Change
31923 parameter to grub_command_execute.
31925 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
31926 <grub/reader.h> and <grub/parser.h>.
31927 (grub_load_normal_mode): Execute normal command.
31928 (grub_main): Call grub_register_core_commands,
31929 grub_register_rescue_parser and grub_register_rescue_reader, use
31930 grub_reader_loop to enter input loop.
31932 * kern/parser.c (grub_parser_split_cmdline): Change type of
31934 (grub_parser_class): New variable.
31935 (grub_parser_execute): New function.
31937 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
31938 * loader/multiboot2.c: Likewise.
31939 * loader/sparc64/ieee1275/linux.c: Likewise.
31941 * util/grub-emu.c (read_command_list): New dummy function.
31943 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
31945 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
31946 count to 16 for CCISS and IDA.
31948 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
31950 * normal/menu_text.c (grub_wait_after_message): Print a newline
31951 after waiting for user input.
31953 * loader/i386/linux.c: Include `<grub/normal.h>'.
31954 (grub_cmd_linux): Improve the error message about `ask' mode, by
31955 waiting for user input so it's not missed (we can do this, since
31956 user requested interaction).
31958 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31960 Added missing lst to grub-mkrescue
31962 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
31963 and ${input_dir}/parttool.lst
31965 2009-04-30 David S. Miller <davem@davemloft.net>
31967 * util/hostdisk.c (device_is_wholedisk): New function.
31968 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
31969 zero only if device_is_wholedisk() returns true.
31971 * util/hostdisk.c (convert_system_partition_to_system_disk):
31972 Handle virtual disk devices named /dev/vdiskX as found on sparc
31975 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
31976 lettered partition specifier is found, convert to numbered.
31978 2009-04-29 David S. Miller <davem@davemloft.net>
31980 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
31981 * include/grub/sparc64/ieee1275/memory.h: Likewise.
31983 * normal/command.c: Add missing newline at end of file.
31985 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
31987 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
31988 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
31989 grub_ofdisk_read): Likewise, and deal similarly with the fact that
31990 ihandles have a 32-bit type but need to be stored in a "void *".
31992 2009-04-28 Pavel Roskin <proski@gnu.org>
31994 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
31995 not disk. Adjust all dependencies.
31996 (grub_fs_uuid_close): Use grub_device_close(), not
31999 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
32000 parent's partition, don't copy it by reference, as it gets freed
32003 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
32005 Preboot hooks support
32007 * commands/boot.c (struct grub_preboot_t): new declaration
32008 (preboots_head): new variable
32009 (preboots_tail): likewise
32010 (grub_loader_register_preboot_hook): new function
32011 (grub_loader_unregister_preboot_hook): likewise
32012 (grub_loader_set): launch preboot hooks
32013 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
32014 (grub_loader_register_preboot_hook): new declaration
32015 (grub_loader_unregister_preboot_hook): likewise
32017 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
32021 * disk/scsi.c (grub_scsi_open): added missing cast when
32022 calling grub_dprintf
32024 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
32026 Bug and warning fixes
32028 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
32030 * commands/test.c (test_parse): fixed bug with file tests and corrected
32031 declaration of find_file
32033 2009-04-26 Pavel Roskin <proski@gnu.org>
32035 * Makefile.in: Don't install empty manual pages if help2man is
32036 missing. Use help2man option for output, not shell redirection.
32038 2009-04-26 David S. Miller <davem@davemloft.net>
32040 * util/grub-mkdevicemap.c (make_device_map): Add missing
32041 NESTED_FUNC_ATTR to process_device().
32043 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
32047 * commands/test.c: rewritten to use bash-like test
32049 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
32051 Parttool autoloading and improvements
32053 * Makefile.in (pkglib_DATA): add parttool.lst
32054 (parttool.lst): new target
32055 * genmk.rb: generate parttool-*
32056 (CLEANFILES): add #{parttool}
32057 (PARTTOOLFILES): new variable
32058 * genparttoollist.sh: new file
32059 * parttool/pcpart.c (grub_pcpart_boot): more feedback
32060 (grub_pcpart_type): likewise
32061 * commands/parttool.c (helpmsg): new variable
32062 (grub_cmd_parttool): output help if not enough arguments are supplied
32064 (GRUB_MOD_INIT(parttool)): use helpmsg
32066 2009-04-24 David S. Miller <davem@davemloft.net>
32068 Avoiding opening same device multiple times in device iterator.
32070 * kern/device.c: (grub_device_iterate): Define struct part_ent,
32071 and use it to build a list of partitions in iterate_disk() and
32072 iterate_partition().
32074 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
32077 * disk/ieee1275/nand.c (grub_nand_iterate): Return
32078 grub_devalias_iterate() result instead of unconditional 0.
32079 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
32080 Also, capture hook return value, either directly or via
32081 grub_children_iterate(), and propagate to caller.
32082 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
32083 grub_children_iterate): Return value is now 'int' instead of
32085 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
32086 like a proper iterator, stopping when hooks return non-zero.
32087 (grub_devalias_iterate): Likewise.
32089 2009-04-23 David S. Miller <davem@davemloft.net>
32091 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
32093 2009-04-22 David S. Miller <davem@davemloft.net>
32095 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
32096 is larger than address_cells, use that value for address_cells too.
32098 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
32099 IEEE1275_MAX_PATH_LEN): Define.
32100 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
32101 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
32102 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
32103 'devtype'. Explicitly NULL terminate devalias expansion.
32105 * util/sparc64/ieee1275/misc.c: New file.
32106 * util/sparc64/ieee1275/grub-setup.c: New file.
32107 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
32108 * util/sparc64/ieee1275/grub-mkimage.c: New file.
32109 * util/sparc64/ieee1275/grub-install.in: New file.
32110 * util/ieee1275/ofpath.c: New file.
32111 * util/ieee1275/devicemap.c: New file.
32112 * util/devicemap.c: New file.
32113 * util/deviceiter.c: New file.
32114 * kern/sparc64/ieee1275/init.c: New file.
32115 * include/grub/util/ofpath.h: New file.
32116 * include/grub/util/deviceiter.h: New file.
32117 * util/grub-mkdevicemap.c: Include deviceiter.h.
32118 Implement using grub_util_emit_devicemap_entry and
32119 grub_util_iterate_devices.
32120 * conf/i386-corebook.rmk: Build util/deviceiter.c and
32121 util/devicemap.c into grub-mkdevicemap
32122 * conf/i386-efi.rmk: Likewise.
32123 * conf/i386-ieee1275.rmk: Likewise.
32124 * conf/i386-pc.rmk: Likewise.
32125 * conf/powerpc-ieee1275.rmk: Likewise.
32126 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
32127 images and installation utilities. Build kernel as image
32128 instead of as elf binary. Use common rules as much as possible.
32130 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
32132 Correct GPT definition
32134 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
32137 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
32139 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
32141 2009-04-19 David S. Miller <davem@davemloft.net>
32143 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
32144 (grub_rescue_cmd_linux): Rename to...
32145 (grub_cmd_linux): and fix prototype.
32146 (grub_rescue_cmd_initrd): Rename to...
32147 (grub_cmd_initrd): and fix prototype.
32148 (cmd_linux, cmd_initrd): New.
32149 (GRUB_MOD_INIT(linux)): Use grub_register_command().
32150 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
32152 2009-04-17 Pavel Roskin <proski@gnu.org>
32154 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
32156 (grub_ohci_transfer): Likewise.
32158 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
32160 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
32161 return without a value. Fix inconsistent indentation.
32163 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
32164 match struct grub_fs.
32166 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
32167 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
32168 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
32169 * commands/lspci.c (grub_lspci_iter): Likewise.
32171 2009-04-16 Bean <bean123ch@gmail.com>
32173 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
32176 2009-04-15 Pavel Roskin <proski@gnu.org>
32178 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
32179 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
32180 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
32183 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
32185 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
32186 that no multiple data or metadata areas are supported and `Unknown
32189 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
32191 Move loader out of the kernel
32193 * kern/loader.c: moved to ...
32194 * commands/boot.c: ... moved here
32195 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
32196 * commands/boot.c (grub_cmd_boot): moved here. All users updated
32197 * include/grub/kernel.h (grub_machine_fini): export
32198 * include/grub/loader.h (grub_loader_is_loaded): update declaration
32199 (grub_loader_set): likewise
32200 (grub_loader_unset): likewise
32201 (grub_loader_boot): likewise
32202 * conf/common.rmk: new module boot.mod
32203 (pkglib_MODULES): add boot.mod
32204 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
32205 (grub_emu_SOURCES): likewise
32206 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
32207 (grub_emu_SOURCES): likewise
32208 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
32209 (grub_emu_SOURCES): likewise
32210 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
32211 (grub_emu_SOURCES): likewise
32212 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
32213 (grub_emu_SOURCES): likewise
32214 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
32215 (grub_emu_SOURCES): likewise
32216 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
32217 (grub_emu_SOURCES): likewise
32219 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
32221 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
32223 * kern/misc.c (grub_itoa): Removed function
32224 (grub_ltoa): likewise
32225 (grub_vsprintf): use grub_lltoa
32227 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
32231 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
32232 * conf/i386-coreboot.rmk: likewise
32233 * conf/i386-ieee1275.rmk: likewise
32234 * conf/powerpc-ieee1275.rmk: likewise
32236 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
32238 * INSTALL: Add that `./autogen.sh' needs to be run before
32241 2009-04-14 Bean <bean123ch@gmail.com>
32243 * Makefile.in (pkglib_DATA): Add handler.lst.
32244 (handler.lst): New rule.
32246 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
32247 * conf/i386-coreboot.rmk: Likewise.
32248 * conf/i386-ieee1275.rmk: Likewise.
32249 * conf/i386-efi.rmk: Likewise.
32250 * conf/x86_64-efi.rmk: Likewise.
32251 * conf/powerpc-ieee1275.rmk: Likewise.
32252 * conf/sparc64-ieee1275.rmk: Likewise.
32254 * genhandlerlist.sh: New file.
32256 * genmk.rb: Add rules to generate handler.lst.
32258 * include/grub/normal.h (grub_file_getline): New function definition.
32259 (read_handler_list): Likewise.
32260 (free_handler_list): Likewise.
32262 * include/grub/term.h (grub_term_register_input): Add name parameter
32263 for auto generation of handler.lst.
32264 (grub_term_register_output): Likewise.
32266 * normal/handler.c: New file.
32268 * normal/main.c (get_line): Renamed to grub_file_getline.
32269 (read_config_file): Use the newly renamed grub_file_getline.
32270 (read_command_list): Likewise.
32271 (read_fs_list): Likewise.
32272 (grub_normal_execute): Call read_handler_list to parse handler.lst.
32273 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
32275 * term/efi/console.c (grub_console_init): Add name parameter for auto
32276 generation of handler.lst.
32277 * term/gfxterm.c: Likewise.
32278 * term/i386/pc/at_keyboard.c: Likewise.
32279 * term/i386/pc/console.c: Likewise.
32280 * term/i386/pc/serial.c: Likewise.
32281 * term/i386/pc/vesafb.c: Likewise.
32282 * term/i386/pc/vga.c: Likewise.
32283 * term/i386/pc/vga_text.c: Likewise.
32284 * term/ieee1275/ofconsole.c: Likewise.
32285 * term/usb_keyboard.c: Likewise.
32287 2009-04-14 Bean <bean123ch@gmail.com>
32289 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
32290 properly with null character.
32292 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
32294 * configure: Remove.
32295 * config.h.in: Likewise.
32296 * stamp-h.in: Likewise.
32297 * DISTLIST: Likewise.
32298 * conf/common.mk: Likewise.
32299 * conf/i386-coreboot.mk: Likewise.
32300 * conf/i386-efi.mk: Likewise.
32301 * conf/i386-ieee1275.mk: Likewise.
32302 * conf/i386.mk: Likewise.
32303 * conf/i386-pc.mk: Likewise.
32304 * conf/powerpc-ieee1275.mk: Likewise.
32305 * conf/sparc64-ieee1275.mk: Likewise.
32306 * conf/x86_64-efi.mk: Likewise.
32308 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
32311 2009-04-14 John Stanley <jpsinthemix@verizon.net>
32312 David S. Miller <davem@davemloft.net>
32314 * util/hostdisk.c (make_device_name): Fix buffer length
32317 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
32319 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
32320 <sys/param.h> and <sys/sysctl.h>.
32321 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
32322 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
32323 opening the device and reset them afterwards.
32325 2009-04-13 Pavel Roskin <proski@gnu.org>
32327 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
32328 Reported by John Stanley <jpsinthemix@verizon.net>
32330 2009-04-13 Robert Millan <rmh@aybabtu.com>
32332 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
32333 that name for menuentries when appropriate.
32335 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32337 * util/grub.d/10_freebsd.in: Add a missing `fi'.
32339 2009-04-13 Robert Millan <rmh@aybabtu.com>
32341 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
32342 to Linux, simply abort telling the user it's no longer supported.
32344 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32346 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
32347 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
32348 `freebsd_loadenv' only when devices.hints exist.
32350 2009-04-13 Pavel Roskin <proski@gnu.org>
32352 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
32354 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32356 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
32358 (grub_drive): Likewise.
32360 2009-04-13 David S. Miller <davem@davemloft.net>
32362 * kern/sparc64/ieee1275/ieee1275.c: New file.
32363 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
32364 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
32365 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
32366 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
32367 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
32368 grub_ieee1275_alloc_physmem): Declare new exported functions.
32370 * include/grub/sparc64/ieee1275/loader.h: New file.
32371 * include/grub/sparc64/ieee1275/memory.h: Likewise.
32372 * include/grub/sparc64/kernel.h: Likewise.
32373 * loader/sparc64/ieee1275/linux.c: Likewise.
32375 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
32376 (grub_fstest_SOURCES): Likewise.
32378 * util/hostdisk.c (make_device_name): Do not make any assumptions
32379 about the length of drive names.
32381 * kern/dl.c (grub_dl_load_file): Close file immediately when
32382 we are done using it.
32384 2009-04-12 David S. Miller <davem@davemloft.net>
32386 * kern/misc.c (grub_ltoa): Fix cast when handling negative
32387 values. Noticed by Pavel Roskin.
32389 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
32392 * genmk.rb: Add more flexible image type specification, also
32393 pass --strip-unneeded to objcopy.
32394 * conf/i386-pc.rmk: Use *_FORMAT.
32395 * conf/i386-pc.mk: Rebuilt.
32397 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
32398 (OFDISK_HASH_SZ): Define.
32399 (ofdisk_hash): New hash table.
32400 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
32401 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
32402 instead of device phandle which is not unique.
32404 * kern/sparc64/ieee1275/init.c: Delete, replace with...
32405 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
32406 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
32407 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
32408 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
32409 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
32410 GRUB_KERNEL_MACHINE_DATA_END): Define.
32411 (grub_kernel_image_size, grub_total_module_size): Declare.
32413 2009-04-12 Pavel Roskin <proski@gnu.org>
32415 * configure.ac: Change the logic when we check for target tools.
32416 Do it when the target is specified and it's different from the
32417 specified value of the host.
32419 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
32421 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
32422 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
32423 GNU/kFreeBSD. Check if a device is a character device. Use
32424 DIOCGMEDIASIZE to get the size.
32425 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
32426 support for GNU/kFreeBSD.
32427 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
32428 is a character device instead of a block device. Add support for
32429 FreeBSD device names.
32431 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
32432 is a character device instead of a block device.
32434 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
32435 is a character device instead of a block device.
32437 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
32439 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
32440 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
32441 FreeBSD. Check if a device is a character device. Use
32442 DIOCGMEDIASIZE to get the size.
32443 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
32444 support for FreeBSD.
32445 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
32446 is a character device instead of a block device. Add support for
32447 FreeBSD device names.
32449 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
32450 a character device instead of a block device.
32451 (grub_util_check_char_device): New function.
32453 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
32454 a character device instead of a block device.
32456 * include/grub/util/getroot.h (grub_util_check_char_device): New
32459 2009-04-11 David S. Miller <davem@davemloft.net>
32461 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
32463 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
32464 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
32465 function, if present.
32466 (__bswapdi2): Likewise.
32468 * include/grub/sparc64/ieee1275/boot.h: New file.
32469 * boot/sparc64/ieee1275/boot.S: Likewise.
32470 * boot/sparc64/ieee1275/diskboot.S: Likewise.
32472 * kern/misc.c (grub_ltoa): New function.
32473 (grub_vsprintf): Use it to format 'long' integers.
32475 2009-04-10 David S. Miller <davem@davemloft.net>
32477 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
32478 slots are of type grub_ieee1275_cell_t.
32479 (grub_nand_read): Likewise.
32480 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
32481 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
32482 macros are used to compare values in arg/ret block of the call.
32483 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
32484 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
32485 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
32486 grub_ieee1275_instance_to_path, grub_ieee1275_write,
32487 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
32488 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
32489 grub_ieee1275_close, grub_ieee1275_set_property,
32490 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
32491 grub_ieee1275_cell_t.
32492 * kern/ieee1275/openfw.c (grub_map): Likewise.
32493 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
32494 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
32496 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
32497 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
32498 (grub_devalias_iterate): Likewise.
32500 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
32504 * fs/ufs.c (INODE_NBLOCKS): new definition
32505 (struct grub_ufs_dirent): added fields for non-BSD dirents
32506 (grub_ufs_get_file_block): fixed double indirect handling
32507 (grub_ufs_lookup_symlink): use more robust way to determine whether
32509 (grub_ufs_find_file): support for non-BSD dirents
32510 (grub_ufs_dir): support for non-BSD dirents
32512 2009-04-10 Bean <bean123ch@gnail.com>
32514 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
32515 attribute, otherwise the size would be wrong for i386 platform.
32517 * include/grub/pci.h (grub_pci_read_word): New inline function.
32518 (grub_pci_read_byte): Likewise.
32519 (grub_pci_write): Likewise.
32520 (grub_pci_write_word): Likewise.
32521 (grub_pci_write_byte): Likewise.
32523 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
32525 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
32526 (find_framebuf): Scan pci to locate the frame buffer address.
32528 * commands/efi/fixvideo.c: New file.
32530 * commands/efi/loadbios.c: Likewise.
32532 * commands/memrw.c: Likewise.
32534 * util/grub-dumpbios.in: Likewise.
32536 * conf/common.rmk (grub-dumpbios): New utility.
32537 (pkglib_MODULES): New module memrw.mod.
32538 (memrw_mod_SOURCE): New macro.
32539 (memrw_mod_CFLAGS): Likewise.
32540 (memrw_mod_LDFLAGS): Likewise.
32542 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
32544 (loadbios_mod_SOURCE): New macro.
32545 (loadbios_mod_CFLAGS): Likewise.
32546 (loadbios_mod_LDFLAGS): Likewise.
32547 (fixvideo_mod_SOURCE): Likewise.
32548 (fixvideo_mod_CFLAGS): Likewise.
32549 (fixvideo_mod_LDFLAGS): Likewise.
32551 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
32553 (loadbios_mod_SOURCE): New macro.
32554 (loadbios_mod_CFLAGS): Likewise.
32555 (loadbios_mod_LDFLAGS): Likewise.
32556 (fixvideo_mod_SOURCE): Likewise.
32557 (fixvideo_mod_CFLAGS): Likewise.
32558 (fixvideo_mod_LDFLAGS): Likewise.
32560 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
32562 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
32564 2009-04-07 David S. Miller <davem@davemloft.net>
32566 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
32567 support for R_SPARC_OLO10 relocations. Fix compile warning for
32568 R_SPARC_WDISP30 case.
32569 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
32571 2009-04-06 Pavel Roskin <proski@gnu.org>
32573 * include/grub/misc.h (ARRAY_SIZE): New macro.
32574 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
32576 * loader/i386/linux.c (allocate_pages): Use free_pages().
32577 (grub_linux_unload): Don't use free_pages().
32578 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
32579 wrong index. Treat all other modes as text modes.
32580 (grub_cmd_linux): Initialize vid_mode unconditionally to
32581 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
32583 * commands/help.c (print_command_help): Use cmd->prio, not
32584 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
32586 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
32590 * parttool/pcpart.c: new file
32591 * commands/parttool.c: likewise
32592 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
32593 (parttool_mod_SOURCES): new variable
32594 (parttool_mod_CFLAGS): likewise
32595 (parttool_mod_LDFLAGS): likewise
32596 (pcpart_mod_SOURCES): likewise
32597 (pcpart_mod_CFLAGS): likewise
32598 (pcpart_mod_LDFLAGS): likewise
32599 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
32600 and parttool/pcpart.c
32601 * conf/i386-efi.rmk: likewise
32602 * conf/i386-ieee1275.rmk: likewise
32603 * conf/i386-pc.rmk: likewise
32604 * conf/powerpc-ieee1275.rmk: likewise
32605 * conf/sparc64-ieee1275.rmk: likewise
32606 * conf/x86_64-ieee1275.rmk: likewise
32608 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
32610 Support for mtime and further expandability of dir command
32612 * include/grub/lib/datetime.h: moved to ...
32613 * include/grub/datetime.h: ... moved here and added
32614 declaration of grub_unixtime2datetime. All users updated
32615 * include/grub/fs.h: new syntax for dir and mtime functions in
32617 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
32618 and GRUB_FSHELP_FLAGS_MASK
32619 * commands/ls.c (grub_ls_list_files): Write mtime in long format
32620 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
32621 (grub_ext2_mtime): new function
32622 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
32623 (grub_hfsplus_mtime): new function
32624 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
32625 (GRUB_UFS_ATTR_FILE): likewise
32626 (GRUB_UFS_ATTR_LNK): likewise
32627 (struct grub_ufs_sblock): new fields mtime
32628 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
32630 (grub_ufs_dir): mtime support
32631 (grub_ufs_mtime): new function
32632 * fs/affs.c (grub_affs_dir): use new dir syntax
32633 * fs/afs.c (grub_afs_dir): likewise
32634 * fs/cpio.c (grub_cpio_dir): likewise
32635 * fs/fat.c (grub_fat_find_dir): likewise
32636 * fs/hfs.c (grub_hfs_dir): likewise
32637 * fs/iso9660.c (grub_iso9660_dir): likewise
32638 * fs/jfs.c (grub_jfs_dir): likewise
32639 * fs/minix.c (grub_minix_dir): likewise
32640 * fs/ntfs.c (grub_ntfs_dir): likewise
32641 * fs/reiserfs.c (grub_reiserfs_dir): likewise
32642 * fs/sfs.c (grub_sfs_dir): likewise
32643 * fs/xfs.c (grub_xfs_dir): likewise
32644 * util/hostfs.c (grub_hostfs_dir): likewise
32645 * lib/datetime.c: moved to ...
32646 * normal/datetime.c: ... moved here
32647 (grub_unixtime2datetime): new function
32648 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
32649 * normal/completion.c (iterate_dir): use new dir syntax
32650 * normal/misc.c (grub_normal_print_device_info): tell the
32651 last modification time of a volume
32652 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
32653 * conf/common.rmk: added lib/datetime.c to ls.mod
32654 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
32655 (normal_mod_SOURCES): likewise
32656 (datetime_mod_SOURCES): Removed lib/datetime.c
32657 * conf/i386-efi.rmk: likewise
32658 * conf/i386-ieee1275.rmk: likewise
32659 * conf/i386-pc.rmk: likewise
32660 * conf/powerpc-ieee1275.rmk: likewise
32661 * conf/sparc64-ieee1275.rmk: likewise
32662 * conf/x86_64-efi.rmk: likewise
32664 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
32666 Trim trailing spaces in FAT label and support mtools-like labels
32668 * fs/fat.c (grub_fat_iterate_dir): New function based
32669 on grub_fat_find_dir
32670 (grub_fat_find_dir): use grub_fat_iterate_dir
32671 (grub_fat_label): likewise
32673 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
32675 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
32677 remove extraneous kernel_elf_HEADERS
32679 2009-04-04 Bean <bean123ch@gnail.com>
32681 * include/grub/util/misc.h: Add dummy function fsync for mingw.
32683 * util/misc.c: Likewise.
32685 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
32687 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
32688 instead of grub_printf.
32690 2009-04-03 Robert Millan <rmh@aybabtu.com>
32692 * loader/i386/linux.c (grub_linux_setup_video): Fill
32693 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
32694 values from `mode info' structure instead of hardcoded
32697 2009-04-01 Pavel Roskin <proski@gnu.org>
32699 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
32701 * genmk.rb: Likewise.
32702 * configure.ac: Likewise.
32704 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
32706 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
32707 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
32709 2009-04-01 David S. Miller <davem@davemloft.net>
32711 * normal/sparc64/setjmp.S: Fix setjmp implementation.
32712 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
32713 (grub_setjmp): Mark with 'returns_twice' attribute.
32714 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
32715 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
32716 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
32718 2009-04-01 Robert Millan <rmh@aybabtu.com>
32720 Reapply fix from 2008-07-28 which was accidentally reverted; also
32721 perform the same fix to a similar check in same function.
32723 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
32724 with the same number are found, just use issue a warning with
32725 grub_dprintf(), as this error has been reported to be non-fatal.
32727 2009-03-31 Pavel Roskin <proski@gnu.org>
32729 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
32730 for cross-compilation.
32732 2009-03-30 Robert Millan <rmh@aybabtu.com>
32734 Fix i386-ieee1275 build.
32736 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
32737 Remove declaration.
32739 2009-03-30 Pavel Roskin <proski@gnu.org>
32741 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
32742 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
32743 zero-terminated, rely only on the strlen value. Fix comparison
32744 of strings differing in length.
32746 2009-03-30 Robert Millan <rmh@aybabtu.com>
32748 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
32749 checking for abi version. Improve error messages on BIOS to notify
32750 user about `linux16' command.
32752 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
32756 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
32757 in case of collision
32758 * disk/scsi.c (grub_scsi_open): free scsi in case of error
32760 2009-03-29 Robert Millan <rmh@aybabtu.com>
32762 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
32763 set `vid_mode' accordingly.
32764 (grub_linux_boot): Process `vid_mode' and set video mode.
32766 2009-03-29 Robert Millan <rmh@aybabtu.com>
32768 * util/grub.d/10_linux.in (linux_entry): New function.
32769 Factorize generation of Linux boot entries.
32771 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
32773 Make the format of Environment Block plain text. The boot loader
32774 part is not tested well yet.
32776 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
32778 (envblk): Likewise.
32779 (usage): Remove "info" and "clear". Add "unset". Update the
32780 description of "set", as this does not delete variables any
32782 (create_envblk_file): Complete rewrite.
32783 (open_envblk_file): Likewise.
32784 (cmd_info): Removed.
32785 (cmd_list): Likewise.
32786 (cmd_set): Likewise.
32787 (cmd_clear): Likewise.
32788 (list_variables): New function.
32789 (write_envblk): Likewise.
32790 (set_variables): Likewise.
32791 (unset_variables): Likewise.
32792 (main): Complete rewrite.
32794 * commands/loadenv.c (buffer): Removed.
32795 (envblk): Likewise.
32796 (open_envblk_file): New function.
32797 (read_envblk_file): Complete rewrite.
32798 (grub_cmd_load_env): Likewise.
32799 (grub_cmd_list_env): Likewise.
32800 (struct blocklist): New struct.
32801 (free_blocklists): New function.
32802 (check_blocklists): Likewise.
32803 (write_blocklists): Likewise.
32804 (grub_cmd_save_env): Complete rewrite.
32806 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
32807 a plain text signature.
32808 (GRUB_ENVBLK_MAXLEN): Removed.
32809 (struct grub_envblk): Complete rewrite.
32810 (grub_envblk_find): Removed.
32811 (grub_envblk_insert): Likewise.
32812 (grub_envblk_open): New prototype.
32813 (grub_envblk_set): Likewise.
32814 (grub_envblk_delete): Put const to VALUE.
32815 (grub_envblk_iterate): Put const to NAME and VALUE.
32816 (grub_envblk_close): New prototype.
32817 (grub_envblk_buffer): New inline function.
32818 (grub_envblk_size): Likewise.
32820 * lib/envblk.c: Include grub/mm.h.
32821 (grub_env_find): Removed.
32822 (grub_envblk_open): New function.
32823 (grub_envblk_close): Likewise.
32824 (escaped_value_len): Likewise.
32825 (find_next_line): Likewise.
32826 (grub_envblk_insert): Removed.
32827 (grub_envblk_set): New function.
32828 (grub_envblk_delete): Complete rewrite.
32829 (grub_envblk_iterate): Likewise.
32831 2009-03-28 Robert Millan <rmh@aybabtu.com>
32833 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
32834 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
32835 variables. Use 16-bit loader.
32836 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
32838 * kern/i386/loader.S (grub_linux_boot): Rename to ...
32839 (grub_linux16_boot): ... this. Update all users.
32840 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
32841 (grub_linux_boot): ... this. Update all users.
32843 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
32844 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
32845 commands to `linux16' and `initrd16'.
32846 (GRUB_MOD_FINI(linux)): Rename to ...
32847 (GRUB_MOD_FINI(linux16)): ... this.
32849 2009-03-24 Pavel Roskin <proski@gnu.org>
32851 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
32852 not just for compilation.
32854 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
32856 Move multiboot helper out of kernel
32858 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
32859 `loader/i386/multiboot_helper.S'.
32860 * conf/i386-coreboot.rmk: Likewise
32861 * conf/i386-ieee1275.rmk: Likewise
32863 * kern/i386/loader.S: Move multiboot helpers from here...
32864 * loader/i386/multiboot_helper.S: ...moved here
32865 * include/grub/i386/loader.h: Move declarations of multiboot
32866 helpers from here...
32867 * include/grub/i386/multiboot.h: ...moved here
32868 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
32870 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
32872 * kern/env.c (grub_env_context_open): Added an argument to specify
32873 whether a new context inherits exported variables from current
32874 one. This is useful when making a sandbox to interpret a config
32876 All callers updated.
32878 * include/grub/env.h (grub_env_context_open): Updated the prototype.
32880 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
32882 * kern/env.c (grub_env_context_close): Fix memory leaks.
32884 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
32886 * normal/main.c (grub_normal_execute): Added an argument
32887 BATCH to specify if an interactive interface should be provided
32888 after reading a config file.
32889 All callers updated.
32890 (read_command_list): Prevent being executed twice.
32891 (read_fs_list): Likewise.
32893 * include/grub/normal.h (grub_normal_execute): Updated the
32896 2009-03-22 Pavel Roskin <proski@gno.org>
32898 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
32900 * kern/i386/pc/startup.S: Likewise.
32901 * kern/i386/efi/startup.S: Likewise.
32902 * kern/i386/ieee1275/startup.S: Likewise.
32903 * kern/i386/coreboot/startup.S: Likewise.
32904 * kern/x86_64/efi/startup.S: Likewise.
32906 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
32907 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
32908 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
32910 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
32912 Bugfixes in multiboot for bugs uncovered by solaris kernel.
32914 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
32916 Use vaddr of correct segment for entry_point.
32918 2009-03-21 Bean <bean123ch@gmail.com>
32920 * commands/blocklist.c: Add include file <grub/command.h>, remove
32921 <grub/normal.h> and <grub/arg.h>.
32922 (grub_cmd_blocklist): Use the new command interface.
32923 (GRUB_MOD_INIT): Likewise.
32924 (GRUB_MOD_FINI): Likewise.
32925 * commands/boot.c: Likewise.
32926 * commands/cat.c: Likewise.
32927 * commands/cmp.c: Likewise.
32928 * commands/configfile.c: Likewise.
32929 * commands/crc.c: Likewise.
32930 * commands/echo.c: Likewise.
32931 * commands/halt.c: Likewise.
32932 * commands/handler.c: Likewise.
32933 * commands/hdparm.c: Likewise.
32934 * commands/help.c: Likewise.
32935 * commands/hexdump.c: Likewise.
32936 * commands/loadenv.c: Likewise.
32937 * commands/ls.c: Likewise.
32938 * commands/lsmmap.c: Likewise.
32939 * commands/lspci.c: Likewise.
32940 * commands/loadenv.c: Likewise.
32941 * commands/read.c: Likewise.
32942 * commands/reboot.c: Likewise.
32943 * commands/search.c: Likewise.
32944 * commands/sleep.c: Likewise.
32945 * commands/test.c: Likewise.
32946 * commands/usbtest.c: Likewise.
32947 * commands/videotest.c: Likewise.
32948 * commands/i386/cpuid.c: Likewise.
32949 * commands/i386/pc/halt.c: Likewise.
32950 * commands/i386/pc/play.c: Likewise.
32951 * commands/i386/pc/pxecmd.c: Likewise.
32952 * commands/i386/pc/vbeinfo.c: Likewise.
32953 * commands/i386/pc/vbetest.c: Likewise.
32954 * commands/ieee1275/suspend.c: Likewise.
32955 * disk/loopback.c: Likewise.
32956 * font/font_cmd.c: Likewise.
32957 * hello/hello.c: Likewise.
32958 * loader/efi/appleloader.c: Likewise.
32959 * loader/efi/chainloader.c: Likewise.
32960 * loader/i386/bsd.c: Likewise.
32961 * loader/i386/efi/linux.c: Likewise.
32962 * loader/i386/ieee1275/linux.c: Likewise.
32963 * loader/i386/linux.c: Likewise.
32964 * loader/i386/pc/chainloader.c: Likewise.
32965 * loader/i386/pc/linux.c: Likewise.
32966 * loader/powerpc/ieee1275/linux.c: Likewise.
32967 * loader/multiboot_loader.c: Likewise.
32968 * term/gfxterm.c: Likewise.
32969 * term/i386/pc/serial.c: Likewise.
32970 * term/terminfo.c: Likewise.
32972 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
32973 * term/i386/pc/vga.c: Likewise.
32974 * video/readers/jpeg.c: Likewise.
32975 * video/readers/png.c: Likewise.
32976 * video/readers/tga.c: Likewise.
32978 * util/grub-fstest (cmd_loopback): Removed.
32979 (cmd_blocklist): Likewise.
32980 (cmd_ls): Likewise.
32981 (grub_register_command): Likewise.
32982 (grub_unregister_command): Likewise.
32983 (execute_command): Use grub_command_find to locate command and execute
32986 * include/grub/efi/chainloader.h: Removed.
32987 * loader/efi/chainloader_normal.c: Likewise.
32988 * loader/i386/bsd_normal.c: Likewise.
32989 * loader/i386/pc/chainloader_normal.c: Likewise.
32990 * loader/i386/pc/multiboot_normal.c: Likewise.
32991 * loader/linux_normal.c: Likewise.
32992 * loader/multiboot_loader_normal.c: Likewise.
32993 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
32995 * gencmdlist.sh: Scan new registration command grub_register_extcmd
32996 and grub_register_command_p1.
32998 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
32999 kern/command.c, lib/arg.c and commands/extcmd.c.
33000 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
33001 (minicmd_mod_SOURCES): New variable.
33002 (minicmd_mod_CFLAGS): Likewise.
33003 (minicmd_mod_LDFLAGS): Likewise.
33004 (extcmd_mod_SOURCES): Likewise.
33005 (extcmd_mod_CFLAGS): Likewise.
33006 (extcmd_mod_LDFLAGS): Likewise.
33007 (boot_mod_SOURCES): Removed.
33008 (boot_mod_CFLAGS): Likewise.
33009 (boot_mod_LDFLAGS): Likewise.
33011 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
33013 (kernel_img_HEADERS): Add command.h.
33014 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
33015 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
33017 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
33018 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
33019 remove the corresponding normal mode command.
33020 (normal_mod_SOURCES): Remove normal/arg.c.
33021 * conf/i386-coreboot.rmk: Likewise.
33022 * conf/i386-efi.rmk: Likewise.
33023 * conf/i386-ieee1275.rmk: Likewise.
33024 * conf/powerpc-ieee1275.rmk: Likewise.
33025 * conf/x86_64-efi.rmk: Likewise.
33027 * include/grub/arg.h: Move from here ...
33028 * include/grub/lib/arg.h: ... to here.
33030 * normal/arg.c: Move from here ...
33031 * lib/arg.c: ... to here.
33033 * commands/extcmd.c: New file.
33034 * commands/minicmd.c: Likewise.
33035 * include/grub/command.h: Likewise.
33036 * include/grub/extcmd.h: Likewise.
33037 * kern/command.c: Likewise.
33038 * kern/corecmd.c: Likewise.
33040 * kern/list.c (grub_list_iterate): Return int instead of void.
33041 (grub_list_insert): New function.
33042 (grub_prio_list_insert): Likewise.
33044 * kern/rescue.c (grub_rescue_command): Removed.
33045 (grub_rescue_command_list): Likewise.
33046 (grub_rescue_register_command): Likewise.
33047 (grub_rescue_unregister_command): Likewise.
33048 (grub_rescue_cmd_boot): Move to minicmd.c
33049 (grub_rescue_cmd_help): Likewise.
33050 (grub_rescue_cmd_info): Likewise.
33051 (grub_rescue_cmd_boot): Likewise.
33052 (grub_rescue_cmd_testload): Likewise.
33053 (grub_rescue_cmd_dump): Likewise.
33054 (grub_rescue_cmd_rmmod): Likewise.
33055 (grub_rescue_cmd_lsmod): Likewise.
33056 (grub_rescue_cmd_exit): Likewise.
33057 (grub_rescue_print_devices): Moved to corecmd.c.
33058 (grub_rescue_print_files): Likewise.
33059 (grub_rescue_cmd_ls): Likewise.
33060 (grub_rescue_cmd_insmod): Likewise.
33061 (grub_rescue_cmd_set): Likewise.
33062 (grub_rescue_cmd_unset): Likewise.
33063 (attempt_normal_mode): Use grub_command_find to get normal module.
33064 (grub_enter_rescue_mode): Use grub_register_core_commands to register
33065 commands, remove grub_rescue_register_command calls.
33067 * normal/command.c (grub_register_command): Removed.
33068 (grub_unregister_command): Likewise.
33069 (grub_command_find): Likewise.
33070 (grub_iterate_commands): Likewise.
33071 (rescue_command): Likewise.
33072 (export_command): Moved to corecmd.c.
33073 (set_command): Removed.
33074 (unset_command): Likewise.
33075 (insmod_command): Likewise.
33076 (rmmod_command): Likewise.
33077 (lsmod_command): Likewise.
33078 (grub_command_init): Likewise.
33080 * normal/completion.c (iterate_command): Use cmd->prio to check for
33082 (complete_arguments): Use grub_extcmd_t structure to find options.
33083 (grub_normal_do_completion): Change function grub_iterate_commands to
33084 grub_command_iterate.
33086 * normal/execute.c (grub_script_execute_cmd): No need to parse
33089 * normal/main.c (grub_dyncmd_dispatcher): New function.
33090 (read_command_list): Register unload commands as dyncmd.
33091 (grub_cmd_normal): Use new command interface, register rescue,
33092 unregister normal at entry, register normal, unregister rescue at exit.
33094 * include/grub/list.h (grub_list_test_t): New type.
33095 (grub_list_iterate): Return int instead of void.
33096 (grub_list_insert): New function.
33097 (GRUB_AS_NAMED_LIST_P): New macro.
33098 (GRUB_AS_PRIO_LIST): Likewise.
33099 (GRUB_AS_PRIO_LIST_P): Likewise.
33100 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
33101 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
33102 (grub_prio_list): New structure.
33103 (grub_prio_list_insert): New function.
33104 (grub_prio_list_remove): New inline function.
33106 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
33107 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
33108 (GRUB_COMMAND_FLAG_MENU): Likewise.
33109 (GRUB_COMMAND_FLAG_BOTH): Likewise.
33110 (GRUB_COMMAND_FLAG_TITLE): Likewise.
33111 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
33112 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
33113 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
33114 (grub_command): Likewise.
33115 (grub_register_command): Likewise.
33116 (grub_command_find): Likewise.
33117 (grub_iterate_commands): Likewise.
33118 (grub_command_init): Likewise.
33119 (grub_arg_parse): Likewise.
33120 (grub_arg_show_help): Likewise.
33122 * include/grub/rescue.h (grub_rescue_register_command): Removed.
33123 (grub_rescue_unregister_command): Likewise.
33125 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
33126 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
33127 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
33129 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
33130 grub_rescue_cmd_initrd.
33131 * include/grub/i386/loader.h: Likewise.
33132 * include/grub/x86_64/loader.h: Likewise.
33134 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
33136 2009-03-21 Bean <bean123ch@gmail.com>
33138 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
33139 instead of stat in mingw environment.
33141 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
33143 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
33145 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
33148 2009-03-21 Bean <bean123ch@gmail.com>
33150 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
33151 out of range error.
33153 2009-03-18 Michel Dänzer <michel@daenzer.net>
33155 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
33156 checking inode flags for EXT4_EXTENTS_FLAG.
33158 2009-03-18 Robert Millan <rmh@aybabtu.com>
33160 * loader/i386/linux.c: Include `<grub/video.h>' and
33161 `<grub/i386/pc/vbe.h>'..
33162 (grub_linux_setup_video): New function. Loosely based on the EFI one.
33163 (grub_linux32_boot): Attempt to configure video settings with
33164 grub_linux_setup_video().
33165 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
33166 to avoid grub_console_fini() which would step out of graphical mode
33169 2009-03-14 Robert Millan <rmh@aybabtu.com>
33171 Fix build on powerpc.
33172 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
33174 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
33176 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
33177 background image command.
33179 2009-03-12 Colin D Bennett <colin@gibibit.com>
33181 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
33182 (grub_gfxterm_putchar): Extract pairs of identical calls to
33183 draw_cursor out of conditional blocks.
33185 2009-03-11 Pavel Roskin <proski@gnu.org>
33187 * fs/hfs.c (grub_hfs_strncasecmp): New function.
33188 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
33190 2009-03-11 Robert Millan <rmh@aybabtu.com>
33192 * loader/i386/multiboot_elfxx.c
33193 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
33195 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
33197 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
33200 2009-03-11 Robert Millan <rmh@aybabtu.com>
33202 * loader/i386/multiboot.c (code_size): New variable.
33203 (grub_multiboot): Define offsets by adding to `code_size' rather
33204 than subtracting from `grub_multiboot_payload_size'. Provide
33205 4-byte alignment to MBI and others by increasing
33206 `boot_loader_name_length' appropriately.
33208 * loader/i386/multiboot_elfxx.c
33209 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
33211 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
33213 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
33216 2009-03-08 Robert Millan <rmh@aybabtu.com>
33218 Make loader/i386/linux.c usable on i386-pc again.
33220 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
33222 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
33225 2009-03-07 Bean <bean123ch@gmail.com>
33227 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
33230 2009-03-06 Robert Millan <rmh@aybabtu.com>
33232 Fix display issue on terminals with screen size other than 80x25
33233 (e.g. gfxterm with resolution higher than 640x480).
33235 * normal/main.c (grub_normal_init_page): Display title text in a
33236 position relative to the center of the terminal instead of relying
33237 on a hardcoded offset.
33239 2009-03-04 Robert Millan <rmh@aybabtu.com>
33241 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
33244 * Makefile.in (host_kernel): New variable.
33245 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
33246 scripts instead of just the windows one.
33247 * configure.ac: Initialize and AC_SUBST `host_kernel'.
33249 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33251 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
33253 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33254 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33255 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33256 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33257 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33258 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33260 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33262 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
33263 or if there's no space for the disk label and print the partition number on a
33266 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33268 * util/misc.c: Include <time.h>.
33269 (grub_millisleep): New function.
33271 2009-03-04 Bean <bean123ch@gmail.com>
33273 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
33274 another option -mno-red-zone.
33276 * commands/handler.c: Change module description.
33278 * kern/handler.c: Add missing space at the end of description line.
33280 * kern/list.c: Likewise.
33282 2009-03-03 Robert Millan <rmh@aybabtu.com>
33284 Move more components to the relocation area, and fix mbi pointer
33285 handling to use the destination rather than the origin (thanks to
33286 Vladimir Serbinenko for spotting).
33288 * loader/i386/multiboot.c (mbi_dest): New variable.
33289 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
33290 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
33293 2009-03-01 Bean <bean123ch@gmail.com>
33295 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
33296 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
33297 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
33298 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
33300 * loader/i386/efi/linux.c (acpi_guid): New variable.
33301 (acpi_guid): Likewise.
33302 (EBDA_SEG_ADDR): New constant.
33303 (LOW_MEM_ADDR): Likewise.
33304 (FAKE_EBDA_SEG): Likewise.
33305 (fake_bios_data): New function.
33306 (grub_linux_boot): Call fake_bios_data.
33308 2009-03-01 Bean <bean123ch@gmail.com>
33310 * commands/terminal.c: Removed.
33312 * commands/handler.c: New file.
33314 * include/grub/list.h: Likewise.
33316 * include/grub/handler.h: Likewise.
33318 * kern/list.c: Likewise.
33320 * kern/handler.c: Likewise.
33322 * kern/term.h: Include header file <grub/handler.h>.
33323 (grub_term_input): Move next field to the beginning.
33324 (grub_term_output): Likewise.
33325 (grub_term_input_class): New variable.
33326 (grub_term_output_class): Likewise.
33327 (grub_term_register_input): Changed to inline function.
33328 (grub_term_register_output): Likewise.
33329 (grub_term_unregister_input): Likewise.
33330 (grub_term_unregister_output): Likewise.
33331 (grub_term_set_current_input): Likewise.
33332 (grub_term_set_current_output): Likewise.
33333 (grub_term_get_current_input): Likewise.
33334 (grub_term_get_current_output): Likewise.
33335 (grub_term_iterate_input): Removed.
33336 (grub_term_iterate_output): Likewise.
33338 * kern/term.c (grub_term_list_input): Removed.
33339 (grub_term_list_output): Likewise.
33340 (grub_term_input_class): New variable.
33341 (grub_term_output_class): Likewise.
33342 (grub_cur_term_input): Change variable as macro.
33343 (grub_cur_term_output): Likewise.
33344 (grub_term_register_input): Removed.
33345 (grub_term_register_output): Likewise.
33346 (grub_term_unregister_input): Likewise.
33347 (grub_term_unregister_output): Likewise.
33348 (grub_term_set_current_input): Likewise.
33349 (grub_term_set_current_output): Likewise.
33350 (grub_term_iterate_input): Likewise.
33351 (grub_term_iterate_output): Likewise.
33352 (grub_term_get_current_input): Likewise.
33353 (grub_term_get_current_output): Likewise.
33355 * util/grub-editenv.c: Include header file <grub/handler.h>.
33356 (grub_term_get_current_input): Removed.
33357 (grub_term_get_current_output): Likewise.
33358 (grub_term_input_class): New variable.
33359 (grub_term_output_class): Likewise.
33361 * util/grub-fstest.c (grub_term_get_current_input): Removed.
33362 (grub_term_get_current_output): Likewise.
33363 (grub_term_input_class): New variable.
33364 (grub_term_output_class): Likewise.
33366 * util/grub-probe.c (grub_term_get_current_input): Removed.
33367 (grub_term_get_current_output): Likewise.
33368 (grub_term_input_class): New variable.
33369 (grub_term_output_class): Likewise.
33371 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
33372 (grub_term_get_current_output): Likewise.
33373 (grub_term_input_class): New variable.
33374 (grub_term_output_class): Likewise.
33376 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
33377 (terminal_mod_SOURCES): Likewise.
33378 (terminal_mod_CFLAGS): Likewise.
33379 (terminal_mod_LDFLAGS): Likewise.
33381 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
33383 (kernel_img_SOURCES): Add list.c and handler.c.
33384 (kernel_img_HEADERS): Add list.h and handler.h.
33386 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
33388 (kernel_mod_SOURCES): Add list.c and handler.c.
33389 (kernel_mod_HEADERS): Add list.h and handler.h.
33391 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
33393 (kernel_elf_SOURCES): Add list.c and handler.c.
33394 (kernel_elf_HEADERS): Add list.h and handler.h.
33396 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
33398 (kernel_elf_SOURCES): Add list.c and handler.c.
33399 (kernel_elf_HEADERS): Add list.h and handler.h.
33401 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
33403 (kernel_mod_SOURCES): Add list.c and handler.c.
33404 (kernel_mod_HEADERS): Add list.h and handler.h.
33406 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
33408 (kernel_elf_SOURCES): Add list.c and handler.c.
33409 (kernel_elf_HEADERS): Add list.h and handler.h.
33411 2009-02-27 Robert Millan <rmh@aybabtu.com>
33413 Factorize elf32 / elf64 code in Multiboot loader. This will
33414 prevent it from getting out of sync again.
33416 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
33417 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
33418 grub_multiboot_load_elf64): Move from here ...
33419 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
33420 grub_multiboot_load_elf): ... to here (new file).
33422 2009-02-27 Robert Millan <rmh@aybabtu.com>
33424 * util/grub.d/10_linux.in: Rename "single-user mode" to
33427 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
33429 Don't leak in SCSI code.
33430 * disk/scsi.c (grub_scsi_close): free `scsi'.
33432 2009-02-27 Robert Millan <rmh@aybabtu.com>
33434 * loader/i386/pc/multiboot.c: Move from here ...
33435 * loader/i386/multiboot.c: ... to here. Update all users.
33437 2009-02-27 Robert Millan <rmh@aybabtu.com>
33439 Patch from Alexandre Bique <bique.alexandre@gmail.com>
33440 * util/i386/pc/grub-setup.c (setup): Fix directory path.
33442 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
33444 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
33447 2009-02-27 Robert Millan <rmh@aybabtu.com>
33449 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
33450 `0x' qualifier as 0 when base is specified as parameter).
33452 2009-02-24 Bean <bean123ch@gmail.com>
33454 * configure.ac: Check for -mcmodel=large in x86_64 target.
33456 * include/grub/efi/api.h (efi_call_10): New macro.
33457 (efi_wrap_10): New function.
33459 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
33460 (GRUB_PE32_REL_BASED_HIGH): Likewise.
33461 (GRUB_PE32_REL_BASED_LOW): Likewise.
33462 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
33463 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
33464 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
33465 (GRUB_PE32_REL_BASED_SECTION): Likewise.
33466 (GRUB_PE32_REL_BASED_REL): Likewise.
33467 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
33468 (GRUB_PE32_REL_BASED_DIR64): Likewise.
33469 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
33471 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
33474 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
33475 (efi_wrap_10): New function.
33477 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
33479 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
33480 MB/MBP model (NV chipset).
33481 (devdata_devs): Add devpath_5 to the list.
33483 * load/i386/efi/linux.c (video_base): Remove variable.
33484 (RGB_MASK): New macro.
33485 (RGB_MAGIC): Likewise.
33486 (LINE_MIN): Likewise.
33487 (LINE_MAX): Likewise.
33488 (FBTEST_STEP): Likewise.
33489 (FBTEST_COUNT): Likewise.
33490 (fb_list): New variable.
33491 (grub_find_video_card): Remove function.
33492 (find_framebuf): New function.
33493 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
33496 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
33497 problem for x86_64.
33499 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
33501 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
33503 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
33506 2009-02-22 Robert Millan <rmh@aybabtu.com>
33508 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
33509 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
33510 in our relocation, instead of using it directly from heap. Also
33511 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
33513 2009-02-21 Robert Millan <rmh@aybabtu.com>
33515 Implement USB keyboard support (based on patch by Marco Gerards)
33517 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
33518 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
33519 (usb_keyboard_mod_LDFLAGS): New variables.
33521 * term/usb_keyboard.c: New file.
33523 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
33525 Corrected wrong declaration
33527 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
33529 2009-02-14 Christian Franke <franke@computer.org>
33531 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
33532 (grub_lspci_iter): Print class code and programming interface byte.
33534 2009-02-14 Christian Franke <franke@computer.org>
33536 * gendistlist.sh: Ignore `.svn' directories.
33538 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
33540 * fs/fat.c: Add 2009 to Copyright line.
33542 2009-02-14 Christian Franke <franke@computer.org>
33544 * commands/hdparm.c: New file. Provides `hdparm' command
33545 which sends ATA commands via grub_disk_ata_pass_through ().
33547 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
33549 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
33550 and <grub/cpu/io.h> to include/grub/ata.h.
33551 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
33552 (GRUB_CDROM_SECTOR_SIZE): Remove.
33553 (GRUB_ATA_*): Move to include/grub/ata.h.
33554 (GRUB_ATAPI_*): Likewise.
33555 (enum grub_ata_commands): Likewise.
33556 (enum grub_ata_timeout_milliseconds): Likewise.
33557 (struct grub_ata_device): Likewise.
33558 (grub_ata_regset): Likewise.
33559 (grub_ata_regget): Likewise.
33560 (grub_ata_regset2): Likewise.
33561 (grub_ata_regget2): Likewise.
33562 (grub_ata_check_ready): Likewise.
33563 (grub_ata_wait_not_busy): Remove static, exported in
33564 include/grub/ata.h.
33565 (grub_ata_wait_drq): Likewise.
33566 (grub_ata_pio_read): Likewise.
33568 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
33569 function for hdparm.mod.
33571 * include/grub/ata.h: New file, contains declarations from
33573 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
33575 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
33576 (grub_disk_ata_pass_through): New exported variable.
33578 * kern/disk.c (grub_disk_ata_pass_through): New variable.
33580 2009-02-13 Colin D Bennett <colin@gibibit.com>
33582 Support multiple fallback entries, and provide an API to support
33583 executing default+fallback menu entries. Renamed the `terminal' menu
33586 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
33587 variable declaration.
33588 (grub_menu_execute_callback): New structure declaration.
33589 (grub_menu_execute_callback_t): New typedef.
33590 (grub_menu_execute_with_fallback): New function declaration.
33591 (grub_menu_get_entry): Likewise.
33592 (grub_menu_get_timeout): Likewise.
33593 (grub_menu_set_timeout): Likewise.
33595 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
33597 * normal/menu.c (grub_wait_after_message): Moved to
33598 `normal/menu_text.c'.
33599 (draw_border): Likewise.
33600 (print_message): Likewise.
33601 (print_entry): Likewise.
33602 (print_entries): Likewise.
33603 (grub_menu_init_page): Likewise.
33604 (get_entry_number): Likewise.
33605 (print_timeout): Likewise.
33606 (run_menu): Likewise.
33607 (grub_menu_execute_entry): Likewise.
33608 (show_text_menu): Likewise.
33609 (get_and_remove_first_entry_number): New function.
33610 (grub_menu_execute_with_fallback): Likewise.
33611 (get_entry): Renamed to ...
33612 (grub_menu_get_entry): .. this and made it global.
33613 (get_timeout): Renamed to ...
33614 (grub_menu_get_timeout): ... this and made it global.
33615 (set_timeout): Renamed to ...
33616 (grub_menu_set_timeout): ... this and made it global.
33617 (grub_normal_terminal_menu_viewer): Renamed to ...
33618 (grub_normal_text_menu_viewer): ... this.
33620 * normal/menu_text.c: New file. Extracted text-menu-specific code
33621 from normal/menu.c.
33623 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
33624 (normal_mod_SOURCES): Likewise.
33626 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33627 (normal_mod_SOURCES): Likewise.
33629 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33630 (normal_mod_SOURCES): Likewise.
33632 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
33633 (normal_mod_SOURCES): Likewise.
33635 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33636 (normal_mod_SOURCES): Likewise.
33638 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33639 (normal_mod_SOURCES): Likewise.
33641 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33642 (normal_mod_SOURCES): Likewise.
33644 2009-02-11 Robert Millan <rmh@aybabtu.com>
33646 * util/grub.d/00_header.in: Update old reference to `font' command.
33648 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
33650 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
33652 Based on patch from Javier Martín.
33654 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
33656 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
33657 to avoid false positives with FAT.
33658 (grub_fstest_SOURCES): Likewise.
33659 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33660 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33661 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33662 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33663 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33664 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33666 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
33668 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
33669 bpb.version_specific.fat12_or_fat16.fstype and
33670 bpb.version_specific.fat32.fstype.
33672 2009-02-08 Robert Millan <rmh@aybabtu.com>
33674 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
33676 2009-02-08 Robert Millan <rmh@aybabtu.com>
33678 * Makefile.in (host_os, host_cpu): New variables.
33679 (target_os): Remove. Update all users.
33681 2009-02-08 Marco Gerards <marco@gnu.org>
33683 * Makefile.in (enable_grub_emu_usb): New variable.
33684 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
33685 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
33686 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
33687 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
33688 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
33689 `usbtest.mod' and `usbms.mod'.
33690 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
33691 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
33692 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
33693 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
33694 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
33697 * disk/usbms.c: New file.
33699 * include/grub/usb.h: Likewise.
33701 * include/grub/usbtrans.h: Likewise.
33703 * include/grub/usbdesc.h: Likewise.
33705 * bus/usb/usbtrans.c: Likewise.
33707 * bus/usb/ohci.c: Likewise.
33709 * bus/usb/uhci.c: Likewise.
33711 * bus/usb/usbhub.c: Likewise.
33713 * bus/usb/usb.c: Likewise.
33715 * commands/usbtest.c: Likewise.
33717 * util/usb.c: Likewise.
33719 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
33721 * configure.ac: Test for libusb presence.
33723 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
33725 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
33727 * kern/mm.c: Add more comments.
33729 2009-02-08 Robert Millan <rmh@aybabtu.com>
33731 Patch from Javier Martín.
33732 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
33733 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
33735 2009-02-08 Robert Millan <rmh@aybabtu.com>
33737 * fs/cpio.c: Split tar functionality to ...
33738 * fs/tar.c: ... here (new file). Update all users.
33740 2009-02-07 Robert Millan <rmh@aybabtu.com>
33742 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
33743 backward-incompatible features.
33745 Based on patch from Javier Martín, with some adjustments.
33747 2009-02-07 Michael Scherer <misc@mandriva.org>
33749 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
33751 2009-02-07 Robert Millan <rmh@aybabtu.com>
33753 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
33754 position of `disk/lvm.c' to ensure grub_init_all() always picks it
33755 after the RAID stuff.
33757 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
33759 Fixes problem when running vbetest command as reported by
33760 Vladimir Serbinenko <phcoder@gmail.com>.
33762 * (grub_vbe_set_video_mode): Fixed problem with text modes.
33764 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
33766 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
33767 /dev/md/NpN style mdraid devices.
33769 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
33771 * util/unifont2pff.rb: Remove.
33773 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
33775 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
33778 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
33780 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
33781 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33782 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33783 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33784 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33785 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33786 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33788 2009-02-02 Christian Franke <franke@computer.org>
33790 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
33792 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
33794 * INSTALL: Note that we now require at least autoconf 2.59 and
33795 that LZO is optional.
33797 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
33799 Base on patch on bug #24154 created by Tomas Tintera
33800 <trosos@seznam.cz>.
33802 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
33804 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
33806 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
33807 <bero@arklinux.org>.
33809 * normal/parser.y (script_init): Add missing semicolon.
33811 2009-01-31 Colin D Bennett <colin@gibibit.com>
33813 * normal/main.c: Add include to grub/menu_viewer.h.
33814 (free_menu_entry_classes): Added.
33815 (grub_normal_menu_addentry): Added class property handling.
33816 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
33817 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
33819 * normal/menu_viewer.c: New file.
33821 * normal/menu.c (run_menu_entry): Renamed to ...
33822 (grub_menu_execute_entry): ... this and made it as global.
33823 (grub_menu_run): Renamed to ...
33824 (show_text_menu): ... this and made it local.
33825 (show_text_menu): Adapt to new function names.
33826 (grub_normal_terminal_menu_viewer): New global variable.
33828 * include/grub/menu.h: New file.
33830 * include/grub/menu_viewer.h: New file.
33832 * include/grub/normal.h: Added include to grub/menu.h.
33833 (grub_menu_entry): Moved to include/grub/menu.h.
33834 (grub_menu_entry_t): Likewise.
33835 (grub_menu): Likewise.
33836 (grub_menu_t): Likewise.
33837 (grub_normal_terminal_menu_viewer): Added.
33838 (grub_menu_execute_entry): Likewise.
33839 (grub_menu_run): Removed.
33841 * DISTLIST: Added include/grub/menu.h.
33842 Added include/grub/menu_viewer.h.
33843 Added normal/menu_viewer.c.
33845 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
33847 * normal/execute.c (grub_script_execute_menuentry): Changed to use
33848 arglist for menutitle arguments.
33850 * normal/main.c (grub_normal_menu_addentry): Likewise.
33852 * normal/parser.y (menuentry): Likewise.
33854 * normal/script.c (grub_script_create_cmdmenu): Likewise.
33856 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
33857 (grub_script_create_cmdmenu): Likewise.
33859 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
33861 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
33864 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
33866 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
33868 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
33870 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
33872 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
33874 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
33876 2009-01-30 Christian Franke <franke@computer.org>
33878 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
33879 in option help text.
33881 2009-01-27 Pavel Roskin <proski@gnu.org>
33883 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
33885 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
33887 * commands/lsmmap.c: Add include to grub/machine/memory.h.
33889 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
33891 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
33892 unregister function.
33894 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
33896 * disk/scsi.c (grub_scsi_read): Fix sign problem.
33898 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
33900 * util/grub-mkfont.c (usage): Fix typo.
33902 * util/elf/grub-mkimage.c (load_modules): Fix warning.
33904 2009-01-26 Daniel Mierswa <impulze@impulze.org>
33906 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
33908 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
33910 * kern/misc.c (grub_strcasecmp): New function.
33911 (grub_strcasecmp): Use grub_size_t instead of int for length.
33913 * include/grub/misc.h: Update function prototypes.
33915 2009-01-26 Robert Millan <rmh@aybabtu.com>
33917 * configure.ac: Fix cross-compilation check.
33919 2009-01-22 Christian Franke <franke@computer.org>
33921 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
33922 (precision) digit string. Allow `.format2' without `format1' (width).
33923 Limit input chars for `%s' output to `format2' if specified. This is
33924 compatible with standard printf ().
33926 2009-01-22 Christian Franke <franke@computer.org>
33928 * disk/ata.c (grub_ata_wait_status): Replace by ...
33929 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
33930 other status bits may be invalid while BSY is asserted.
33931 (grub_ata_check_ready): New function.
33932 (grub_ata_cmd): Removed.
33933 (grub_ata_wait_drq): New function.
33934 (grub_ata_strncpy): Remove inline.
33935 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
33936 and error check now done by grub_ata_wait_drq ().
33937 (grub_ata_pio_write): Likewise.
33938 (grub_atapi_identify): Set DEV before check for !BSY. Use
33939 grub_ata_wait_drq () to wait for data.
33940 (grub_ata_device_initialize): Add status register check to
33941 detect missing SATA slave devices. Add debug messages.
33942 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
33943 (grub_atapi_packet): Set DEV before check for !BSY. Replace
33944 transfer loop by grub_ata_pio_write ().
33945 (grub_ata_identify): Set DEV before check for !BSY. Use
33946 grub_ata_wait_drq () to wait for data.
33947 (grub_ata_setaddress): Set DEV before check for !BSY.
33948 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
33949 read/write in one loop. Fix invalid command on write. Fix incomplete
33950 command on (size % batch) == 0. Add missing error check after write of
33951 last block. Add debug messages.
33952 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
33954 2009-01-19 Christian Franke <franke@computer.org>
33956 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
33957 (GRUB_ATAPI_IREASON_*): Likewise.
33958 (grub_ata_pio_write): Fix timeout error return.
33959 (grub_atapi_identify): Add grub_ata_wait () after cmd.
33960 (grub_atapi_wait_drq): New function.
33961 (grub_atapi_packet): New parameter `size'.
33962 Use grub_atapi_wait_drq () and direct write instead of
33963 grub_ata_pio_write ().
33964 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
33965 reads the number of bytes requested by the device for each DRQ
33967 (grub_atapi_write): Remove old implementation, return not
33968 implemented instead.
33970 2009-01-19 Christian Franke <franke@computer.org>
33972 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
33973 of 512 to calculate data size.
33974 (grub_scsi_read12): Likewise.
33975 (grub_scsi_write10): Likewise.
33976 (grub_scsi_write12): Likewise.
33977 (grub_scsi_read): Adjust size according to blocksize.
33978 Add checks for invalid blocksize and unaligned transfer.
33980 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
33982 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
33984 * term/gfxterm.c (write_char): Fix background rendering for wide
33987 2009-01-19 Robert Millan <rmh@aybabtu.com>
33989 * config.guess: Update to latest version from config git.
33990 * config.sub: Likewise.
33992 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
33994 * Makefile.in: Change font compilation to use new grub-mkfont instead
33997 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
33998 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
33999 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34000 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34001 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34002 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34003 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34004 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34005 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
34007 2009-01-16 Christian Franke <franke@computer.org>
34009 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
34010 (enum grub_ata_timeout_milliseconds): New enum.
34011 (grub_ata_wait_status): Add parameter milliseconds.
34012 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
34013 recovery from timed-out commands.
34014 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
34015 return grub_errno instead of REG_ERROR.
34016 (grub_ata_pio_write): Add parameter milliseconds.
34017 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
34018 Pass milliseconds to grub_ata_wait_status () and
34019 grub_ata_pio_read ().
34020 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
34021 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
34022 grub_ata_wait_status (). Fix IDENTIFY timeout check.
34023 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
34024 It is not suitable for device detection, because DEV bit is ignored,
34025 the command may run too long, and not all devices set the signature
34027 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
34028 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
34029 Fix device selection, DEV bit must be set first to address the registers
34030 of the correct device.
34031 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
34032 grub_ata_pio_read/write ().
34033 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
34034 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
34036 2009-01-13 Carles Pina i Estany <carles@pina.cat>
34038 * util/grub-editenv.c (main): Use fseeko(), not fseek().
34040 2009-01-13 Bean <bean123ch@gmail.com>
34042 * util/grub-mkfont.c (write_font): forget to remove some debug code.
34044 2009-01-13 Bean <bean123ch@gmail.com>
34046 * Makefile.in: (enable_grub_mkfont): New variable.
34047 (freetype_cflags): Likewise.
34048 (freetype_libs): Likewise.
34050 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
34051 (grub_mkfont_SOURCES): New variable.
34052 (grub_mkfont_CFLAGS): Likewise.
34053 (grub_mkfont_LDFLAGS): Likewise.
34055 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
34056 library if `--enable-grub-mkfont' is requested.
34057 (enable_grub_mkfont): New variable.
34058 (freetype_cflags): Likewise.
34059 (freetype_libs): Likewise.
34061 * util/grub-mkfont.c: New file.
34063 2009-01-12 Christian Franke <franke@computer.org>
34065 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
34066 mode check. Fix setting of compat_use[].
34068 2009-01-10 Robert Millan <rmh@aybabtu.com>
34070 Update a few copyright years which we forgot to do in 2008 (only for
34071 files whose changes made in 2008 were copyright-significant)
34073 * Makefile.in: Add 2008 to Copyright line.
34074 * disk/ieee1275/ofdisk.c: Likewise.
34075 * disk/efi/efidisk.c: Likewise.
34076 * kern/dl.c: Likewise.
34077 * kern/sparc64/ieee1275/init.c: Likewise.
34078 * kern/mm.c: Likewise.
34079 * kern/efi/mm.c: Likewise.
34080 * boot/i386/pc/boot.S: Likewise.
34081 * genfslist.sh: Likewise.
34082 * fs/iso9660.c: Likewise.
34083 * fs/hfs.c: Likewise.
34084 * fs/jfs.c: Likewise.
34085 * fs/minix.c: Likewise.
34086 * fs/ufs.c: Likewise.
34087 * gensymlist.sh.in: Likewise.
34088 * genkernsyms.sh.in: Likewise.
34089 * include/grub/misc.h: Likewise.
34090 * include/grub/types.h: Likewise.
34091 * include/grub/symbol.h: Likewise.
34092 * include/grub/elf.h: Likewise.
34093 * include/grub/kernel.h: Likewise.
34094 * include/grub/disk.h: Likewise.
34095 * include/grub/dl.h: Likewise.
34096 * include/grub/i386/linux.h: Likewise.
34097 * include/grub/i386/pc/biosdisk.h: Likewise.
34098 * include/grub/efi/api.h: Likewise.
34099 * include/grub/efi/pe32.h: Likewise.
34100 * include/grub/util/misc.h: Likewise.
34101 * normal/execute.c: Likewise.
34102 * normal/arg.c: Likewise.
34103 * normal/completion.c: Likewise.
34104 * normal/lexer.c: Likewise.
34105 * normal/parser.y: Likewise.
34106 * normal/misc.c: Likewise.
34107 * commands/i386/pc/vbeinfo.c: Likewise.
34108 * commands/hexdump.c: Likewise.
34109 * commands/terminal.c: Likewise.
34110 * commands/ls.c: Likewise.
34111 * commands/help.c: Likewise.
34112 * partmap/pc.c: Likewise.
34113 * loader/efi/chainloader.c: Likewise.
34114 * loader/multiboot_loader.c: Likewise.
34115 * loader/i386/pc/multiboot2.c: Likewise.
34116 * term/efi/console.c: Likewise.
34117 * term/i386/pc/serial.c: Likewise.
34118 * util/lvm.c: Likewise.
34119 * util/console.c: Likewise.
34120 * util/i386/efi/grub-mkimage.c: Likewise.
34121 * util/raid.c: Likewise.
34123 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
34125 * commands/videotest.c: Removed include to grub/machine/memory.h.
34127 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
34128 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
34129 (video_mod_SOURCES): Removed.
34130 (video_mod_CFLAGS): Likewise.
34131 (video_mod_LDFLAGS): Likewise.
34132 (gfxterm_mod_SOURCES): Likewise.
34133 (gfxterm_mod_CFLAGS): Likewise.
34134 (gfxterm_mod_LDFLAGS): Likewise.
34135 (videotest_mod_SOURCES): Likewise.
34136 (videotest_mod_CFLAGS): Likewise.
34137 (videotest_mod_LDFLAGS): Likewise.
34138 (bitmap_mod_SOURCES): Likewise.
34139 (bitmap_mod_CFLAGS): Likewise.
34140 (bitmap_mod_LDFLAGS): Likewise.
34141 (tga_mod_SOURCES): Likewise.
34142 (tga_mod_CFLAGS): Likewise.
34143 (tga_mod_LDFLAGS): Likewise.
34144 (jpeg_mod_SOURCES): Likewise.
34145 (jpeg_mod_CFLAGS): Likewise.
34146 (jpeg_mod_LDFLAGS): Likewise.
34147 (png_mod_SOURCES): Likewise.
34148 (png_mod_CFLAGS): Likewise.
34149 (png_mod_LDFLAGS): Likewise.
34151 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
34152 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
34153 (video_mod_SOURCES): Added.
34154 (video_mod_CFLAGS): Likewise.
34155 (video_mod_LDFLAGS): Likewise.
34156 (videotest_mod_SOURCES): Likewise.
34157 (videotest_mod_CFLAGS): Likewise.
34158 (videotest_mod_LDFLAGS): Likewise.
34159 (bitmap_mod_SOURCES): Likewise.
34160 (bitmap_mod_CFLAGS): Likewise.
34161 (bitmap_mod_LDFLAGS): Likewise.
34162 (tga_mod_SOURCES): Likewise.
34163 (tga_mod_CFLAGS): Likewise.
34164 (tga_mod_LDFLAGS): Likewise.
34165 (jpeg_mod_SOURCES): Likewise.
34166 (jpeg_mod_CFLAGS): Likewise.
34167 (jpeg_mod_LDFLAGS): Likewise.
34168 (png_mod_SOURCES): Likewise.
34169 (png_mod_CFLAGS): Likewise.
34170 (png_mod_LDFLAGS): Likewise.
34171 (gfxterm_mod_SOURCES): Likewise.
34172 (gfxterm_mod_CFLAGS): Likewise.
34173 (gfxterm_mod_LDFLAGS): Likewise.
34175 * term/gfxterm.c: Removed include to grub/machine/memory.h,
34176 grub/machine/console.h.
34178 2009-01-04 Jerone Young <jerone@gmail.com>
34180 Make on screen instructions clearer
34182 Based on patch created by Jidanni <jidanni@jidanni.org>
34184 * normal/menu.c: print clearer instructions on the screen
34186 2009-01-02 Colin D Bennett <colin@gibibit.com>
34190 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
34191 build system and fixed gfxterm.c to work with different sized fonts.
34193 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34195 * configure: Re-generated.
34197 * DISTLIST: Removed font/manager.c.
34199 Added font/font_cmd.c.
34201 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
34204 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34206 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
34208 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34210 * normal/menu.c: Likewise.
34212 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
34213 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34215 * include/grub/font.h: Replaced with new file.
34217 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
34218 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
34219 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
34220 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
34221 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34222 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
34223 fg_red, fg_green, fg_blue, fg_alpha.
34224 (grub_video_adapter): Removed blit_glyph.
34225 (grub_video_blit_glyph): Removed.
34227 * font/manager.c: Removed file.
34229 * font/font.c: New file.
34231 * font/font_cmd.c: Likewise.
34233 * video/video.c (grub_video_blit_glyph): Removed.
34235 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
34236 (grub_video_vbe_map_rgba): Likewise.
34237 (grub_video_vbe_unmap_color_int): Likewise.
34238 (grub_video_vbe_blit_glyph): Removed.
34239 (grub_video_vbe_adapter): Removed blit_glyph.
34241 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
34242 (get_pixel): Likewise.
34243 (set_pixel): Likewise.
34245 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34247 * term/gfxterm.c: Adapted to new font engine.
34249 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34251 * term/i386/pc/vga.c: Likewise.
34253 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34255 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34257 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34259 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34261 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34263 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34265 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34267 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34269 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
34271 * util/grub.d/00_header.in: Changed to use new loadfont command.
34273 * util/grub-mkconfig_lib.in: Changed font extension.
34275 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
34277 * util/getroot.c (grub_util_get_grub_dev): Add support for
34278 /dev/md/dNNpNN style partitionable mdraid devices.
34280 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
34282 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
34283 at a time limit of the PXE TFTP API correctly.
34284 (grub_pxefs_close): Likewise.
34286 2008-11-29 Robert Millan <rmh@aybabtu.com>
34288 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
34289 grub_ata_device_initialize() calls.
34291 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
34293 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
34295 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
34297 2008-11-28 Robert Millan <rmh@aybabtu.com>
34299 Fix build on powerpc-ieee1275. Based on patch created by
34300 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
34301 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
34302 `kern/ieee1275/mmap.c'.
34303 * include/grub/powerpc/ieee1275/memory.h: New file.
34305 Provide grub-install on coreboot.
34306 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
34307 (grub_install_SOURCES): New variable.
34308 * util/i386/pc/grub-install.in: Add a few condition checks to make it
34309 usable on coreboot.
34311 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
34313 * util/grub-fstest.c (grub_term_get_current_input): Change return type
34314 to `grub_term_input_t'.
34315 (grub_term_get_current_output): Change return type to
34316 `grub_term_output_t'.
34318 2008-11-22 Robert Millan <rmh@aybabtu.com>
34320 Fix breakage on coreboot due to declaration mismatch.
34321 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
34322 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
34323 grub_vga_text_cls().
34325 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34326 comments. Avoid copying one more byte than necessary (just in case).
34328 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
34329 to 0x200000 (avoids trouble with some OFW implementations, and matches
34330 with the one in Yaboot).
34331 Reported by Manoel Abranches
34333 2008-11-20 Robert Millan <rmh@aybabtu.com>
34335 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
34336 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
34338 * util/grub-mkconfig_lib.in (grub_warn): New function.
34339 (convert_system_path_to_grub_path): Use grub_warn() when issuing
34340 warnings, to obtain consistent formatting.
34341 * util/grub.d/00_header.in: Likewise.
34342 * util/update-grub_lib.in: Likewise.
34344 * loader/i386/linux.c (allocate_pages): Fix a warning.
34345 Move comment text to `#error' stanza.
34347 Harmonize ieee1275's grub_available_iterate() with the generic
34348 grub_machine_mmap_iterate() interface (fixes a recently-introduced
34349 build problem on i386-ieee1275):
34350 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
34351 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
34352 parameter `type'. Update all users of this function.
34353 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
34354 `kern/ieee1275/mmap.c'.
34355 * kern/ieee1275/init.c
34356 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
34358 (grub_machine_mmap_iterate): ... this.
34359 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
34360 return type to `grub_err_t'. Update all implementations of this
34361 function prototype.
34362 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
34365 Add `lsmmap' command (lists firmware-provided memory map):
34366 * commands/lsmmap.c: New file.
34367 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
34368 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
34370 * conf/powerpc-ieee1275.rmk: Likewise.
34371 * conf/i386-coreboot.rmk: Likewise.
34372 * conf/i386-ieee1275.rmk: Likewise.
34374 2008-11-19 Robert Millan <rmh@aybabtu.com>
34376 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
34377 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
34378 constraints to initrd allocation (based on code from
34379 loader/i386/pc/linux.c). Without them, initrd was allocated too high
34380 for Linux to find it.
34382 2008-11-14 Robert Millan <rmh@aybabtu.com>
34384 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
34385 order to cope with duplicate slashes.
34387 2008-11-14 Robert Millan <rmh@aybabtu.com>
34389 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
34390 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
34391 don't want to mess with lower memory, because it is used in the Linux
34394 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34395 an appropriate place in lower memory, between 0x10000 and 0x90000,
34396 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
34397 is in our heap (probably as a result of it being corrupted during
34398 decompression). Add #error instance with comment to explain why this
34399 loader isn't currently usable on PC/BIOS.
34401 2008-11-14 Robert Millan <rmh@aybabtu.com>
34403 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34404 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
34406 2008-11-12 Robert Millan <rmh@aybabtu.com>
34408 Make loader/i386/linux.c buildable on i386-pc (although disabled).
34410 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
34411 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
34413 * include/grub/i386/pc/memory.h: ... to here.
34415 2008-11-12 Robert Millan <rmh@aybabtu.com>
34417 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
34420 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
34421 (grub_console_cur_color, grub_console_real_putchar)
34422 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
34423 (grub_console_setcolorstate, grub_console_setcolor)
34424 (grub_console_getcolor): Move from here ...
34425 * include/grub/i386/vga_common.h: ... to here (new file).
34427 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
34428 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
34429 `<grub/i386/io.h>'.
34430 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
34431 `<grub/i386/vga_common.h>'.
34433 2008-11-12 Robert Millan <rmh@aybabtu.com>
34435 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
34436 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
34437 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
34439 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
34440 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
34442 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
34443 grub_console_init() with call to grub_vga_text_init().
34444 (grub_machine_fini): Replace call to
34445 grub_console_fini() with call to grub_vga_text_fini() and
34446 grub_at_keyboard_fini().
34448 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
34449 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
34450 (grub_console_setcolorstate, grub_console_setcolor)
34451 (grub_console_getcolor): New function prototypes.
34453 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
34454 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
34455 (grub_vga_text_setcursor): Static-ize.
34456 (grub_vga_text_term): New structure.
34457 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
34459 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
34460 (grub_console_cur_color, grub_console_standard_color)
34461 (grub_console_normal_color, grub_console_highlight_color)
34462 (map_char, grub_console_putchar, grub_console_getcharwidth)
34463 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
34464 (grub_console_getcolor): Move from here ...
34465 * term/i386/vga_common.c: ... to here (same function names).
34467 2008-11-12 Robert Millan <rmh@aybabtu.com>
34469 Use newly-added Multiboot support in coreboot.
34471 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
34472 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
34474 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
34475 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
34476 (codestart): Store the MBI in `startup_multiboot_info' when we're
34477 being loaded using Multiboot.
34479 * kern/i386/coreboot/init.c (grub_machine_init): Move
34480 grub_at_keyboard_init() call to beginning of function (useful for
34481 debugging). Call grub_machine_mmap_init() before attempting to use
34482 grub_machine_mmap_iterate().
34483 (grub_lower_mem, grub_upper_mem): Move from here ...
34484 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
34487 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
34488 function prototype.
34490 2008-11-12 Robert Millan <rmh@aybabtu.com>
34492 Fix a regression introduced by the at_keyboard.mod split. Because
34493 some terminals are default on some platforms and non-default on
34494 others, the first terminal being registered determines which is
34495 going to be default.
34497 * kern/term.c (grub_term_register_input): If this is the first
34498 terminal being registered, set it as the current one.
34499 (grub_term_register_output): Likewise.
34501 * term/efi/console.c (grub_console_init): Do not call
34502 grub_term_set_current_output() or grub_term_set_current_input().
34503 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
34504 * term/i386/pc/console.c (grub_console_init): Likewise.
34505 (grub_console_fini): Do not call grub_term_set_current_input()
34506 (but leave grub_term_set_current_output() to restore text mode).
34508 2008-11-10 Robert Millan <rmh@aybabtu.com>
34510 * util/grub.d/00_header.in: Add backward compatibility check for
34511 versions of terminal.mod that don't understand `terminal_input' or
34514 2008-11-09 Robert Millan <rmh@aybabtu.com>
34516 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
34517 `terminal_input' / `terminal_output', not `terminal'.
34519 2008-11-08 Robert Millan <rmh@aybabtu.com>
34521 * Makefile.in (include_DATA): Fix srcdir=. assumption.
34522 (DISTCLEANFILES): Add `build_env.mk'.
34524 2008-11-08 Robert Millan <rmh@aybabtu.com>
34526 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
34527 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34528 members. Update all users.
34529 * util/console.c (grub_ncurses_term): Split in ...
34530 (grub_ncurses_term_input): ... this, and ...
34531 (grub_ncurses_term_output): ... this. Update all users.
34532 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
34534 2008-11-08 Robert Millan <rmh@aybabtu.com>
34536 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
34537 (PKGDATA): Add $(pkgdata_SRCDIR).
34538 (pkglib_BUILDDIR): New variable.
34539 (pkgdata_SRCDIR): New variable.
34540 (build_env.mk): New target.
34541 (include_DATA): New variable.
34542 (install-local): Install $(include_DATA) files in $(includedir).
34544 2008-11-07 Pavel Roskin <proski@gnu.org>
34546 * gendistlist.sh: Use C locale for sorting to ensure consistent
34547 output on all systems.
34549 * util/grub.d/00_header.in: Remove incorrect space before
34552 2008-11-07 Robert Millan <rmh@aybabtu.com>
34554 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
34556 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
34557 * loader/multiboot_loader.c (find_multi_boot2_header): New function
34558 (based on find_multi_boot1_header).
34559 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
34560 using find_multi_boot2_header(), and abort if neither Multiboot or
34561 Multiboot headers were found.
34563 2008-11-07 Robert Millan <rmh@aybabtu.com>
34565 Modularize at_keyboard.mod:
34567 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
34568 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
34569 (at_keyboard_mod_LDFLAGS): New variables.
34571 Actual terminal split:
34573 * include/grub/term.h (struct grub_term): Split in ...
34574 (struct grub_term_input): ... this, and ...
34575 (struct grub_term_output): ... this. Update all users.
34576 (grub_term_set_current): Split in ...
34577 (grub_term_set_current_input): ... this, and ...
34578 (grub_term_set_current_output): ... this.
34579 (grub_term_get_current): Split in ...
34580 (grub_term_get_current_input): ... this, and ...
34581 (grub_term_get_current_output): ... this.
34582 (grub_term_register): Split in ...
34583 (grub_term_register_input): ... this, and ...
34584 (grub_term_register_output): ... this.
34585 (grub_term_unregister): Split in ...
34586 (grub_term_unregister_input): ... this, and ...
34587 (grub_term_unregister_output): ... this.
34588 (grub_term_iterate): Split in ...
34589 (grub_term_iterate_input): ... this, and ...
34590 (grub_term_iterate_output): ... this.
34592 * kern/term.c (grub_term_list): Split in ...
34593 (grub_term_list_input): ... this, and ...
34594 (grub_term_list_output): ... this. Update all users.
34595 (grub_cur_term): Split in ...
34596 (grub_cur_term_input): ... this, and ...
34597 (grub_cur_term_output): ... this. Update all users.
34598 (grub_term_set_current): Split in ...
34599 (grub_term_set_current_input): ... this, and ...
34600 (grub_term_set_current_output): ... this.
34601 (grub_term_get_current): Split in ...
34602 (grub_term_get_current_input): ... this, and ...
34603 (grub_term_get_current_output): ... this.
34604 (grub_term_register): Split in ...
34605 (grub_term_register_input): ... this, and ...
34606 (grub_term_register_output): ... this.
34607 (grub_term_unregister): Split in ...
34608 (grub_term_unregister_input): ... this, and ...
34609 (grub_term_unregister_output): ... this.
34610 (grub_term_iterate): Split in ...
34611 (grub_term_iterate_input): ... this, and ...
34612 (grub_term_iterate_output): ... this.
34614 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
34615 a check for input and one for output (and only attempt to get keys
34616 from user when input works).
34618 * util/grub-probe.c (grub_term_get_current): Split in ...
34619 (grub_term_get_current_input): ... this, and ...
34620 (grub_term_get_current_output): ... this.
34621 * util/grub-fstest.c: Likewise.
34622 * util/i386/pc/grub-setup.c: Likewise.
34623 * util/grub-editenv.c: Likewise.
34625 Portability adjustments:
34627 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
34628 `term/i386/pc/at_keyboard.c'.
34629 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
34630 grub_keyboard_controller_init() (now handled by terminal .init).
34631 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
34632 grub_at_keyboard_init().
34633 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
34634 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
34635 at_keyboard.mod via input terminal interface).
34636 * include/grub/i386/coreboot/console.h: Convert into a stub for
34637 `<grub/i386/pc/console.h>'.
34639 Migrate full terminals to new API:
34641 * term/efi/console.c (grub_console_term): Split into ...
34642 (grub_console_term_input): ... this, and ...
34643 (grub_console_term_output): ... this. Update all users.
34644 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
34645 (grub_ofconsole_init): Split into ...
34646 (grub_ofconsole_init_input): ... this, and ...
34647 (grub_ofconsole_init_output): ... this.
34648 (grub_ofconsole_term): Split into ...
34649 (grub_ofconsole_term_input): ... this, and ...
34650 (grub_ofconsole_term_output): ... this. Update all users.
34651 * term/i386/pc/serial.c (grub_serial_term): Split into ...
34652 (grub_serial_term_input): ... this, and ...
34653 (grub_serial_term_output): ... this. Update all users.
34654 * term/i386/pc/console.c (grub_console_term): Split into ...
34655 (grub_console_term_input): ... this, and ...
34656 (grub_console_term_output): ... this. Update all users.
34657 (grub_console_term_input): Only enable it on PC/BIOS platform.
34658 (grub_console_init): Remove grub_keyboard_controller_init() call.
34660 Migrate input terminals to new API:
34662 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
34663 `i386' and `i386/pc' to enable build on x86_64 (this driver is
34664 i386-specific anyway).
34665 (grub_console_checkkey): Rename to ...
34666 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
34668 (grub_keyboard_controller_orig): New variable.
34669 (grub_console_getkey): Rename to ...
34670 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
34672 (grub_keyboard_controller_init): Static-ize. Save original
34673 controller value so that it can be restored ...
34674 (grub_keyboard_controller_fini): ... here (new function).
34675 (grub_at_keyboard_term): New structure.
34676 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
34679 Migrate output terminals to new API:
34681 * term/i386/pc/vga.c (grub_vga_term): Change type to
34682 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34683 members. Update all users.
34684 * term/gfxterm.c (grub_video_term): Change type to
34685 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34686 members. Update all users.
34687 * include/grub/i386/pc/console.h (grub_console_checkkey)
34688 (grub_console_getkey): Do not export (no longer needed by gfxterm,
34691 Migrate `terminal' command and userland tools to new API:
34693 * commands/terminal.c (grub_cmd_terminal): Split into ...
34694 (grub_cmd_terminal_input): ... this, and ...
34695 (grub_cmd_terminal_output): ... this.
34696 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
34697 `terminal_input' and `terminal_output'.
34698 * util/grub.d/00_header.in: Adjust `terminal' calls to new
34699 `terminal_input' / `terminal_output' API.
34700 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
34701 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
34702 provided ${GRUB_TERMINAL}, convert it).
34704 2008-11-04 Robert Millan <rmh@aybabtu.com>
34706 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
34708 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
34710 2008-11-03 Bean <bean123ch@gmail.com>
34712 * kern/elf.c (grub_elf32_load): Revert to previous code.
34713 (grub_elf64_load): Likewise.
34715 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
34717 2008-11-01 Robert Millan <rmh@aybabtu.com>
34719 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
34720 (TARGET_CPPFLAGS): Likewise.
34721 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
34723 2008-11-01 Carles Pina i Estany <carles@pina.cat>
34725 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
34727 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
34729 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
34730 addition of objects until the code is not going to be able to fail.
34732 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
34734 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
34735 (add a missing NULL check, and correct them by moving the pointer
34736 operations after the actual check).
34738 2008-10-29 Robert Millan <rmh@aybabtu.com>
34740 * util/i386/pc/grub-install.in: Handle empty string as output from
34741 make_system_path_relative_to_its_root().
34743 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
34745 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
34746 circular metadata worst case scenario. If the metadata is circular
34747 then copy the wrap in place.
34748 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
34749 project lib/format_text/layout.h
34750 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
34752 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
34754 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
34756 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
34758 * util/update-grub_lib.in: Mention filename in warning message.
34760 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
34762 * NEWS: Update for rename of update-grub to grub-mkconfig.
34764 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
34766 * util/update-grub_lib.in: Copy to ...
34767 * util/grub-mkconfig_lib.in: ... this. Update all users.
34768 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
34769 * util/update-grub.in: Rename to ...
34770 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
34771 option. Add `--output' option to allow users to specify the generated
34772 configuration file. Default to stdout.
34773 (update_grub_dir): Rename to ...
34774 (grub_mkconfig_dir): ... this.
34775 (grub_cfg): Default to an empty string.
34776 * conf/common.rmk (update-grub): Rename to ...
34777 (grub-mkconfig): ... this.
34778 (update-grub_lib): Copy to ...
34779 (grub-mkconfig_lib): ... this.
34780 (update-grub_SCRIPTS): Copy to ...
34781 (grub-mkconfig_SCRIPTS): ... this. Update all users.
34782 (update-grub_DATA): Rename to ...
34783 (grub-mkconfig_DATA): ... this.
34785 2008-09-28 Robert Millan <rmh@aybabtu.com>
34787 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
34788 to `modified'. Add the real `created' field.
34789 (grub_iso9660_uuid): Use `modified' rather than `created' for
34790 constructing the UUID.
34792 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
34794 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
34795 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
34797 2008-09-28 Bean <bean123ch@gmail.com>
34799 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
34800 Thanks to Christian Franke for finding this bug.
34802 2008-09-25 Robert Millan <rmh@aybabtu.com>
34804 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
34805 instances of grub_util_get_disk_name() (see previous commit).
34807 2008-09-25 Robert Millan <rmh@aybabtu.com>
34809 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
34810 `util/i386/get_disk_name.c'.
34811 * conf/i386-efi.rmk: Likewise.
34812 * conf/x86_64-efi.rmk: Likewise.
34813 * conf/i386-coreboot.rmk: Likewise.
34814 * conf/i386-ieee1275.rmk: Likewise.
34815 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
34816 `util/ieee1275/get_disk_name.c'.
34817 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
34818 * util/ieee1275/get_disk_name.c: Remove file.
34819 * util/i386/get_disk_name.c: Remove file.
34820 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
34821 "hd%d" for device.map entries, rather than using
34822 grub_util_get_disk_name().
34824 2008-09-24 Carles Pina i Estany <carles@pina.cat>
34826 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
34828 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
34830 2008-09-24 Carles Pina i Estany <carles@pina.cat>
34832 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
34834 (GRUB_TERM_PPAGE): Changed to 0x4900.
34836 2008-09-24 Robert Millan <rmh@aybabtu.com>
34838 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
34839 macros (they were i386-pc specific).
34840 * include/grub/sparc64/ieee1275/console.h: Likewise.
34841 * include/grub/efi/console.h: Likewise.
34843 2008-09-22 Bean <bean123ch@gmail.com>
34845 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
34846 resident and in attribute list.
34848 * include/grub/ntfs.h (BMP_LEN): Removed.
34850 2008-09-22 Bean <bean123ch@gmail.com>
34852 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
34853 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
34855 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
34856 error occurs, as grub_disk_open will call grub_disk_close, which will
34857 call p->close (scsi).
34859 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
34861 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
34862 (AC_PREREQ): Bumped to 2.59.
34863 (AC_TRY_COMPILE): Replace obsolete macro with ...
34864 (AC_COMPILE_IFELSE): ... this.
34865 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
34866 (AC_LINK_IFELSE): ... this.
34868 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
34870 * autogen.sh: Add a call to `gendistlist.sh'.
34872 2008-09-19 Christian Franke <franke@computer.org>
34874 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
34875 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
34876 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
34877 Export __enable_execute_stack() to modules.
34878 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
34881 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
34883 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
34886 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
34888 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
34889 #include <grub/util/hostdisk.h>.
34891 2008-09-08 Robert Millan <rmh@aybabtu.com>
34893 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
34894 segments when their filesz is zero (grub_file_read() interprets
34895 zero-size as "read until EOF", which results in memory corruption).
34896 Use `lowest_segment' rather than 0 for calculating the current
34897 segment load address.
34899 2008-09-08 Robert Millan <rmh@aybabtu.com>
34901 * util/hostdisk.c (open_device): Replace a grub_util_info() call
34902 with grub_dprintf("hostdisk", ...), as it was so verbose that it
34903 clobbered useful information.
34905 2008-09-08 Robert Millan <rmh@aybabtu.com>
34907 * include/grub/util/biosdisk.h: Move to ...
34908 * include/grub/util/hostdisk.h: ... here. Update all users.
34909 * util/biosdisk.c: Move to ...
34910 * util/hostdisk.c: ... here. Update all users.
34912 2008-09-07 Robert Millan <rmh@aybabtu.com>
34914 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
34916 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
34917 and length can be stored directly in the `mbi->mmap_addr' and
34918 `mbi->mmap_length' struct fields.
34920 2008-09-07 Robert Millan <rmh@aybabtu.com>
34922 * conf/i386.rmk: New file. Provides declaration for building
34924 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
34925 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
34927 Include `conf/i386.mk'.
34928 * conf/i386-efi.rmk: Likewise.
34929 * conf/x86_64-efi.rmk: Likewise.
34930 * conf/i386-coreboot.rmk: Likewise.
34931 * conf/i386-ieee1275.rmk: Likewise.
34933 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
34935 Based on patch created by Colin D Bennett <colin@gibibit.com>.
34936 Adds optimization support for BGR based modes.
34938 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
34939 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
34940 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
34941 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
34942 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
34943 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
34944 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
34945 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
34946 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
34947 (grub_video_i386_vbeblit_index_index): Likewise.
34948 (grub_video_i386_vbeblit_replace_directN): Added.
34949 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
34950 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
34951 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
34952 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
34953 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
34954 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
34955 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
34956 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
34957 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
34958 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
34959 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
34960 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
34961 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
34963 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
34964 (grub_video_i386_vbefill_R8G8B8): Likewise.
34965 (grub_video_i386_vbefill_index): Likewise.
34966 (grub_video_i386_vbefill_direct32): Added.
34967 (grub_video_i386_vbefill_direct24): Likewise.
34968 (grub_video_i386_vbefill_direct16): Likewise.
34969 (grub_video_i386_vbefill_direct8): Likewise.
34971 * include/grub/video.h (grub_video_blit_format): Removed
34972 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
34973 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
34974 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
34975 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
34976 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
34978 * video/video.c (grub_video_get_blit_format): Updated to use new
34979 blit formats. Added handling for 16 bit color modes.
34981 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
34983 (common_blitter): Updated to use new blitters.
34985 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
34987 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
34988 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
34989 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
34990 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
34991 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
34992 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
34993 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
34994 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
34995 (grub_video_i386_vbeblit_index_index): Likewise.
34996 (grub_video_i386_vbeblit_replace_directN): Added.
34997 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
34998 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
34999 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
35000 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
35001 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
35002 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
35003 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
35004 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
35005 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
35006 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
35007 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
35008 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
35009 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
35011 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
35012 (grub_video_i386_vbefill_R8G8B8): Likewise.
35013 (grub_video_i386_vbefill_index): Likewise.
35014 (grub_video_i386_vbefill_direct32): Added.
35015 (grub_video_i386_vbefill_direct24): Likewise.
35016 (grub_video_i386_vbefill_direct16): Likewise.
35017 (grub_video_i386_vbefill_direct8): Likewise.
35019 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
35022 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
35025 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
35028 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
35031 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
35033 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
35036 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
35038 * fs/iso9660.c (grub_iso9660_date): New structure.
35039 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
35040 (grub_iso9660_uuid): New function.
35042 2008-09-05 Bean <bean123ch@gmail.com>
35044 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
35046 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
35047 insensitive bit for names in Win32 and Win32 & DOS namespace.
35049 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
35051 * include/grub/types.h (LONG_MAX): Likewise.
35053 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
35055 * util/getroot.c: Include <config.h>.
35056 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
35057 add support for /dev/md/N devices and handle LVM double dash escaping.
35059 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
35061 * config.guess: Update to latest version from config git.
35062 * config.sub: Likewise.
35064 2008-09-03 Robert Millan <rmh@aybabtu.com>
35066 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
35067 `disk->total_sectors'.
35069 2008-09-01 Colin D Bennett <colin@gibibit.com>
35071 * include/grub/normal.h: Fixed incorrect comment for
35072 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
35074 2008-09-01 Colin D Bennett <colin@gibibit.com>
35076 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
35077 values with defines.
35079 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
35080 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
35081 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
35082 (GRUB_VBE_MODEATTR_COLOR): Likewise.
35083 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
35084 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
35085 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
35086 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
35087 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
35088 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
35089 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
35090 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
35091 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
35092 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
35093 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
35094 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
35095 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
35096 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
35097 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
35099 2008-08-31 Robert Millan <rmh@aybabtu.com>
35101 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
35103 (grub_multiboot): Fix a few warnings.
35105 2008-08-31 Robert Millan <rmh@aybabtu.com>
35107 * loader/i386/pc/multiboot.c: Update comment not to say that
35108 boot_device support is unimplemented.
35110 2008-08-31 Robert Millan <rmh@aybabtu.com>
35112 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
35113 or memory map support are unimplemented.
35115 2008-08-31 Colin D Bennett <colin@gibibit.com>
35117 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
35119 2008-08-31 Colin D Bennett <colin@gibibit.com>
35121 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
35122 total video memory in 'vbeinfo' output; show color format details for
35125 2008-08-30 Pavel Roskin <proski@gnu.org>
35127 * util/genmoddep.c: Remove for real this time.
35128 * DISTLIST: Remove util/genmoddep.c.
35130 2008-08-30 Robert Millan <rmh@aybabtu.com>
35132 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
35133 as required by Multiboot spec (it was already 4-byte aligned, but
35136 2008-08-29 Pavel Roskin <proski@gnu.org>
35138 * kern/powerpc/ieee1275/crt0.S: Rename to ...
35139 * kern/powerpc/ieee1275/startup.S: ... this.
35140 * conf/powerpc-ieee1275.rmk: Adjust for the above.
35141 * DISTLIST: Likewise.
35143 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
35144 grub/cpu/kernel.h. Add start label for consistency with other
35145 platforms. Add grub_prefix immediately after start. Add jump
35146 to the code after grub_prefix.
35147 * include/grub/powerpc/kernel.h: Provide valid values for
35148 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
35150 2008-08-29 Bean <bean123ch@gmail.com>
35152 * configure.ac: Change host_os to cygwin for mingw.
35153 (asprintf): New check for function.
35155 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
35156 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
35158 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
35159 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
35160 sync, sleep and grub_util_get_disk_size for mingw.
35162 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
35163 to get size in mingw.
35164 (open_device): Use flag O_BINARY if it's defined.
35165 (find_root_device): Add dummy code for mingw.
35167 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
35168 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
35169 (get_scsi_disk_name): Return 0 for mingw.
35171 * util/hostfs.c: #include <grub/util/misc.h>.
35172 (grub_hostfs_open): Use "rb" flag to open file, use
35173 grub_util_get_disk_size to get disk size for mingw.
35175 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
35176 (asprintf): New function if HAVE_ASPRINTF is not set.
35177 (sync): New function for mingw.
35179 (grub_util_get_disk_size): Likewise.
35181 2008-08-28 Pavel Roskin <proski@gnu.org>
35183 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
35186 2008-08-28 Robert Millan <rmh@aybabtu.com>
35188 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
35190 2008-08-28 Robert Millan <rmh@aybabtu.com>
35192 Change find_grub_drive() syntax so it doesn't prevent it from
35193 detecting NULL names as errors.
35195 * util/biosdisk.c (find_grub_drive): Move free slot search code
35197 (find_free_slot): ... to here.
35198 (read_device_map): Use find_free_slot() to search for free slots.
35200 2008-08-27 Marco Gerards <marco@gnu.org>
35202 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
35203 (scsi_mod_SOURCES): New variable.
35204 (scsi_mod_CFLAGS): Likewise
35205 (scsi_mod_LDFLAGS): Likewise.
35207 * disk/scsi.c: New file.
35209 * include/grub/scsi.h: Likewise.
35211 * include/grub/scsicmd.h: Likewise.
35213 * disk/ata.c: Include <grub/scsi.h>.
35214 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
35216 (grub_ata_iterate): Skip ATAPI devices.
35217 (grub_ata_open): Only handle ATAPI devices.
35218 (struct grub_atapi_read): Removed.
35219 (grub_atapi_readsector): Likewise.
35220 (grub_ata_read): No longer handle ATAPI devices.
35221 (grub_ata_write): Likewise.
35222 (grub_atapi_iterate): New function.
35223 (grub_atapi_read): Likewise.
35224 (grub_atapi_write): Likewise.
35225 (grub_atapi_open): Likewise.
35226 (grub_atapi_close): Likewise.
35227 (grub_atapi_dev): New variable.
35228 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
35229 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
35231 * include/grub/disk.h (enum grub_disk_dev_id): Add
35232 `GRUB_DISK_DEVICE_SCSI_ID'.
35234 2008-08-26 Robert Millan <rmh@aybabtu.com>
35236 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
35237 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
35240 2008-08-23 Bean <bean123ch@gmail.com>
35242 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
35243 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
35244 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
35245 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
35247 (raid5rec_mod_SOURCES): New macro.
35248 (raid5rec_mod_CFLAGS): Likewise.
35249 (raid5rec_mod_LDFLAGS): Likewise.
35250 (raid6rec_mod_SOURCES): Likewise.
35251 (raid6rec_mod_CFLAGS): Likewise.
35252 (raid6rec_mod_LDFLAGS): Likewise.
35253 (mdraid_mod_SOURCES): Likewise.
35254 (mdraid_mod_CFLAGS): Likewise.
35255 (mdraid_mod_LDFLAGS): Likewise.
35256 (dm_nv_mod_SOURCES): Likewise.
35257 (dm_nv_mod_CFLAGS): Likewise.
35258 (dm_nv_mod_LDFLAGS): Likewise.
35260 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
35261 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
35262 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
35264 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
35265 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
35267 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35269 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35271 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35273 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35275 * disk/raid5_recover.c: New file.
35277 * disk/raid6_recover.c: Likewise.
35279 * disk/mdraid_linux.c: Likewise.
35281 * disk/dmraid_nvidia.c: Likewise.
35283 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
35286 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
35287 calculate the size of raid device.
35288 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
35289 different layout of raid5.
35290 (grub_raid_scan_device): Remove code specific to mdraid.
35291 (grub_raid_list): New variable.
35292 (free_array): New function.
35293 (grub_raid_register): Likewise.
35294 (grub_raid_unregister): Likewise.
35295 (grub_raid_rescan): Likewise.
35296 (GRUB_MOD_INIT): Don't iterate device here.
35297 (GRUB_MOD_FINI): Use free_array to release resource.
35299 * include/grub/raid.h: Remove macro and structure specific to mdraid.
35300 (grub_raid5_recover_func_t): New function variable type.
35301 (grub_raid6_recover_func_t): Likewise.
35302 (grub_raid5_recover_func): New variable.
35303 (grub_raid6_recover_func): Likewise.
35304 (grub_raid_register): New function.
35305 (grub_raid_unregister): Likewise.
35306 (grub_raid_rescan): Likewise.
35307 (grub_raid_block_xor): Likewise.
35309 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
35310 (CMD_CRC): New macro.
35312 (read_file): Handle device as well as file.
35313 (cmd_crc): New function.
35314 (fstest): Handle multiple disks.
35315 (options): Remove part, raw and long, add root and diskcount.
35316 (usage): Add crc, remove -p, -r, -l, add -r and -c.
35317 (main): Find the first non option entry and ignore subsequent options,
35318 add handling for the new options, support multiple disks.
35320 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
35322 2008-08-23 Bean <bean123ch@gmail.com>
35324 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
35326 * genfslist.sh: Ignore kernel.mod.
35328 * genpartmaplist.sh: Likewise.
35330 2008-08-23 Robert Millan <rmh@aybabtu.com>
35332 * util/getroot.c (find_root_device): Skip anything that starts with
35333 a dot, not just directories. This avoids things like /dev/.tmp.md0.
35335 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
35337 * util/update-grub.in (GRUB_GFXMODE): Export variable.
35338 * util/grub.d/00_header.in: Allow the administrator to change default
35339 gfxmode via ${GRUB_GFXMODE}.
35341 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
35343 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
35345 2008-08-21 Robert Millan <rmh@aybabtu.com>
35347 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
35349 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
35350 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
35352 2008-08-20 Carles Pina i Estany <carles@pina.cat>
35354 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
35355 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
35357 2008-08-19 Robert Millan <rmh@aybabtu.com>
35359 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
35360 (struct grub_virtual_screen): Remove `cursor_color'.
35361 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
35363 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
35365 2008-08-18 Robert Millan <rmh@aybabtu.com>
35367 Unify (identical) linux_normal.c files.
35368 * loader/i386/efi/linux_normal.c: Move from here ...
35369 * loader/linux_normal.c: ... to here. Update all users.
35370 * loader/i386/pc/linux_normal.c: Delete. Update all users.
35371 * loader/i386/ieee1275/linux_normal.c: Likewise.
35373 2008-08-18 Robert Millan <rmh@aybabtu.com>
35375 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
35376 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
35377 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
35378 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
35379 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
35381 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
35382 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
35383 (GRUB_LINUX_CL_END_OFFSET): ... to here.
35384 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
35385 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
35386 (GRUB_EFI_CL_END_OFFSET): Rename to ...
35387 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
35388 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
35389 Initialize `params->video_cursor_x' and `params->video_cursor_y'
35390 portably using grub_getxy().
35391 Replace `-EFI' with `-bzImage' in boot message.
35393 2008-08-17 Robert Millan <rmh@aybabtu.com>
35395 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
35397 2008-08-17 Robert Millan <rmh@aybabtu.com>
35399 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
35401 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
35402 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
35403 (grub_machine_mmap_iterate): New function declaration.
35404 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
35406 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
35409 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
35410 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
35411 Move e820 parsing from here ...
35412 * kern/i386/pc/mmap.c: New file.
35413 (grub_machine_mmap_iterate): ... to here.
35415 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
35416 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
35417 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
35418 (grub_available_iterate): Redeclare to return `void', and redeclare
35419 its hook to use grub_uint64_t as addr and size parameters, and rename
35421 (grub_machine_mmap_iterate): ... this. Update all users.
35423 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
35424 to make it more readable. Rename to ...
35425 (grub_machine_mmap_iterate): ... this.
35427 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
35428 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
35429 (grub_multiboot): Allocate an extra region after the payload, and fill
35430 it with a Multiboot memory map. Adjust a.out loader to calculate size
35431 with the extra space.
35432 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
35433 with the extra space.
35435 2008-08-17 Carles Pina i Estany <carles@pina.cat>
35437 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
35439 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
35441 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
35442 mdate-sh to the list `find' searches for.
35443 * DISTLIST: Regenerated.
35445 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
35447 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
35448 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
35449 genmoddep.awk, gensymlist.sh.in.
35450 (DISTDIRS): Add bus, docs, hook, lib.
35451 * DISTLIST: Regenerated.
35452 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
35454 2008-08-16 Robert Millan <rmh@aybabtu.com>
35456 * disk/raid.c (grub_raid_init): Handle/report errors set by
35457 grub_device_iterate().
35458 * disk/lvm.c (grub_lvm_init): Likewise.
35460 2008-08-15 Bean <bean123ch@gmail.com>
35462 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35464 (datetime_mod_SOURCES): New macro.
35465 (datetime_mod_CFLAGS): Likewise.
35466 (datetime_mod_LDFLAGS): Likewise.
35467 (date_mod_SOURCES): Likewise.
35468 (date_mod_CFLAGS): Likewise.
35469 (date_mod_LDFLAGS): Likewise.
35470 (datehook_mod_SOURCES): Likewise.
35471 (datehook_mod_CFLAGS): Likewise.
35472 (datehook_mod_LDFLAGS): Likewise.
35474 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35476 (datetime_mod_SOURCES): New macro.
35477 (datetime_mod_CFLAGS): Likewise.
35478 (datetime_mod_LDFLAGS): Likewise.
35479 (date_mod_SOURCES): Likewise.
35480 (date_mod_CFLAGS): Likewise.
35481 (date_mod_LDFLAGS): Likewise.
35482 (datehook_mod_SOURCES): Likewise.
35483 (datehook_mod_CFLAGS): Likewise.
35484 (datehook_mod_LDFLAGS): Likewise.
35486 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35488 (datetime_mod_SOURCES): New macro.
35489 (datetime_mod_CFLAGS): Likewise.
35490 (datetime_mod_LDFLAGS): Likewise.
35491 (date_mod_SOURCES): Likewise.
35492 (date_mod_CFLAGS): Likewise.
35493 (date_mod_LDFLAGS): Likewise.
35494 (datehook_mod_SOURCES): Likewise.
35495 (datehook_mod_CFLAGS): Likewise.
35496 (datehook_mod_LDFLAGS): Likewise.
35498 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35500 (datetime_mod_SOURCES): New macro.
35501 (datetime_mod_CFLAGS): Likewise.
35502 (datetime_mod_LDFLAGS): Likewise.
35503 (date_mod_SOURCES): Likewise.
35504 (date_mod_CFLAGS): Likewise.
35505 (date_mod_LDFLAGS): Likewise.
35506 (datehook_mod_SOURCES): Likewise.
35507 (datehook_mod_CFLAGS): Likewise.
35508 (datehook_mod_LDFLAGS): Likewise.
35510 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35512 (datetime_mod_SOURCES): New macro.
35513 (datetime_mod_CFLAGS): Likewise.
35514 (datetime_mod_LDFLAGS): Likewise.
35515 (date_mod_SOURCES): Likewise.
35516 (date_mod_CFLAGS): Likewise.
35517 (date_mod_LDFLAGS): Likewise.
35518 (datehook_mod_SOURCES): Likewise.
35519 (datehook_mod_CFLAGS): Likewise.
35520 (datehook_mod_LDFLAGS): Likewise.
35522 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
35524 * commands/date.c: New file.
35526 * hook/datehook.c: Likewise.
35528 * include/grub/lib/datetime.h: Likewise.
35530 * include/grub/i386/cmos.h: Likewise.
35532 * lib/datetime.c: Likewise.
35534 * lib/i386/datetime.c: Likewise.
35536 * lib/efi/datetime.c: Likewise.
35538 2008-08-14 Robert Millan <rmh@aybabtu.com>
35540 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
35541 (grub_mkelfimage_SOURCES): New variable.
35542 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
35544 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
35545 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
35546 * conf/powerpc-ieee1275.rmk: Likewise.
35547 * conf/i386-ieee1275.rmk: Likewise.
35549 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
35550 * kern/i386/coreboot/init.c: Likewise.
35552 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
35553 with `<grub/cpu/kernel.h>'.
35554 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
35556 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
35557 * kern/i386/coreboot/startup.S: Likewise.
35559 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
35560 (GRUB_MOD_GAP): Remove.
35561 * include/grub/powerpc/kernel.h: New file.
35562 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
35563 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
35564 * include/grub/i386/kernel.h: New file.
35565 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
35566 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
35567 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
35569 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
35571 Use --directory when invoking grub_mkimage.
35573 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
35574 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
35575 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
35576 and GRUB_KERNEL_CPU_PREFIX.
35578 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
35580 * include/grub/err.h (grub_err_printf): New function prototype.
35581 * util/misc.c (grub_err_printf): New function.
35582 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
35584 * kern/err.c (grub_print_error): Use grub_err_printf.
35586 2008-08-13 Robert Millan <rmh@aybabtu.com>
35588 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
35590 2008-08-13 Robert Millan <rmh@aybabtu.com>
35592 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
35595 2008-08-12 Robert Millan <rmh@aybabtu.com>
35597 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
35598 of the relocation code from here ...
35599 (grub_multiboot): ... to here.
35600 (forward_relocator, backward_relocator): Move from here ...
35601 * kern/i386/loader.S (grub_multiboot_forward_relocator)
35602 (grub_multiboot_backward_relocator): ... to here.
35603 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
35604 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
35605 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
35606 (grub_multiboot_forward_relocator_end)
35607 (grub_multiboot_backward_relocator)
35608 (grub_multiboot_backward_relocator_end): New variables.
35610 2008-08-12 Bean <bean123ch@gmail.com>
35612 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
35614 2008-08-11 Robert Millan <rmh@aybabtu.com>
35616 * kern/i386/linuxbios/startup.S: Move from here ...
35617 * kern/i386/coreboot/startup.S: ... to here.
35619 * kern/i386/linuxbios/init.c: Move from here ...
35620 * kern/i386/coreboot/init.c: ... to here.
35622 * kern/i386/linuxbios/table.c: Move from here ...
35623 * kern/i386/coreboot/mmap.c: ... to here.
35625 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
35627 2008-08-11 Robert Millan <rmh@aybabtu.com>
35629 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
35630 errors. Leave it to the upper layer to handle them.
35632 2008-08-09 Christian Franke <franke@computer.org>
35634 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
35635 * conf/common.rmk: Install `grub-pe2elf' only if requested.
35636 Install `grub.d/10_windows' only on Cygwin.
35637 * configure.ac: Add subst of `target_os'.
35638 Check `target_os' also before setting TARGET_OBJ2ELF.
35639 Add `--enable-grub-pe2elf'.
35641 2008-08-08 Robert Millan <rmh@aybabtu.com>
35643 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
35644 (grub_last_time): Change type to grub_uint64_t.
35645 (grub_disk_open): Migrate code from to using grub_get_time_ms().
35646 (grub_disk_close): Likewise.
35648 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
35649 (run_menu): Migrate code from to using grub_get_time_ms().
35651 * util/misc.c (grub_get_time_ms): New function.
35653 2008-08-08 Marco Gerards <marco@gnu.org>
35655 * disk/ata.c (grub_ata_regget): Change return type to
35657 (grub_ata_regget2): Likewise.
35658 (grub_ata_wait_status): New function.
35659 (grub_ata_wait_busy): Removed function, updated all users to use
35660 `grub_ata_wait_status'.
35661 (grub_ata_wait_drq): Likewise.
35662 (grub_ata_cmd): New function.
35663 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
35665 (grub_ata_pio_write): Add error handling.
35666 (grub_atapi_identify): Likewise.
35667 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
35669 (grub_ata_identify): Use `grub_ata_cmd' and improve error
35670 handling. Actually use the detected registers. Reorder the
35671 detection logic such that it is easier to read.
35672 (grub_ata_pciinit): Do not assign the same ID to each controller.
35673 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
35675 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
35677 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
35679 2008-08-08 Marco Gerards <marco@gnu.org>
35683 2008-08-07 Bean <bean123ch@gmail.com>
35685 * include/grub/x86_64/pci.h: New file.
35687 2008-08-07 Christian Franke <franke@computer.org>
35689 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
35690 (TIMER2_GATE): Likewise.
35691 (grub_pit_wait): Add enable/disable of the timer2 gate
35692 bit of port 0x61. This fixes a possible infinite loop.
35694 2008-08-07 Bean <bean123ch@gmail.com>
35696 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
35697 kern/i386/tsc.c and kern/i386/pit.c.
35699 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
35702 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
35705 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
35707 2008-08-07 Bean <bean123ch@gmail.com>
35709 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
35711 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
35713 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
35714 multiple inclusion. Add #include <grub/types.h>.
35716 2008-08-06 Christian Franke <franke@computer.org>
35718 * conf/common.rmk: Build and install `10_windows'.
35719 * util/grub.d/10_windows.in: New script.
35721 2008-08-06 Pavel Roskin <proski@gnu.org>
35723 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
35725 2008-08-06 Robert Millan <rmh@aybabtu.com>
35727 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
35728 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
35730 2008-08-06 Bean <bean123ch@gmail.com>
35732 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
35733 (grub_pxefs_fs_int): Remove dummy definition.
35734 (grub_pxefs_open): Use data->block_size to store the current block
35736 (grub_pxefs_read): Use block size stored in data->block_size. As the
35737 value of grub_pxe_blksize can be changed after the file is opened.
35739 2008-08-06 Bean <bean123ch@gmail.com>
35741 * fs/i386/pc/pxe.c (curr_file): new variable.
35742 (grub_pxefs_open): Simply the handling of pxe file system. Don't
35743 require the dummy internal file system anymore.
35744 (grub_pxefs_read): Removed.
35745 (grub_pxefs_close): Likewise.
35746 (grub_pxefs_fs_int): Likewise.
35747 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
35748 connection when we switch file.
35749 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
35751 2008-08-06 Robert Millan <rmh@aybabtu.com>
35753 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
35755 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
35756 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
35758 * kern/i386/halt.c: New file.
35759 * kern/i386/reboot.c: Likewise.
35760 * include/grub/i386/reboot.h: Likewise.
35761 * include/grub/i386/halt.h: Likewise.
35763 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
35764 Include `<grub/cpu/halt.h>'.
35765 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
35766 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
35768 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
35769 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
35770 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
35771 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
35772 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
35773 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
35775 * include/grub/i386/at_keyboard.h: ... to here.
35777 2008-08-05 Robert Millan <rmh@aybabtu.com>
35779 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
35780 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
35781 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
35782 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
35783 `kern/generic/millisleep.c'.
35785 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
35786 instead of grub_get_rtc().
35787 (grub_tsc_init): Initialize `tsc_boot_time'.
35789 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
35790 (grub_machine_init): Use grub_tsc_init() rather than
35791 installing an RTC-based handler via grub_install_get_time_ms().
35793 * kern/i386/pit.c: New file.
35794 * include/grub/i386/pit.h: Likewise.
35796 2008-08-05 Bean <bean123ch@gmail.com>
35798 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
35800 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
35801 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
35802 (pxe_mod_SOURCES): New macro.
35803 (pxe_mod_CFLAGS): Likewise.
35804 (pxe_mod_LDFLAGS): Likewise.
35805 (pxecmd_mod_SOURCES): Likewise.
35806 (pxecmd_mod_CFLAGS): Likewise.
35807 (pxecmd_mod_LDFLAGS): Likewise.
35809 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
35810 (grub_pxe_call): Likewise.
35812 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
35814 * commands/i386/pc/pxecmd.c: New file.
35816 * fs/i386/pc/pxe.c: Likewise.
35818 * include/grub/i386/pc/pxe.h: Likewise.
35820 2008-08-05 Bean <bean123ch@gmail.com>
35822 * util/console.c (grub_console_cur_color): New variable.
35823 (grub_console_standard_color): Likewise.
35824 (grub_console_normal_color): Likewise.
35825 (grub_console_highlight_color): Likewise.
35826 (color_map): Likewise.
35827 (use_color): Likewise.
35828 (NUM_COLORS): New macro.
35829 (grub_ncurses_setcolorstate): Handle color properly.
35830 (grub_ncurses_setcolor): Don't change color here, just remember the
35831 settings, color will be set in grub_ncurses_setcolorstate.
35832 (grub_ncurses_getcolor): New function.
35833 (grub_ncurses_init): Initialize color pairs.
35834 (grub_ncurses_term): New member grub_ncurses_getcolor.
35836 2008-08-05 Colin D Bennett <colin@gibibit.com>
35838 High resolution timer support. Implemented for x86 CPUs using TSC.
35839 Extracted generic grub_millisleep() so it's linked in only as needed.
35840 This requires a Pentium compatible CPU; if the RDTSC instruction is
35841 not supported, then it falls back on the generic grub_get_time_ms()
35842 implementation that uses the machine's RTC.
35844 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
35845 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
35846 `kern/generic/millisleep.c'.
35848 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
35849 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
35851 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
35852 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
35854 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
35856 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
35857 `kern/generic/millisleep.c'.
35859 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
35861 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
35863 * kern/generic/rtc_get_time_ms.c: New file.
35865 * kern/generic/millisleep.c: New file.
35867 * kern/misc.c: Don't include
35868 <kern/time.h> anymore.
35869 (grub_millisleep_generic): Removed.
35871 * commands/sleep.c (grub_interruptible_millisleep): Uses
35872 grub_get_time_ms() instead of grub_get_rtc().
35874 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
35876 (grub_cpu_is_cpuid_supported): New inline function.
35877 (grub_cpu_is_tsc_supported): New inline function.
35878 (grub_tsc_init): New function prototype.
35879 (grub_tsc_get_time_ms): New function prototype.
35881 * kern/i386/tsc.c (grub_get_time_ms): New file.
35883 * include/grub/time.h: Include <grub/types.h.
35884 (grub_millisleep_generic): Removed.
35885 (grub_get_time_ms): New prototype.
35886 (grub_install_get_time_ms): New prototype.
35887 (grub_rtc_get_time_ms): New prototype.
35889 * kern/time.c (grub_get_time_ms): New function.
35890 (grub_install_get_time_ms): New function.
35892 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
35893 <grub/time.h> anymore.
35894 (grub_millisleep): Removed.
35895 (grub_machine_init): Call grub_tsc_init.
35897 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
35898 get_time_ms() implementation.
35900 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
35901 (ieee1275_get_time_ms): New function.
35902 (grub_machine_init): Install get_time_ms() implementation.
35904 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
35905 (grub_machine_init): Call grub_tsc_init().
35906 (grub_millisleep): Removed.
35908 * kern/ieee1275/init.c (grub_millisleep): Removed.
35909 (grub_machine_init): Install ieee1275_get_time_ms()
35911 (ieee1275_get_time_ms): New function.
35912 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
35915 2008-08-05 Marco Gerards <marco@gnu.org>
35917 * disk/ata.c: Include <grub/pci.h>.
35918 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
35919 (grub_ata_initialize): Rewritten.
35920 (grub_ata_device_initialize): New function.
35922 2008-08-04 Pavel Roskin <proski@gnu.org>
35924 * kern/main.c: Include grub/mm.h.
35926 2008-08-04 Robert Millan <rmh@aybabtu.com>
35928 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
35929 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
35930 corruption problem).
35932 2008-08-04 Robert Millan <rmh@aybabtu.com>
35934 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
35935 warnings introduced in my last commit.
35937 2008-08-03 Robert Millan <rmh@aybabtu.com>
35939 Make PCI available on all i386 architectures.
35941 * include/grub/i386/pc/pci.h: Move from here ...
35942 * include/grub/i386/pci.h: ... to here.
35944 * include/grub/i386/pc/pci.h: Remove.
35945 * include/grub/i386/efi/pci.h: Remove.
35946 * include/grub/x86_64/efi/pci.h: Remove.
35948 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
35949 `<grub/cpu/pci.h>'.
35951 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
35952 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
35953 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
35955 * conf/i386-ieee1275.rmk: Likewise.
35957 2008-08-03 Robert Millan <rmh@aybabtu.com>
35959 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
35960 (grub_console_setcursor): Make it possible to set cursor off.
35962 2008-08-03 Robert Millan <rmh@aybabtu.com>
35964 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
35965 of modules instead of assuming which platform provides what.
35966 * util/update-grub.in: Likewise.
35968 2008-08-03 Robert Millan <rmh@aybabtu.com>
35970 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
35971 instead of `grub_install_dos_part' to determine whether a drive needs
35972 to be prepended to prefix (`grub_install_dos_part' is not reliable,
35973 because it can be overridden when loading GRUB via Multiboot).
35975 2008-08-02 Robert Millan <rmh@aybabtu.com>
35977 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
35979 2008-08-02 Robert Millan <rmh@aybabtu.com>
35981 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
35982 of informational grub_dprintf() calls.
35984 2008-08-02 Robert Millan <rmh@aybabtu.com>
35986 * disk/memdisk.c (memdisk_size): Don't initialize.
35987 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
35989 * include/grub/i386/pc/kernel.h
35990 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
35991 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
35992 (grub_memdisk_image_size, grub_arch_memdisk_addr)
35993 (grub_arch_memdisk_size): Remove.
35995 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
35996 field (was only used to transfer a constant). Add `type' field to
35997 support multiple module types.
35998 (grub_module_iterate): New function.
36000 * kern/device.c (grub_device_open): Do not hide error messages
36001 when grub_disk_open() fails. Use grub_print_error() instead.
36003 * kern/i386/pc/init.c (grub_arch_modules_addr)
36004 (grub_arch_memdisk_size): Remove functions.
36005 (grub_arch_modules_addr): Return the module address in high memory
36006 (now that it isn't copied anymore).
36008 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
36009 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
36010 decompression routine (grub_total_module_size already includes that
36011 now). Don't copy modules back to low memory.
36013 * kern/main.c: Include `<grub/mm.h>'.
36014 (grub_load_modules): Split out (and use) ...
36015 (grub_module_iterate): ... this function, which iterates through
36016 module objects and runs a hook.
36017 Comment out grub_mm_init_region() call, as it would cause non-ELF
36018 modules to be overwritten.
36020 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
36021 the memdisk image in its own region, make it part of the module list.
36022 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
36023 (main): Parse --memdisk|-m option, and pass user-provided path as
36024 parameter to generate_image().
36025 (add_segments): Pass `memdisk_path' down to load_modules().
36026 (load_modules): Embed memdisk image in module section when requested.
36027 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
36028 `header.type' instead of `header.offset'.
36030 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
36031 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
36032 (memdisk_mod_LDFLAGS): New variables.
36033 * conf/i386-coreboot.rmk: Likewise.
36034 * conf/i386-ieee1275.rmk: Likewise.
36036 2008-08-02 Robert Millan <rmh@aybabtu.com>
36038 * loader/i386/pc/multiboot.c (playground, forward_relocator)
36039 (backward_relocator): New variables. Used to allocate and relocate
36040 the payload, respectively.
36041 (grub_multiboot_load_elf32): Load into heap instead of requested
36042 address, install the appropriate relocator code in each bound of
36043 the payload, and set the entry point such that
36044 grub_multiboot_real_boot() will jump to one of them.
36046 * kern/i386/loader.S (grub_multiboot_payload_size)
36047 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
36048 (grub_multiboot_payload_entry_offset): New variables.
36049 (grub_multiboot_real_boot): Set cpu context to what the relocator
36050 expects, and jump to the relocator instead of the payload.
36052 * include/grub/i386/loader.h (grub_multiboot_payload_size)
36053 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
36054 (grub_multiboot_payload_entry_offset): Export.
36056 2008-08-01 Bean <bean123ch@gmail.com>
36058 * normal/menu_entry.c (editor_getline): Don't return the original
36059 string as result, as it will be released by lexer once it has done
36062 2008-08-01 Robert Millan <rmh@aybabtu.com>
36064 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
36065 within menuentries, not before them.
36066 util/grub.d/10_hurd.in: Likewise.
36068 2008-08-01 Bean <bean123ch@gmail.com>
36070 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
36071 (bufio_mod_SOURCES): New macro.
36072 (bufio_mod_CFLAGS): Likewise.
36073 (bufio_mod_LDFLAGS): Likewise.
36075 * include/grub/bufio.h: New file.
36077 * io/bufio.c: Likewise.
36079 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
36080 (grub_video_reader_png): Use grub_buffile_open to open file.
36082 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
36083 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
36085 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
36086 (grub_video_reader_tga): Use grub_buffile_open to open file.
36088 * font/manager.c: Include <grub/bufio.h>.
36089 (add_font): Use grub_buffile_open to open file.
36091 2008-07-31 Robert Millan <rmh@aybabtu.com>
36093 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
36094 ELF segments, use a macro for arbitrarily accessing any of them instead
36095 of preparing a pointer that allows access to one at a time.
36096 (grub_multiboot_load_elf64): Likewise.
36098 2008-07-31 Bean <bean123ch@gmail.com>
36100 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
36101 GRUB_KERNEL_MACHINE_DATA_END.
36103 2008-07-30 Robert Millan <rmh@aybabtu.com>
36105 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
36106 Increase from 0x50 to 0x60.
36107 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
36108 use UUIDs to identify the root drive for them. If that's not
36110 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
36111 check, for cross-disk installs.
36113 2008-07-30 Robert Millan <rmh@aybabtu.com>
36115 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
36116 is non-empty, use it to set the `prefix' environment variable instead
36117 of the usual approach.
36118 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
36119 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
36120 environment variable instead of dummy make_install_device().
36122 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
36123 (start): Insert a data section, with `grub_prefix' variable.
36124 * kern/i386/linuxbios/startup.S: Likewise.
36126 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
36127 New variable reference.
36128 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
36129 New macro. Defines offset of `grub_prefix' within startup.S (relative
36131 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
36132 section within startup.S (relative to `start').
36133 * include/grub/i386/coreboot/kernel.h: Likewise.
36135 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
36136 Overwrite grub_prefix with its contents, at the beginning of the
36138 (main): Understand -p|--prefix.
36140 2008-07-30 Robert Millan <rmh@aybabtu.com>
36142 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
36144 2008-07-30 Robert Millan <rmh@aybabtu.com>
36146 * term/i386/pc/vga_text.c (grub_console_cls): Use
36147 grub_console_gotoxy() to go back to beginning of the screen.
36148 Found by Patrick Georgi <patrick.georgi@coresystems.de>
36150 2008-07-29 Christian Franke <franke@computer.org>
36152 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
36153 Add conversion of emulated mount points on Cygwin.
36155 2008-07-29 Christian Franke <franke@computer.org>
36157 * util/update-grub.in: Add a check for admin
36159 Remove old `grub.cfg.new' before creation.
36160 Add `-f' to `mv' to handle the different filesystem
36161 semantics of Windows.
36163 2008-07-29 Bean <bean123ch@gmail.com>
36165 * normal/main.c (get_line): Fix buffer overflow bug.
36167 2008-07-28 Robert Millan <rmh@aybabtu.com>
36169 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
36170 (struct grub_apple_header): New struct. Describes the layout of
36171 the partmap header.
36172 (apple_partition_map_iterate): Check the header magic as well as the
36173 partition magic (which was already being checked).
36175 2008-07-28 Pavel Roskin <proski@gnu.org>
36177 * genmk.rb: Add a warning to the beginning of the output that
36178 it's a generated file and should not be edited.
36180 2008-07-28 Robert Millan <rmh@aybabtu.com>
36182 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
36183 with the same number are found, just use issue a warning with
36184 grub_dprintf(), as this error has been reported to be non-fatal.
36186 2008-07-27 Robert Millan <rmh@aybabtu.com>
36188 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
36191 2008-07-27 Bean <bean123ch@gmail.com>
36193 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
36194 (grub_fat_find_dir): Ignore case when comparing filename.
36196 2008-07-27 Bean <bean123ch@gmail.com>
36198 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
36199 smallino, as it's more descriptive, and i8count can be confused with
36200 the other field count.
36201 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
36204 2008-07-27 Bean <bean123ch@gmail.com>
36206 * commands/crc.c: New file.
36208 * lib/crc.c: Likewise.
36210 * include/grub/lib/crc.h: Likewise.
36212 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
36214 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
36215 (hexdump): Move this function to ...
36217 * lib/hexdump.c: ... here.
36219 * include/grub/hexdump.h: Renamed to ...
36221 * include/grub/lib/hexdump.h: ... this.
36223 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
36225 * util/grub-editenv.c: Likewise.
36227 * include/envblk.h: Renamed to ...
36229 * include/lib/envblk.h: ... this.
36231 * util/envblk.c: Renamed to ...
36233 * lib/envblk.c: ... this.
36235 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
36237 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
36238 (pkglib_MODULES): Add crc.mod.
36239 (hexdump_mod_SOURCES): Add lib/hexdump.c.
36240 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
36241 (crc_mod_SOURCES): New macro.
36242 (crc_mod_CFLAGS): Likewise.
36243 (crc_mod_LDFLAGS): Likewise.
36245 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
36247 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36249 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36251 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36253 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36255 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
36257 * commands/help.c: Include <grub/term.h>.
36258 (TERM_WIDTH): Removed. Updated all users.
36260 2008-07-27 Pavel Roskin <proski@gnu.org>
36262 * util/getroot.c (find_root_device): Rephrase a comment to avoid
36263 spurious warnings about a comment within a comment.
36265 2008-07-25 Robert Millan <rmh@aybabtu.com>
36267 * util/getroot.c (find_root_device): Skip devices that match
36268 /dev/dm-[0-9]. This lets the real device be found for any type of
36269 abstraction (LVM, EVMS, RAID..).
36270 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
36271 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
36272 device is found first, find_root_device() will now skip it.
36274 2008-07-24 Pavel Roskin <proski@gnu.org>
36276 * include/grub/types.h: Use __builtin_bswap32() and
36277 __builtin_bswap64() with gcc 4.3 and newer.
36279 2008-07-24 Christian Franke <franke@computer.org>
36281 * util/i386/pc/grub-install.in: If `--debug' is specified,
36282 pass `--verbose' to grub-setup.
36283 Abort script if make_system_path_relative_to_its_root() fails.
36285 2008-07-24 Bean <bean123ch@gmail.com>
36287 * configure.ac: Fixed a bug caused by the previous cygwin patch,
36288 variable `target_platform' should be `platform'.
36290 2008-07-24 Bean <bean123ch@gmail.com>
36292 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
36293 (grub_png_init_fixed_block): New function.
36294 (grub_png_decode_image_data): Handle fixed huffman code compression.
36296 2008-07-24 Bean <bean123ch@gmail.com>
36298 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
36299 (grub_pe2elf_SOURCES): New macro.
36300 (CLEANFILES): Add grub-pe2elf.
36302 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
36303 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
36304 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
36305 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
36306 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
36307 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
36308 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
36309 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
36310 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
36311 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
36312 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
36313 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
36314 (GRUB_PE32_DT_FUNCTION): Likewise.
36315 (GRUB_PE32_REL_I386_DIR32): Likewise.
36316 (GRUB_PE32_REL_I386_REL32): Likewise.
36317 (grub_pe32_symbol): New structure.
36318 (grub_pe32_reloc): Likewise.
36320 * util/grub-pe2elf.c: New file.
36322 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
36323 start symbol in non pc platform.
36325 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
36327 The following patches are from Christian Franke.
36329 * include/grub/dl.h: Remove .previous, gas supports this only
36332 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
36333 Remove .type, gas supports this only for ELF format.
36335 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
36336 nullbytes in symbol table. This fixes an infinite loop if table is
36339 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
36340 TARGET_IMG_LDFLAGS and EXEEXT.
36342 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
36343 TARGET_IMG_LDFLAGS_AC.
36344 (grub_CHECK_STACK_ARG_PROBE): New function.
36346 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
36348 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
36350 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
36351 to set TARGET_IMG_LD* accordingly.
36352 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
36353 Add call to grub_CHECK_STACK_ARG_PROBE.
36354 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
36356 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
36358 * genmk.rb: Add EXEEXT to CLEANFILES.
36360 2008-07-23 Robert Millan <rmh@aybabtu.com>
36362 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
36363 define the codes for arrows and lines used for the menu).
36364 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
36367 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
36368 fonts, because the latter are too slow.
36370 2008-07-21 Bean <bean123ch@gmail.com>
36372 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
36373 a20. Run keyboard test last, as it will cause macbook to halt.
36375 2008-07-18 Pavel Roskin <proski@gnu.org>
36377 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
36378 load foreign architecture modules correctly anyway. Keep
36379 support for loading host architecture modules, whether we
36380 compile them or not.
36382 2008-07-17 Pavel Roskin <proski@gnu.org>
36384 * configure.ac: Use -m32 or -m64 regardless of whether we had to
36385 change target_cpu. The compiler default can mismatch target_cpu
36388 * disk/efi/efidisk.c: Fix format warnings on x86_64.
36389 * kern/efi/efi.c: Likewise.
36391 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
36392 target compiler is functional.
36393 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
36396 * configure.ac: Default to efi platform for x86_64-apple. Allow
36397 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
36398 adjustments from the rest, only do them if target is not
36399 explicitly given. Merge other adjustments with the final sanity
36400 check. Remove an extraneous check for supported CPU. Be
36401 specific which CPU and which platform is not supported.
36403 * configure.ac: Default to pc platform for x86_64.
36405 2008-07-17 Robert Millan <rmh@aybabtu.com>
36407 Partial LinuxBIOS -> Coreboot rename.
36409 * conf/i386-linuxbios.rmk: Renamed to ...
36410 * conf/i386-coreboot.rmk: ... this.
36411 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
36412 * configure.ac: Accept "coreboot" as input platform (but maintain
36413 compatibility with "linuxbios").
36414 * include/grub/i386/linuxbios: Renamed to ...
36415 * include/grub/i386/coreboot: ... this.
36417 2008-07-17 Bean <bean123ch@gmail.com>
36419 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
36420 (appleldr_mod_SOURCE): New variable.
36421 (appleldr_mod_CFLAGS): Likewise.
36422 (appleldr_mod_LDFLAGS): Likewise.
36423 (pci_mod_SOURCES): Likewise.
36424 (pci_mod_CFLAGS): Likewise.
36425 (pci_mod_LDFLAGS): Likewise.
36426 (lspci_mod_SOURCES): Likewise.
36427 (lspci_mod_CFLAGS): Likewise.
36428 (lspci_mod_LDFLAGS): Likewise.
36430 * conf/x86_64-efi.rmk: New file.
36432 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
36434 (grub_efidisk_write): Likewise.
36436 * include/efi/api.h (efi_call_0): New macro.
36437 (efi_call_1): Likewise.
36438 (efi_call_2): Likewise.
36439 (efi_call_3): Likewise.
36440 (efi_call_4): Likewise.
36441 (efi_call_5): Likewise.
36442 (efi_call_6): Likewise.
36444 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
36445 grub_rescue_cmd_chainloader.
36447 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
36448 (grub_pe32_optional_header): Change some fields based on i386 or
36450 (GRUB_PE32_PE32_MAGIC): Likewise.
36452 * include/grub/efi/uga_draw.h: New file.
36454 * include/grub/elf.h (STN_ABS): New constant.
36455 (R_X86_64_NONE): Relocation constant for x86_64.
36456 (R_X86_64_64): Likewise.
36457 (R_X86_64_PC32): Likewise.
36458 (R_X86_64_GOT32): Likewise.
36459 (R_X86_64_PLT32): Likewise.
36460 (R_X86_64_COPY): Likewise.
36461 (R_X86_64_GLOB_DAT): Likewise.
36462 (R_X86_64_JUMP_SLOT): Likewise.
36463 (R_X86_64_RELATIVE): Likewise.
36464 (R_X86_64_GOTPCREL): Likewise.
36465 (R_X86_64_32): Likewise.
36466 (R_X86_64_32S): Likewise.
36467 (R_X86_64_16): Likewise.
36468 (R_X86_64_PC16): Likewise.
36469 (R_X86_64_8): Likewise.
36470 (R_X86_64_PC8): Likewise.
36472 * include/grub/i386/efi/pci.h: New file.
36474 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
36475 Change it value based on platform.
36476 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
36477 (GRUB_E820_RAM): Likewise.
36478 (GRUB_E820_RESERVED): Likewise.
36479 (GRUB_E820_ACPI): Likewise.
36480 (GRUB_E820_NVS): Likewise.
36481 (GRUB_E820_EXEC_CODE): Likewise.
36482 (GRUB_E820_MAX_ENTRY): Likewise.
36483 (grub_e820_mmap): New structure.
36484 (linux_kernel_header): Change the efi field according to different
36485 kernel version, also field from linux_kernel_header.
36487 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
36489 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
36490 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
36491 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
36492 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
36493 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
36494 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
36495 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
36496 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
36497 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
36498 (GRUB_PCI_ADDR_IO_MASK): Likewise.
36500 * include/grub/x86_64/efi/kernel.h: New file.
36502 * include/grub/x86_64/efi/loader.h: Likewise.
36504 * include/grub/x86_64/efi/machine.h: Likewise.
36506 * include/grub/x86_64/efi/pci.h: Likewise.
36508 * include/grub/x86_64/efi/time.h: Likewise.
36510 * include/grub/x86_64/linux.h: Likewise.
36512 * include/grub/x86_64/setjmp.h: Likewise.
36514 * include/grub/x86_64/time.h: Likewise.
36516 * include/grub/x86_64/types.h: Likewise.
36518 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
36519 GRUB_TARGET_SIZEOF_VOID_P.
36521 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
36522 (grub_efi_locate_handle): Likewise.
36523 (grub_efi_open_protocol): Likewise.
36524 (grub_efi_set_text_mode): Likewise.
36525 (grub_efi_stall): Likewise.
36526 (grub_exit): Likewise.
36527 (grub_reboot): Likewise.
36528 (grub_halt): Likewise.
36529 (grub_efi_exit_boot_services): Likewise.
36530 (grub_get_rtc): Likewise.
36532 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
36533 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
36534 (grub_efi_allocate_pages): Wrap efi calls.
36535 (grub_efi_free_pages): Wrap efi calls.
36536 (grub_efi_get_memory_map): Wrap efi calls.
36538 * kern/x86_64/dl.c: New file.
36540 * kern/x86_64/efi/callwrap.S: Likewise.
36542 * kern/x86_64/efi/startup.S: Likewise.
36544 * loader/efi/appleloader.c: Likewise.
36546 * loader/efi/chainloader.c (cmdline): New variable.
36547 (grub_chainloader_unload): Wrap efi calls.
36548 (grub_chainloader_boot): Likewise.
36549 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
36552 * loader/efi/chainloader_normal.c (chainloader_command):
36553 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
36556 * loader/i386/efi/linux.c (allocate_pages): Change allocation
36558 (grub_e820_add_region): New function.
36559 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
36561 (grub_find_video_card): New function.
36562 (grub_linux_setup_video): New function.
36563 (grub_rescue_cmd_linux): Probe for video information.
36565 * normal/x86_64/setjmp.S: New file.
36567 * term/efi/console.c (map_char): New function.
36568 (grub_console_putchar): Map unicode char.
36569 (grub_console_checkkey): Wrap efi calls.
36570 (grub_console_getkey): Likewise.
36571 (grub_console_getwh): Likewise.
36572 (grub_console_gotoxy): Likewise.
36573 (grub_console_cls): Likewise.
36574 (grub_console_setcolorstate): Likewise.
36575 (grub_console_setcursor): Likewise.
36577 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
36579 2008-07-16 Pavel Roskin <proski@gnu.org>
36581 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
36584 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
36585 pointer, not an integer. This fixes a warning and prevents
36586 precision loss on 64-bit systems.
36587 (relocate_addresses): Remove unneeded cast.
36589 2008-07-15 Pavel Roskin <proski@gnu.org>
36591 * kern/i386/ieee1275/init.c: Include grub/cache.h.
36593 * term/ieee1275/ofconsole.c: Disable code unused on i386.
36595 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
36596 Fix comparison between signed and unsigned.
36598 * include/grub/i386/ieee1275/console.h: Declare
36599 grub_console_init() and grub_console_fini().
36601 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
36602 It's empty and unused.
36604 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
36605 beginning to avoid warnings with some compilers.
36607 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
36608 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
36610 2008-07-14 Pavel Roskin <proski@gnu.org>
36612 * kern/env.c (grub_register_variable_hook): Don't copy empty
36613 string, it leaks memory. Pass "" to grub_env_set(), it should
36614 handle constant strings.
36616 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
36617 * commands/cmp.c (grub_cmd_cmp): Likewise.
36618 * kern/dl.c (grub_dl_flush_cache): Likewise.
36619 (grub_dl_load_core): Likewise.
36620 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
36621 (grub_elf64_load_phdrs): Likewise.
36623 2008-07-13 Pavel Roskin <proski@gnu.org>
36625 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
36626 between signed and unsigned.
36627 (LzmaEnc_Finish): Fix warning about an unused parameter.
36629 2008-07-13 Bean <bean123ch@gmail.com>
36631 * Makefile.in (enable_lzo): New rule.
36633 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
36635 * configure.ac (ENABLE_LZO): New option --enable-lzo.
36637 * boot/i386/pc/lnxboot.S: #include <config.h>.
36639 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
36640 its value according to the compression algorithm used, lzo or lzma.
36642 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
36643 compression algorithm according to configure macro.
36645 * kern/i386/pc/startup.S (codestart): Likewise.
36647 * kern/i386/pc/lzma_decode.S: New file.
36649 * include/grub/lib/LzFind.h: Likewise.
36651 * include/grub/lib/LzHash.h: Likewise.
36653 * include/grub/lib/LzmaDec.h: Likewise.
36655 * include/grub/lib/LzmaEnc.h: Likewise.
36657 * include/grub/lib/LzmaTypes.h: Likewise.
36659 * lib/LzFind.c: Likewise.
36661 * lib/LzmaDec.c: Likewise.
36663 * lib/LzmaEnc.c: Likewise.
36665 2008-07-13 Bean <bean123ch@gmail.com>
36667 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
36668 (grub_ext4_extent_header): New structure.
36669 (grub_ext4_extent): Likewise.
36670 (grub_ext4_extent_idx): Likewise.
36671 (grub_ext4_find_leaf): New function.
36672 (grub_ext2_read_block): Handle extents.
36674 2008-07-12 Robert Millan <rmh@aybabtu.com>
36676 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
36678 2008-07-11 Robert Millan <rmh@aybabtu.com>
36680 * util/grub.d/40_custom.in: New file. Example on how to add custom
36681 entries to /etc/grub.d.
36682 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
36683 40_custom (implicitly, by merging all the grub.d rules).
36685 2008-07-11 Pavel Roskin <proski@gnu.org>
36687 * commands/read.c (grub_getline): Fix invalid memory access.
36688 Don't add newline to the variable value.
36690 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
36691 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
36692 (serial_hw_get_port): Check validity of the port number.
36693 (grub_cmd_serial): Check return value of serial_hw_get_port().
36695 2008-07-07 Pavel Roskin <proski@gnu.org>
36697 * boot/i386/pc/diskboot.S (notification_string): Replace
36698 "Loading kernel" with just "loading". This is shorter, less
36699 confusing and saves a few bytes for possible future changes.
36701 2008-07-05 Pavel Roskin <proski@gnu.org>
36703 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
36704 size for ATAPI devices, they are undefined. Output sector
36705 number in decimal form.
36707 * disk/ata.c: Use named constants for status bits.
36709 2008-07-04 Pavel Roskin <proski@gnu.org>
36711 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
36712 grub_addr_t before casting it to the void pointer to fix a
36713 warning. Non-addressable regions are discarded earlier.
36714 (grub_arch_modules_addr): Cast _end to grub_addr_t.
36715 * kern/i386/linuxbios/table.c: Include grub/misc.h.
36716 (check_signature): Don't shadow table_header.
36717 (grub_linuxbios_table_iterate): Cast numeric constants to
36718 grub_linuxbios_table_header_t.
36719 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
36722 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
36725 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
36726 pointer, which can cause warnings. Support 64-bit addresses.
36728 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
36729 of sizeof(long). This fixes PowerPC image generation on x86_64.
36731 2008-07-04 Robert Millan <rmh@aybabtu.com>
36733 This fixes a performance issue when pc & gpt partmap iterators
36734 didn't abort iteration even after our hook found what it was
36735 looking for (often causing expensive probes of non-existent drives).
36737 Some callers relied on previous buggy behaviour, since they would
36738 raise an error when their own hooks caused early abortion of its
36741 * kern/device.c (grub_device_open): Improve error message.
36742 * disk/lvm.c (grub_lvm_open): Likewise.
36743 * disk/raid.c (grub_raid_open): Likewise.
36745 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
36746 when hook requests it, independently of grub_errno.
36747 (pc_partition_map_probe): Do not fail when find_func() caused
36748 early abortion of pc_partition_map_iterate().
36750 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
36751 when hook requests it, independently of grub_errno.
36752 (gpt_partition_map_probe): Do not fail when find_func() caused
36753 early abortion of gpt_partition_map_iterate().
36755 * kern/partition.c (grub_partition_iterate): Abort parent iteration
36756 when hook requests it, independently of grub_errno. Do not fail when
36757 part_map_iterate_hook() caused early abortion of p->iterate().
36759 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
36760 when grub_partition_iterate() returned with non-zero.
36762 2008-07-03 Pavel Roskin <proski@gnu.org>
36764 * disk/ata.c (grub_ata_pio_write): Check status before writing,
36765 like we do in grub_ata_pio_read().
36766 (grub_ata_readwrite): Always write individual sectors. Fix the
36767 sector count for the remainder.
36768 (grub_ata_write): Enable writing to ATA devices. Correctly
36769 report error for ATAPI devices.
36771 2008-07-02 Pavel Roskin <proski@gnu.org>
36773 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
36776 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
36777 for every read sector, we already increment it for the whole
36778 batch. This fixes reading more than 256 sectors at once.
36780 * util/grub-editenv.c (cmd_info): Cast argument to long
36781 explicitly. ptrdiff_t reduces to int on i386.
36783 * util/grub-editenv.c (main): Be specific which parameter is
36786 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
36787 (memdisk): Make memdisk_orig_addr a pointer.
36789 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
36790 for file offsets, use grub_off_t instead. Fix printf format
36793 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
36794 there. Real unexpected warnings should not drown in the noise
36795 about known problems.
36797 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
36798 grub_disk_addr_t for memory addresses.
36800 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
36801 explicitly to fix a warning.
36803 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
36805 * Makefile.in (MODULE_LDFLAGS): New variable.
36806 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
36807 the linker accepts --build-id=none.
36808 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
36810 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
36812 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
36813 those in Linux XFS code. Provide a way to access 64-bit parent
36815 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
36816 the end of struct grub_xfs_dir_header.
36818 2008-07-02 Bean <bean123ch@gmail.com>
36820 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
36821 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
36822 and GRUB_IEEE1275_FLAG_NO_ANSI.
36824 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
36825 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
36826 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
36828 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
36829 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
36831 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
36832 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
36834 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
36835 esc sequence on non ANSI terminal.
36836 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
36838 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
36841 2008-07-02 Bean <bean123ch@gmail.com>
36843 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
36844 (grub_editenv_SOURCES): New variable.
36845 (pkglib_MODULES): Add loadenv.mod.
36846 (loadenv_mod_SOURCES): New variable.
36847 (loadenv_mod_CFLAGS): Likewise.
36848 (loadenv_mod_LDFLAGS): Likewise.
36850 * include/grub/envblk.h: New file.
36852 * util/envblk.c: New file.
36854 * util/grub-editenv.c: New file.
36856 * commands/loadenv.c: New file.
36858 2008-07-01 Pavel Roskin <proski@gnu.org>
36860 * include/multiboot2.h (struct multiboot_tag_module): Use char,
36861 not unsigned char. This fixes warnings and is consistent with
36864 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
36866 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
36868 * term/tparm.c (analyze): Always set *popcount.
36870 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
36871 cast to fix a warning.
36873 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
36874 cast to suppress a warning.
36876 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
36877 grub_fshelp_read_file() expects.
36879 * fs/fat.c: Fix UUID calculation on big-endian systems. We
36880 write uuid as a 32-bit value in CPU byte order, so declare and
36883 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
36884 long if the format specifier expects it.
36885 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
36886 * partmap/pc.c (pc_partition_map_iterate): Likewise.
36887 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
36888 long to fix a warning.
36889 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
36890 grub_dprintf() arguments to fix warnings.
36892 2008-06-30 Pavel Roskin <proski@gnu.org>
36894 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
36895 install_bsd_part immediately before core.img is embedded or
36896 modified on disk. This fixes core.img verification if core.img
36897 cannot be embedded.
36899 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
36900 core_path to calculate the blocklist.
36901 Patch from Javier Martín <lordhabbit@gmail.com>
36903 2008-06-29 Robert Millan <rmh@aybabtu.com>
36905 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
36906 block to disk block.
36907 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
36908 Patch from Niels Böhm <bitbucket@arcor.de>
36910 2008-06-29 Robert Millan <rmh@aybabtu.com>
36912 * util/update-grub_lib.in (font_path): Search for fonts in
36913 /boot/grub first, which is more likely to be readable (we aren't
36914 deciding where fonts live, just looking for them).
36916 2008-06-26 Pavel Roskin <proski@gnu.org>
36918 * util/biosdisk.c (read_device_map): Don't leave dead map
36919 entries for devices failing stat() check.
36921 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
36922 core_path_dev for the core.img path on the target device.
36924 2008-06-26 Robert Millan <rmh@aybabtu.com>
36926 * disk/fs_uuid.c: New file.
36927 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
36928 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
36929 (fs_uuid_mod_LDFLAGS): New variables.
36930 * include/grub/disk.h (grub_disk_dev_id): Add
36931 `GRUB_DISK_DEVICE_UUID_ID'.
36932 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
36933 implement iterate().
36935 2008-06-26 Robert Millan <rmh@aybabtu.com>
36937 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
36938 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
36939 Linux image includes no initrd.
36941 2008-06-21 Javier Martín <lordhabbit@gmail.com>
36943 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
36944 call to resolve the core image location that effectively appended the
36947 2008-06-21 Robert Millan <rmh@aybabtu.com>
36949 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
36952 * util/grub.d/10_hurd.in: ... to here ...
36953 * util/grub.d/10_linux.in: ... and here.
36955 2008-06-19 Robert Millan <rmh@aybabtu.com>
36957 * kern/main.c (grub_main): Export `prefix' variable immediately
36958 after it has been set by grub_machine_set_prefix().
36960 2008-06-19 Robert Millan <rmh@aybabtu.com>
36962 * commands/search.c (search_label, search_fs_uuid, search_file): Print
36963 search result when not saving to variable, not the other way around.
36964 When saving to variable, abort iteration as soon as a match is found.
36966 2008-06-19 Robert Millan <rmh@aybabtu.com>
36968 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
36969 check for partition that provides /boot/grub. Its logic is flawed,
36970 as it prevents prepare_grub_to_access_device() from being called
36973 2008-06-19 Robert Millan <rmh@aybabtu.com>
36975 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
36976 "insmod" command directly when abstraction modules are needed,
36977 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
36978 since it had already been processed).
36980 2008-06-19 Pavel Roskin <proski@gnu.org>
36982 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
36983 changed. This is needed in case GRUB_LIBDIR changes.
36984 * conf/i386-ieee1275.rmk: Likewise.
36985 * conf/i386-linuxbios.rmk: Likewise.
36986 * conf/i386-pc.rmk: Likewise.
36987 * conf/powerpc-ieee1275.rmk: Likewise.
36989 2008-06-18 Pavel Roskin <proski@gnu.org>
36991 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
36992 kernel_elf_symlist.c to symlist.c for consistency with other
36993 architectures. Update all users.
36994 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
36996 2008-06-18 Robert Millan <rmh@aybabtu.com>
36998 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
37001 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
37002 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
37003 a RAID device, run setup() for all members independently on whether
37004 LVM abstraction is being used.
37005 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
37006 If grub-mkimage has set `*install_dos_part == -2', don't override this
37008 Perform *install_dos_part adjustments independently on whether
37009 we're embedding or not.
37010 Clarify error message when image is too big for embedding.
37011 Remove duplicate *install_dos_part stanza.
37013 2008-06-17 Robert Millan <rmh@aybabtu.com>
37015 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
37016 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
37018 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
37019 values in grub_ofconsole_normal_color and
37020 grub_ofconsole_highlight_color (they're not directly related to
37021 background and foreground).
37022 (grub_ofconsole_setcolorstate): Extract background and foreground
37023 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
37025 2008-06-17 Robert Millan <rmh@aybabtu.com>
37027 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
37028 /boot/grub for the check in last commit, not /boot (they could be
37029 different partitions).
37031 2008-06-16 Robert Millan <rmh@aybabtu.com>
37033 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
37034 asked to setup access for the same partition that provides /boot,
37035 don't bother using UUIDs since our root already has the value we
37038 2008-06-16 Robert Millan <rmh@aybabtu.com>
37040 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
37042 Patch from Sven Mueller <sven@debian.org>.
37044 2008-06-16 Robert Millan <rmh@aybabtu.com>
37046 * util/update-grub.in: Check for $EUID instead of $UID.
37047 Reported by Vincent Zweije.
37049 2008-06-16 Bean <bean123ch@gmail.com>
37051 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
37052 (grub_ext2_read_block): Likewise.
37053 (grub_ext2_read_inode): Likewise.
37054 (grub_ext2_mount): Likewise.
37055 (grub_ext2_close): Likewise.
37056 (grub_ext3_get_journal): Removed.
37058 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
37059 (grub_reiserfs_read_symlink): Likewise.
37060 (grub_reiserfs_mount): Likewise.
37061 (grub_reiserfs_open): Likewise.
37062 (grub_reiserfs_read): Likewise.
37063 (grub_reiserfs_close): Likewise.
37064 (grub_reiserfs_get_journal): Removed.
37066 * fs/fshelp.c (grub_fshelp_read): Removed.
37067 (grub_fshelp_map_block): Likewise.
37069 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
37070 (grub_fshelp_journal): Likewise.
37071 (grub_fshelp_read): Likewise.
37072 (grub_fshelp_map_block): Likewise.
37074 2008-06-16 Pavel Roskin <proski@gnu.org>
37076 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
37077 floating point anymore.
37078 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
37080 2008-06-15 Pavel Roskin <proski@gnu.org>
37082 * commands/ls.c (grub_ls_list_files): Use integer calculations
37083 for human readable format, avoid floating point use.
37084 * kern/misc.c (grub_ftoa): Remove.
37085 (grub_vsprintf): Remove floating point support.
37087 2008-06-15 Robert Millan <rmh@aybabtu.com>
37089 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
37091 Reported by Max Vozeler.
37093 2008-06-15 Robert Millan <rmh@aybabtu.com>
37095 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
37096 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
37098 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
37099 the beginning of the prefix.
37101 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
37102 It is assumed that if we have a memdisk, grub-mkimage has set
37103 grub_prefix to include the "(memdisk)" drive in it.
37105 2008-06-15 Robert Millan <rmh@aybabtu.com>
37107 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
37108 Initialize keyboard controller after registering the terminal, so that
37109 grub_printf() can be called from grub_keyboard_controller_init().
37111 2008-06-15 Robert Millan <rmh@aybabtu.com>
37113 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
37114 extent-btree which is written as big endian on disk.
37115 Reported by Alain Greppin <al@chilibi.org>.
37117 2008-06-14 Robert Millan <rmh@aybabtu.com>
37119 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
37120 * util/i386/pc/grub-install.in (modules): Likewise.
37122 2008-06-13 Pavel Roskin <proski@gnu.org>
37124 * commands/ls.c (grub_ls_list_files): Fix format warnings.
37126 2008-06-13 Bean <bean123ch@gmail.com>
37128 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
37130 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
37132 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
37133 to indicate sparse block.
37135 2008-06-12 Pavel Roskin <proski@gnu.org>
37137 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
37138 number, grub_fshelp_read() does it for us.
37140 * fs/fshelp.c (grub_fshelp_read): New function. Implement
37141 linear disk read with journal translation.
37142 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
37143 * include/grub/fshelp.h: Declare grub_fshelp_read().
37145 2008-06-09 Pavel Roskin <proski@gnu.org>
37147 * fs/minix.c (grub_minix_mount): Handle error reading
37150 2008-06-08 Robert Millan <rmh@aybabtu.com>
37152 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
37153 don't append the RAID prefix afterwards.
37154 Reported by Clint Adams.
37156 2008-06-08 Robert Millan <rmh@aybabtu.com>
37158 Based on description from Pavel:
37159 * kern/disk.c (grub_disk_check_range): Rename to ...
37160 (grub_disk_adjust_range): ... this. Add a comment explaining the
37161 tasks performed by this function.
37163 2008-06-08 Robert Millan <rmh@aybabtu.com>
37165 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
37166 `num_serial' (for consistency with other variables).
37167 (struct grub_ntfs_data): Add `uuid' member.
37168 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
37169 (grub_ntfs_uuid): New function.
37170 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
37172 2008-06-07 Pavel Roskin <proski@gnu.org>
37174 * util/biosdisk.c (open_device): Revert last change to the
37175 function, it broke installation. The sector needs to be
37176 different dependent on which device is opened.
37178 2008-06-06 Robert Millan <rmh@aybabtu.com>
37180 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
37181 rest of GRUB, and breakage doesn't happen if its value were modified.
37183 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
37184 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
37185 a constant (same value).
37186 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
37187 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
37189 2008-06-06 Robert Millan <rmh@aybabtu.com>
37191 * util/biosdisk.c (open_device): Do not modify sector offset when
37192 accessing a partition. kern/disk.c already handles this for us.
37194 2008-06-06 Robert Millan <rmh@aybabtu.com>
37196 * util/grub-emu.c (grub_machine_init): Move code in this function from
37198 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
37199 segfault in case grub_printf() is called).
37201 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
37202 grub_probe. Update all users not to explicitly add it again.
37203 (grub_device): New variable; contains corresponding device for grubdir.
37204 (fs_module, partmap_module, devabstraction_module): Pass
37205 `--device ${grub_device}' to grub_probe to avoid traversing /dev
37208 2008-06-05 Robert Millan <rmh@aybabtu.com>
37210 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
37211 is found, print it (same layout as with labels).
37213 2008-06-04 Robert Millan <rmh@aybabtu.com>
37215 * util/biosdisk.c (get_drive): Rename to ...
37216 (find_grub_drive): ... this. Update all users.
37218 (get_os_disk): Rename to ...
37219 (convert_system_partition_to_system_disk): ... this. Update all users.
37221 (find_drive): Rename to ...
37222 (find_system_device): ... this. Update all users.
37224 2008-06-04 Robert Millan <rmh@aybabtu.com>
37226 * util/biosdisk.c (get_os_disk): Handle IDA devices.
37227 * util/grub-mkdevicemap.c (get_mmc_disk_name)
37228 (make_device_map): Likewise.
37230 2008-06-01 Robert Millan <rmh@aybabtu.com>
37232 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
37233 before dereferencing it.
37235 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
37236 union with fat12/fat16-specific ones. Add some new fields, including
37237 `num_serial' for both versions.
37238 (struct grub_fat_data): Add `uuid' member.
37239 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
37240 names. Initialize `data->uuid' using `num_serial'.
37241 (grub_fat_uuid): New function.
37242 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
37244 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
37245 (grub_reiserfs_uuid): New function.
37246 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
37249 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
37250 (grub_xfs_uuid): New function.
37251 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
37253 2008-06-01 Robert Millan <rmh@aybabtu.com>
37255 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
37256 code that is backward compatible with pre-uuid search command.
37258 2008-05-31 Robert Millan <rmh@aybabtu.com>
37260 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
37261 floppies after everything else, to ensure floppy drive isn't accessed
37262 unnecessarily (patch from Bean).
37264 2008-05-31 Robert Millan <rmh@aybabtu.com>
37266 * commands/search.c (search_label, search_fs_uuid, search_file): Do
37267 not print device names when we were asked to set a variable.
37269 2008-05-31 Robert Millan <rmh@aybabtu.com>
37271 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
37272 using "cursor-on" and "cursor-off" commands (understood at least by
37273 the Open Firmware flavour on OLPC).
37275 2008-05-31 Michael Gorven <michael@gorven.za.net>
37277 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
37278 on and off sequences.
37280 2008-05-31 Robert Millan <rmh@aybabtu.com>
37282 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
37283 * util/update-grub.in: Likewise.
37285 2008-05-30 Pavel Roskin <proski@gnu.org>
37287 * util/biosdisk.c (linux_find_partition): Simplify logic and
37288 make the code more universal. Keep special processing for
37289 devfs, but use a simple rule for all other devices. If the
37290 device ends with a number, append 'p' and the partition number.
37291 Otherwise, append only the partition number.
37293 2008-05-30 Robert Millan <rmh@aybabtu.com>
37295 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
37296 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
37297 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
37298 the `root' parameter to Linux.
37300 2008-05-30 Robert Millan <rmh@aybabtu.com>
37302 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
37303 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
37304 --fs_uuid with --fs-uuid.
37305 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
37306 all filesystems support them).
37308 2008-05-30 Robert Millan <rmh@aybabtu.com>
37310 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
37311 grub_printf() flags, since we're printing in units of 2 bytes.
37313 2008-05-30 Robert Millan <rmh@aybabtu.com>
37315 * util/grub.d/00_header.in: Remove obsolete comment referencing
37316 convert_system_path_to_grub_path().
37317 * util/update-grub.in: Likewise.
37318 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
37319 (convert_system_path_to_grub_path): Add a warning message explaining
37320 that this function is deprecated. Rely on is_path_readable_by_grub()
37321 for the readability checks.
37322 (font_path): Use is_path_readable_by_grub() for the readability
37323 check rather than convert_system_path_to_grub_path().
37325 2008-05-30 Robert Millan <rmh@aybabtu.com>
37327 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
37328 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
37329 converting it first.
37330 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
37331 grub.cfg for access to font file, and afterwards call it again to set
37334 2008-05-30 Robert Millan <rmh@aybabtu.com>
37336 * commands/search.c (options): Add --fs_uuid option.
37337 (search_fs_uuid): New function.
37338 (grub_cmd_search): Fix --set argument passing.
37339 Use search_fs_uuid() when requested via --fs_uuid.
37340 (grub_search_init): Update help message.
37341 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
37342 and redeclare it as an array of 16-bit words.
37343 (grub_ext2_uuid): New function.
37344 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
37345 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
37346 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
37347 (GRUB_DEVICE_BOOT_UUID): New variables.
37348 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
37349 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
37351 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
37352 just assume `root' variable has the right value.
37353 * util/grub.d/10_linux.in: Likewise.
37354 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
37356 (main): Recognise `-t fs_uuid' argument.
37358 2008-05-30 Robert Millan <rmh@aybabtu.com>
37360 * util/biosdisk.c (map): Redefine structure to hold information
37361 about GRUB drive name.
37362 (get_drive): Reimplement without assuming (and verifying) BIOS-like
37364 (call_hook): Remove.
37365 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
37366 member. Assume drive has partitions.
37367 (grub_util_biosdisk_open): Access device names via `.device' struct
37369 (open_device): Likewise.
37370 (find_drive): Likewise.
37371 (read_device_map): Adjust map[] usage to match the new struct
37372 definition. Don't check for duplicates (still possible, but not cheap
37374 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
37375 (make_device_name): Remove assumption of BIOS-like drive names.
37377 2008-05-30 Pavel Roskin <proski@gnu.org>
37379 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
37380 compiling execute.c doesn't need grub_script.tab.h anymore.
37381 (normal/command.c_DEPENDENCIES): Likewise.
37382 (normal/function.c_DEPENDENCIES): Likewise.
37383 * conf/i386-ieee1275.rmk: Likewise.
37384 * conf/i386-linuxbios.rmk: Likewise.
37385 * conf/i386-pc.rmk: Likewise.
37386 * conf/powerpc-ieee1275.rmk: Likewise.
37387 * conf/sparc64-ieee1275.rmk: Likewise.
37389 2008-05-29 Pavel Roskin <proski@gnu.org>
37391 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
37392 when scanning metadata for volume group name.
37394 * include/grub/script.h: Don't include grub_script.tab.h. It's
37395 a generated file, which may only be included from the files with
37396 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
37397 use union YYSTYPE, as the later allows forward declaration.
37398 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
37400 2008-05-29 Robert Millan <rmh@aybabtu.com>
37402 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
37403 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
37404 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
37405 (grub_console_checkkey): Add grub_dprintf() call to report unknown
37408 2008-05-29 Robert Millan <rmh@aybabtu.com>
37410 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
37411 control key combinations.
37413 2008-05-29 Robert Millan <rmh@aybabtu.com>
37415 * util/powerpc/ieee1275/grub-install.in: Move from here ...
37416 * util/ieee1275/grub-install.in: ... to here.
37417 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
37418 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
37419 (grub_install_SOURCES): Likewise.
37421 2008-05-29 Robert Millan <rmh@aybabtu.com>
37423 * fs/affs.c: Update copyright year.
37424 * fs/ext2.c: Likewise.
37425 * fs/fshelp.c: Likewise.
37426 * fs/hfsplus.c: Likewise.
37427 * fs/ntfs.c: Likewise.
37428 * fs/xfs.c: Likewise.
37429 * include/grub/fshelp.h: Likewise.
37430 * util/grub-mkdevicemap.c: Likewise.
37432 2008-05-28 Robert Millan <rmh@aybabtu.com>
37434 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
37435 might need to be fatfs to support some firmware implementations
37438 2008-05-28 Robert Millan <rmh@aybabtu.com>
37440 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
37442 * util/grub-mkdevicemap.c (get_mmc_disk_name)
37443 (make_device_map): Likewise.
37445 2008-05-20 Bean <bean123ch@gmail.com>
37447 * fs/fshelp.c (grub_fshelp_map_block): New function.
37448 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
37449 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
37451 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
37452 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
37453 (grub_fshelp_journal): New structure.
37454 (grub_fshelp_map_block): New function prototype.
37455 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
37456 (grub_fshelp_map_block): Likewise.
37458 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
37459 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
37460 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
37461 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
37462 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
37463 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
37464 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
37465 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
37466 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
37467 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
37468 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
37469 (grub_ext2_sblock): New members for journal support.
37470 (grub_ext3_journal_header): New structure.
37471 (grub_ext3_journal_revoke_header): Likewise.
37472 (grub_ext3_journal_block_tag): Likewise.
37473 (grub_ext3_journal_sblock): Likewise.
37474 (grub_fshelp_node): New members logfile and journal.
37475 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
37476 grub_fshelp_map_block to get real block number.
37477 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
37479 (grub_ext2_read_inode): Likewise.
37480 (grub_ext3_get_journal): New function.
37481 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
37482 (grub_ext2_close): Release memory used by journal.
37484 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
37485 (REISERFS_MAGIC_DESC_BLOCK): New macro.
37486 (grub_reiserfs_transaction_header): Renamed to
37487 grub_reiserfs_description_block, replace field data with real_blocks.
37488 (grub_reiserfs_commit_block): New structure.
37489 (grub_reiserfs_data): New member journal.
37490 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
37492 (grub_reiserfs_read_symlink): Likewise.
37493 (grub_reiserfs_iterate_dir): Likewise.
37494 (grub_reiserfs_open): Likewise.
37495 (grub_reiserfs_read): Likewise.
37496 (grub_reiserfs_get_journal): New function.
37497 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
37498 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
37499 using grub_reiserfs_get_journal.
37500 (grub_reiserfs_close): Release memory used by journal.
37502 * fs/affs.c (grub_affs_read_block): Change block type to
37503 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
37505 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
37507 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
37509 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
37511 * fs/udf.c (grub_udf_read_block): Change block type to
37512 grub_disk_addr_t. Use type cast to avoid warning.
37514 * fs/xfs.c (grub_xfs_read_block): Likewise.
37516 2008-05-16 Christian Franke <franke@computer.org>
37518 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
37519 to ensure that break with ESC will always work.
37520 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
37521 Remove ESC from keyboard queue.
37523 2008-05-16 Christian Franke <franke@computer.org>
37525 * util/biosdisk.c: [__CYGWIN__] Add includes.
37526 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
37527 (get_os_disk): Move variable declarations to OS specific
37528 parts to avoid warning.
37529 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
37530 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
37531 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
37533 * util/getroot.c: [__CYGWIN__] Add includes.
37534 (strip_extra_slashes): Fix "/" case.
37535 [__CYGWIN__] (get_win32_path): New function.
37536 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
37537 [__CYGWIN__] (find_root_device): Disable.
37538 [__CYGWIN__] (get_bootsec_serial): New function.
37539 [__CYGWIN__] (find_cygwin_root_device): Likewise.
37540 [__linux__] (grub_guess_root_device): Add early returns to simplify
37542 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
37543 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
37544 check for Linux only.
37546 2008-05-15 Bean <bean123ch@gmail.com>
37548 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
37549 keyboard hang problem in apple's intel mac.
37551 2008-05-09 Robert Millan <rmh@aybabtu.com>
37553 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
37555 * util/grub-mkdevicemap.c (get_virtio_disk_name)
37556 (make_device_map): Likewise.
37557 Reported by Aurelien Jarno <aurel32@debian.org>
37559 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
37561 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
37562 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
37563 (make_device_map): Output entries for xvd type disks.
37565 2008-05-07 Robert Millan <rmh@aybabtu.com>
37567 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
37569 * util/grub-mkdevicemap.c (get_cciss_disk_name)
37570 (make_device_map): Likewise.
37571 Reported by Roland Dreier <rdreier@cisco.com>
37573 2008-05-07 Robert Millan <rmh@aybabtu.com>
37575 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
37576 grub_strstr() call. Correct a few mistakes in failure path handling.
37578 2008-05-06 Robert Millan <rmh@aybabtu.com>
37580 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
37581 Do not print a trailing slash (therefore, the root directory is an
37583 (convert_system_path_to_grub_path): Do not remove trailing slash
37584 from make_system_path_relative_to_its_root() output.
37586 * util/i386/pc/grub-install.in: Add trailing slash to output from
37587 make_system_path_relative_to_its_root().
37589 2008-05-06 Robert Millan <rmh@aybabtu.com>
37591 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
37592 ensures that output lines aren't intermangled with those sent to
37593 stderr (via grub_util_info()).
37594 * util/grub-probe.c (grub_refresh): Likewise.
37595 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
37597 2008-05-05 Christian Franke <franke@computer.org>
37599 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
37600 Add Cygwin device names.
37601 (get_ide_disk_name) [__CYGWIN__]: Likewise.
37602 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
37603 (check_device): Return error instead of success on empty name.
37604 (make_device_map): Move label inside linux specific code to
37605 prevent compiler warning.
37607 2008-04-30 Robert Millan <rmh@aybabtu.com>
37609 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
37610 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
37612 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
37614 2008-04-29 Robert Millan <rmh@aybabtu.com>
37616 * docs/grub.cfg: New file (example GRUB configuration).
37618 2008-04-26 Robert Millan <rmh@aybabtu.com>
37620 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
37621 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
37622 and `disk/ieee1275/nand.c'.
37624 2008-04-25 Bean <bean123ch@gmail.com>
37626 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
37629 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
37630 change the buffer size to 4096 for cdrom device.
37632 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
37634 (_linux_mod_SOURCES): New variable.
37635 (_linux_mod_CFLAGS): Likewise.
37636 (_linux_mod_LDFLAGS): Likewise.
37637 (linux_mod_SOURCES): Likewise.
37638 (linux_mod_CFLAGS): Likewise.
37639 (linux_mod_LDFLAGS): Likewise.
37640 (nand_mod_SOURCES): Likewise.
37641 (nand_mod_CFLAGS): Likewise.
37642 (nand_mod_LDFLAGS): Likewise.
37644 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
37645 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
37646 type property. (nand device in olpc don't have this property)
37648 * include/grub/disk.h (grub_disk_dev_id): New macro
37649 GRUB_DISK_DEVICE_NAND_ID.
37651 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
37652 function prototype.
37653 (grub_rescue_cmd_initrd): Likewise.
37655 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
37656 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
37657 ofw_cif_handler and ofw_idt, adjust padding number.
37659 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
37660 GRUB_MACHINE_IEEE1275 is defined.
37662 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
37663 Use NESTED_FUNC_ATTR attribute on the hook parameter.
37665 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
37666 on nested function heap_init.
37667 (grub_upper_mem): New variable for i386-ieee1275.
37668 (grub_get_extended_memory): New function for i386-ieee1275.
37669 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
37671 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
37672 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
37675 * loader/i386/ieee1275/linux.c: New file.
37677 * loader/i386/ieee1275/linux_normal.c: New file.
37679 * disk/ieee1275/nand.c: New file.
37681 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
37683 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
37685 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
37687 2008-04-18 Robert Millan <rmh@aybabtu.com>
37689 Restructures early code path on ieee1275 to unify grub_main() as
37690 the first C function that is executed in every platform.
37692 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
37693 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
37695 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
37696 * kern/ieee1275/cmain.c (cmain): Rename to ...
37697 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
37698 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
37701 2008-04-18 Robert Millan <rmh@aybabtu.com>
37703 * util/update-grub.in: Fix syntax error when setting
37704 `GRUB_PRELOAD_MODULES'.
37705 Reported by Stephane Chazelas <stephane@artesyncp.com>
37707 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
37709 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
37710 section into account, newer toolchains generate unique build ids
37711 * configure.ac: remove the test for --build-id=none acceptance,
37712 we want build ids to be preserved
37713 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
37714 far from other sections don't cause the raw binary images grow
37717 2008-04-15 Robert Millan <rmh@aybabtu.com>
37719 * disk/lvm.c: Update copyright year.
37720 * kern/misc.c: Likewise.
37722 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
37724 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
37725 there is no memory left for physical volume name.
37727 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
37729 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
37730 volume name mapping to support bigger than 9 character names properly.
37732 2008-04-13 Robert Millan <rmh@aybabtu.com>
37734 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
37735 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
37737 2008-04-13 Christian Franke <franke@computer.org>
37739 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
37740 to create a floppy emulation boot CD when non emulation mode
37742 Enable Joliet CD filesystem extension.
37744 2008-04-13 Robert Millan <rmh@aybabtu.com>
37746 * kern/misc.c (grub_strncat): Fix off-by-one error.
37747 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
37749 * kern/env.c (grub_env_context_close): Clear current context, not
37751 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
37753 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
37755 2008-04-13 Robert Millan <rmh@aybabtu.com>
37757 Improve robustness when handling LVM.
37759 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
37760 (and leave `*p' unmodified).
37761 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
37763 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
37764 iterating through it.
37765 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
37767 (grub_lvm_scan_device): Check the return value (and fail gracefully
37768 when due) on each grub_lvm_getvalue() or grub_strstr() call.
37769 Don't assume `vg->pvs != NULL' when iterating through it.
37771 2008-04-13 Robert Millan <rmh@aybabtu.com>
37773 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
37774 * genmk.rb (partmap): New variable.
37775 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
37776 (#{partmap}): New target rule.
37777 * genpartmaplist.sh: New file.
37778 * Makefile.in (pkglib_DATA): Add partmap.lst.
37779 (partmap.lst): New target rule.
37780 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
37781 modules (including all partition maps), instead of preloading them.
37783 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
37785 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
37786 `linux-boot-prober' (if installed) to detect other operating
37787 systems which are installed on the computer and add them to
37789 * conf/common.rmk: Build and install 30_os-prober.
37791 2008-04-12 Robert Millan <rmh@aybabtu.com>
37793 * kern/powerpc/ieee1275/init.c: Move from here ...
37794 * kern/ieee1275/init.c: ... to here. Update all users.
37796 * kern/powerpc/ieee1275/cmain.c: Move from here ...
37797 * kern/ieee1275/cmain.c: ... to here. Update all users.
37799 * kern/powerpc/ieee1275/openfw.c: Move from here ...
37800 * kern/ieee1275/openfw.c: ... to here. Update all users.
37802 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
37803 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
37805 2008-04-10 Pavel Roskin <proski@gnu.org>
37807 * configure.ac: Always use "_cv_" in cache variables for
37808 compatibility with Autoconf 2.62.
37810 2008-04-07 Robert Millan <rmh@aybabtu.com>
37812 Revert grub/machine/init.h addition by Pavel (since it breaks on
37813 i386-ieee1275 and others):
37814 * util/i386/pc/misc.c: Remove grub/machine/init.h.
37815 * util/powerpc/ieee1275/misc.c: Likewise.
37817 2008-04-07 Robert Millan <rmh@aybabtu.com>
37819 * util/grub-probe.c (probe): Improve error message.
37821 2008-04-07 Robert Millan <rmh@aybabtu.com>
37823 * util/biosdisk.c (read_device_map): Skip devices that don't exist
37824 (this prevents the presence of a bogus entry from ruining the whole
37827 2008-04-06 Pavel Roskin <proski@gnu.org>
37829 * util/biosdisk.c: Include grub/util/biosdisk.h.
37830 * util/grub-fstest.c (execute_command): Make static.
37831 * util/grub-mkdevicemap.c (check_device): Likewise.
37832 * util/i386/pc/misc.c: Include grub/machine/init.h.
37833 * util/powerpc/ieee1275/misc.c: Likewise.
37834 * util/lvm.c: Include grub/util/lvm.h.
37835 * util/misc.c: Include grub/kernel.h, grub/misc.h and
37837 * util/raid.c: Include grub/util/raid.h.
37838 (grub_util_getdiskname): Make static.
37840 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
37841 grub_hostfs_fini(), as they are called from grub_init_all() and
37842 grub_fini_all() respectively. This fixes an infinite loop in
37843 grub-fstest due to double registration of hostfs.
37844 Reported by Christian Franke <Christian.Franke@t-online.de>
37846 2008-04-05 Pavel Roskin <proski@gnu.org>
37848 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
37849 all 8 functions. Otherwise, probe function 0 only.
37851 2008-04-04 Pavel Roskin <proski@gnu.org>
37853 * commands/lspci.c (grub_lspci_iter): Print the bus number
37856 * commands/lspci.c (grub_pci_classes): Fix typos.
37857 (grub_lspci_iter): Don't print func twice. Print vendor ID
37858 before device ID, as it's normally done.
37860 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
37861 Fix signedness warnings.
37862 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
37864 * util/ieee1275/get_disk_name.c: Include config.h so that
37865 _GNU_SOURCE is defined and getline() is declared. Mark an
37866 unused argument as such. Fix a signedness warning.
37868 2008-04-02 Pavel Roskin <proski@gnu.org>
37870 * genkernsyms.sh.in: Use more robust assignments for CC and
37871 srcdir. Quote srcdir.
37872 * gensymlist.sh.in: Likewise. Assert at the compile time that
37873 the symbol table is not empty.
37875 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
37876 * fs/cpio.c (grub_cpio_read): Likewise.
37878 2008-04-01 Pavel Roskin <proski@gnu.org>
37880 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
37881 * disk/host.c (grub_host_open): Likewise.
37882 * disk/loopback.c (grub_loopback_open): Likewise.
37883 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
37884 disk->id as in disk/host.c, not a multi-character constant.
37886 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
37887 later is obsolete, potentially dangerous and sets a bad example.
37888 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
37889 * util/misc.c (grub_util_get_image_size): Likewise.
37891 * disk/loopback.c (options): Improve help for "--partitions".
37893 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
37894 options to align them with the short options, e.g. "echo -e".
37896 2008-03-31 Bean <bean123ch@gmail.com>
37898 * video/reader/png.c (grub_png_data): New member is_16bit and
37900 (grub_png_decode_image_header): Detect 16 bit png image.
37901 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
37902 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
37903 (grub_video_reader_png): Release memory occupied by image_data.
37905 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
37907 (grub_nfs_mount): Skip the test for sector per cluster.
37909 * include/grub/ntfs.h (MAX_SPC): Removed.
37911 2008-03-31 Bean <bean123ch@gmail.com>
37913 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
37914 (grub_probe_SOURCES): Add fs/afs.c.
37915 (grub_fstest_SOURCES): Likewise.
37916 (afs_mod_SOURCES): New variable.
37917 (afs_mod_CFLAGS): Likewise.
37918 (afs_mod_LDFLAGS): Likewise.
37920 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
37921 (grub_emu_SOURCES): Likewise.
37923 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37925 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37927 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
37929 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37931 * fs/afs.c: New file.
37933 2008-03-30 Pavel Roskin <proski@gnu.org>
37935 * disk/host.c: Include grub/misc.h to fix a warning.
37936 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
37937 warnings about implicit declarations.
37939 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
37941 * include/grub/i386/loader.h: Change declaration of
37942 grub_linux_boot() to match what grub_loader_set() expects.
37943 * util/getroot.c (grub_guess_root_device): Return const char* to
37945 * util/grub-probe.c (probe): Fix a warning about uninitialized
37946 abstraction_name variable.
37947 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
37948 second argument as unused to fix a warning.
37950 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
37951 missing grub_error() call.
37953 * util/update-grub_lib.in: Define datarootdir, since Autoconf
37954 2.60 and newer uses it to define datadir.
37956 * commands/sleep.c: Fix warning about implicit declaration.
37957 * disk/memdisk.c: Likewise.
37958 * loader/aout.c: Likewise.
37959 * loader/i386/bsd_normal.c: Likewise.
37960 * util/grub-probe.c: Likewise.
37962 * commands/i386/cpuid.c (has_longmode): Make static.
37963 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
37964 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
37966 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
37967 GDT. This is more robust, as %ds can change.
37968 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
37969 calling real_to_prot().
37970 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
37972 2008-03-28 Pavel Roskin <proski@gnu.org>
37974 * kern/i386/pc/startup.S: Assert that uncompressed functions
37975 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
37976 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
37977 code, as they push parts of the code (error handlers) beyond
37978 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
37979 code as correctness and size.
37981 2008-03-28 Pavel Roskin <proski@gnu.org>
37983 * kern/i386/pc/startup.S
37984 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
37985 data block address to the real mode, keep offset minimal. This
37986 works around a bug in AWARD BIOS on old Athlon systems, which
37987 makes CD detection hang.
37989 2008-03-26 Pavel Roskin <proski@gnu.org>
37991 * normal/color.c (grub_parse_color_name_pair): Make `name' a
37993 * include/grub/normal.h: Add grub_parse_color_name_pair()
37996 2008-03-24 Bean <bean123ch@gmail.com>
37998 * disk/i386/pc/biosdisk.c (cd_start): Removed.
37999 (cd_count): Removed.
38000 (cd_drive): New variable.
38001 (grub_biosdisk_get_drive): Don't check for (cdN) device.
38002 (grub_biosdisk_call_hook): Likewise.
38003 (grub_biosdisk_iterate): Change cdrom detection method.
38004 (grub_biosdisk_open): Replace cd_start with cd_drive.
38005 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
38006 detect cdrom device.
38008 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
38010 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
38011 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
38012 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
38013 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
38014 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
38015 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
38016 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
38017 (grub_biosdisk_cdrp): New structure.
38018 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
38020 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
38022 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
38025 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
38028 2008-03-20 Robert Millan <rmh@aybabtu.com>
38030 Remove 2 TiB limit in ata.mod.
38031 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
38032 (grub_ata_dumpinfo): Print sector count with 0x%llx.
38033 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
38034 grub_uint64_t instead of grub_uint32_t.
38036 2008-03-05 Bean <bean123ch@gmail.com>
38038 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
38039 (grub_multiboot): Set boot device.
38041 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
38043 2008-03-02 Bean <bean123ch@gmail.com>
38045 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
38048 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
38050 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
38053 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
38056 * docs/fdl.texi: New file.
38058 * docs/mdate-sh: New file. Copied from gnulib.
38059 * docs/texinfo.tex: Likewise.
38061 * config.guess: Updated from gnulib.
38062 * install-sh: Likewise.
38064 2008-02-28 Robert Millan <rmh@aybabtu.com>
38066 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
38067 (aout_mod_SOURCES): New variable.
38068 (aout_mod_CFLAGS): Likewise.
38069 (aout_mod_LDFLAGS): Likewise.
38071 * conf/i386-ieee1275.rmk: Likewise.
38073 2008-02-28 Robert Millan <rmh@aybabtu.com>
38075 * util/update-grub.in: Reorganise terminal validity check. Accept
38076 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
38077 Based on suggestion by Franklin PIAT.
38079 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
38081 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
38083 * util/getroot.c (grub_util_check_block_device): New function that
38084 returns the given argument if it is a block device and returns NULL else.
38085 * util/grub-probe.c (argument_is_device): New variable.
38086 (probe): Promote device_name from a variable to an argument. Receive
38087 device_name from grub_util_check_block_device() if path is NULL and from
38088 grub_guess_root_device() else. Do not free() device_name anymore.
38089 (options): Introduce new parameter '-d, --device'.
38090 (main): Add description of the new parameter to the help screen.
38091 Rename path variable to argument. Set argument_is_device if the '-d'
38092 option is given. Pass argument to probe() depending on
38093 argument_is_device.
38095 2008-02-24 Bean <bean123ch@gmail.com>
38097 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
38098 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
38099 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
38100 (GRUB_ISO9660_VOLDESC_PART): Likewise.
38101 (GRUB_ISO9660_VOLDESC_END): Likewise.
38102 (grub_iso9660_primary_voldesc): New member escape.
38103 (grub_iso9660_data): New member joliet.
38104 (grub_iso9660_convert_string): New function.
38105 (grub_iso9660_mount): Detect joliet extension.
38106 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
38107 (grub_iso9660_iso9660_label): Likewise.
38109 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
38110 (grub_setup_SOURCES): Add fs/udf.c.
38111 (grub_fstest_SOURCES): Likewise.
38112 (udf_mod_SOURCES): New variable.
38113 (udf_mod_CFLAGS): Likewise.
38114 (udf_mod_LDFLAGS): Likewise.
38116 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
38117 (grub_emu_SOURCES): Likewise.
38119 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38121 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38123 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38125 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38127 * fs/udf.c: New file.
38129 2008-02-24 Robert Millan <rmh@aybabtu.com>
38131 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
38132 (normal/lexer.c_DEPENDENCIES): New variables.
38133 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38134 (normal/lexer.c_DEPENDENCIES): Likewise.
38135 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
38136 (normal/lexer.c_DEPENDENCIES): Likewise.
38137 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
38138 (normal/lexer.c_DEPENDENCIES): Likewise.
38139 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38140 (normal/lexer.c_DEPENDENCIES): Likewise.
38141 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38142 (normal/lexer.c_DEPENDENCIES): Likewise.
38144 2008-02-23 Robert Millan <rmh@aybabtu.com>
38146 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
38147 since they were intended to be in hex. This didn't break previously
38148 because of a bug in gpt_partition_map_iterate() (see below).
38150 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
38151 when checking the validity of GPT header.
38152 Remove `partno', since it always provides the same information as `i'.
38154 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
38156 * include/grub/efi/time.h: Fix a wrong comment.
38158 2008-02-19 Pavel Roskin <proski@gnu.org>
38160 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
38163 2008-02-19 Bean <bean123ch@gmail.com>
38165 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
38166 (aout_mod_SOURCES): New variable.
38167 (aout_mod_CFLAGS): Likewise.
38168 (aout_mod_LDFLAGS): Likewise.
38169 (_bsd_mod_SOURCES): New variable.
38170 (_bsd_mod_CFLAGS): Likewise.
38171 (_bsd_mod_LDFLAGS): Likewise.
38172 (bsd_mod_SOURCES): New variable.
38173 (bsd_mod_CFLAGS): Likewise.
38174 (bsd_mod_LDFLAGS): Likewise.
38176 * include/grub/aout.h: New file.
38178 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
38180 * include/grub/i386/bsd.h: New file.
38182 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
38185 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
38186 function is called, so that it's possible to change it inside the hook.
38187 (grub_elf64_load): Likewise.
38188 (grub_elf_file): Don't close the file if elf header is not found.
38189 (grub_elf_close): Close the file if grub_elf_file fails (The new
38190 grub_elf_file won't close it).
38191 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
38192 (grub_elf64_size): Likewise.
38194 * kern/i386/loader.S (grub_unix_real_boot): New function.
38196 * loader/aout.c: New file.
38198 * loader/i386/bsd.c: New file.
38200 * loader/i386/bsd_normal.c: New file.
38202 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
38204 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
38205 can test other formats.
38207 2008-02-19 Robert Millan <rmh@aybabtu.com>
38209 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
38210 (grub_gpt_partition_type_empty): Redefine with macro from
38211 `<grub/gpt_partition.h>'.
38212 (gpt_partition_map_iterate): Adjust partition type comparison.
38214 Export `entry' as partmap-specific `part.data' struct.
38215 (grub_gpt_header, grub_gpt_partentry): Move from here ...
38217 * include/grub/gpt_partition.h (grub_gpt_header)
38218 (grub_gpt_partentry): ... to here (new file).
38220 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
38222 (grub_gpt_partition_type_bios_boot): New const variable, defined
38223 with macro from `<grub/gpt_partition.h>'.
38225 (setup): Replace `first_start' with `embed_region', which keeps
38226 track of the embed region (and is partmap-agnostic).
38228 Replace find_first_partition_start() with find_usable_region(),
38229 which finds a usable region for embedding using partmap-specific
38230 knowledge (supports PC/MSDOS and GPT).
38232 Fix all assumptions that the embed region start at sector 1, using
38233 `embed_region.start' from now on. Similarly, use `embed_region.end'
38234 rather than `first_start' to calculate available size.
38236 In grub_util_info() message, replace "into after the MBR" with an
38237 indication of the specific sector our embed region starts at.
38239 2008-02-19 Robert Millan <rmh@aybabtu.com>
38241 * DISTLIST: Replace `commands/ieee1275/halt.c' and
38242 `commands/ieee1275/reboot.c' with `commands/halt.c' and
38243 `commands/reboot.c'.
38244 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
38245 (halt_mod_SOURCES): Likewise.
38246 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
38247 (halt_mod_SOURCES): Likewise.
38249 2008-02-17 Christian Franke <franke@computer.org>
38251 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
38253 2008-02-17 Robert Millan <rmh@aybabtu.com>
38255 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
38256 set `first_start' to 0 for non-PC/MSDOS partition maps.
38258 2008-02-16 Robert Millan <rmh@aybabtu.com>
38260 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
38261 do not assume partition map is PC/MSDOS before performing checks that
38262 are specific to that layout.
38264 2008-02-13 Robert Millan <rmh@aybabtu.com>
38266 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
38267 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
38268 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
38270 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
38272 * configure.ac: Only a cosmetic change on the handling of
38273 -fno-stack-protector.
38275 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
38277 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
38278 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
38280 (grub_install_SOURCES): Add halt.mod and reboot.mod.
38281 (halt_mod_SOURCES): New variable.
38282 (halt_mod_CFLAGS): Likewise.
38283 (halt_mod_LDFLAGS): Likewise.
38284 (reboot_mod_SOURCES): Likewise.
38285 (reboot_mod_CFLAGS): Likewise.
38286 (reboot_mod_LDFLAGS): Likewise.
38288 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
38289 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
38291 (halt_mod_SOURCES): Likewise.
38292 (reboot_mod_SOURCES): Likewise.
38294 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
38295 commands/i386/pc/reboot.c by commands/reboot.c.
38296 (reboot_mod_SOURCES): Likewise.
38298 * commands/i386/pc/reboot.c: merge this file ...
38300 * commands/ieee1275/reboot.c: ... and this file ...
38302 * commands/reboot.c: ... to this file.
38303 Add some precompiler directive to include the correct header for
38306 * commands/ieee1275/halt.c: move this file ...
38308 * commands/halt.c: ... to here.
38309 Add some precompiler directive to include the correct header for
38312 * include/grub/efi/efi.h (grub_reboot): New function declaration.
38313 (grub_halt): Likewise.
38315 * kern/efi/efi.c (grub_reboot): New function.
38316 (grub_halt): Likewise.
38318 2008-02-12 Robert Millan <rmh@aybabtu.com>
38320 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
38321 /dev (like it is done for /dev/mapper). This doesn't provide support
38322 for EVMS, but at least it is now easy to identify the problem when it
38325 2008-02-11 Robert Millan <rmh@aybabtu.com>
38327 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
38328 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
38329 comparing it with -1, not 0.
38331 2008-02-10 Robert Millan <rmh@aybabtu.com>
38333 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
38335 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38336 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
38338 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
38339 `disk/lvm.c' to the end of the list.
38340 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38341 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
38343 2008-02-10 Robert Millan <rmh@aybabtu.com>
38345 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
38346 grub_print_error() instead. This will let user know why we're entering
38348 Based on suggestions from Sam Morris.
38350 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
38352 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
38353 on remaining N args, instead of "--" arg N times.
38355 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
38357 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
38358 (fill_with_default_glyph): Changed to use unknown_glyph for fill
38359 pattern for unknown glyphs.
38361 2008-02-09 Robert Millan <rmh@aybabtu.com>
38363 * configure.ac: Probe for `help2man'.
38364 * Makefile.in (builddir): New variable.
38365 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
38366 or otherwise add a few flags/options to it.
38367 (install-local): For every executable utility or script that is
38368 installed, invoke $(HELP2MAN) to install a manpage based on --help
38371 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
38372 that it doesn't prevent --help from working in build tree.
38374 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
38375 with `bug-grub@gnu.org'.
38376 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
38377 * util/update-grub.in (usage): New function.
38378 Implement proper argument check, with support for --help and --version
38379 (as well as existing -y).
38381 2008-02-09 Christian Franke <franke@computer.org>
38383 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
38384 avoid overwriting previous output.
38385 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
38387 2008-02-09 Robert Millan <rmh@aybabtu.com>
38389 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
38392 2008-02-09 Robert Millan <rmh@aybabtu.com>
38394 * commands/sleep.c: New file.
38395 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
38396 (sleep_mod_SOURCES): New variable.
38397 (sleep_mod_CFLAGS): Likewise.
38398 (sleep_mod_LDFLAGS): Likewise.
38400 2008-02-09 Robert Millan <rmh@aybabtu.com>
38402 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
38403 situations in which we can deduce the RAID size and the superblock
38406 2008-02-09 Robert Millan <rmh@aybabtu.com>
38408 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
38409 and return a grub_diskmemberlist_t composed of LVM physical volumes.
38410 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
38412 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
38413 and return a grub_diskmemberlist_t composed of physical array members.
38414 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
38416 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
38418 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
38419 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
38420 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
38422 * util/grub-probe.c (probe): Move partmap probing code from here ...
38423 (probe_partmap): ... to here.
38424 (probe): Use probe_partmap() once for the disk we're probing, and
38425 additionally, when such disk contains a memberlist() struct member,
38426 once for each disk that is contained in the structure returned by
38429 2008-02-09 Robert Millan <rmh@aybabtu.com>
38431 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
38432 environment variable to 'all' in order to obtain debug output from
38434 * util/i386/pc/grub-setup.c (main): Likewise.
38436 2008-02-08 Robert Millan <rmh@aybabtu.com>
38438 * disk/raid.c (grub_raid_scan_device): Check for
38439 `array->device[sb.this_disk.number]' rather than for
38440 `array->device[sb.this_disk.number]->name', since the latter is not
38441 guaranteed to be accessible.
38443 2008-02-08 Robert Millan <rmh@aybabtu.com>
38445 * disk/raid.c: Update copyright.
38446 * fs/cpio.c: Likewise.
38447 * include/grub/raid.h: Likewise.
38448 * loader/i386/pc/multiboot.c: Likewise.
38449 * util/hostfs.c: Likewise.
38451 2008-02-08 Robert Millan <rmh@aybabtu.com>
38453 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
38454 to a grub_disk_t array.
38455 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
38457 (grub_raid_scan_device): Replace `device[x].name' accesses with
38458 `device[x]->name'. Simplify initialization of `array->device[x]'.
38460 2008-02-08 Robert Millan <rmh@aybabtu.com>
38462 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
38463 grub_dprintf() calls.
38464 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
38467 2008-02-07 Christian Franke <franke@computer.org>
38469 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
38470 instead of fseek and ftell to support large files.
38471 (grub_hostfs_read): Likewise.
38473 2008-02-07 Robert Millan <rmh@aybabtu.com>
38475 Patch from Jeroen Dekkers.
38476 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
38477 failure, since successfully reading all array members might not be
38480 2008-02-06 Robert Millan <rmh@aybabtu.com>
38482 * util/grub-probe.c (probe): Simplify partmap probing (with the
38483 assumption that the first word up to the underscore equals to
38486 2008-02-06 Christian Franke <franke@computer.org>
38488 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
38489 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
38490 last block of a cpio or tar stream.
38491 Check for "TRAILER!!!" instead of any empty data
38492 block to detect last block of a cpio stream.
38493 (grub_cpio_dir): Fix constness of variable np.
38494 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
38495 cpio or tar trailer is detected. This fixes a crash
38496 on open of a non existing file.
38498 2008-02-05 Bean <bean123ch@gmail.com>
38500 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
38502 (grub_multiboot_load_elf64): Likewise.
38503 (grub_multiboot): Initialize mbi structure.
38505 * util/grub-fstest.c: Don't include unused header file script.h.
38507 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
38509 (grub_fstest_SOURCES): Likewise.
38511 2008-02-05 Robert Millan <rmh@aybabtu.com>
38513 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
38514 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
38515 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
38516 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
38518 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
38519 (translation_table): Replace hardcoded values with macros
38520 provided by `<grub/term.h>'.
38522 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
38523 (keyboard_map): Correct/add a few values, with macros provided
38524 by `<grub/term.h>'.
38525 (keyboard_map_shift): Zero values that don't differ from their
38526 `keyboard_map' equivalents.
38527 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
38528 Discard the second scan code that is always sent by Caps lock.
38529 Only use `keyboard_map_shift' when it provides a non-zero value,
38530 otherwise fallback to `keyboard_map'.
38532 2008-02-04 Bean <bean123ch@gmail.com>
38534 * Makefile.in (enable_grub_fstest): New variable.
38536 * conf/common.rmk (grub_fstest_init.lst): New rule.
38537 (grub_fstest_init.h): Likewise.
38538 (grub_fstest_init.c): Likewise.
38539 (util/grub-fstest.c_DEPENDENCIES): New variable.
38540 (grub_fstest_SOURCES): Likewise.
38542 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
38544 * util/grub-fstest.c: New file.
38546 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38548 Make grub-setup handle a separate root device.
38550 * util/i386/pc/grub-setup.c (setup): Always open the root device,
38551 so that the root device can be compared with the destination
38553 When embedding the core image, if the root and destination devices
38554 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
38556 When not embedding, set ROOT_DRIVE to 0xFF.
38558 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38560 Add support for having a grub directory in a different drive. This
38561 is still only the data handling part.
38563 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
38564 (codestart): Save %dh in GRUB_ROOT_DRIVE.
38565 (grub_root_drive): New variable.
38567 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
38568 instead of GRUB_BOOT_DRIVE to construct a device name. Set
38569 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
38572 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
38574 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
38576 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
38578 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
38579 is bogus, because PXE booting does not specify any drive
38582 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
38583 am not sure if this is really correct.
38585 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
38586 is always identical to the boot drive when booting from a CD.
38588 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
38590 (root_drive): New variable.
38591 (real_start): Unconditionally set %dh to ROOT_DRIVE.
38592 (setup_sectors): Push %dx right after popping it, because %dh will
38594 (copy_buffer): Restore %dx.
38596 2008-02-03 Robert Millan <rmh@aybabtu.com>
38598 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
38599 use `cdboot.img' for cdrom images.
38601 2008-02-03 Robert Millan <rmh@aybabtu.com>
38603 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
38604 only setup gfxterm when `font' command has succeeded.
38606 2008-02-03 Robert Millan <rmh@aybabtu.com>
38608 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
38609 (grub_rescue_cmd_multiboot_loader)
38610 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
38612 2008-02-03 Pavel Roskin <proski@gnu.org>
38614 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
38615 %edx and %esi from stack only after grub_gate_a20() is called.
38616 grub_gate_a20() clobbers %edx.
38618 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38620 * configure.ac (AC_INIT): Bumped to 1.96.
38622 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
38623 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
38624 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
38625 video/readers/png.c.
38627 2008-02-03 Bean <bean123ch@gmail.com>
38629 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
38630 (cdboot_img_SOURCES): New variable.
38631 (cdboot_img_ASFLAGS): New variable.
38632 (cdboot_img_LDFLAGS): New variable.
38634 * boot/i386/pc/cdboot.S: New file.
38636 * disk/i386/pc/biosdisk.c (cd_start): New variable.
38637 (cd_count): Likewise.
38638 (grub_biosdisk_get_drive): Add support for cd device.
38639 (grub_biosdisk_call_hook): Likewise.
38640 (grub_biosdisk_iterate): Likewise.
38641 (grub_biosdisk_open): Likewise.
38642 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
38643 (grub_biosdisk_rw): Support reading from cd device.
38644 (GRUB_MOD_INIT): Iterate cd devices.
38646 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
38647 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
38648 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
38650 * kern/i386/pc/init.c (make_install_device): Check for cd device.
38652 2008-02-02 Robert Millan <rmh@aybabtu.com>
38654 * commands/read.c: New file.
38655 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
38656 (read_mod_SOURCES): New variable.
38657 (read_mod_CFLAGS): Likewise.
38658 (read_mod_LDFLAGS): Likewise.
38660 2008-02-02 Robert Millan <rmh@aybabtu.com>
38662 * normal/main.c (grub_normal_execute): Check for `menu->size' when
38663 determining whether menu has to be displayed.
38665 2008-02-02 Marco Gerards <marco@gnu.org>
38667 * bus/pci.c: New file.
38669 * include/grub/pci.h: Likewise.
38671 * include/grub/i386/pc/pci.h: Likewise.
38673 * commands/lspci.c: Likewise.
38675 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
38677 (pci_mod_SOURCES): New variable.
38678 (pci_mod_CFLAGS): Likewise.
38679 (pci_mod_LDFLAGS): Likewise.
38680 (lspci_mod_SOURCES): Likewise.
38681 (lspci_mod_CFLAGS): Likewise.
38682 (lspci_mod_LDFLAGS): Likewise.
38684 2008-02-02 Bean <bean123ch@gmail.com>
38686 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
38687 (grub_ufs_get_file_block): Fix indirect block calculation problem.
38689 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
38690 (grub_xfs_btree_node): New structure.
38691 (grub_xfs_btree_root): New structure.
38692 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
38693 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
38694 (GRUB_XFS_EXTENT_BLOCK): Likewise.
38695 (GRUB_XFS_EXTENT_SIZE): Likewise.
38696 (grub_xfs_read_block): Support btree format type.
38697 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
38698 Use directory block as basic unit.
38700 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
38702 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
38703 __attribute__ ((__regparm__ (1))).
38705 2008-02-01 Robert Millan <rmh@aybabtu.com>
38707 Correct a mistake in previous commit.
38709 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
38711 (normal/command.c_DEPENDENCIES): New variable.
38713 2008-02-01 Robert Millan <rmh@aybabtu.com>
38715 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
38717 (normal/command.c_DEPENDENCIES): New variable.
38718 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
38719 * conf/i386-ieee1275.rmk: Likewise.
38720 * conf/i386-linuxbios.rmk: Likewise.
38721 * conf/i386-pc.rmk: Likewise.
38722 * conf/sparc64-ieee1275.rmk: Likewise.
38723 * conf/powerpc-ieee1275.rmk: Likewise.
38724 (grub_emu_SOURCES): Add `fs/fshelp.c'.
38726 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
38728 2008-02-01 Robert Millan <rmh@aybabtu.com>
38730 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
38731 call at beginning of function.
38733 2008-01-31 Pavel Roskin <proski@gnu.org>
38735 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
38736 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
38737 (grub_mkrescue_SOURCES): Likewise.
38738 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
38740 2008-01-30 Robert Millan <rmh@aybabtu.com>
38742 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
38743 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
38744 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
38745 (grub_probe_SOURCES): ... to here.
38747 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
38748 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
38749 * conf/i386-ieee1275.rmk: Likewise.
38750 * conf/i386-linuxbios.rmk: Likewise.
38751 * conf/powerpc-ieee1275.rmk: Likewise.
38753 2008-01-30 Tristan Gingold <gingold@free.fr>
38755 * kern/rescue.c: Silently accept empty lines.
38757 2008-01-29 Bean <bean123ch@gmail.com>
38759 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
38760 (real_code_2): Code cleanup and change comment style.
38761 (move_memory): Avoid using 32-bit address mode.
38763 2008-01-29 Bean <bean123ch@gmail.com>
38765 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
38766 (png_mod_SOURCES): New variable.
38767 (png_mod_CFLAGS): Likewise.
38768 (png_mod_LDFLAGS): Likewise.
38770 * video/readers/png.c: New file.
38772 2008-01-28 Robert Millan <rmh@aybabtu.com>
38774 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
38775 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
38776 `ifndef GRUB_MOD_GAP' hack.
38777 * util/elf/grub-mkimage.c (add_segments): Likewise.
38779 2008-01-27 Robert Millan <rmh@aybabtu.com>
38781 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
38782 `GRUB_MOD_GAP' for platforms in which it's not defined.
38783 * util/elf/grub-mkimage.c (add_segments): Likewise.
38785 2008-01-27 Robert Millan <rmh@aybabtu.com>
38787 Get grub-emu to build again (including parallel builds).
38789 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
38791 (util/grub-emu.c_DEPENDENCIES): ... this, ...
38792 (normal/execute.c_DEPENDENCIES): ... this, ...
38793 (grub-emu_DEPENDENCIES): ... and this.
38795 * conf/i386-efi.rmk: Likewise.
38796 * conf/i386-linuxbios.rmk: Likewise.
38797 * conf/i386-ieee1275.rmk: Likewise.
38798 * conf/powerpc-ieee1275.rmk: Likewise.
38799 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
38801 2008-01-27 Robert Millan <rmh@aybabtu.com>
38803 * NEWS: Add a few items.
38805 2008-01-27 Robert Millan <rmh@aybabtu.com>
38807 Fix parallel builds with grub-emu. Based on earlier commit for
38808 grub-probe and grub-setup.
38810 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38811 (util/grub-emu.c_DEPENDENCIES): ... this.
38812 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38813 (util/grub-emu.c_DEPENDENCIES): ... this.
38814 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38815 (util/grub-emu.c_DEPENDENCIES): ... this.
38816 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38817 (util/grub-emu.c_DEPENDENCIES): ... this.
38818 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38819 (util/grub-emu.c_DEPENDENCIES): ... this.
38821 2008-01-27 Pavel Roskin <proski@gnu.org>
38823 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
38824 to create a gap between _end and the modules added to the image
38825 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
38826 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
38827 * util/elf/grub-mkimage.c (add_segments): Likewise.
38829 2008-01-26 Pavel Roskin <proski@gnu.org>
38831 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
38832 just return an error.
38834 2008-01-26 Bean <bean123ch@gmail.com>
38836 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
38837 (grub_reiserfs_get_item): Save offset of the next item.
38838 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
38840 2008-01-25 Robert Millan <rmh@aybabtu.com>
38842 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
38843 make all filesystem sources appear together (possibly fixing omissions
38845 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38846 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38847 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38848 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38850 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
38852 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
38853 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
38854 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
38855 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
38857 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
38858 (probe): Add a sanity check to make sure of our ability to read
38859 requested files when probing for filesystem type.
38861 * genmk.rb: Update copyright year (2007).
38863 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
38864 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
38865 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
38866 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
38867 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
38868 : Remove function prototypes.
38870 2008-01-25 Robert Millan <rmh@aybabtu.com>
38872 Revert my previous commits (based on wrong assumption of how grub_errno
38875 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
38876 * kern/file.c (grub_file_open): Likewise.
38878 2008-01-24 Pavel Roskin <proski@gnu.org>
38880 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
38881 that hang if GRUB tries to setup colors.
38882 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
38883 colors for firmwares that don't support it.
38884 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
38885 Recognize Open Hack'Ware, set flags to work around its
38888 2008-01-24 Robert Millan <rmh@aybabtu.com>
38890 * kern/file.c (grub_file_open): Do not account previous failures of
38891 unrelated functions when grub_errno is checked for.
38892 Reported by Oleg Strikov.
38894 2008-01-24 Bean <bean123ch@gmail.com>
38896 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
38897 (grub_ufs_sblock): New member volume name.
38898 (grub_ufs_find_file): Fix string copy bug.
38899 (grub_ufs_label): Implement this function properly.
38901 * fs/hfs.c (grub_hfs_cnid_type): New enum.
38902 (grub_hfs_iterate_records): Use the correct file number for extents
38903 and catalog file. Fix problem in next index calculation.
38904 (grub_hfs_find_node): Replace recursive function call with loop.
38905 (grub_hfs_iterate_dir): Replace recursive function call with loop.
38907 2008-01-23 Robert Millan <rmh@aybabtu.com>
38909 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
38910 `<grub/symbol.h>' and `<grub/multiboot.h>'.
38911 (grub_multiboot2_real_boot): New function prototype.
38913 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
38914 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
38916 * kern/i386/ieee1275/init.c (grub_os_area_addr)
38917 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
38919 2008-01-23 Robert Millan <rmh@aybabtu.com>
38921 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
38922 #ifdef'ed out grub_printf().
38924 2008-01-23 Robert Millan <rmh@aybabtu.com>
38926 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
38927 grub_dprintf calls, since they make "debug=all" mode unusable.
38928 (grub_console_checkkey): Likewise.
38930 2008-01-23 Robert Millan <rmh@aybabtu.com>
38932 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
38933 `term/i386/pc/at_keyboard.c'.
38934 (pkglib_MODULES): Add `serial.mod'.
38935 (serial_mod_SOURCES): New variable.
38936 (serial_mod_CFLAGS): Likewise.
38937 (serial_mod_LDFLAGS): Likewise.
38939 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
38940 `<grub/powerpc/ieee1275/console.h>'.
38941 (grub_keyboard_controller_init): New function prototype.
38942 (grub_console_checkkey): Likewise.
38943 (grub_console_getkey): Likewise.
38945 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
38948 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
38949 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
38951 2008-01-23 Robert Millan <rmh@aybabtu.com>
38953 * kern/i386/pc/init.c (make_install_device): When memdisk image is
38954 present, "(memdisk)/boot/grub" becomes the default prefix.
38956 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
38957 a memdisk tarball with all the modules. Add --overlay=DIR option that
38958 allows users to overlay additional files into the image.
38960 2008-01-23 Robert Millan <rmh@aybabtu.com>
38962 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
38963 and `machine/memory.h'.
38964 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
38965 (_multiboot_mod_SOURCES): New variable.
38966 (_multiboot_mod_CFLAGS): Likewise.
38967 (_multiboot_mod_LDFLAGS): Likewise.
38968 (multiboot_mod_SOURCES): Likewise.
38969 (multiboot_mod_CFLAGS): Likewise.
38970 (multiboot_mod_LDFLAGS): Likewise.
38972 * include/grub/i386/ieee1275/loader.h: New file.
38974 * include/grub/i386/ieee1275/machine.h: Likewise.
38976 * include/grub/i386/ieee1275/memory.h: Likewise.
38978 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
38979 variable declaration.
38980 (grub_os_area_size): Likewise.
38982 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
38983 (grub_lower_mem, grub_upper_mem): New variables.
38984 (grub_stop_floppy): New function (just to make
38985 grub_multiboot2_real_boot() happy).
38987 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
38988 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
38989 (grub_stop): New function.
38990 Include `"../realmode.S"' and `"../loader.S"'.
38992 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
38993 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
38995 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
38996 rely on grub_multiboot2_real_boot() for final boot.
38998 2008-01-22 Robert Millan <rmh@aybabtu.com>
39000 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
39001 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
39002 device that doesn't look like an SD card.
39003 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
39004 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
39005 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
39006 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
39009 2008-01-22 Robert Millan <rmh@aybabtu.com>
39011 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
39012 avoid claiming over our own code.
39014 2008-01-22 Bean <bean123ch@gmail.com>
39016 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
39017 (jpeg_mod_SOURCES): New variable.
39018 (jpeg_mod_CFLAGS): Likewise.
39019 (jpeg_mod_LDFLAGS): Likewise.
39021 * video/readers/jpeg.c : New file.
39023 2008-01-22 Bean <bean123ch@gmail.com>
39025 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
39026 there are no more items.
39028 2008-01-21 Robert Millan <rmh@aybabtu.com>
39030 * kern/mm.c (grub_mm_init_region): Improve debug message.
39032 2008-01-21 Robert Millan <rmh@aybabtu.com>
39034 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
39035 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
39037 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
39039 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
39040 Indicates start of upper memory.
39041 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
39042 (generate_image): Abort when image size is big enough to corrupt
39045 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
39046 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
39047 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
39048 instead of hardcoding 0xA0000.
39049 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
39050 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
39051 instead of hardcoding 0xA0000.
39053 2008-01-21 Robert Millan <rmh@aybabtu.com>
39055 * disk/memdisk.c (memdisk_size): New variable.
39056 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
39058 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
39059 image to dynamic memory.
39060 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
39061 `memdisk_size'. Free memdisk block.
39063 2008-01-21 Robert Millan <rmh@aybabtu.com>
39065 Fix detection of very small filesystems (like tar).
39067 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
39068 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
39069 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
39070 a problem with this disk).
39072 2008-01-21 Robert Millan <rmh@aybabtu.com>
39074 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
39075 on grub_biosdisk_rw_standard() error.
39077 2008-01-21 Robert Millan <rmh@aybabtu.com>
39079 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
39081 * kern/elf.c: Likewise.
39082 * kern/ieee1275/ieee1275.c: Likewise.
39083 * kern/powerpc/ieee1275/openfw.c: Likewise.
39084 * term/ieee1275/ofconsole.c: Likewise.
39086 2008-01-21 Robert Millan <rmh@aybabtu.com>
39088 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
39090 * include/grub/kernel.h (grub_arch_memdisk_addr)
39091 (grub_arch_memdisk_size): Moved from here ...
39093 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
39094 (grub_arch_memdisk_size): ... to here.
39096 2008-01-21 Robert Millan <rmh@aybabtu.com>
39098 Mostly based on bugfix from Bean.
39100 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
39101 attribute with hook() parameter.
39102 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
39104 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
39105 attribute with hook() parameter.
39106 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
39109 2008-01-21 Robert Millan <rmh@aybabtu.com>
39111 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
39112 (pkglib_MODULES): Add `memdisk.mod'.
39113 (memdisk_mod_SOURCES): New variable.
39114 (memdisk_mod_CFLAGS): Likewise.
39115 (memdisk_mod_LDFLAGS): Likewise.
39117 * disk/memdisk.c: New file.
39119 * include/grub/disk.h (grub_disk_dev_id): Add
39120 `GRUB_DISK_DEVICE_MEMDISK_ID'.
39122 * include/grub/i386/pc/kernel.h
39123 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
39124 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
39125 (grub_kernel_image_size): New variable declaration.
39126 (grub_total_module_size): Likewise.
39127 (grub_memdisk_image_size): Likewise.
39129 * include/grub/i386/pc/memory.h
39130 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
39132 * include/grub/kernel.h: Include `<grub/symbol.h>'.
39133 (grub_arch_memdisk_addr): New variable declaration.
39134 (grub_arch_memdisk_size): Likewise.
39136 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
39137 (grub_arch_memdisk_size): Likewise.
39139 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
39140 (codestart): Replace hardcoded `0x100000' with
39141 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
39143 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
39144 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
39145 not NULL, append the contents of the file it refers to, at the end of
39146 the compressed kernel image. Initialize `grub_memdisk_image_size'
39147 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
39148 (options): Add "memdisk"|'m' option.
39149 (main): Parse --memdisk|-m option, and pass user-provided path as
39150 parameter to generate_image().
39152 2008-01-20 Robert Millan <rmh@aybabtu.com>
39154 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
39155 grub_dprintf() calls from here ...
39156 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
39158 2008-01-20 Robert Millan <rmh@aybabtu.com>
39160 Fix detection of "real mode" when /options/real-mode? doesn't exist.
39162 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
39164 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
39165 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
39166 `GRUB_IEEE1275_FLAG_REAL_MODE'.
39167 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
39169 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
39170 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
39172 2008-01-19 Robert Millan <rmh@aybabtu.com>
39174 Get rid of confusing function (superseded by
39175 `grub_ieee1275_get_integer_property')
39176 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
39178 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
39180 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
39181 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
39182 in native endianness from grub_ieee1275_get_integer_property().
39184 2008-01-19 Robert Millan <rmh@aybabtu.com>
39186 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
39187 command after "shut-down", since implementations differ on which
39188 the command for halt is.
39190 2008-01-19 Robert Millan <rmh@aybabtu.com>
39192 * include/grub/i386/linuxbios/console.h: Add header protection.
39193 (grub_keyboard_controller_init): New function prototype.
39194 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
39195 (KEYBOARD_COMMAND_READ): Likewise.
39196 (KEYBOARD_COMMAND_WRITE): Likewise.
39197 (KEYBOARD_SCANCODE_SET1): Likewise.
39198 (grub_keyboard_controller_write): New function.
39199 (grub_keyboard_controller_read): Likewise.
39200 (grub_keyboard_controller_init): Likewise.
39202 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
39203 (grub_console_init): On coreboot/LinuxBIOS, call
39204 grub_keyboard_controller_init().
39206 2008-01-19 Robert Millan <rmh@aybabtu.com>
39208 PowerPC changes provided by Pavel Roskin.
39210 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
39211 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
39212 don't rely on cmain() doing it.
39213 * kern/i386/ieee1275/startup.S (_start): Store %eax in
39214 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
39216 2008-01-16 Robert Millan <rmh@aybabtu.com>
39218 * include/grub/i386/linuxbios/memory.h
39219 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
39220 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
39221 receive `table_header' as argument. Instead, probe for it in the
39222 known memory ranges where it can be present.
39223 (grub_available_iterate): Do not pass a fixed `table_header' address
39224 to grub_linuxbios_table_iterate().
39226 2008-01-15 Robert Millan <rmh@aybabtu.com>
39228 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
39229 * conf/i386-ieee1275.rmk: New file.
39230 * include/grub/i386/ieee1275/console.h: Likewise.
39231 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
39232 * include/grub/i386/ieee1275/kernel.h: Likewise.
39233 * include/grub/i386/ieee1275/time.h: Likewise.
39234 * kern/i386/ieee1275/init.c: Likewise.
39235 * kern/i386/ieee1275/startup.S: Likewise.
39237 2008-01-15 Robert Millan <rmh@aybabtu.com>
39239 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
39240 when pointers are 32-bit (but still do set it to one when they are
39243 2008-01-15 Robert Millan <rmh@aybabtu.com>
39245 * include/grub/ieee1275/ieee1275.h
39246 (grub_ieee1275_get_integer_property): New function prototype.
39248 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
39249 (grub_ieee1275_get_integer_property): New function. Wraps around
39250 grub_ieee1275_get_property() to handle endianness.
39252 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
39253 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
39255 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
39256 (grub_map): Likewise.
39257 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
39259 2008-01-15 Bean <bean123ch@gmail.com>
39261 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
39262 (grub_script_execute_cmdline): Reset grub_errno.
39264 * normal/main.c (read_config_file): Reset grub_errno.
39266 * normal/parse.y (script_init): New.
39267 (script): Move function and menuentry here.
39269 (command): Add delimiter at the end of command.
39270 (commands): Adjust to match the new command.
39271 (commandblock): Remove grub_script_lexer_record_start.
39272 (menuentry): Add grub_script_lexer_record_start, use the new commands.
39273 (if): Use the new commands.
39275 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
39277 2008-01-15 Robert Millan <rmh@aybabtu.com>
39279 * normal/menu.c (run_menu): Move timeout message from here ...
39280 (print_timeout): ... to here.
39281 (run_menu): Use print_timeout() once during initial draw to print
39282 the whole message, and again in every clock tick to update only
39283 the number of seconds.
39285 2008-01-15 Robert Millan <rmh@aybabtu.com>
39287 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
39288 actual size of `available' from grub_ieee1275_get_property(), and
39289 restrict parsing to that bound.
39291 2008-01-15 Christian Franke <franke@computer.org>
39293 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
39294 (argp_program_version): Remove variable.
39295 (argp_program_bug_address): Likewise.
39296 (options): Convert from struct argp_option to struct option.
39297 (struct arguments): Remove.
39298 (parse_opt): Remove.
39299 (usage): New function.
39300 (main): Replace struct args members by simple variables.
39301 Replace argp_parse() by getopt_long().
39302 Add switch to evaluate options.
39303 Add missing "(...)" around root_dev in prefix string.
39305 2008-01-14 Robert Millan <rmh@aybabtu.com>
39307 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
39308 for grub_ieee1275_exit(), in order to improve portability.
39310 2008-01-14 Robert Millan <rmh@aybabtu.com>
39312 * util/grub.d/10_linux.in (prefix): Define.
39313 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
39315 2008-01-13 Pavel Roskin <proski@gnu.org>
39317 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
39318 grub_errno if no errors have been detected.
39320 2008-01-12 Robert Millan <rmh@aybabtu.com>
39322 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
39323 (grub_util_get_dev_abstraction): New function prototype.
39325 * util/getroot.c: Include `<grub/util/getroot.h>'
39326 (grub_util_get_grub_dev): Move detection of abstraction type to ...
39327 (grub_util_get_dev_abstraction): ... here (new function).
39329 * util/grub-probe.c: Convert PRINT_* to an enum. Add
39330 `PRINT_ABSTRACTION'.
39331 (probe): Probe for abstraction type when requested.
39332 (main): Understand `--target=abstraction'.
39334 * util/i386/efi/grub-install.in: Add abstraction module to core
39335 image when it is found to be necessary.
39336 * util/i386/pc/grub-install.in: Likewise.
39337 * util/powerpc/ieee1275/grub-install.in: Likewise.
39339 * util/update-grub_lib.in (font_path): Return system path without
39340 converting to GRUB path.
39341 * util/update-grub.in: Convert system path returned by font_path()
39342 to a GRUB path. Use `grub-probe -t abstraction' to determine what
39343 abstraction module is needed for loading fonts (if any). Export
39344 that as `GRUB_PRELOAD_MODULES'.
39345 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
39348 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
39350 Remove some unused code from reiserfs.
39352 * fs/reiserfs.c (struct grub_reiserfs_key)
39353 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
39354 (struct grub_reiserfs_node_body): Removed.
39355 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
39357 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39359 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39361 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39363 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
39365 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
39367 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39368 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39369 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39371 2008-01-10 Robert Millan <rmh@aybabtu.com>
39373 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
39374 Determines if a file is garbage left by packaging systems, etc.
39375 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
39376 for processing /etc/grub.d scripts.
39377 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
39378 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
39379 as a condition for processing Linux images.
39381 2008-01-10 Pavel Roskin <proski@gnu.org>
39383 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
39384 to compile reiserfs.c on PowerPC.
39386 2008-01-10 Robert Millan <rmh@aybabtu.com>
39388 * kern/device.c (grub_device_iterate): Do not abort device iteration
39389 when one of the devices cannot be opened.
39390 * kern/disk.c (grub_disk_open): Do not account previous failures of
39391 unrelated functions when grub_errno is checked for.
39393 2008-01-08 Robert Millan <rmh@aybabtu.com>
39395 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
39396 `! grub_linux_is_bzimage', change order of address comparison to make
39397 it more intuitive, and improve "too big zImage" error message.
39399 2008-01-08 Robert Millan <rmh@aybabtu.com>
39401 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
39402 `$(update-grub_DATA)'.
39403 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
39406 2008-01-07 Robert Millan <rmh@aybabtu.com>
39408 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
39409 which instruction is modified by grub-setup during installation
39410 (since it wasn't obvious by only looking at this file).
39412 2008-01-07 Robert Millan <rmh@aybabtu.com>
39414 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
39415 listing actual TODO items.
39417 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39419 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
39421 (grub_reiserfs_get_key_offset): Likewise.
39422 (grub_reiserfs_set_key_offset): Likewise.
39423 (grub_reiserfs_set_key_type): Likewise.
39424 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
39426 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
39427 better to remove the bitfield version completely.
39429 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39431 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
39432 allocated from the heap, due to the fshelp implementation.
39433 (grub_reiserfs_dir): Free NODE, due to the same reason.
39435 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39437 Mostly from Vincent Pelletier:
39439 * fs/reiserfs.c: New file.
39441 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
39442 (reiserfs_mod_SOURCES): New variable.
39443 (reiserfs_mod_CFLAGS): Likewise.
39444 (reiserfs_mod_LDFLAGS): Likewise.
39446 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
39447 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
39448 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
39451 2008-01-06 Robert Millan <rmh@aybabtu.com>
39453 * normal/color.c: Remove `<grub/env.h>'.
39455 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
39457 * include/grub/normal.h: Include <grub/env.h>.
39459 2008-01-05 Robert Millan <rmh@aybabtu.com>
39461 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
39462 usage example with `(hd0,1)'.
39463 Reported by Samuel Thibault.
39465 2008-01-05 Robert Millan <rmh@aybabtu.com>
39467 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
39468 (grub_linux_boot_zimage): Rename to ...
39469 (grub_linux_boot): ... this.
39470 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
39471 (grub_linux_boot_zimage): Conditionalize zImage copy.
39473 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
39474 (grub_linux_boot_bzimage): Remove prototype.
39475 (grub_linux_boot_zimage): Rename to ...
39476 (grub_linux_boot): ... this.
39478 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
39479 (grub_linux_boot): Remove function.
39481 2008-01-05 Robert Millan <rmh@aybabtu.com>
39483 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
39484 (grub_env_write_color_highlight): Likewise.
39485 (grub_wait_after_message): Likewise.
39487 * normal/color.c: New file.
39489 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39490 (normal_mod_DEPENDENCIES): Likewise.
39492 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39493 (normal_mod_DEPENDENCIES): Likewise.
39495 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39496 (normal_mod_DEPENDENCIES): Likewise.
39498 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39499 (normal_mod_DEPENDENCIES): Likewise.
39501 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
39502 for waiting after a message is printed.
39503 * normal/main.c (read_config_file): Likewise.
39504 (grub_normal_init): Register grub_env_write_color_normal() and
39505 grub_env_write_color_highlight() hooks. Mark `color_normal' and
39506 `color_highlight' variables as global.
39508 * normal/menu.c (grub_wait_after_message): New function.
39509 (grub_color_menu_normal): New variable. Replaces ...
39510 (GRUB_COLOR_MENU_NORMAL): ... this macro.
39511 (grub_color_menu_highlight): New variable. Replaces ...
39512 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
39513 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
39514 `GRUB_TERM_COLOR_STANDARD'.
39515 (print_message): Use `grub_setcolorstate' to reload colors. Rename
39516 `normal_code' and `highlight_code' to `old_color_normal' and
39517 `old_color_highlight', respectively.
39518 (grub_menu_init_page): Update colors when drawing the menu, based on
39519 `menu_color_normal' and `menu_color_highlight' variables.
39520 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
39521 a message is printed.
39523 2008-01-05 Robert Millan <rmh@aybabtu.com>
39525 * kern/env.c (grub_env_context_open): Propagate hooks for global
39526 variables to new context.
39528 * kern/main.c (grub_set_root_dev): Export `root' variable.
39530 2008-01-05 Robert Millan <rmh@aybabtu.com>
39532 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
39533 discs unconditionally, since udev and others have options to provide
39536 2008-01-05 Robert Millan <rmh@aybabtu.com>
39538 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
39540 2008-01-04 Christian Franke <franke@computer.org>
39542 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
39545 2008-01-03 Pavel Roskin <proski@gnu.org>
39547 * kern/i386/linuxbios/init.c: Put "void" to all function
39548 declarations with no arguments.
39549 * kern/powerpc/ieee1275/init.c: Likewise.
39550 * term/i386/pc/at_keyboard.c: Likewise.
39551 * term/i386/pc/vga_text.c: Likewise.
39552 * util/grub-mkdevicemap.c: Likewise.
39554 2008-01-02 Robert Millan <rmh@aybabtu.com>
39556 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
39557 message when loaded image is out of bounds.
39558 (grub_multiboot_load_elf64): Likewise.
39560 2008-01-02 Pavel Roskin <proski@gnu.org>
39562 * util/grub.d/10_linux.in: Try version without ".old" when
39563 looking for initrd. It's better to use initrd from the newer
39564 kernel of the same version than no initrd at all.
39566 2008-01-01 Robert Millan <rmh@aybabtu.com>
39568 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
39570 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
39572 * include/grub/video.h: Added grub_video_unmap_color and
39573 grub_video_get_active_render_target.
39574 (grub_video_adapter): Added unmap_color and get_active_render_target.
39576 * video/video.c: Added grub_video_unmap_color and
39577 grub_video_get_active_render_target.
39578 (grub_video_get_info): Changed method to accept NULL pointer as an
39579 argument to allow detection of active video adapter.
39581 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
39582 grub_video_vbe_unmap_color_int.
39583 Added grub_video_vbe_unmap_color and
39584 grub_video_vbe_get_active_render_target.
39585 (grub_video_vbe_adapter): Added unmap_color and
39586 get_active_render_target.
39588 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
39589 with grub_video_vbe_unmap_color_int.
39591 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
39592 (DEFAULT_NORMAL_COLOR): Likewise.
39593 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
39594 (DEFAULT_FG_COLOR): Removed.
39595 (DEFAULT_BG_COLOR): Likewise.
39596 (DEFAULT_CURSOR_COLOR): Changed value.
39597 (grub_virtual_screen): Added standard_color_setting,
39598 normal_color_setting, highlight_color_setting and term_color.
39599 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
39600 (bitmap_width): Added.
39601 (bitmap_height): Likewise.
39602 (bitmap): Likewise.
39603 (set_term_color): Likewise.
39604 (grub_virtual_screen_setup): Changed to use new terminal coloring
39606 (grub_gfxterm_init): Added init for bitmap.
39607 (grub_gfxterm_fini): Added destroy for bitmap.
39608 (redraw_screen_rect): Updated to use background bitmap and new
39610 (scroll_up): Added optimization for case when there is no bitmap.
39611 (grub_gfxterm_cls): Fixed to use correct background color.
39612 (grub_virtual_screen_setcolorstate): Changed to use new terminal
39614 (grub_virtual_screen_setcolor): Likewise.
39615 (grub_virtual_screen_getcolor): Added.
39616 (grub_gfxterm_background_image_cmd): Likewise.
39617 (grub_video_term): Added setcolor and getcolor.
39618 (MOD_INIT): Added registration of background_image command.
39619 (MOD_TERM): Added unregistration for background_image command.
39621 2007-12-30 Pavel Roskin <proski@gnu.org>
39623 * loader/multiboot_loader.c: Fix multiboot command
39624 unregistration. Fix all typos in the word "multiboot".
39626 2007-12-29 Pavel Roskin <proski@gnu.org>
39628 * util/grub.d/10_linux.in: Refactor search for initrd. Add
39629 support for initrd names used in Fedora.
39631 2007-12-26 Bean <bean123ch@gmail.com>
39633 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
39634 (cpio_mod_SOURCES): New variable.
39635 (cpio_mod_CFLAGS): Likewise.
39636 (cpio_mod_LDFLAGS): Likewise.
39638 * fs/cpio.c: New file.
39640 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
39642 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39644 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39646 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39648 2007-12-25 Robert Millan <rmh@aybabtu.com>
39650 * include/grub/term.h (struct grub_term): Add `getcolor' function.
39651 (grub_getcolor): New function.
39653 * kern/term.c (grub_getcolor): New function.
39654 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
39655 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
39656 (print_entry): Set normal and highlight colors to
39657 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
39658 respectively, before printing and restore them to old
39660 (grub_menu_init_page): Likewise. Fill an additional colored space
39661 that would otherwise be left blank.
39663 * term/efi/console.c (grub_console_getcolor): New function.
39664 (struct grub_console_term.getcolor): New variable.
39665 * term/i386/pc/console.c (grub_console_getcolor): New function.
39666 (struct grub_console_term.getcolor): New variable.
39667 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
39668 (struct grub_console_term.getcolor): New variable.
39670 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
39671 (struct grub_console_term.setcolor): Remove variable.
39672 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
39673 (struct grub_console_term.setcolor): Remove variable.
39674 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
39675 (struct grub_console_term.setcolor): Remove variable.
39676 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
39677 (struct grub_console_term.setcolor): Remove variable.
39679 2007-12-25 Robert Millan <rmh@aybabtu.com>
39681 * configure.ac: Search for possible unifont.hex locations, and
39682 define UNIFONT_HEX if found.
39684 * Makefile.in (UNIFONT_HEX): Define variable.
39685 (DATA): Rename to ...
39686 (PKGLIB): ... this. Update all users.
39687 (PKGDATA): New variable.
39688 (pkgdata_IMAGES): Rename to ...
39689 (pkglib_IMAGES): ... this. Update all users.
39690 (pkgdata_MODULES): Rename to ...
39691 (pkglib_MODULES): ... this. Update all users.
39692 (pkgdata_PROGRAMS): Rename to ...
39693 (pkglib_PROGRAMS): ... this. Update all users.
39694 (pkgdata_DATA): Rename to ...
39695 (pkglib_DATA): ... this. Update all users.
39696 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
39697 (unicode.pff, ascii.pff): New rules.
39698 (all-local): Add `$(PKGDATA)' dependency.
39699 (install-local): Process `$(PKGDATA)'.
39701 * util/update-grub_lib.in (font_path): Search for *.pff files in
39702 a few more locations, including `${pkgdata}'.
39704 2007-12-23 Robert Millan <rmh@aybabtu.com>
39706 Patch from Bean <bean123ch@gmail.com>:
39707 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
39710 2007-12-21 Bean <bean123ch@gmail.com>
39712 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
39713 (ntfscomp_mod_SOURCES): New variable.
39714 (ntfscomp_mod_CFLAGS): Likewise.
39715 (ntfscomp_mod_LDFLAGS): Likewise.
39717 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
39718 (grub_probe_SOURCES): Likewise.
39719 (grub_emu_SOURCES): Likewise.
39721 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39722 (grub_emu_SOURCES): Likewise.
39724 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39725 (grub_emu_SOURCES): Likewise.
39727 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39728 (grub_emu_SOURCES): Likewise.
39730 * fs/ntfs.c (grub_ntfscomp_func): New variable.
39731 (read_run_list): Renamed to grub_ntfs_read_run_list.
39732 (decomp_nextvcn): Moved to ntfscomp.c.
39733 (decomp_getch): Likewise.
39734 (decomp_get16): Likewise.
39735 (decomp_block): Likewise.
39736 (read_block): Likewise.
39737 (read_data): Partially moved to ntfscomp.c.
39738 (fixup): Change unsigned to grub_uint16_t.
39739 (read_mft): Change unsigned long to grub_uint32_t.
39740 (read_attr): Likewise.
39741 (read_data): Likewise.
39742 (read_run_data): Likewise.
39743 (read_run_list): Likewise.
39744 (read_mft): Likewise.
39746 * fs/ntfscomp.c: New file.
39748 * include/grub/ntfs.h: New file.
39750 2007-12-16 Robert Millan <rmh@aybabtu.com>
39752 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
39753 IDE disk check, since Linux is known to support 20 IDE disks.
39754 Reported by Colin Watson.
39756 2007-12-15 Bean <bean123ch@gmail.com>
39758 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
39759 (lnxboot_img_SOURCES): New variable.
39760 (lnxboot_img_ASFLAGS): Likewise.
39761 (lnxboot_img_LDFLAGS): Likewise.
39763 * boot/i386/pc/lnxboot.S: New file.
39765 2007-11-24 Pavel Roskin <proski@gnu.org>
39767 * configure.ac: Test if '--build-id=none' is supported by the
39768 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
39769 objcopy to generate incorrect binary files (binutils
39770 2.17.50.0.18-1 as shipped by Fedora 8).
39771 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
39772 linking, so that build ID doesn't break the test.
39774 2007-11-24 Pavel Roskin <proski@gnu.org>
39776 * include/grub/i386/time.h: use "void" in the argument list
39777 of grub_cpu_idle().
39778 * include/grub/powerpc/time.h: Likewise.
39779 * include/grub/sparc64/time.h: Likewise.
39781 2007-11-18 Christian Franke <franke@computer.org>
39783 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
39784 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
39785 This fixes the problem that function keys did not work in grub-emu.
39787 2007-11-18 Christian Franke <franke@computer.org>
39789 * disk/host.c (grub_host_open): Remove attribute unused from
39790 name parameter. Add check for "host". This fixes the problem
39791 that grub-emu does not find partitions.
39793 2007-11-18 Christian Franke <franke@computer.org>
39795 * util/hostfs.c (is_dir): New function.
39796 (grub_hostfs_dir): Handle missing dirent.d_type case.
39797 (grub_hostfs_read): Add missing fseek().
39798 (grub_hostfs_label): Clear label pointer. This fixes a crash
39799 of grub-emu on "ls (host)".
39801 2007-11-18 Christian Franke <franke@computer.org>
39803 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
39804 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
39805 to 64 bit boundary by default.
39807 2007-11-18 Bean <bean123ch@gmail.com>
39809 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
39810 (hexdump_mod_SOURCES): New variable.
39811 (hexdump_mod_CFLAGS): Likewise.
39812 (hexdump_mod_LDFLAGS): Likewise.
39814 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39816 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39818 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39820 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39822 * include/grub/hexdump.h: New file.
39824 * commands/hexdump.c: New file.
39826 2007-11-10 Robert Millan <rmh@aybabtu.com>
39828 * commands/i386/pc/play.c (beep_off): Switch order of arguments
39829 in grub_outb() calls.
39830 (beep_on): Likewise.
39832 2007-11-10 Christian Franke <franke@computer.org>
39834 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
39835 (grub_menu_run): Likewise.
39837 2007-11-10 Robert Millan <rmh@aybabtu.com>
39839 * include/grub/i386/efi/machine.h: New file.
39840 * include/grub/i386/linuxbios/machine.h: Likewise.
39841 * include/grub/i386/pc/machine.h: Likewise.
39842 * include/grub/powerpc/ieee1275/machine.h: Likewise.
39843 * include/grub/sparc64/ieee1275/machine.h: Likewise.
39845 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
39846 (serial_hw_io_addr): New variable.
39847 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
39848 instead of `(unsigned short *) 0x400'.
39850 2007-11-10 Bean <bean123ch@gmail.com>
39852 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
39854 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
39856 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
39857 (vga_mod_SOURCES): Added.
39858 (vga_mod_CFLAGS): Likewise.
39859 (vga_mod_LDFLAGS): Likewise.
39861 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
39863 (set_map_mask): Likewise.
39864 (set_read_map): Likewise.
39865 (set_read_address): Likewise.
39866 (vga_font): Removed variable.
39867 (get_vga_glyph): Removed function.
39868 (invalidate_char): Likewise.
39869 (write_char): Changed to use grub_font_get_glyph() for font
39871 (grub_vga_putchar): Likewise.
39872 (grub_vga_getcharwidth): Likewise.
39874 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
39876 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
39878 (pxeboot_img_LDFLAGS): Likewise.
39879 (diskboot_img_LDFLAGS): Likewise.
39880 (kernel_img_LDFLAGS): Likewise.
39882 2007-11-06 Robert Millan <rmh@aybabtu.com>
39884 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
39885 in grub_outb() calls.
39886 (serial_hw_init): Likewise.
39888 2007-11-05 Robert Millan <rmh@aybabtu.com>
39890 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
39891 spaces. Skip non-regular files.
39893 2007-11-05 Robert Millan <rmh@aybabtu.com>
39895 * kern/disk.c (grub_disk_firmware_fini)
39896 (grub_disk_firmware_is_tainted): New variables.
39898 * include/grub/disk.h (grub_disk_firmware_fini)
39899 (grub_disk_firmware_is_tainted): Likewise.
39901 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
39902 (grub_disk_biosdisk_fini): ... to here.
39903 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
39904 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
39905 is set. Register grub_disk_biosdisk_fini() in
39906 `grub_disk_firmware_fini'.
39908 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
39909 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
39910 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
39911 to finish existing firmware disk interface.
39913 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
39914 (ata_mod_SOURCES): New variable.
39915 (ata_mod_CFLAGS): Likewise.
39916 (ata_mod_LDFLAGS): Likewise.
39918 2007-11-05 Robert Millan <rmh@aybabtu.com>
39920 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
39921 (grub_ata_wait): Reimplement using grub_millisleep().
39923 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
39924 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
39926 2007-11-03 Marco Gerards <marco@gnu.org>
39928 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
39929 (CRTC_ADDR_PORT): New macro.
39930 (CRTC_DATA_PORT): Likewise.
39931 (CRTC_CURSOR): Likewise.
39932 (CRTC_CURSOR_ADDR_HIGH): Likewise.
39933 (CRTC_CURSOR_ADDR_LOW): Likewise.
39934 (update_cursor): New function.
39935 (grub_console_real_putchar): Call `update_cursor'.
39936 (grub_console_gotoxy): Likewise.
39937 (grub_console_cls): Set the default color when clearing the
39939 (grub_console_setcursor): Implemented.
39941 2007-11-03 Marco Gerards <marco@gnu.org>
39943 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
39945 (grub_ata_pio_write): Likewise.
39947 (grub_atapi_identify): Wait after issuing an ATA command.
39948 (grub_atapi_packet): Likewise.
39949 (grub_ata_identify): Likewise.
39950 (grub_ata_readwrite): Likewise.
39952 2007-11-03 Marco Gerards <marco@gnu.org>
39954 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
39955 (grub_ata_pio_write): Likewise.
39956 (grub_ata_readwrite): Use `grub_error', instead of
39957 returning `grub_errno'.
39959 2007-11-03 Marco Gerards <marco@gnu.org>
39961 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
39962 grub_ata_pio_write once for every single sector, instead of for
39965 2007-10-31 Robert Millan <rmh@aybabtu.com>
39967 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
39969 * conf/i386-linuxbios.rmk: New file.
39971 * kern/i386/pc/hardware.c: Likewise.
39972 * term/i386/pc/at_keyboard.c: Likewise.
39973 * term/i386/pc/vga_text.c: Likewise.
39975 * include/grub/i386/linuxbios/boot.h: Likewise.
39976 * include/grub/i386/linuxbios/console.h: Likewise.
39977 * include/grub/i386/linuxbios/init.h: Likewise.
39978 * include/grub/i386/linuxbios/kernel.h: Likewise.
39979 * include/grub/i386/linuxbios/loader.h: Likewise.
39980 * include/grub/i386/linuxbios/memory.h: Likewise.
39981 * include/grub/i386/linuxbios/serial.h: Likewise.
39982 * include/grub/i386/linuxbios/time.h: Likewise.
39984 * kern/i386/linuxbios/init.c: Likewise.
39985 * kern/i386/linuxbios/startup.S: Likewise.
39986 * kern/i386/linuxbios/table.c: Likewise.
39988 2007-10-31 Marco Gerards <marco@gnu.org>
39990 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
39991 (ata_mod_SOURCES): New variable.
39992 (ata_mod_CFLAGS): Likewise.
39993 (ata_mod_LDFLAGS): Likewise.
39995 * disk/ata.c: New file.
39997 * include/grub/disk.h (grub_disk_dev_id): Add
39998 `GRUB_DISK_DEV_ATA_ID'.
40000 2007-10-31 Robert Millan <rmh@aybabtu.com>
40002 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
40003 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
40005 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
40006 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
40008 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
40011 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
40013 2007-10-27 Robert Millan <rmh@aybabtu.com>
40015 * include/grub/types.h (ULONG_MAX): Define macro.
40017 2007-10-22 Robert Millan <rmh@aybabtu.com>
40019 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
40021 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
40023 2007-10-22 Robert Millan <rmh@aybabtu.com>
40025 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
40026 (pkgdata_MODULES): Add `biosdisk.mod'.
40027 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
40030 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
40031 (grub_biosdisk_init): Replace with ...
40032 (GRUB_MOD_INIT(biosdisk)): ... this.
40033 (grub_biosdisk_fini): Replace with ...
40034 (GRUB_MOD_FINI(biosdisk)): ... this.
40036 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
40037 (grub_machine_init): Remove call to grub_biosdisk_init().
40038 (grub_machine_fini): Remove call to grub_machine_fini().
40040 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
40042 2007-10-22 Robert Millan <rmh@aybabtu.com>
40044 * include/grub/time.h: New file.
40045 * include/grub/i386/time.h: Likewise.
40046 * include/grub/powerpc/time.h: Likewise.
40047 * include/grub/sparc64/time.h: Likewise.
40049 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
40051 (KERNEL_MACHINE_TIME_HEADER): ... this.
40052 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
40054 (KERNEL_MACHINE_TIME_HEADER): ... this.
40055 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
40057 (KERNEL_MACHINE_TIME_HEADER): ... this.
40059 * kern/i386/efi/init.c: Include `<grub/time.h>'.
40060 (grub_millisleep): New function.
40061 * kern/i386/pc/init.c: Include `<grub/time.h>'.
40062 (grub_millisleep): New function.
40063 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
40064 Remove `grub/machine/time.h' include.
40065 (grub_millisleep): New function.
40066 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
40067 Remove `grub/machine/time.h' include.
40068 (grub_millisleep): New function.
40070 * include/grub/misc.h (grub_div_roundup): New function.
40072 * kern/misc.c: Include `<grub/time.h>'.
40073 (grub_millisleep_generic): New function.
40075 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
40077 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
40079 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
40080 `machine/time.h'. Add `time.h'.
40081 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
40083 2007-10-21 Robert Millan <rmh@aybabtu.com>
40085 * include/grub/misc.h (grub_max): New function.
40087 2007-10-21 Robert Millan <rmh@aybabtu.com>
40089 * util/misc.c (grub_util_info): Call fflush() before returning.
40091 2007-10-20 Robert Millan <rmh@aybabtu.com>
40093 * genmk.rb (Image): Copy `extra_flags' from here ...
40094 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
40096 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
40097 to `argc' and `args' arguments.
40099 2007-10-17 Robert Millan <rmh@aybabtu.com>
40101 * kern/i386/loader.S: New file.
40103 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
40104 * kern/i386/loader.S (grub_linux_prot_size)... to here.
40105 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
40106 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
40107 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
40108 * kern/i386/loader.S (grub_linux_real_addr)... to here.
40109 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
40110 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
40111 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
40112 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
40113 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
40114 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
40115 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
40116 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
40118 * kern/i386/realmode.S: New file.
40120 * kern/i386/pc/startup.S (protstack): Moved from here ...
40121 * kern/i386/realmode.S (protstack)... to here.
40122 * kern/i386/pc/startup.S (gdt): Moved from here ...
40123 * kern/i386/realmode.S (gdt)... to here.
40124 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
40125 * kern/i386/realmode.S (prot_to_real)... to here.
40127 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
40128 `kern/i386/realmode.S'.
40130 2007-10-17 Robert Millan <rmh@aybabtu.com>
40132 * include/grub/i386/loader.h: New file.
40134 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
40135 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
40136 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
40137 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
40138 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
40139 * include/grub/i386/loader.h (grub_linux_prot_size)
40140 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
40141 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
40142 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
40143 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
40145 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
40147 2007-10-15 Robert Millan <rmh@aybabtu.com>
40149 * normal/misc.c (grub_normal_print_device_info): Do not probe for
40150 filesystem when dev->disk is unset.
40151 Do probe for filesystem even when dev->disk->has_partitions is set.
40152 In case a filesystem is found, always report it.
40153 In case it isn't, if dev->disk->has_partitions is set, report that
40154 a partition table was found instead of reporting that no filesystem
40155 could be identified.
40157 2007-10-12 Robert Millan <rmh@aybabtu.com>
40159 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
40160 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
40162 * include/grub/types.h (grub_host_to_target16): New macro.
40163 (grub_host_to_target32): Likewise.
40164 (grub_host_to_target64): Likewise.
40165 (grub_target_to_host16): Likewise.
40166 (grub_target_to_host32): Likewise.
40167 (grub_target_to_host64): Likewise.
40169 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
40170 Renamed from to ...
40171 (GRUB_MOD_ALIGN): ...this. Update all users.
40173 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
40174 grub_host_to_target32.
40175 Replace grub_be_to_cpu32 with grub_target_to_host32.
40176 (load_modules): Likewise.
40177 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
40178 Replace grub_be_to_cpu32 with grub_target_to_host32.
40179 Replace grub_cpu_to_be16 with grub_host_to_target16.
40180 Replace grub_cpu_to_be32 grub_host_to_target32.
40182 2007-10-12 Robert Millan <rmh@aybabtu.com>
40184 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
40185 * util/elf/grub-mkimage.c: ... here.
40187 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
40188 `util/powerpc/ieee1275/grub-mkimage.c'.
40190 2007-10-07 Robert Millan <rmh@aybabtu.com>
40192 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
40193 and make it easier to figure out.
40194 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
40195 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
40196 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
40197 leave us with less than HEAP_MIN_SIZE total heap.
40198 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
40200 2007-10-03 Robert Millan <rmh@aybabtu.com>
40202 * include/grub/i386/io.h: New file.
40203 * commands/i386/pc/play.c (inb): Removed.
40205 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40207 * term/i386/pc/serial.c (inb): Removed.
40209 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40211 * term/i386/pc/vga.c (inb): Removed.
40213 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40216 2007-10-02 Robert Millan <rmh@aybabtu.com>
40218 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
40219 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40220 Reported by Marcin Kurek.
40222 2007-09-07 Robert Millan <rmh@aybabtu.com>
40224 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
40225 SmartFirmware version updates (as released by Sven Luther), and avoid
40226 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
40227 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
40230 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40232 From Hitoshi Ozeki:
40233 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
40234 when merging two regions.
40236 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40238 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
40239 * normal/completion.c (grub_normal_do_completion): Likewise.
40240 Reported by Hitoshi Ozeki.
40242 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40244 Do not use devices at boot in chainloading.
40246 * loader/i386/pc/chainloader.c (boot_drive): New variable.
40247 (boot_part_addr): Likewise.
40248 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
40249 with BOOT_DRIVE and BOOT_PART_ADDR.
40250 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
40251 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
40253 2007-08-29 Robert Millan <rmh@aybabtu.com>
40255 Patch from Simon Peter <dn.tlp@gmx.net>:
40256 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
40257 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
40258 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
40259 util/i386/pc/grub-setup.c_DEPENDENCIES.
40260 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
40261 util/grub-probe.c_DEPENDENCIES.
40262 * conf/powerpc-ieee1275.rmk: Likewise.
40264 2007-08-28 Robert Millan <rmh@aybabtu.com>
40266 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
40267 to tell grub-mkdevicemap how to name devices.
40268 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
40271 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
40272 util/i386/get_disk_name.c.
40273 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
40274 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
40275 util/ieee1275/get_disk_name.c.
40277 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
40279 * DISTLIST: Add util/i386/get_disk_name.c and
40280 util/ieee1275/get_disk_name.c.
40282 * util/grub-mkdevicemap.c: Replace device naming logic with
40283 grub_util_get_disk_name() calls.
40285 2007-08-20 Robert Millan <rmh@aybabtu.com>
40287 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
40288 (so that it works for both plural and singular quantities).
40290 2007-08-05 Robert Millan <rmh@aybabtu.com>
40292 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
40293 so that [xz] isn't taken into account when determining order.
40295 2007-08-02 Marco Gerards <marco@gnu.org>
40297 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
40298 `include/multiboot2.h', `include/grub/elfload.h',
40299 `include/multiboot.h', `include/grub/multiboot.h',
40300 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
40301 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
40302 `kern/elf.c', `loader/multiboot_loader.c',
40303 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
40304 `loader/i386/pc/multiboot2.c',
40305 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
40306 `util/i386/pc/grub-mkrescue.in'. Remove
40307 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
40308 `include/grub/i386/pc/util/biosdisk.h' and
40309 `include/grub/powerpc/ieee1275/multiboot.h'.
40311 2007-08-02 Bean <bean123ch@gmail.com>
40313 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
40314 (ntfs_mod_SOURCES): New variable.
40315 (ntfs_mod_CFLAGS): Likewise.
40316 (ntfs_mod_LDFLAGS): Likewise.
40318 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
40319 (grub_probe_SOURCES): Likewise.
40320 (grub_emu_SOURCES): Likewise.
40322 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
40323 (grub_emu_SOURCES): Likewise.
40325 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
40326 (grub_emu_SOURCES): Likewise.
40328 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
40330 * fs/ntfs.c: New file.
40332 2007-08-02 Bean <bean123ch@gmail.com>
40334 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
40336 * file.h (grub_file): Likewise.
40338 * fshelp.h (grub_fshelp_read_file): Likewise.
40340 * util/i386/pc/grub-setup.c (setup): Likewise.
40341 (save_first_sector): Likewise.
40342 (save_blocklists): Likewise.
40344 * fs/affs.c (grub_affs_read_file): Likewise.
40346 * fs/ext2.c (grub_ext2_read_file): Likewise.
40348 * fs/fat.c (grub_fat_read_data): Likewise.
40350 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
40352 * fs/hfs.c (grub_hfs_read_file): Likewise.
40354 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
40356 * fs/jfs.c (grub_jfs_read_file): Likewise.
40358 * fs/minix.c (grub_minix_read_file): Likewise.
40360 * fs/sfs.c (grub_sfs_read_file): Likewise.
40362 * fs/ufs.c (grub_ufs_read_file): Likewise.
40364 * fs/xfs.c (grub_xfs_read_file): Likewise.
40366 * command/blocklist.c (read_blocklist): Likewise.
40367 (print_blocklist): Likewise.
40369 2007-08-02 Marco Gerards <marco@gnu.org>
40371 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
40374 * disk/host.c: New file.
40376 * util/hostfs.c: Likewise.
40378 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
40379 return `GRUB_ERR_BAD_FS'.
40380 * fs/sfs.c (grub_sfs_mount): Likewise.
40381 * fs/xfs.c (grub_xfs_mount): Likewise.
40383 * include/grub/disk.h (enum grub_disk_dev_id): Add
40384 `GRUB_DISK_DEVICE_HOST_ID'.
40386 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
40388 2007-07-24 Jerone Young <jerone@gmail.com>
40390 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
40391 modules for compilation.
40392 * conf/powerpc-ieee1275.rmk: Likewise.
40394 * include/multiboot.h: Move multiboot definitions to one file. Rename
40395 many definitions to not get grub specific.
40396 * include/multiboot2.h: Create header with multiboot 2 definitions.
40397 * include/grub/multiboot.h: Header for grub specific function
40398 prototypes and definitions.
40399 * include/grub/multiboot2.h: Likewise.
40400 * include/grub/multiboot_loader.h: Likewise.
40401 * include/grub/i386/pc/multiboot.h: Removed.
40402 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
40404 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
40405 and 2 to allow for one multiboot and module commands.
40406 * loader/multiboot2.c: Add multiboot2 functionality.
40407 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
40408 and definition names.
40409 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
40411 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
40412 ieee1275 specific multiboot2 code.
40414 * kern/i386/pc/startup.S: Change headers and definition names for
40415 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
40417 2007-07-22 Robert Millan <rmh@aybabtu.com>
40419 * geninitheader.sh: Process file specified in first parameter rather
40420 than hardcoding grub_modules_init.lst.
40421 * geninit.sh: Likewise. Also, construct header name dynamically rather
40422 than hardcoding grub_modules_init.h.
40424 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
40425 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
40426 grub_probe_init.[ch] and grub_setup_init.[ch].
40428 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
40429 grub_modules_init.h with grub_emu_init.h.
40430 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
40431 grub_probe_init.[ch] files.
40432 * conf/i386-efi.rmk: Likewise.
40433 * conf/i386-pc.rmk: Likewise.
40434 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
40435 grub_setup_init.[ch] files.
40437 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
40438 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
40439 to initialize modules rather than a list of hardcoded functions.
40440 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
40441 grub_init_all() to initialize modules rather than a list of hardcoded
40444 2007-07-22 Robert Millan <rmh@aybabtu.com>
40446 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
40447 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
40449 2007-07-22 Robert Millan <rmh@aybabtu.com>
40451 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
40452 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
40453 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
40454 flag when running on SmartFirmware.
40455 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
40456 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
40459 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
40460 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
40461 rather than decreasing it.
40463 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
40464 there's not enough space to do it, fail in the same way as when it
40465 can't be done because there are no partitions.
40467 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
40468 when nvsetenv failed.
40470 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
40472 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
40473 because this rule is automatically generated.
40474 (grub-mkrescue): Removed for the same reason as above.
40476 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
40478 Migrate to GNU General Public License Version 3.
40480 * COPYING: Replaced with the plain text version of GPLv3.
40482 * config.guess: Updated from gnulib.
40483 * config.sub: Likewise.
40485 * geninit.sh: Output a GPLv3 copyright notice.
40486 * geninitheader.sh: Likewise.
40487 * genmodsrc.sh: Likewise.
40488 * gensymlist.sh.in: Likewise.
40490 * boot/i386/pc/boot.S: Upgraded to GPLv3.
40491 * boot/i386/pc/diskboot.S: Likewise.
40492 * boot/i386/pc/pxeboot.S: Likewise.
40493 * commands/blocklist.c: Likewise.
40494 * commands/boot.c: Likewise.
40495 * commands/cat.c: Likewise.
40496 * commands/cmp.c: Likewise.
40497 * commands/configfile.c: Likewise.
40498 * commands/echo.c: Likewise.
40499 * commands/help.c: Likewise.
40500 * commands/ls.c: Likewise.
40501 * commands/search.c: Likewise.
40502 * commands/terminal.c: Likewise.
40503 * commands/test.c: Likewise.
40504 * commands/videotest.c: Likewise.
40505 * commands/i386/cpuid.c: Likewise.
40506 * commands/i386/pc/halt.c: Likewise.
40507 * commands/i386/pc/play.c: Likewise.
40508 * commands/i386/pc/reboot.c: Likewise.
40509 * commands/i386/pc/vbeinfo.c: Likewise.
40510 * commands/i386/pc/vbetest.c: Likewise.
40511 * commands/ieee1275/halt.c: Likewise.
40512 * commands/ieee1275/reboot.c: Likewise.
40513 * commands/ieee1275/suspend.c: Likewise.
40514 * disk/loopback.c: Likewise.
40515 * disk/lvm.c: Likewise.
40516 * disk/raid.c: Likewise.
40517 * disk/efi/efidisk.c: Likewise.
40518 * disk/i386/pc/biosdisk.c: Likewise.
40519 * disk/ieee1275/ofdisk.c: Likewise.
40520 * font/manager.c: Likewise.
40521 * fs/affs.c: Likewise.
40522 * fs/ext2.c: Likewise.
40523 * fs/fat.c: Likewise.
40524 * fs/fshelp.c: Likewise.
40525 * fs/hfs.c: Likewise.
40526 * fs/hfsplus.c: Likewise.
40527 * fs/iso9660.c: Likewise.
40528 * fs/jfs.c: Likewise.
40529 * fs/minix.c: Likewise.
40530 * fs/sfs.c: Likewise.
40531 * fs/ufs.c: Likewise.
40532 * fs/xfs.c: Likewise.
40533 * hello/hello.c: Likewise.
40534 * include/grub/acorn_filecore.h: Likewise.
40535 * include/grub/arg.h: Likewise.
40536 * include/grub/bitmap.h: Likewise.
40537 * include/grub/boot.h: Likewise.
40538 * include/grub/cache.h: Likewise.
40539 * include/grub/device.h: Likewise.
40540 * include/grub/disk.h: Likewise.
40541 * include/grub/dl.h: Likewise.
40542 * include/grub/elfload.h: Likewise.
40543 * include/grub/env.h: Likewise.
40544 * include/grub/err.h: Likewise.
40545 * include/grub/file.h: Likewise.
40546 * include/grub/font.h: Likewise.
40547 * include/grub/fs.h: Likewise.
40548 * include/grub/fshelp.h: Likewise.
40549 * include/grub/gzio.h: Likewise.
40550 * include/grub/hfs.h: Likewise.
40551 * include/grub/kernel.h: Likewise.
40552 * include/grub/loader.h: Likewise.
40553 * include/grub/lvm.h: Likewise.
40554 * include/grub/misc.h: Likewise.
40555 * include/grub/mm.h: Likewise.
40556 * include/grub/net.h: Likewise.
40557 * include/grub/normal.h: Likewise.
40558 * include/grub/parser.h: Likewise.
40559 * include/grub/partition.h: Likewise.
40560 * include/grub/pc_partition.h: Likewise.
40561 * include/grub/raid.h: Likewise.
40562 * include/grub/rescue.h: Likewise.
40563 * include/grub/script.h: Likewise.
40564 * include/grub/setjmp.h: Likewise.
40565 * include/grub/symbol.h: Likewise.
40566 * include/grub/term.h: Likewise.
40567 * include/grub/terminfo.h: Likewise.
40568 * include/grub/tparm.h: Likewise.
40569 * include/grub/types.h: Likewise.
40570 * include/grub/video.h: Likewise.
40571 * include/grub/efi/api.h: Likewise.
40572 * include/grub/efi/chainloader.h: Likewise.
40573 * include/grub/efi/console.h: Likewise.
40574 * include/grub/efi/console_control.h: Likewise.
40575 * include/grub/efi/disk.h: Likewise.
40576 * include/grub/efi/efi.h: Likewise.
40577 * include/grub/efi/pe32.h: Likewise.
40578 * include/grub/efi/time.h: Likewise.
40579 * include/grub/i386/linux.h: Likewise.
40580 * include/grub/i386/setjmp.h: Likewise.
40581 * include/grub/i386/types.h: Likewise.
40582 * include/grub/i386/efi/kernel.h: Likewise.
40583 * include/grub/i386/efi/loader.h: Likewise.
40584 * include/grub/i386/efi/time.h: Likewise.
40585 * include/grub/i386/pc/biosdisk.h: Likewise.
40586 * include/grub/i386/pc/boot.h: Likewise.
40587 * include/grub/i386/pc/chainloader.h: Likewise.
40588 * include/grub/i386/pc/console.h: Likewise.
40589 * include/grub/i386/pc/init.h: Likewise.
40590 * include/grub/i386/pc/kernel.h: Likewise.
40591 * include/grub/i386/pc/loader.h: Likewise.
40592 * include/grub/i386/pc/memory.h: Likewise.
40593 * include/grub/i386/pc/multiboot.h: Likewise.
40594 * include/grub/i386/pc/serial.h: Likewise.
40595 * include/grub/i386/pc/time.h: Likewise.
40596 * include/grub/i386/pc/vbe.h: Likewise.
40597 * include/grub/i386/pc/vbeblit.h: Likewise.
40598 * include/grub/i386/pc/vbefill.h: Likewise.
40599 * include/grub/i386/pc/vbeutil.h: Likewise.
40600 * include/grub/i386/pc/vga.h: Likewise.
40601 * include/grub/ieee1275/ieee1275.h: Likewise.
40602 * include/grub/ieee1275/ofdisk.h: Likewise.
40603 * include/grub/powerpc/libgcc.h: Likewise.
40604 * include/grub/powerpc/setjmp.h: Likewise.
40605 * include/grub/powerpc/types.h: Likewise.
40606 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
40607 * include/grub/powerpc/ieee1275/console.h: Likewise.
40608 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
40609 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
40610 * include/grub/powerpc/ieee1275/loader.h: Likewise.
40611 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
40612 * include/grub/powerpc/ieee1275/time.h: Likewise.
40613 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
40614 * include/grub/sparc64/libgcc.h: Likewise.
40615 * include/grub/sparc64/setjmp.h: Likewise.
40616 * include/grub/sparc64/types.h: Likewise.
40617 * include/grub/sparc64/ieee1275/console.h: Likewise.
40618 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
40619 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
40620 * include/grub/sparc64/ieee1275/time.h: Likewise.
40621 * include/grub/util/biosdisk.h: Likewise.
40622 * include/grub/util/getroot.h: Likewise.
40623 * include/grub/util/lvm.h: Likewise.
40624 * include/grub/util/misc.h: Likewise.
40625 * include/grub/util/raid.h: Likewise.
40626 * include/grub/util/resolve.h: Likewise.
40627 * io/gzio.c: Likewise.
40628 * kern/device.c: Likewise.
40629 * kern/disk.c: Likewise.
40630 * kern/dl.c: Likewise.
40631 * kern/elf.c: Likewise.
40632 * kern/env.c: Likewise.
40633 * kern/err.c: Likewise.
40634 * kern/file.c: Likewise.
40635 * kern/fs.c: Likewise.
40636 * kern/loader.c: Likewise.
40637 * kern/main.c: Likewise.
40638 * kern/misc.c: Likewise.
40639 * kern/mm.c: Likewise.
40640 * kern/parser.c: Likewise.
40641 * kern/partition.c: Likewise.
40642 * kern/rescue.c: Likewise.
40643 * kern/term.c: Likewise.
40644 * kern/efi/efi.c: Likewise.
40645 * kern/efi/init.c: Likewise.
40646 * kern/efi/mm.c: Likewise.
40647 * kern/i386/dl.c: Likewise.
40648 * kern/i386/efi/init.c: Likewise.
40649 * kern/i386/efi/startup.S: Likewise.
40650 * kern/i386/pc/init.c: Likewise.
40651 * kern/i386/pc/lzo1x.S: Likewise.
40652 * kern/i386/pc/startup.S: Likewise.
40653 * kern/ieee1275/ieee1275.c: Likewise.
40654 * kern/powerpc/cache.S: Likewise.
40655 * kern/powerpc/dl.c: Likewise.
40656 * kern/powerpc/ieee1275/cmain.c: Likewise.
40657 * kern/powerpc/ieee1275/crt0.S: Likewise.
40658 * kern/powerpc/ieee1275/init.c: Likewise.
40659 * kern/powerpc/ieee1275/openfw.c: Likewise.
40660 * kern/sparc64/cache.S: Likewise.
40661 * kern/sparc64/dl.c: Likewise.
40662 * kern/sparc64/ieee1275/init.c: Likewise.
40663 * kern/sparc64/ieee1275/openfw.c: Likewise.
40664 * loader/efi/chainloader.c: Likewise.
40665 * loader/efi/chainloader_normal.c: Likewise.
40666 * loader/i386/efi/linux.c: Likewise.
40667 * loader/i386/efi/linux_normal.c: Likewise.
40668 * loader/i386/pc/chainloader.c: Likewise.
40669 * loader/i386/pc/chainloader_normal.c: Likewise.
40670 * loader/i386/pc/linux.c: Likewise.
40671 * loader/i386/pc/linux_normal.c: Likewise.
40672 * loader/i386/pc/multiboot.c: Likewise.
40673 * loader/i386/pc/multiboot_normal.c: Likewise.
40674 * loader/powerpc/ieee1275/linux.c: Likewise.
40675 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40676 * normal/arg.c: Likewise.
40677 * normal/cmdline.c: Likewise.
40678 * normal/command.c: Likewise.
40679 * normal/completion.c: Likewise.
40680 * normal/execute.c: Likewise.
40681 * normal/function.c: Likewise.
40682 * normal/lexer.c: Likewise.
40683 * normal/main.c: Likewise.
40684 * normal/menu.c: Likewise.
40685 * normal/menu_entry.c: Likewise.
40686 * normal/misc.c: Likewise.
40687 * normal/parser.y: Likewise.
40688 * normal/script.c: Likewise.
40689 * normal/i386/setjmp.S: Likewise.
40690 * normal/powerpc/setjmp.S: Likewise.
40691 * normal/sparc64/setjmp.S: Likewise.
40692 * partmap/acorn.c: Likewise.
40693 * partmap/amiga.c: Likewise.
40694 * partmap/apple.c: Likewise.
40695 * partmap/gpt.c: Likewise.
40696 * partmap/pc.c: Likewise.
40697 * partmap/sun.c: Likewise.
40698 * term/gfxterm.c: Likewise.
40699 * term/terminfo.c: Likewise.
40700 * term/efi/console.c: Likewise.
40701 * term/i386/pc/console.c: Likewise.
40702 * term/i386/pc/serial.c: Likewise.
40703 * term/i386/pc/vesafb.c: Likewise.
40704 * term/i386/pc/vga.c: Likewise.
40705 * term/ieee1275/ofconsole.c: Likewise.
40706 * util/biosdisk.c: Likewise.
40707 * util/console.c: Likewise.
40708 * util/genmoddep.c: Likewise.
40709 * util/getroot.c: Likewise.
40710 * util/grub-emu.c: Likewise.
40711 * util/grub-mkdevicemap.c: Likewise.
40712 * util/grub-probe.c: Likewise.
40713 * util/lvm.c: Likewise.
40714 * util/misc.c: Likewise.
40715 * util/raid.c: Likewise.
40716 * util/resolve.c: Likewise.
40717 * util/update-grub.in: Likewise.
40718 * util/update-grub_lib.in: Likewise.
40719 * util/grub.d/00_header.in: Likewise.
40720 * util/grub.d/10_hurd.in: Likewise.
40721 * util/grub.d/10_linux.in: Likewise.
40722 * util/i386/efi/grub-install.in: Likewise.
40723 * util/i386/efi/grub-mkimage.c: Likewise.
40724 * util/i386/pc/grub-install.in: Likewise.
40725 * util/i386/pc/grub-mkimage.c: Likewise.
40726 * util/i386/pc/grub-mkrescue.in: Likewise.
40727 * util/i386/pc/grub-setup.c: Likewise.
40728 * util/i386/pc/misc.c: Likewise.
40729 * util/powerpc/ieee1275/grub-install.in: Likewise.
40730 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
40731 * util/powerpc/ieee1275/misc.c: Likewise.
40732 * video/bitmap.c: Likewise.
40733 * video/video.c: Likewise.
40734 * video/i386/pc/vbe.c: Likewise.
40735 * video/i386/pc/vbeblit.c: Likewise.
40736 * video/i386/pc/vbefill.c: Likewise.
40737 * video/i386/pc/vbeutil.c: Likewise.
40738 * video/readers/tga.c: Likewise.
40740 2007-07-02 Robert Millan <rmh@aybabtu.com>
40742 * conf/i386-efi.rmk: Replace obsolete reference to
40743 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
40744 with util/getroot.c.
40745 * conf/powerpc-ieee1275.rmk: Likewise.
40746 * conf/sparc64-ieee1275.rmk: Likewise.
40748 * util/grub-emu.c (main): Fix unchecked pointer handling.
40750 2007-07-02 Robert Millan <rmh@aybabtu.com>
40752 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
40753 invocation to fail, in order to support partition-less media.
40755 * util/i386/pc/grub-install.in: Likewise.
40757 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
40758 which fs or partmap modules are needed (akin to its sister scripts).
40760 Also use grub-probe to get rid of unportable /proc/mounts check.
40762 Print the same informational message that the other scripts do, before
40765 2007-06-23 Robert Millan <rmh@aybabtu.com>
40767 * util/update-grub_lib.in (font_path): New function. Determine whether
40768 a font file can be found and, if so, echo the GRUB path to it.
40770 * util/update-grub.in: Handle multiple terminals depending on user
40771 input, platform availability and font file presence. Propagate
40772 variables of our findings to /etc/grub.d/ children.
40774 * util/grub.d/00_header.in: Handle multiple terminals, based on
40775 environment setup by update-grub.
40777 2007-06-23 Robert Millan <rmh@aybabtu.com>
40779 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
40781 2007-06-21 Robert Millan <rmh@aybabtu.com>
40783 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
40784 indicate end of data section in kernel image.
40785 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
40786 GRUB_KERNEL_MACHINE_DATA_END.
40788 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
40790 * kern/i386/efi/startup.S: Likewise.
40792 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
40793 during image generation. Implement --prefix option to override this
40795 * util/i386/efi/grub-mkimage.c: Likewise.
40797 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
40798 code to make path relative to its root into a separate function.
40800 * util/i386/pc/grub-install.in: Use newly provided
40801 make_system_path_relative_to_its_root() to convert ${grubdir}, then
40802 pass the result to grub-install --prefix.
40804 2007-06-13 Robert Millan <rmh@aybabtu.com>
40806 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
40807 DEFAULT_DEVICE_MAP.
40808 * util/grub-emu.c: Use above definitions from misc.h instead of
40810 * util/grub-mkdevicemap.c: Likewise.
40811 * util/i386/pc/grub-setup.c: Likewise.
40812 * util/grub-probe.c: Likewise.
40813 (probe): Abort with grub_util_error() when either
40814 grub_guess_root_device or grub_util_get_grub_dev fails.
40816 2007-06-12 Robert Millan <rmh@aybabtu.com>
40818 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
40819 "pager" assignment.
40820 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
40822 * util/grub-probe.c (probe): Likewise for "drive_name".
40824 2007-06-11 Robert Millan <rmh@aybabtu.com>
40826 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
40827 not just the cdrom one.
40829 2007-06-11 Robert Millan <rmh@aybabtu.com>
40831 * util/i386/pc/grub-mkrescue.in: Add "set -e".
40832 Add --pkglibdir=DIR option to override pkglibdir.
40833 Mention --image-type=TYPE in help output.
40834 Fix --grub-mkimage (it was a no-op).
40835 Abort gracefully when no parameter is given.
40837 2007-06-11 Robert Millan <rmh@aybabtu.com>
40839 * util/i386/pc/grub-mkrescue.in: New file.
40840 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
40841 * Makefile.in: Handle bin_SCRIPTS.
40843 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
40845 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
40846 list of video modes.
40848 2007-06-06 Robert Millan <rmh@aybabtu.com>
40850 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
40851 file doesn't exist, or if it is in a filesystem grub can't read.
40853 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
40854 not abort if GRUB_DRIVE could not be defined. Rearrange generated
40855 header comment to fit in 80 columns when the variables are resolved.
40857 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
40858 could be identified by update-grub. Remove redundant check for
40859 unifont.pff existence (since convert_system_path_to_grub_path now
40862 2007-06-04 Robert Millan <rmh@aybabtu.com>
40864 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
40866 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
40868 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
40870 2007-06-04 Robert Millan <rmh@aybabtu.com>
40872 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
40874 * include/grub/partition.h: Declare grub_apple_partition_map_init and
40875 grub_apple_partition_map_fini.
40878 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
40879 to access >2 TiB disks).
40881 Print disk->total_sectors with %llu instead of %lu, since this
40882 variable is always 64-bit (prevents wrong disk size from being displayed
40883 on either >2 TiB disk or big-endian CPU).
40885 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
40886 into a generic case that supports all (sane) partition maps.
40888 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
40891 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
40892 and grub_apple_partition_map_fini() after that.
40894 2007-06-01 Robert Millan <rmh@aybabtu.com>
40896 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
40898 * util/grub.d/00_header.in: Only enable gfxterm when
40899 convert_system_path_to_grub_path() succeeds.
40901 2007-05-20 Robert Millan <rmh@aybabtu.com>
40903 * util/update-grub_lib.in: New file.
40904 * DISTLIST: Add update-grub_lib.in.
40905 * conf/common.rmk: Generate update-grub_lib and install it in
40907 * Makefile.in: Add install routine for $(lib_DATA).
40909 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
40910 function provided by update-grub_lib to support arbitrary paths of
40912 * util/update-grub.in: Use convert_system_path_to_grub_path() to
40913 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
40915 2007-05-19 Robert Millan <rmh@aybabtu.com>
40917 * commands/i386/cpuid.c: New module.
40918 * DISTLIST: Add it.
40919 * conf/i386-efi.rmk: Enable cpuid.mod.
40920 * conf/i386-pc.rmk: Likewise.
40922 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
40924 * kern/disk.c (grub_disk_read): Check return value of
40927 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
40929 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
40931 * disk/raid.c (grub_raid_open): Likewise.
40933 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
40935 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
40936 stack instead of on the heap.
40938 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
40939 before doing a read on it.
40941 * configure.ac: Only use -fno-stack-protector for the target
40944 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
40946 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
40947 __attribute_ ((unused)) to mode_type argument.
40949 * util/getroot.c (grub_guess_root_device): Fix #endif.
40951 * kern/misc.c (memcmp): Fix prototype.
40953 * include/grub/partition.h [GRUB_UTIL]
40954 (grub_gpt_partition_map_init): Add prototype.
40955 (grub_gpt_partition_map_fini): Likewise.
40957 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
40958 at the right place.
40960 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
40961 (grub_fat_read_data): Likewise.
40962 (grub_fat_find_dir): Likewise.
40964 * font/manager.c (find_glyph): Make table a const.
40965 (grub_font_get_glyph): Remove bitmap from if statement.
40967 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
40969 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
40970 code, first search for device in /dev/mapper, then in /dev.
40971 (grub_util_get_grub_dev): New function.
40972 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
40974 * util/grub-probe.c (probe): Remove check for RAID, call
40975 grub_util_get_grub_dev() instead of
40976 grub_util_biosdisk_get_grub_dev().
40977 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
40978 grub_util_biosdisk_get_grub_dev().
40979 * util/i386/pc/grub-setup.c (main): Likewise.
40981 2007-05-16 Robert Millan <rmh@aybabtu.com>
40983 * DISTLIST: Update for the latest changes.
40984 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
40985 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
40986 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
40987 grub/util/biosdisk.h.
40988 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
40989 grub/util/biosdisk.h.
40991 2007-05-16 Robert Millan <rmh@aybabtu.com>
40993 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
40995 2007-05-16 Robert Millan <rmh@aybabtu.com>
40997 * util/i386/efi/grub-install.in: New.
40998 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
40999 newly added grub-install.
41000 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
41002 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
41003 grub/util/biosdisk.h.
41004 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
41005 grub/util/biosdisk.h.
41007 2007-05-16 Robert Millan <rmh@aybabtu.com>
41009 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
41010 * include/grub/util/biosdisk.h: ... here.
41011 * util/i386/pc/biosdisk.c: Moved to ...
41012 * util/biosdisk.c: ... here.
41013 * util/i386/pc/getroot.c: Moved to ...
41014 * util/getroot.c: ... here.
41015 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
41016 * util/grub-mkdevicemap.c: ... here.
41017 * util/i386/pc/grub-probe.c: Moved to ...
41018 * util/grub-probe.c: ... here.
41020 2007-05-15 Robert Millan <rmh@aybabtu.com>
41022 * util/update-grub.in: Remove duplicated line in grub.cfg header
41025 2007-05-13 Robert Millan <rmh@aybabtu.com>
41027 * util/update-grub.in: Fix a few assumptions about the devices holding
41028 /, /boot and /boot/grub being the same.
41029 * util/grub.d/00_header.in: Likewise.
41030 * util/grub.d/10_hurd.in: Likewise.
41031 * util/grub.d/10_linux.in: Likewise.
41033 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
41034 patterns. Use that to define the `.old' suffix as older than `'.
41036 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
41038 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
41039 the grub.cfg header message.
41041 2007-05-11 Robert Millan <rmh@aybabtu.com>
41043 * util/update-grub.in: Create device.map if it doesn't already exist,
41044 before attempting to run grub-probe.
41045 Check for grub-probe and grub-mkdevicemap with the same code
41046 grub-install is using.
41049 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
41051 * Makefile.in: Add the datarootdir autoconf variable.
41053 2007-05-09 Robert Millan <rmh@aybabtu.com>
41055 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
41056 fail gracefully if dev->disk->partition == NULL.
41058 2007-05-07 Robert Millan <rmh@aybabtu.com>
41060 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
41061 determine partition map module.
41062 * util/i386/pc/grub-install.in: Use this feature to decide which
41063 partition module to load, instead of hardcoding pc and gpt.
41065 2007-05-07 Robert Millan <rmh@aybabtu.com>
41067 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
41068 source directory differs from build directory.
41070 2007-05-05 Robert Millan <rmh@aybabtu.com>
41072 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
41075 2007-05-05 Robert Millan <rmh@aybabtu.com>
41077 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
41079 2007-05-05 Robert Millan <rmh@aybabtu.com>
41081 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
41082 command-line arguments via ${GRUB_CMDLINE_LINUX}.
41084 2007-05-05 Robert Millan <rmh@aybabtu.com>
41086 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
41087 (grub_probe_SOURCES): Likewise.
41088 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
41089 GPT and initialize dos_part and bsd_part accordingly.
41090 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
41092 (main): Activate gpt module for use during partition identification,
41093 and deactivate it afterwards.
41094 * util/i386/pc/grub-install.in: Add gpt module to core.img.
41095 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
41096 partition identification, and deactivate it afterwards.
41098 2007-05-05 Robert Millan <rmh@aybabtu.com>
41100 * term/i386/pc/console.c (grub_console_fini): Call
41101 grub_term_set_current() before grub_term_unregister().
41103 2007-05-04 Robert Millan <rmh@aybabtu.com>
41105 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
41106 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
41107 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
41108 and update-grub_DATA.
41109 * conf/common.rmk: Build and install update-grub components.
41110 * conf/common.mk: Regenerate.
41111 * util/update-grub.in: New. Core of update-grub.
41112 * util/grub.d/00_header.in: New. Generates grub.cfg header.
41113 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
41114 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
41115 * util/grub.d/README: New. Document grub.d directory layout.
41117 2007-05-01 Robert Millan <rmh@aybabtu.com>
41119 * util/grub-emu.c: Move initialization functions
41120 grub_util_biosdisk_init() and grub_init_all() before
41121 grub_util_biosdisk_get_grub_dev(), which relies on them.
41123 2007-04-19 Robert Millan <rmh@aybabtu.com>
41125 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
41128 2007-04-18 Jerone Young <jerone@gmail.com>
41130 * kernel/elf.c: Add missing parenthesis for conditional statement
41133 2007-04-10 Jerone Young <jerone@gmail.com>
41135 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
41136 continue on and look for device node with real device name.
41138 2007-04-10 Jerone Young <jerone@gmail.com>
41140 * configure.ac: Add argument for autoconf to use transformation
41142 * Makefile.in: Add autoconf package transformation code.
41143 * util/i386/pc/grub-install.in: Likewise.
41144 * util/powerpc/ieee1275/grub-install.in: Likewise.
41146 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
41148 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
41149 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
41150 (EXT2_REVISION): Likewise.
41151 (EXT2_INODE_SIZE): Likewise.
41152 (struct grub_ext2_block_group): Added a missing member
41154 (grub_ext2_read_inode): Divide by the inode size in a superblock
41155 instead of 128 to obtain INODES_PER_BLOCK.
41156 Use the macro EXT2_INODE_SIZE instead of directly using
41157 SBLOCK->INODE_SIZE.
41159 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
41161 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
41162 superblock instead of the structure size to compute an
41163 offset. This fixes the problem that GRUB could not read a
41164 filesystem when inode size is different from 128-byte.
41166 2007-03-05 Marco Gerards <marco@gnu.org>
41168 * normal/main.c (read_config_file): When "menu" is not set, create
41169 an initial context.
41171 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
41173 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
41174 (HEAP_LIMIT): New macro.
41175 (grub_claim_heap): Claim memory up to `heaplimit'.
41177 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
41179 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
41180 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
41181 (_start): Likewise.
41182 (grub_arch_modules_addr): Return address after `_end'.
41183 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
41184 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
41185 (add_segments): Calculate `_end' from phdr size and location.
41186 (ALIGN_UP): Moved to ...
41187 * include/grub/misc.h: here.
41188 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
41190 (GRUB_IEEE1275_MODULE_BASE): Removed.
41192 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41194 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
41197 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41199 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
41201 (grub_elf64_load_hook_t): Likewise.
41202 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
41205 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41207 * kern/mm.c: Update copyright.
41208 (grub_mm_debug): Correct syntax error.
41209 (grub_mm_dump_free): New function.
41210 (grub_debug_free): Call `grub_free'.
41211 * include/grub/mm.h: Update copyright.
41212 (grub_mm_dump_free): Add declaration.
41214 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
41216 * include/grub/ieee1275/ieee1275.h: Update copyright.
41217 * kern/powerpc/ieee1275/init.c: Likewise.
41218 * kern/powerpc/ieee1275/openfw.c: Likewise.
41220 * loader/powerpc/ieee1275/linux.c: Likewise.
41221 * include/grub/elfload.h: Likewise.
41222 * kern/elf.c: Likewise.
41223 (grub_elf32_load): Pass `base' and `size' parameters. Update all
41225 (grub_elf64_load): Likewise.
41226 (grub_elf32_load_segment): Move to a nested function.
41227 (grub_elf64_load_segment): Likewise.
41229 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
41231 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
41233 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
41234 (grub_heap_len): Likewise.
41235 (HEAP_SIZE): New macro.
41236 (grub_claim_heap): New function.
41237 (grub_machine_init): Don't claim heap directly. Call
41239 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
41240 (grub_available_iterate): New function.
41242 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
41244 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
41245 * configure.ac: Use it for testing the HOST and TARGET compilers.
41247 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
41249 * Makefile.in (enable_grub_emu): New variable.
41250 * configure.ac (--enable-grub-emu): New option.
41251 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
41252 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
41253 * conf/i386-pc.rmk: Likewise.
41254 * conf/powerpc-ieee1275.rmk: Likewise.
41255 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
41257 2006-12-12 Marco Gerards <marco@gnu.org>
41259 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
41261 * kern/env.c (grub_env_unset): Don't free the member `value' when
41262 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
41265 * normal/main.c (current_menu): Removed.
41266 (free_menu): Unset the `menu' environment variable.
41267 (grub_normal_menu_addentry): Make use of the environment variable
41268 `menu', instead of using the global `current_menu'. Allocate
41269 memory for the sourcecode of this entry.
41270 (read_config_file): New argument `nested', changed all callers.
41271 Only in the case of a new context, initialize a new menu. Set the
41272 `menu' environment variable.
41273 (grub_normal_execute): Don't set and unset the environment
41274 variable `menu' here anymore. Only free the menu when leaving the
41277 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
41280 2006-12-11 Marco Gerards <marco@gnu.org>
41282 * normal/menu_entry.c (run): Fix off by one bug so the last line
41283 is executed. Move the loader check to outside the loop.
41285 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
41287 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
41289 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
41291 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
41292 the number of sectors. Reported by Andrey Shuvikov
41293 <mr_hyro@yahoo.com>.
41295 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
41297 * kern/disk.c (grub_disk_read): When there is a read error, always
41298 try to read only the necessary data.
41300 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
41302 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
41304 [GRUB_UTIL] (grub_raid_fini): Likewise.
41305 [GRUB_UTIL] (grub_lvm_init): Likewise.
41306 [GRUB_UTIL] (grub_lvm_fini): Likewise.
41307 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
41308 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
41309 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
41310 and grub_raid_fini().
41312 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
41314 * include/grub/types.h (__unused): Rename to UNUSED.
41315 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
41316 (grub_elf64_size): Likewise.
41318 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
41320 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
41321 grub_error_push and grub_error_pop in the error-handling path.
41322 (grub_elf32_load_segment): Only call grub_file_read with non-zero
41325 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
41327 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
41328 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41329 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41330 (kernel_elf_SOURCES): Likewise.
41331 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
41332 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
41333 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41334 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41335 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
41336 (elf_mod_SOURCES): New variable.
41337 (elf_mod_CFLAGS): Likewise.
41338 (elf_mod_LDFLAGS): Likewise.
41339 * include/grub/types.h (__unused): New macro.
41340 * include/grub/elfload.h: New file.
41341 * kern/elf.c: Likewise.
41342 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
41343 (ELF32_LOADMASK): New macro.
41344 (ELF64_LOADMASK): Likewise.
41345 (vmlinux): Removed.
41346 (grub_linux_load32): New function.
41347 (grub_linux_load64): Likewise.
41348 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
41349 Use grub_elf_t instead of grub_file_t.
41351 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
41353 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
41354 `catch_result' to struct set_color_args.
41356 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
41358 * normal/menu.c: Include grub/script.h.
41359 * normal/menu_entry.c: Likewise.
41360 * include/grub/normal.h: Do not include grub/script.h.
41362 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41364 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
41366 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41368 * kern/disk.c (grub_disk_open): Print debug messages when opening a
41370 (grub_disk_close): Print debug messages when closing a disk.
41371 (grub_disk_read): Print debug messages when disk read fails.
41372 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
41374 * kern/partition.c: Include misc.h.
41375 (grub_partition_iterate): Print debug messages when detecting
41378 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41380 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
41382 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
41384 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
41386 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
41387 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
41389 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
41391 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
41392 instead of sizeof(lv). Patch by Michael Guntsche.
41394 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
41396 * disk/lvm.c: Rename VGS to VG_LIST.
41397 (grub_lvm_iterate): Change VGS->LV to VG-LV.
41398 (grub_lvm_open): Likewise.
41399 Thanks to Michael Guntsche for finding this bug.
41401 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
41403 * configure.ac (AC_INIT): Bumped to 1.95.
41405 2006-10-14 Robert Millan <rmh@aybabtu.com>
41407 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
41408 with "/dev/.static/dev/md".
41410 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
41412 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
41413 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
41414 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
41415 DRIVE_NAME are always freed.
41417 * util/i386/pc/biosdisk.c (make_device_name): Add one into
41418 DOS_PART, as a DOS partition is counted from one instead of zero
41419 now. Reported by Robert Millan.
41421 2006-10-14 Robert Millan <rmh@aybabtu.com>
41423 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
41424 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
41425 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
41426 string returned by grub_guess_root_device.
41427 * util/i386/pc/grub-setup.c: Likewise.
41428 * util/i386/pc/grub-probefs.c: Likewise.
41430 * util/i386/pc/grub-probefs.c: Rename to ...
41431 * util/i386/pc/grub-probe.c: ... this.
41432 * DISTLIST: Remove grub-probefs, add grub-probe.
41433 * conf/i386-efi.rmk: Likewise.
41434 * conf/i386-pc.rmk: Likewise.
41435 * util/i386/pc/grub-install.in: Likewise.
41437 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
41438 choose which information we want to print.
41440 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
41442 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
41443 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
41444 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
41445 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
41446 video/readers/tga.c and video/i386/pc/vbeutil.c.
41448 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
41450 Added support for RAID and LVM.
41452 * disk/lvm.c: New file.
41453 * disk/raid.c: Likewise.
41454 * include/grub/lvm.h: Likewise.
41455 * include/grub/raid.h: Likewise.
41456 * include/grub/util/lvm.h: Likewise.
41457 * include/grub/util/raid.h: Likewise.
41458 * util/lvm.c: Likewise.
41459 * util/raid.c: Likewise.
41461 * include/grub/disk.h (grub_disk_dev_id): Add
41462 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
41463 (grub_disk_get_size): New prototype.
41464 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
41465 returns a partition.
41466 (grub_disk_get_size): New function.
41468 * kern/i386/pc/init.c (make_install_device): Copy the prefix
41469 verbatim if grub_install_dos_part is -2.
41471 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
41474 * util/i386/pc/grub-setup.c (setup): New argument
41475 MUST_EMBED. Force embedding of GRUB when the argument is
41476 true. Close FILE before returning.
41477 (main): Add support for RAID and LVM.
41479 * conf/common.rmk: Add RAID and LVM modules.
41480 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
41482 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
41484 * kern/misc.c (grub_strstr): New function.
41485 * include/grub/misc.h (grub_strstr): New prototype.
41487 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
41489 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
41491 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
41493 * kern/misc.c (grub_strtoull): Guess the base only if not
41496 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41498 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
41501 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41503 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
41505 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
41506 Remove `flags' argument. All callers changed.
41507 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
41508 (IEEE1275_IHANDLE_INVALID): New variable.
41509 (IEEE1275_CELL_INVALID): New variable.
41510 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
41511 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
41512 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
41513 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
41514 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
41515 codes from Open Firmware. All callers updated.
41516 (grub_ieee1275_next_property): Directly return Open Firmware return
41518 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
41519 Standardize error checking from `grub_ieee1275_get_property'.
41520 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
41521 `devalias' to `aliases'. Correct comments. Consolidate error paths.
41523 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41525 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
41526 `instance_to_package_args' to `instance_to_path_args'.
41528 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
41529 `grub_ieee1275_chosen'.
41531 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
41532 `grub_ieee1275_interpret'.
41534 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
41536 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
41538 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
41540 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
41541 (__cmpdi): Likewise.
41543 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
41544 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
41547 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
41549 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
41550 to type `grub_ssize_t'.
41551 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
41553 2006-09-22 Marco Gerards <marco@gnu.org>
41555 * normal/script.c (grub_script_create_cmdmenu): Skip leading
41558 2006-09-22 Marco Gerards <marco@gnu.org>
41560 * commands/echo.c: New file.
41562 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
41564 * conf/common.rmk (echo_mod_SOURCES): New variable.
41565 (echo_mod_CFLAGS): Likewise.
41566 (echo_mod_LDFLAGS): Likewise.
41568 2006-09-22 Marco Gerards <marco@gnu.org>
41570 * normal/main.c (get_line): Malloc memory instead of using
41571 preallocated memory. Removed the arguments `cmdline' and
41572 `max_len'. Updated all callers.
41574 2006-09-22 Marco Gerards <marco@gnu.org>
41576 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
41577 (normal_mod_DEPENDENCIES): Likewise.
41579 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
41580 (normal_mod_DEPENDENCIES): Likewise.
41582 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
41584 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
41586 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
41588 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
41589 (normal_mod_DEPENDENCIES): Likewise.
41590 * conf/i386-pc.mk: Regenerate.
41591 * conf/i386-efi.mk: Likewise
41592 * conf/common.mk: Likewise.
41593 * conf/powerpc-ieee1275.mk: Likewise.
41594 * conf/sparc64-ieee1275.mk: Likewise.
41596 2006-09-22 Robert Millan <rmh@aybabtu.com>
41598 Sync with i386 version.
41599 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
41600 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
41602 2006-09-21 Robert Millan <rmh@aybabtu.com>
41604 Import from GRUB Legacy (lib/device.c):
41605 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
41606 (init_device_map) [__linux__]: Add support for I2O devices.
41608 2006-09-14 Marco Gerards <marco@gnu.org>
41610 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
41613 2006-09-14 Robert Millan <rmh@aybabtu.com>
41615 * util/i386/pc/grub-install.in: Skip menu.lst when removing
41618 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
41620 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
41621 before adding it to device.map.
41623 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
41625 * genmk.rb: Let GCC generate dependencies the first time it
41626 compiles a file; using the -MD option.
41627 * conf/common.mk: Regenerate.
41628 * conf/i386-pc.mk: Likewise.
41629 * conf/i386-efi.mk: Likewise.
41630 * conf/powerpc-ieee1275.mk: Likewise.
41631 * conf/sparc64-ieee1275.mk: Likewise.
41633 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
41635 Move the prototypes of grub_setjmp and grub_longjmp to
41636 cpu/setjmp.h, so that each architecture may specify different
41639 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
41640 (grub_longjmp): Likewise.
41641 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
41642 (grub_longjmp): Likewise.
41643 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
41644 (grub_longjmp): Likewise.
41646 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
41647 [!GRUB_UTIL] (grub_longjmp): Removed.
41649 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
41651 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
41652 "color!" method does not return any value.
41654 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41656 * include/grub/bitmap.h: New file.
41658 * include/grub/i386/pc/vbeutil.h: Likewise.
41660 * video/bitmap.c: Likewise.
41662 * video/readers/tga.c: Likewise.
41664 * video/i386/pc/vbeutil.c: Likewise.
41666 * commands/videotest.c: Code cleanup and updated to reflect to new
41669 * term/gfxterm.c: Likewise.
41671 * video/video.c: Likewise.
41673 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
41674 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
41675 (bitmap_mod_SOURCES): New entry.
41676 (bitmap_mod_CFLAGS): Likewise.
41677 (bitmap_mod_LDFLAGS): Likewise.
41678 (tga_mod_SOURCES): Likewise.
41679 (tga_mod_CFLAGS): Likewise.
41680 (tga_mod_LDFLAGS): Likewise.
41682 * include/grub/video.h (grub_video_blit_operators): New enum type.
41683 (grub_video_render_target): Changed as forward declaration and moved
41684 actual definition to be video driver specific.
41685 (grub_video_adapter.blit_bitmap): Added blitting operator.
41686 (grub_video_adapter.blit_render_target): Likewise.
41687 (grub_video_blit_bitmap): Likewise.
41688 (grub_video_blit_render_target): Likewise.
41690 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
41691 driver specific render target definition.
41692 (grub_video_vbe_map_rgba): Added driver internal helper.
41693 (grub_video_vbe_unmap_color): Updated to use
41694 grub_video_i386_vbeblit_info.
41695 (grub_video_vbe_get_video_ptr): Likewise.
41697 * include/grub/i386/pc/vbeblit.h
41698 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
41699 grub_video_i386_vbeblit_info.
41700 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
41701 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
41702 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
41703 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
41704 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
41705 (grub_video_i386_vbeblit_index_index): Likewise.
41706 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
41707 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
41708 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
41709 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
41711 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
41714 * video/i386/pc/vbeblit.c: Updated to reflect changes on
41715 include/grub/i386/pc/vbeblit.h.
41717 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
41718 Updated to use grub_video_i386_vbeblit_info.
41719 (grub_video_i386_vbefill_R8G8B8): Likewise.
41720 (grub_video_i386_vbefill_index): Likewise.
41721 (grub_video_i386_vbefill): Added generic filler.
41723 * video/i386/pc/vbefill.c: Updated to reflect changes on
41724 include/grub/i386/pc/vbefill.h.
41726 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
41727 grub_video_i386_vbeblit_info.
41728 (grub_video_vbe_unmap_color): Likewise.
41729 (grub_video_vbe_blit_glyph): Likewise.
41730 (grub_video_vbe_scroll): Likewise.
41731 (grub_video_vbe_draw_pixel): Removed function.
41732 (grub_video_vbe_get_pixel): Likewise.
41733 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
41734 updated code to use it.
41735 (common_blitter): Added common blitter for render target and bitmap.
41736 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
41737 (grub_video_vbe_blit_render_target): Likewise.
41739 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
41741 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
41742 is in text mode if there is no console control protocol instance
41745 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41747 * include/grub/video.h: Code cleanup.
41749 * include/grub/i386/pc/vbe.h: Likewise.
41751 * video/i386/pc/vbe.c: Likewise.
41753 * video/i386/pc/vbeblit.c: Likewise.
41755 * video/i386/pc/vbefill.c: Likewise.
41757 * video/video.c: Likewise. Also added more comments.
41759 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41761 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
41762 (struct grub_biosdisk_dap): Likewise.
41764 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
41765 linkage settings for all functions.
41767 2006-07-12 Marco Gerards <marco@gnu.org>
41769 * configure.ac (--enable-mm-debug): Fix typo.
41771 * genkernsyms.sh.in: Use proper quoting for `CC'.
41773 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
41775 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
41776 (normal_mod_ASFLAGS): Remove "-m32".
41778 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
41780 * util/misc.c: Include config.h.
41781 [!HAVE_MEMALIGN]: Do not include malloc.h.
41782 (grub_memalign): Use posix_memalign, if present. Then, use
41783 memalign, if present. Otherwise, emit an error.
41785 * util/grub-emu.c: Do not include malloc.h.
41787 * include/grub/util/misc.h: Include unistd.h. This is required for
41788 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
41789 D. Eades III <hde@foobar-qux.org>.
41791 * configure.ac (AC_GNU_SOURCE): Added.
41792 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
41795 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
41797 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
41798 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
41800 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
41802 * include/grub/types.h (grub_host_addr_t): Rename to
41803 grub_target_addr_t.
41804 (grub_host_off_t): Rename to grub_target_off_t.
41805 (grub_host_size_t): Rename to grub_target_size_t.
41806 (grub_host_ssize_t): Rename to grub_target_ssize_t.
41807 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
41809 * include/grub/kernel.h (struct grub_module_header): Change type
41810 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
41811 (grub_module_info): Likewise.
41813 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
41815 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
41816 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
41817 Velazquez <jesus.velazquez@gmail.com>.
41819 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
41821 Count partitions from 1 instead of 0 in the string representation
41822 of partitions. Still use 0-based internally.
41824 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
41825 (sun_partition_map_iterate): Use grub_partition_t instead of
41826 struct grub_partition *. Cast DESC->START_CYLINDER to
41827 grub_uint64_t after converting the endian.
41828 (sun_partition_map_probe): Subtract 1 for PARTNUM.
41829 (sun_partition_map_get_name): Add 1 to P->INDEX.
41831 * partmap/pc.c (grub_partition_parse): Subtract 1 for
41833 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
41835 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
41836 zero instead of one.
41837 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
41838 (gpt_partition_map_get_name): Add 1 into P->INDEX.
41840 * partmap/apple.c (apple_partition_map_iterate): Change the type
41841 of POS to unsigned.
41842 (apple_partition_map_probe): Subtract 1 for PARTNUM.
41843 (apple_partition_map_get_name): Add 1 into P->INDEX.
41845 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
41846 of POS to unsigned.
41847 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
41848 calculate the offset of a partition.
41849 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
41850 (amiga_partition_map_get_name): Add 1 into P->INDEX.
41852 * partmap/acorn.c (acorn_partition_map_find): Change the type of
41853 SECTOR to grub_disk_addr_t.
41854 (acorn_partition_map_iterate): Likewise.
41855 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
41856 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
41858 (acorn_partition_map_get_name): Add 1 into P->INDEX.
41860 * kern/i386/pc/init.c (make_install_device): Add 1 into
41861 GRUB_INSTALL_DOS_PART.
41863 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
41866 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
41868 Clean up the code to support 64-bit addressing in disks and
41869 files. This change is not enough for filesystems yet.
41871 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
41872 type of "start" to grub_uint64_t.
41873 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
41874 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
41875 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
41878 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
41879 to grub_disk_addr_t.
41881 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
41884 * partmap/pc.c (pc_partition_map_iterate): Likewise.
41886 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
41889 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
41891 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
41893 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
41895 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
41896 to grub_off_t, to detect an error from grub_file_seek.
41897 (grub_multiboot_load_elf32): Likewise.
41899 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
41900 maximum unsigned long value when an overflow is detected.
41901 (grub_strtoull): New function.
41902 (grub_divmod64): Likewise.
41903 (grub_lltoa): use grub_divmod64.
41905 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
41907 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
41908 the pointer to next character. Use grub_strtoull instead of
41910 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
41911 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
41914 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
41915 return value is signed.
41916 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
41917 test if OFFSET is less than zero, as OFFSET is unsigned now.
41919 * kern/disk.c (struct grub_disk_cache): Change the type of
41920 "sector" to grub_disk_addr_t.
41921 (grub_disk_cache_get_index): Change the type of SECTOR to
41922 grub_disk_addr_t. Calculate the hash with SECTOR casted to
41923 unsigned after shifting.
41924 (grub_disk_cache_invalidate): Change the type of SECTOR to
41926 (grub_disk_cache_unlock): Likewise.
41927 (grub_disk_cache_store): Likewise.
41928 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
41929 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
41930 grub_disk_addr_t and grub_uint64_t, respectively.
41931 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
41932 body, as the value of OFFSET is tweaked by
41933 grub_disk_check_range. Change the types of START_SECTOR, LEN and
41934 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
41936 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
41937 body, as the value of OFFSET is tweaked by
41938 grub_disk_check_range. Change the types of LEN and N to
41941 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
41942 and "saved_offset" to grub_off_t.
41943 (test_header): Cast BUF to char *.
41944 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
41946 (grub_gzio_read): Change the types of OFFSET and SIZE to
41947 grub_off_t and grub_size_t, respectively.
41949 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
41951 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
41952 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
41953 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
41954 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
41955 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
41957 * include/grub/types.h (grub_off_t): Unconditionally set to
41959 (grub_disk_addr_t): Changed to grub_uint64_t.
41961 * include/grub/partition.h (struct grub_partition): Change the
41962 types of "start", "len" and "offset" to grub_disk_addr_t,
41963 grub_uint64_t and grub_disk_addr_t, respectively.
41964 (grub_partition_get_start): Return grub_disk_addr_t.
41965 (grub_partition_get_len): Return grub_uint64_t.
41967 * include/grub/misc.h (grub_strtoull): New prototype.
41968 (grub_divmod64): Likewise.
41970 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
41971 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
41972 grub_off_t, respectively.
41973 All callers and references changed.
41975 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
41976 grub_size_t in "read".
41977 All callers and references changed.
41979 * include/grub/file.h (struct grub_file): Change the types of
41980 "offset" and "size" to grub_off_t and grub_off_t,
41981 respectively. Change the type of SECTOR to grub_disk_addr_t in
41983 (grub_file_read): Change the type of LEN to grub_size_t.
41984 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
41986 (grub_file_size): Return grub_off_t.
41987 (grub_file_tell): Likewise.
41988 All callers and references changed.
41990 * include/grub/disk.h (struct grub_disk_dev): Change the types of
41991 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
41993 (struct grub_disk): Change the type of "total_sectors" to
41994 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
41996 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
41997 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
41998 (grub_disk_write): Likewise.
41999 All callers and references changed.
42001 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
42002 char * for grub_strncmp to silence gcc.
42003 (grub_iso9660_mount): Likewise.
42004 (grub_iso9660_mount): Likewise.
42005 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
42007 (grub_iso9660_iterate_dir): Likewise.
42008 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
42010 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
42011 LEN to grub_disk_addr_t and grub_size_t, respectively.
42013 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
42015 * fs/jfs.c (grub_jfs_read_file): Likewise.
42017 * fs/minix.c (grub_jfs_read_file): Likewise.
42019 * fs/sfs.c (grub_jfs_read_file): Likewise.
42021 * fs/ufs.c (grub_jfs_read_file): Likewise.
42023 * fs/xfs.c (grub_jfs_read_file): Likewise.
42025 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
42026 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
42029 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
42030 BLKNR to -1 instead of returning GRUB_ERRNO.
42031 (grub_ext2_read_file): Change the types of SECTOR and
42032 LEN to grub_disk_addr_t and grub_size_t, respectively.
42034 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
42035 LEN to grub_disk_addr_t and grub_size_t, respectively.
42037 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
42040 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
42041 string. Do not cast SECTOR explicitly.
42043 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
42044 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
42045 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
42046 grub_disk_addr_t and grub_size_t, respectively. If the sector is
42047 over 2TB and LBA mode is not supported, raise an error.
42048 (get_safe_sectors): New function.
42049 (grub_biosdisk_read): Use get_safe_sectors.
42050 (grub_biosdisk_write): Likewise.
42052 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
42053 (grub_efidisk_write): Likewise.
42055 * disk/loopback.c (delete_loopback): Cosmetic changes.
42056 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
42058 (grub_loopback_open): Likewise.
42059 (grub_loopback_read): Likewise. Also, change the type of POS to
42060 grub_off_t, and fix the usage of grub_memset.
42062 * commands/i386/pc/play.c: Include grub/machine/time.h.
42064 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
42067 * commands/configfile.c: Include grub/env.h.
42069 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
42070 GRUB_ERRNO directly instead. Change the type of POS to
42071 grub_off_t. Follow the coding standard.
42073 * commands/blocklist.c: Include grub/partition.h.
42074 (grub_cmd_blocklist): Return an error if the underlying device is
42075 not a disk. Take the starting sector of a partition into account,
42076 if a partition is used.
42078 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
42080 (lba_mode): Support 64-bit addresses.
42081 (chs_mode): Likewise.
42082 (copy_buffer): Adapted to the new offsets of a length field and a
42084 (blocklist_default_start): Allocate 64-bit space.
42086 * boot/i386/pc/boot.S (force_lba): Removed.
42087 (boot_drive): Moved to under KERNEL_SECTOR.
42088 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
42090 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
42092 (lba_mode): Refactored to support a 64-bit address. More size
42094 (setup_sectors): Likewise.
42096 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
42098 * DISTLIST: Added include/grub/i386/linux.h. Removed
42099 include/grub/i386/pc/linux.h
42101 * configure.ac (AC_INIT): Bumped to 1.94.
42103 * config.guess: Updated from gnulib.
42104 * config.sub: Likewise.
42105 * install-sh: Likewise.
42106 * mkinstalldirs: Likewise.
42108 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
42110 * conf/common.rmk (grub_modules_init.lst): Depended on
42111 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
42114 * genmk.rb (PModule::rule): Reverted the previous change.
42116 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
42118 * conf/common.rmk (grub_modules_init.lst): Depends on
42119 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
42120 that the target does not exist before producing.
42121 (grub_modules_init.h): Remove the target before generating.
42122 (grub_emu_init.c): Likewise.
42124 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
42126 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
42128 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
42129 for the target-specific tests. Make sure that we also have the
42130 up-to-date target variables for those tests.
42132 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
42134 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
42135 (PModule::rule): Likewise.
42137 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
42139 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
42140 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
42141 target-specific flags should be prefixed.
42142 (PModule::rule): Likewise.
42144 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
42146 * configure.ac (CMP): Check if cmp is available explicitly.
42148 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
42150 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
42151 (target_cpu): New variable.
42152 (pkglibdir): Use target_cpu instead of host_cpu.
42154 * util/i386/pc/grub-install.in (host_cpu): Removed.
42155 (target_cpu): New variable.
42156 (pkglibdir): Use target_cpu instead of host_cpu.
42158 * util/genmoddep.c: Removed.
42160 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
42161 instead of GRUB_HOST_SIZEOF_VOID_P.
42162 * kern/dl.c: Likewise.
42164 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
42166 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42167 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42168 (GRUB_TARGET_SIZEOF_LONG): ... this.
42169 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42170 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42171 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
42173 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42174 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42175 (GRUB_TARGET_SIZEOF_LONG): ... this.
42176 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42177 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42178 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
42180 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42181 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42182 (GRUB_TARGET_SIZEOF_LONG): ... this.
42183 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42184 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42186 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
42187 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
42188 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
42189 instead of GRUB_HOST_SIZEOF_LONG.
42190 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
42191 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
42192 GRUB_CPU_WORDS_BIGENDIAN.
42193 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
42194 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
42197 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
42198 (genmoddep_SOURCES): Likewise.
42199 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
42200 (genmoddep_SOURCES): Likewise.
42201 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
42202 (genmoddep_SOURCES): Likewise.
42203 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
42205 (genmoddep_SOURCES): Likewise.
42207 * genmoddep.awk: New file.
42209 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
42210 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
42211 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
42212 (PModule::rule): Likewise.
42213 (Program::rule): Likewise.
42214 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
42215 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
42218 * configure.ac: Rewritten intensively to use host and target
42219 instead of build and host, respectively.
42221 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
42222 (host_cpu): Removed.
42223 (target_cpu): New variable.
42224 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
42225 (BUILD_CC): Removed.
42226 (BUILD_CFLAGS): Likewise.
42227 (BUILD_CPPFLAGS): Likewise.
42228 (TARGET_CC): New variable.
42229 (TARGET_CFLAGS): Likewise.
42230 (TARGET_CPPFLAGS): Likewise.
42231 (TARGET_LDFLAGS): Likewise.
42233 (include): Use target_cpu instead of host_cpu.
42234 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
42236 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
42238 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
42240 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
42241 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
42242 field 'false' to 'exec_on_false'.
42243 (grub_script_create_cmdif): Renamed argument names to reflect above
42246 * normal/execute.c (grub_script_execute_cmdif): Likewise.
42248 * normal/script.c (grub_script_create_cmdif): Likewise.
42250 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
42252 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
42254 (grub_hfsplus_btree_recptr): Likewise.
42255 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
42256 FILEBLOCK both to pass a block number and store next block
42258 (grub_hfsplus_read_block): Rewritten heavily to support an extent
42259 overflow file correctly. Specify errors appropriately, because
42260 fshelp expects that GRUB_ERRNO is set when fails. Reuse
42261 grub_hfsplus_btree_recptr to get the pointer to a found key.
42262 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
42265 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
42267 (_linux_mod_SOURCES): New variable.
42268 (_linux_mod_CFLAGS): Likewise.
42269 (_linux_mod_LDFLAGS): Likewise.
42270 (linux_mod_SOURCES): Likewise.
42271 (linux_mod_CFLAGS): Likewise.
42272 (linux_mod_LDFLAGS): Likewise.
42274 * DISTLIST: Added loader/i386/efi/linux.c,
42275 loader/i386/efi/linux_normal.c and
42276 include/grub/i386/efi/loader.h.
42278 * loader/i386/efi/linux.c: New file.
42279 * loader/i386/efi/linux_normal.c: Likewise.
42280 * include/grub/i386/efi/loader.h: Likewise.
42282 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
42284 * commands/blocklist.c: New file.
42286 * DISTLIST: Added commands/blocklist.c.
42288 * term/efi/console.c (grub_console_highlight_color): Use a lighter
42289 color for the background, and a darker color for the foreground.
42290 (grub_console_checkkey): Return READ_KEY.
42291 (grub_console_cls): Set the background to
42292 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
42294 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
42296 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
42297 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
42299 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
42302 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
42303 BG. The spec is wrong again.
42305 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
42307 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
42309 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
42310 commands/blocklist.c.
42311 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42313 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
42314 (blocklist_mod_SOURCES): New variable.
42315 (blocklist_mod_CFLAGS): Likewise.
42316 (blocklist_mod_LDFLAGS): Likewise.
42318 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
42320 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
42322 (lba_mode): Use %eax more intensively to reduce the code size.
42324 2006-05-20 Marco Gerards <marco@gnu.org>
42326 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
42328 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
42330 (script): Accept leading newlines.
42331 (newlines): New rule to describe 0 or more newlines.
42332 (commands): Accept `command' with trailing newline. Fixed the
42333 order in which arguments were passed to `grub_script_add_cmd'.
42334 Accept commands separated by newlines.
42335 (function): Changed to accept newlines.
42336 (menuentry) Rewritten.
42338 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
42339 front of the list, instead of to the end.
42341 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
42343 * util/i386/pc/grub-install.in (bindir): New variable.
42344 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
42345 Shaver <lbgwjl@gmail.com>.
42347 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
42349 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
42350 grub/machine/linux.h
42351 * loader/i386/pc/linux.c: Likewise.
42353 * include/grub/i386/pc/linux.h: Moved to ...
42354 * include/grub/i386/linux.h: ... here.
42356 * include/grub/i386/linux.h (struct linux_kernel_params): New
42359 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
42361 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
42363 (grub_video_vbe_blit_glyph): Likewise.
42364 (grub_video_vbe_blit_bitmap): Likewise.
42365 (grub_video_vbe_blit_render_target): Likewise.
42367 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
42369 * configure.ac (--with-platform): Properly quote the square
42372 2006-05-08 Marco Gerards <marco@gnu.org>
42374 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
42376 (kernel_elf_HEADERS): ...to this. Updated all users.
42377 (grubof_symlist.c): Renamed from this...
42378 (kernel_elf_symlist.c): ...to this. Updated all users.
42379 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
42380 (grubof_SOURCES): Renamed from this...
42381 (kernel_elf_SOURCES): ...to this.
42382 (grubof_HEADERS): Renamed from this...
42383 (kernel_elf_HEADERS): ...to this.
42384 (grubof_CFLAGS): Renamed from this...
42385 (kernel_elf_CFLAGS): ...to this.
42386 (grubof_ASFLAGS): Renamed from this...
42387 (kernel_elf_ASFLAGS): ...to this.
42388 (grubof_LDFLAGS): Renamed from this...
42389 (kernel_elf_LDFLAGS): ...to this.
42391 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
42393 (kernel_elf_HEADERS): ...to this. Updated all users.
42394 (grubof_symlist.c): Renamed from this...
42395 (kernel_elf_symlist.c): ...to this. Updated all users.
42396 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
42397 (grubof_SOURCES): Renamed from this...
42398 (kernel_elf_SOURCES): ...to this.
42399 (grubof_HEADERS): Renamed from this...
42400 (kernel_elf_HEADERS): ...to this.
42401 (grubof_CFLAGS): Renamed from this...
42402 (kernel_elf_CFLAGS): ...to this.
42403 (grubof_ASFLAGS): Renamed from this...
42404 (kernel_elf_ASFLAGS): ...to this.
42405 (grubof_LDFLAGS): Renamed from this...
42406 (kernel_elf_LDFLAGS): ...to this.
42408 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
42409 `kernel.elf' instead of `grubof'.
42411 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
42413 Add --with-platform to configure. Use pkglibdir instead of
42414 pkgdatadir. This is reported by Roger Leigh.
42416 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
42417 (host_vendor): Likewise.
42418 (host_os): Likewise.
42419 (pkgdatadir): Likewise.
42420 (platform): New variable.
42421 (pkglibdir): Likewise.
42422 Use PKGLIBDIR instead of PKGDATADIR.
42424 * util/i386/pc/grub-install.in (datadir): Removed.
42425 (host_vendor): Likewise.
42426 (host_os): Likewise.
42427 (pkgdatadir): Likewise.
42428 (platform): New variable.
42429 (pkglibdir): Likewise.
42430 Use PKGLIBDIR instead of PKGDATADIR.
42432 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
42433 instead of GRUB_DATADIR.
42435 * util/i386/pc/grub-mkimage.c (usage): Likewise.
42437 * util/i386/efi/grub-mkimage.c (usage): Likewise.
42440 * configure.ac (--with-platform): New option.
42441 Use PLATFORM instead of HOST_VENDOR to specify a platform.
42443 * Makefile.in: Include a makefile based on PLATFORM instead of
42445 (pkgdatadir): Not appended by the machine type.
42446 (pkglibdir): Appended by the machine type.
42447 (host_vendor): Removed.
42448 (platform): New variable.
42449 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
42450 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
42451 (uninstall): Likewise.
42453 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
42455 Use the environment context in the menu. Remove the commands
42456 "default" and "timeout", and use variables instead.
42458 * normal/menu.c: Include grub/env.h.
42459 (print_entry): Cast TITLE to silence gcc.
42460 (get_timeout): New function.
42461 (set_timeout): Likewise.
42462 (get_entry_number): Likewise.
42463 (run_menu): Use a default entry, a fallback entry and a timeout
42464 in the environment variables "default", "fallback" and
42465 "timeout". Also, tweak the default entry if it is not within the
42466 current menu entries.
42467 (grub_menu_run): Use a fallback entry in the environment variable
42470 * normal/main.c (read_config_file): Do not initialize
42471 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
42473 (grub_normal_execute): Use a data slot to store the menu.
42475 * include/grub/normal.h (struct grub_menu): Removed default_entry,
42476 fallback_entry and timeout.
42477 (struct grub_menu_list): Removed.
42478 (grub_menu_list_t): Likewise.
42479 (struct grub_context): Likewise.
42480 (grub_context_t): Likewise.
42481 (grub_context_get): Likewise.
42482 (grub_context_get_current_menu): Likewise.
42483 (grub_context_push_menu): Likewise.
42484 (grub_context_pop_menu): Likewise.
42485 (grub_default_init): Likewise.
42486 (grub_default_fini): Likewise.
42487 (grub_timeout_init): Likewise.
42488 (grub_timeout_fini): Likewise.
42490 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
42492 (normal_mod_SOURCES): Removed normal/context.c.
42494 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
42495 commands/default.c, commands/timeout.c and normal/context.c.
42496 (normal_mod_SOURCES): Removed normal/context.c.
42498 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
42499 commands/timeout.c and normal/context.c.
42500 (normal_mod_SOURCES): Removed normal/context.c.
42502 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
42503 commands/default.c, commands/timeout.c and normal/context.c.
42504 (normal_mod_SOURCES): Removed normal/context.c.
42506 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
42508 (default_mod_SOURCES): Removed.
42509 (default_mod_CFLAGS): Likewise.
42510 (default_mod_LDFLAGS): Likewise.
42511 (timeout_mod_SOURCES): Removed.
42512 (timeout_mod_CFLAGS): Likewise.
42513 (timeout_mod_LDFLAGS): Likewise.
42515 * DISTLIST: Removed commands/default.c, commands/timeout.c and
42518 * commands/default.c: Removed.
42519 * commands/timeout.c: Likewise.
42520 * normal/context.c: Likewise.
42522 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
42524 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
42526 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
42528 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
42529 "next" to "prev" for readability.
42530 (struct grub_env_sorted_var): New struct.
42531 (grub_env_context): Renamed to ...
42532 (initial_context): ... this.
42533 (grub_env_var_context): Renamed to ...
42534 (current_context): ... this.
42535 (grub_env_find): Look only at CURRENT_CONTEXT.
42536 (grub_env_context_open): Rewritten to copy exported variables from
42538 (grub_env_context_close): Rewritten according to the new
42539 scheme. Also, add an assertion to prevent the initial context from
42541 (grub_env_insert): Removed the code for the sorted list.
42542 (grub_env_remove): Likewise.
42543 (grub_env_export): Simply mark the variable with
42544 GRUB_ENV_VAR_GLOBAL.
42545 (grub_env_set): A cosmetic change for naming consistency.
42546 (grub_env_get): Likewise.
42547 (grub_env_unset): Likewise.
42548 (grub_env_iterate): Rewritten to sort variables within this
42550 (grub_register_variable_hook): Fixed for naming consistency. Call
42551 grub_env_find again, only if NAME is not found at the first time.
42552 (mangle_data_slot_name): New function.
42553 (grub_env_set_data_slot): Likewise.
42554 (grub_env_get_data_slot): Likewise.
42555 (grub_env_unset_data_slot): Likewise.
42557 * include/grub/env.h (grub_env_var_type): New enum.
42558 (GRUB_ENV_VAR_LOCAL): New constant.
42559 (GRUB_ENV_VAR_GLOBAL): Likewise.
42560 (GRUB_ENV_VAR_DATA): Likewise.
42561 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
42563 (grub_env_set): Replace VAR with NAME for consistency.
42564 (grub_register_variable_hook): Likewise.
42565 (grub_env_export): Specify the name of the argument.
42566 (grub_env_set_data_slot): New prototype.
42567 (grub_env_get_data_slot): Likewise.
42568 (grub_env_unset_data_slot): Likewise.
42570 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
42572 Extend the loader so that GRUB can accept a loader which comes
42573 back to GRUB when a loaded image exits. Also, this change adds
42574 support for a chainloader on EFI.
42576 * term/efi/console.c: Include grub/misc.h.
42577 (grub_console_checkkey): Display a scan code on the top for
42578 debugging. This will be removed once the EFI port gets stable.
42579 Correct the scan code mapping.
42581 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
42582 allocate memory from larger regions, in order to reduce the number
42583 of allocated regions. Otherwise, the MacOSX loader panics.
42584 (filter_memory_map): Avoid less than 1MB for compatibility with
42586 (add_memory_regions): Allocate from the tail of a region, if
42587 possible, to avoid allocating a region near to 1MB, for the MacOSX
42590 * kern/efi/init.c (grub_efi_set_prefix): Specify
42591 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
42593 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
42594 argument IMAGE_HANDLE and specify it to get a loaded image.
42595 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
42596 grub_efi_get_loaded_image.
42597 (grub_efi_get_filename): Divide the length by the size of
42599 (grub_efi_get_device_path): New function.
42600 (grub_efi_print_device_path): Print End Device Path nodes. Divide
42601 the length by the size of grub_efi_char16_t for a file path device
42604 * kern/loader.c (grub_loader_noreturn): New variable.
42605 (grub_loader_set): Accept a new argument NORETURN. Set
42606 GRUB_LOADER_NORETURN to NORETURN.
42607 All callers changed.
42608 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
42611 * include/grub/efi/efi.h (grub_efi_get_device_path): New
42613 (grub_efi_get_loaded_image): Take an argument to specify an image
42616 * include/grub/loader.h (grub_loader_set): Added one more argument
42619 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
42620 instead of grub_efi_open_protocol.
42621 (grub_efidisk_get_device_name): Likewise.
42622 (grub_efidisk_close): Print a newline.
42623 (grub_efidisk_get_device_handle): Fixed to use
42624 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
42625 GRUB_EFI_DEVICE_PATH_TYPE.
42627 * disk/efi/efidisk.c (device_path_guid): Moved to ...
42628 * kern/efi/efi.c (device_path_guid): ... here.
42630 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
42632 (kernel_mod_HEADERS): Added efi/disk.h.
42633 (_chain_mod_SOURCES): New variable.
42634 (_chain_mod_CFLAGS): Likewise.
42635 (_chain_mod_LDFLAGS): Likewise.
42636 (chain_mod_SOURCES): Likewise.
42637 (chain_mod_CFLAGS): Likewise.
42638 (chain_mod_LDFLAGS): Likewise.
42640 * DISTLIST: Added include/grub/efi/chainloader.h,
42641 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
42643 * include/grub/efi/chainloader.h: New file.
42644 * loader/efi/chainloader.c: Likewise.
42645 * loader/efi/chainloader_normal.c: Likewise.
42647 2006-04-30 Marco Gerards <marco@gnu.org>
42649 * commands/configfile.c (grub_cmd_source): New function.
42650 (GRUB_MOD_INIT): Register the commands `source' and `.'.
42651 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
42653 2006-04-30 Marco Gerards <marco@gnu.org>
42655 * normal/execute.c (grub_script_execute_cmd): Change the return
42656 type to `grub_err_t'. Correctly return the error.
42657 (grub_script_execute_cmdline): In case a command line is not a
42658 command or a function, try to interpret it as an assignment.
42660 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
42662 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
42663 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
42664 skip a node whose name is obviously invalid as UTF-16,
42665 i.e. contains a NUL character. Stop the iteration when the last
42666 directory entry is found. Instead of using the return value of
42667 grub_hfsplus_btree_iterate_node, store the value in RET and use
42668 it, because the iterator can be stopped by the last directory
42671 2006-04-30 Marco Gerards <marco@gnu.org>
42673 * include/grub/env.h (grub_env_export): New prototype. Reported
42674 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
42676 2006-04-30 Marco Gerards <marco@gnu.org>
42678 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
42679 size of the extents in a catalog file record.
42681 2006-04-29 Marco Gerards <marco@gnu.org>
42683 * commands/configfile.c (grub_cmd_configfile): Execute the
42684 configfile within its own context.
42686 * include/grub/env.h (grub_env_context_open): New prototype.
42687 (grub_env_context_close): Likewise.
42689 * kern/env.c (grub_env): Removed.
42690 (grub_env_sorted): Likewise.
42691 (grub_env_context): New variable.
42692 (grub_env_var_context): Likewise.
42693 (grub_env_find): Search both the active context and the global
42695 (grub_env_context_open): New function.
42696 (grub_env_context_close): Likewise.
42697 (grub_env_insert): Likewise.
42698 (grub_env_remove): Likewise.
42699 (grub_env_export): Likewise.
42700 (grub_env_set): Changed to use helper functions to avoid code
42702 (grub_env_iterate): Rewritten so both the current context and the
42703 global context are being used.
42705 * normal/command.c (export_command): New function.
42706 (grub_command_init): Register the `export' function.
42708 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
42710 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
42711 explicitly to suppress gcc's warnings.
42712 * fs/fat.c (grub_fat_find_dir): Likewise.
42713 (grub_fat_label): Likewise.
42714 * fs/xfs.c (grub_xfs_read_inode): Likewise.
42715 (grub_xfs_mount): Likewise.
42716 (grub_xfs_label): Likewise.
42717 * fs/affs.c (grub_affs_mount): Likewise.
42718 (grub_affs_label): Likewise.
42719 (grub_affs_iterate_dir): Likewise.
42720 * fs/sfs.c (grub_sfs_mount): Likewise.
42721 (grub_sfs_iterate_dir): Likewise.
42722 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
42723 * fs/hfs.c (grub_hfs_mount): Likewise.
42724 (grub_hfs_cmp_catkeys): Likewise.
42725 (grub_hfs_find_dir): Likewise.
42726 (grub_hfs_dir): Likewise.
42727 (grub_hfs_label): Likewise.
42728 * fs/jfs.c (grub_jfs_mount): Likewise.
42729 (grub_jfs_opendir): Likewise.
42730 (grub_jfs_getent): Likewise.
42731 (grub_jfs_lookup_symlink): Likewise.
42732 (grub_jfs_label): Likewise.
42733 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
42734 (grub_hfsplus_iterate_dir): Likewise.
42735 (grub_hfsplus_btree_iterate_node): Made static.
42737 * util/grub-emu.c (prefix): New variable.
42738 (grub_machine_set_prefix): New function.
42739 (main): Do not set the environment variable "prefix" here. Only
42740 set PREFIX, which is used later by grub_machine_set_prefix.
42742 * include/grub/video.h: Do not include grub/symbol.h.
42743 (grub_video_register): Not exported. This symbol is not defined in
42745 (grub_video_unregister): Likewise.
42746 (grub_video_iterate): Likewise.
42747 (grub_video_setup): Likewise.
42748 (grub_video_restore): Likewise.
42749 (grub_video_get_info): Likewise.
42750 (grub_video_get_blit_format): Likewise.
42751 (grub_video_set_palette): Likewise.
42752 (grub_video_get_palette): Likewise.
42753 (grub_video_set_viewport): Likewise.
42754 (grub_video_get_viewport): Likewise.
42755 (grub_video_map_color): Likewise.
42756 (grub_video_map_rgb): Likewise.
42757 (grub_video_map_rgba): Likewise.
42758 (grub_video_fill_rect): Likewise.
42759 (grub_video_blit_glyph): Likewise.
42760 (grub_video_blit_bitmap): Likewise.
42761 (grub_video_blit_render_target): Likewise.
42762 (grub_video_scroll): Likewise.
42763 (grub_video_swap_buffers): Likewise.
42764 (grub_video_create_render_target): Likewise.
42765 (grub_video_delete_render_target): Likewise.
42766 (grub_video_set_active_render_target): Likewise.
42768 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
42770 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
42772 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
42773 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42774 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42775 instead of $(srcdir)/genkernsyms.sh.
42777 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
42778 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42779 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42780 instead of $(srcdir)/genkernsyms.sh.
42782 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
42783 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42784 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42785 instead of $(srcdir)/genkernsyms.sh.
42787 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
42788 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42789 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42790 instead of $(srcdir)/genkernsyms.sh.
42792 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
42795 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
42797 (gensymlist.sh): New target.
42798 (genkernsyms.sh): Likewise.
42800 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
42801 genkernsyms.sh.in and gensymlist.sh.in.
42803 * genkernsyms.sh: Removed.
42804 * gensymlist.sh: Likewise.
42806 * genkernsyms.sh.in: New file.
42807 * gensymlist.sh.in: Likewise.
42809 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
42811 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
42812 clobber "prefix", since we may have already set it manually.
42814 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
42816 * kern/misc.c (abort): New alias for grub_abort.
42818 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
42820 A new machine-specific function "grub_machine_set_prefix" is
42821 defined. This is called after loading modules, so that a prefix
42822 initialization can use modules. Also, this change adds an
42823 intensive debugging feature for the memory manager via the
42824 configure option "--enable-mm-debug".
42826 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
42829 * kern/sparc64/ieee1275/init.c (abort): Removed.
42830 (grub_stop): Likewise.
42831 (grub_exit): New function.
42832 (grub_set_prefix): Renamed to ...
42833 (grub_machine_set_prefix): ... this.
42834 (grub_machine_init): Do not call grub_set_prefix.
42836 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
42837 (grub_machine_set_prefix): ... this.
42838 (grub_machine_init): Do not call grub_set_prefix.
42840 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
42841 (grub_machine_init): Do not set the prefix here.
42843 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
42845 * kern/efi/init.c: Include grub/mm.h.
42846 (grub_efi_set_prefix): New function.
42848 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
42849 (grub_efi_get_filename): New function.
42850 (grub_print_device_path): Renamed to ...
42851 (grub_efi_print_device_path): ... this.
42853 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
42854 [MM_DEBUG] (grub_realloc): Likewise.
42855 [MM_DEBUG] (grub_free): Likewise.
42856 [MM_DEBUG] (grub_memalign): Likewise.
42857 [MM_DEBUG] (grub_mm_debug): New variable.
42858 [MM_DEBUG] (grub_debug_malloc): New function.
42859 [MM_DEBUG] (grub_debug_free): New function.
42860 [MM_DEBUG] (grub_debug_realloc): New function.
42861 [MM_DEBUG] (grub_debug_memalign): New function.
42863 * kern/misc.c (grub_abort): Print a newline to distinguish
42866 * kern/main.c (grub_main): Call grub_machine_set_prefix and
42867 grub_set_root_dev after loading modules. This is necessary when
42868 setting a prefix depends on modules.
42870 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
42871 (grub_efi_print_device_path): ... this.
42872 (grub_efi_get_filename): New prototype.
42873 (grub_efi_set_prefix): Likewise.
42875 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
42877 (grub_efidisk_get_device_handle): New prototype.
42878 (grub_efidisk_get_device_name): Likewise.
42880 * include/grub/mm.h: Include config.h.
42881 (MM_DEBUG): Removed.
42882 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
42883 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
42884 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
42885 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
42886 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
42887 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
42888 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
42889 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
42890 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
42892 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
42894 * disk/efi/efidisk.c: Include grub/partition.h.
42895 (iterate_child_devices): New function.
42896 (add_device): First, compare only last device path nodes, so that
42897 devices are sorted by the types.
42898 (grub_efidisk_get_device_handle): New function.
42899 (grub_efidisk_get_device_name): Likewise.
42901 * configure.ac (--enable-mm-debug): New option to enable the
42902 memory manager debugging feature. This makes the binary much
42903 bigger, so is disabled by default.
42905 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
42907 Use grub_abort instead of grub_stop, and grub_exit must be
42908 define in each architecture now. Also, this change adds support
42911 * util/i386/pc/grub-probefs.c: Include grub/term.h.
42912 (grub_getkey): New function.
42913 (grub_term_get_current): Likewise.
42915 * util/i386/pc/grub-setup.c: Include grub/term.h.
42916 (grub_getkey): New function.
42917 (grub_term_get_current): Likewise.
42919 * util/misc.c (grub_stop): Renamed to ...
42920 (grub_exit): ... this.
42922 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
42923 (grub_exit): ... this.
42924 (grub_machine_init): Use grub_abort instead of abort.
42925 (grub_stop): Removed.
42927 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
42930 * kern/i386/pc/startup.S (grub_exit): New function.
42931 (cold_reboot): New label.
42933 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
42934 (grub_efi_init): Call grub_efidisk_init.
42935 (grub_efi_fini): Call grub_efidisk_fini.
42937 * kern/efi/efi.c: Include grub/mm.h.
42938 (grub_efi_console_control_guid): Renamed to ...
42939 (console_control_guid): ... this.
42940 (grub_efi_loaded_image_guid): Renamed to ...
42941 (loaded_image_guid): ... this.
42942 (grub_efi_locate_handle): New function.
42943 (grub_efi_open_protocol): Likewise.
42944 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
42945 GRUB_EFI_CONSOLE_CONTROL_GUID.
42946 (grub_efi_exit): Removed.
42947 (grub_stop): Likewise.
42948 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
42949 (grub_exit): New function.
42950 (grub_print_device_path): Likewise.
42952 * kern/rescue.c (grub_rescue_cmd_exit): New function.
42953 (grub_enter_rescue_mode): Register "exit".
42955 * kern/misc.c (grub_real_dprintf): A cosmetic change.
42956 (grub_abort): New function.
42958 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
42960 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
42962 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
42964 * include/grub/efi/efi.h (grub_efi_exit): Removed.
42965 (grub_print_device_path): New prototype.
42966 (grub_efi_locate_handle): Likewise.
42967 (grub_efi_open_protocol): Likewise.
42969 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
42970 * disk/efi/efidisk.c: Likewise.
42972 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
42974 * include/grub/efi/console_control.h
42975 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
42977 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
42978 last 8 bytes as an array.
42979 (GRUB_EFI_DISK_IO_GUID): New macro.
42980 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
42981 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
42982 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
42984 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
42985 (struct grub_efi_device_path): Rename the member "sub_type" to
42987 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
42988 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
42989 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
42990 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
42991 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
42992 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
42993 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
42994 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
42995 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
42996 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
42997 (struct grub_efi_pci_device_path): New structure.
42998 (grub_efi_pci_device_path_t): New type.
42999 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
43000 (struct grub_efi_pccard_device_path): New structure.
43001 (grub_efi_pccard_device_path_t): New type.
43002 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
43003 (struct grub_efi_memory_mapped_device_path): New structure.
43004 (grub_efi_memory_mapped_device_path_t): New type.
43005 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
43006 (struct grub_efi_vendor_device_path): New structure.
43007 (grub_efi_vendor_device_path_t): New type.
43008 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
43009 (struct grub_efi_controller_device_path): New structure.
43010 (grub_efi_controller_device_path_t): New type.
43011 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
43012 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
43013 (struct grub_efi_acpi_device_path): New structure.
43014 (grub_efi_acpi_device_path_t): New type.
43015 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
43016 (struct grub_efi_expanded_acpi_device_path): New structure.
43017 (grub_efi_expanded_acpi_device_path_t): New type.
43018 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
43019 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
43020 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
43021 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
43022 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
43023 (struct grub_efi_atapi_device_path): New structure.
43024 (grub_efi_atapi_device_path_t): New type.
43025 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
43026 (struct grub_efi_fibre_channel_device_path): New structure.
43027 (grub_efi_fibre_channel_device_path_t): New type.
43028 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
43029 (struct grub_efi_1394_device_path): New structure.
43030 (grub_efi_1394_device_path_t): New type.
43031 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
43032 (struct grub_efi_usb_device_path): New structure.
43033 (grub_efi_usb_device_path_t): New type.
43034 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
43035 (struct grub_efi_usb_class_device_path): New structure.
43036 (grub_efi_usb_class_device_path_t): New type.
43037 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
43038 (struct grub_efi_i2o_device_path): New structure.
43039 (grub_efi_i2o_device_path_t): New type.
43040 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
43041 (struct grub_efi_mac_address_device_path): New structure.
43042 (grub_efi_mac_address_device_path_t): New type.
43043 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
43044 (struct grub_efi_ipv4_device_path): New structure.
43045 (grub_efi_ipv4_device_path_t): New type.
43046 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
43047 (struct grub_efi_ipv6_device_path): New structure.
43048 (grub_efi_ipv6_device_path_t): New type.
43049 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
43050 (struct grub_efi_infiniband_device_path): New structure.
43051 (grub_efi_infiniband_device_path_t): New type.
43052 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
43053 (struct grub_efi_uart_device_path): New structure.
43054 (grub_efi_uart_device_path_t): New type.
43055 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
43056 (struct grub_efi_vendor_messaging_device_path): New structure.
43057 (grub_efi_vendor_messaging_device_path_t): New type.
43058 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
43059 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
43060 (struct grub_efi_hard_drive_device_path): New structure.
43061 (grub_efi_hard_drive_device_path_t): New type.
43062 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
43063 (struct grub_efi_cdrom_device_path): New structure.
43064 (grub_efi_cdrom_device_path_t): New type.
43065 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
43066 (struct grub_efi_vendor_media_device_path): New structure.
43067 (grub_efi_vendor_media_device_path_t): New type.
43068 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
43069 (struct grub_efi_file_path_device_path): New structure.
43070 (grub_efi_file_path_device_path_t): New type.
43071 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
43072 (struct grub_efi_protocol_device_path): New structure.
43073 (grub_efi_protocol_device_path_t): New type.
43074 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
43075 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
43076 (struct grub_efi_bios_device_path): New structure.
43077 (grub_efi_bios_device_path_t): New type.
43078 (struct grub_efi_disk_io): New structure.
43079 (grub_efi_disk_io_t): New type.
43080 (struct grub_efi_block_io_media): New structure.
43081 (grub_efi_block_io_media_t): New type.
43082 (struct grub_efi_block_io): New structure.
43083 (grub_efi_block_io_t): New type.
43085 * include/grub/misc.h (grub_stop): Removed.
43086 (grub_exit): New prototype.
43087 (grub_abort): Likewise.
43089 * include/grub/disk.h (enum grub_disk_dev_id): Added
43090 GRUB_DISK_DEVICE_EFIDISK_ID.
43092 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
43093 disk/efi/efidisk.c.
43094 (kernel_syms.lst): Remove the target if an error occurs.
43096 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
43098 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
43099 as it was simply too buggy.
43101 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
43103 * kern/misc.c (grub_lltoa): New function.
43104 (grub_vsprintf): Added support for the long long suffix,
43107 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
43109 * Makefile.in (LDFLAGS): Add variable.
43110 (LD): Remove variable.
43111 * configure.ac: Add -m32 to LDFLAGS.
43112 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
43113 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
43114 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
43115 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
43116 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
43118 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
43119 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
43120 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
43122 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
43124 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
43125 length for unknown glyph.
43127 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
43129 Add support for pre-loaded modules into the EFI port.
43131 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
43132 completely. Accept one more argument DIR. The caller has changed.
43134 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
43136 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
43137 (grub_efi_loaded_image_guid): New variable.
43138 (grub_efi_get_loaded_image): New function.
43139 (grub_arch_modules_addr): Likewise.
43141 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
43144 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
43145 (struct grub_efi_loaded_image): New structure.
43146 (grub_efi_loaded_image_t): New type.
43148 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
43150 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
43151 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
43152 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
43154 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
43156 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
43158 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
43160 * DISTLIST: Added include/grub/efi/console.h,
43161 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
43162 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
43164 * include/grub/efi/console.h: New file.
43165 * include/grub/efi/time.h: Likewise.
43166 * include/grub/i386/efi/kernel.h: Likewise.
43167 * kern/efi/init.c: Likewise.
43168 * kern/efi/mm.c: Likewise.
43169 * term/efi/console.c: Likewise.
43171 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
43172 (grub_stop): Removed.
43173 (grub_get_rtc): Likewise.
43174 (grub_machine_init): Simply call grub_efi_init.
43175 (grub_machine_fini): Call grub_efi_fini.
43177 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
43178 (grub_efi_output_string): Removed.
43179 (grub_efi_stall): New function.
43180 (grub_stop): Likewise.
43181 (grub_get_rtc): Likewise.
43183 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
43184 (grub_efi_stall): New prototype.
43185 (grub_efi_allocate_pages): Likewise.
43186 (grub_efi_free_pages): Likewise.
43187 (grub_efi_get_memory_map): Likewise.
43188 (grub_efi_mm_init): Likewise.
43189 (grub_efi_mm_fini): Likewise.
43190 (grub_efi_init): Likewise.
43191 (grub_efi_fini): Likewise.
43193 * include/grub/i386/efi/time.h: Do not include
43194 grub/symbol.h. Include grub/efi/time.h.
43195 (GRUB_TICKS_PER_SECOND): Removed.
43196 (grub_get_rtc): Likewise.
43198 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
43199 Added padding. The EFI spec is buggy.
43200 (GRUB_EFI_BLACK): New macro.
43201 (GRUB_EFI_BLUE): Likewise.
43202 (GRUB_EFI_GREEN): Likewise.
43203 (GRUB_EFI_CYAN): Likewise.
43204 (GRUB_EFI_RED): Likewise.
43205 (GRUB_EFI_MAGENTA): Likewise.
43206 (GRUB_EFI_BROWN): Likewise.
43207 (GRUB_EFI_LIGHTGRAY): Likewise.
43208 (GRUB_EFI_BRIGHT): Likewise.
43209 (GRUB_EFI_DARKGRAY): Likewise.
43210 (GRUB_EFI_LIGHTBLUE): Likewise.
43211 (GRUB_EFI_LIGHTGREEN): Likewise.
43212 (GRUB_EFI_LIGHTCYAN): Likewise.
43213 (GRUB_EFI_LIGHTRED): Likewise.
43214 (GRUB_EFI_LIGHTMAGENTA): Likewise.
43215 (GRUB_EFI_YELLOW): Likewise.
43216 (GRUB_EFI_WHITE): Likewise.
43217 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
43218 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
43219 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
43220 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
43221 (GRUB_EFI_BACKGROUND_RED): Likewise.
43222 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
43223 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
43224 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
43225 (GRUB_EFI_TEXT_ATTR): Likewise.
43227 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
43228 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
43229 (kernel_mod_HEADERS): Added efi/time.h.
43231 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
43233 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
43234 include/grub/efi/api.h, include/grub/efi/console_control.h,
43235 include/grub/efi/efi.h, include/grub/efi/pe32.h,
43236 include/grub/i386/efi/time.h, kern/efi/efi.c,
43237 kern/i386/efi/init.c, kern/i386/efi/startup.S,
43238 and util/i386/efi/grub-mkimage.c.
43240 * Makefile.in (RMKFILES): Added i386-efi.rmk.
43242 * genmk.rb (PModule#rule): Do not export symbols if
43243 #{prefix}_EXPORTS is set to "no".
43245 * conf/i386-efi.mk: New file.
43246 * conf/i386-efi.rmk: Likewise.
43247 * include/grub/efi/api.h: Likewise.
43248 * include/grub/efi/console_control.h: Likewise.
43249 * include/grub/efi/efi.h: Likewise.
43250 * include/grub/efi/pe32.h: Likewise.
43251 * include/grub/i386/efi/time.h: Likewise.
43252 * kern/efi/efi.c: Likewise.
43253 * kern/i386/efi/init.c: Likewise.
43254 * kern/i386/efi/startup.S: Likewise.
43255 * util/i386/efi/grub-mkimage.c: Likewise.
43257 2006-04-17 Marco Gerards <marco@gnu.org>
43259 * include/grub/script.h: Include <grub/parser.h> and
43260 "grub_script.tab.h".
43261 (struct grub_lexer_param): New struct.
43262 (struct grub_parser_param): Likewise.
43263 (grub_script_create_arglist): Pass the state in an argument.
43264 (grub_script_add_arglist): Likewise.
43265 (grub_script_create_cmdline): Likewise.
43266 (grub_script_create_cmdblock): Likewise.
43267 (grub_script_create_cmdif): Likewise.
43268 (grub_script_create_cmdmenu): Likewise.
43269 (grub_script_add_cmd): Likewise.
43270 (grub_script_arg_add): Likewise.
43271 (grub_script_lexer_ref): Likewise.
43272 (grub_script_lexer_deref): Likewise.
43273 (grub_script_lexer_record_start): Likewise.
43274 (grub_script_lexer_record_stop): Likewise.
43275 (grub_script_mem_record): Likewise.
43276 (grub_script_mem_record_stop): Likewise.
43277 (grub_script_malloc): Likewise.
43278 (grub_script_yylex): Likewise.
43279 (grub_script_yyparse): Likewise.
43280 (grub_script_yyerror): Likewise.
43281 (grub_script_yylex): Likewise.
43282 (grub_script_lexer_init): Return the state.
43284 * normal/lexer.c (grub_script_lexer_state): Removed variable.
43285 (grub_script_lexer_done): Likewise.
43286 (grub_script_lexer_getline): Likewise.
43287 (grub_script_lexer_refs): Likewise.
43288 (script): Likewise.
43289 (newscript): Likewise.
43290 (record): Likewise.
43291 (recording): Likewise.
43292 (recordpos): Likewise.
43293 (recordlen): Likewise.
43294 (grub_script_lexer_init): Return the state instead of setting
43296 (grub_script_lexer_ref): Use the newly added argument for state
43297 instead of globals.
43298 (grub_script_lexer_deref): Likewise.
43299 (grub_script_lexer_record_start): Likewise.
43300 (grub_script_lexer_record_stop): Likewise.
43301 (recordchar): Likewise.
43302 (nextchar): Likewise.
43303 (grub_script_yylex2): Likewise.
43304 (grub_script_yylex): Likewise.
43305 (grub_script_yyerror): Likewise.
43307 * normal/parser.y (func_mem): Removed variable.
43308 (menu_entry): Likewise.
43310 (%lex-param): New parser option.
43311 (%parse-param): Likewise.
43312 (script): Always return the AST.
43313 (argument): Pass the state around.
43314 (arguments): Likewise.
43315 (grubcmd): Likewise.
43316 (commands): Likewise.
43317 (function): Likewise.
43318 (menuentry): Likewise.
43319 (if_statement): Likewise.
43322 * normal/script.c (grub_script_memused): Removed variable.
43323 (grub_script_parsed): Likewise.
43324 (grub_script_malloc): Added a state argument. Use that instead of
43326 (grub_script_mem_record): Likewise.
43327 (grub_script_mem_record_stop): Likewise.
43328 (grub_script_arg_add): Likewise.
43329 (grub_script_add_arglist): Likewise.
43330 (grub_script_create_cmdline): Likewise.
43331 (grub_script_create_cmdif): Likewise.
43332 (grub_script_create_cmdmenu): Likewise.
43333 (grub_script_add_cmd): Likewise.
43334 (grub_script_parse): Setup the state before calling the parser.
43336 2006-04-16 Marco Gerards <marco@gnu.org>
43338 * normal/command.c (grub_command_init): Remove the title command.
43340 * normal/lexer.c (grub_script_yylex): Renamed from this...
43341 (grub_script_yylex2): ... to this.
43342 (grub_script_yylex): New function. Temporary
43343 introduced to filter some tokens.
43344 (grub_script_yyerror): Print a newline.
43346 * normal/main.c (read_config_file): Output information about the
43347 lines that contain errors. Wait for a key after all lines have
43348 been processed. Don't return an empty menu.
43350 * normal/parser.y (func_mem): Don't initialize.
43351 (menu_entry): Likewise.
43352 (err): New variable.
43353 (script): Don't return anything when an error was encountered.
43354 (ws, returns): Removed rules.
43355 (argument): Disabled concatenated variable support.
43356 (arguments): Remove explicit separators.
43357 (grubcmd): Likewise.
43358 (function): Likewise.
43359 (menuentry): Likewise.
43361 (commands): Likewise. Add error handling.
43363 * normal/script.c (grub_script_create_cmdline): If
43364 `grub_script_parsed' is 0, assume the parser encountered an error.
43366 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
43368 * configure.ac: Add support for EFI. Fix the typo
43369 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
43371 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
43373 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
43374 foreign multibyte characters should be shown correctly.
43376 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
43378 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
43380 (read_config_file): Made it to close file before returning.
43382 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
43384 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
43385 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
43386 video/i386/pc/vbefill.c.
43388 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
43389 video/i386/pc/vbefill.c.
43391 * include/grub/video.h (grub_video_blit_format): New enum.
43392 (grub_video_mode_info): Added new member blit_format.
43393 (grub_video_get_blit_format): New function prototype.
43395 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
43396 function prototype.
43397 (grub_video_vbe_map_rgb): Likewise.
43398 (grub_video_vbe_unmap_color): Likewise.
43400 * include/grub/i386/pc/vbeblit.h: New file.
43402 * include/grub/i386/pc/vbefill.h: New file.
43404 * video/video.c (grub_video_get_blit_format): New function.
43405 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
43406 (grub_video_vbe_map_rgb): Likewise.
43407 (grub_video_vbe_unmap_color): Likewise.
43409 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
43411 (grub_video_vbe_blit_render_target): Changed to use more optimized
43413 (grub_video_vbe_setup): Added detection for optimized settings.
43414 (grub_video_vbe_create_render_target): Likewise.
43416 * video/i386/pc/vbeblit.c: New file.
43418 * video/i386/pc/vbefill.c: New file.
43420 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
43422 * font/manager.c (grub_font_get_glyph): Removed font fixup from
43425 * util/unifont2pff.rb: ... and moved it to here. Improved argument
43426 parsing to support both hex and dec ranges. If filename was missing
43427 show usage information.
43429 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
43431 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
43432 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
43434 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
43435 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
43436 (video_mod_SOURCES): Added.
43437 (video_mod_CFLAGS): Likewise.
43438 (video_mod_LDFLAGS): Likewise.
43439 (gfxterm_mod_SOURCES): Likewise.
43440 (gfxterm_mod_CFLAGS): Likewise.
43441 (gfxterm_mod_LDFLAGS): Likewise.
43442 (videotest_mod_SOURCES): Likewise.
43443 (videotest_mod_CFLAGS): Likewise.
43444 (videotest_mod_LDFLAGS): Likewise.
43445 (vesafb_mod_SOURCES): Removed.
43446 (vesafb_mod_CFLAGS): Likewise.
43447 (vesafb_mod_LDFLAGS): Likewise.
43448 (vga_mod_SOURCES): Likewise.
43449 (vga_mod_CFLAGS): Likewise.
43450 (vga_mod_LDFLAGS): Likewise.
43452 * commands/videotest.c: New file.
43454 * font/manager.c (fill_with_default_glyph): Modified to use
43456 (grub_font_get_glyph): Likewise.
43457 (fontmanager): Renamed from this...
43458 (font_manager): ... to this.
43460 * include/grub/font.h (grub_font_glyph): Added new structure.
43461 (grub_font_get_glyph): Modified to use grub_font_glyph.
43463 * include/grub/misc.h (grub_abs): Added as inline function.
43465 * include/grub/video.h: New file.
43467 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
43468 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
43469 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
43470 (grub_vbe_get_controller_info): Renamed from this...
43471 (grub_vbe_bios_get_controller_info): ... to this.
43472 (grub_vbe_get_mode_info): Renamed from this...
43473 (grub_vbe_bios_get_mode_info): ... to this.
43474 (grub_vbe_set_mode): Renamed from this...
43475 (grub_vbe_bios_set_mode): ... to this.
43476 (grub_vbe_get_mode): Renamed from this...
43477 (grub_vbe_bios_get_mode): ... to this.
43478 (grub_vbe_set_memory_window): Renamed from this...
43479 (grub_vbe_bios_set_memory_window): ... to this.
43480 (grub_vbe_get_memory_window): Renamed from this...
43481 (grub_vbe_bios_get_memory_window): ... to this.
43482 (grub_vbe_set_scanline_length): Renamed from this...
43483 (grub_vbe_set_scanline_length): ... to this.
43484 (grub_vbe_get_scanline_length): Renamed from this...
43485 (grub_vbe_bios_get_scanline_length): ... to this.
43486 (grub_vbe_set_display_start): Renamed from this...
43487 (grub_vbe_bios_set_display_start): ... to this.
43488 (grub_vbe_get_display_start): Renamed from this...
43489 (grub_vbe_bios_get_display_start): ... to this.
43490 (grub_vbe_set_palette_data): Renamed from this...
43491 (grub_vbe_bios_set_palette_data): ... to this.
43492 (grub_vbe_set_pixel_rgb): Removed.
43493 (grub_vbe_set_pixel_index): Likewise.
43495 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
43497 (grub_vbe_bios_get_controller_info): ... to this.
43498 (grub_vbe_get_mode_info): Renamed from this...
43499 (grub_vbe_bios_get_mode_info): ... to this.
43500 (grub_vbe_set_mode): Renamed from this...
43501 (grub_vbe_bios_set_mode): ... to this.
43502 (grub_vbe_get_mode): Renamed from this...
43503 (grub_vbe_bios_get_mode): ... to this.
43504 (grub_vbe_set_memory_window): Renamed from this...
43505 (grub_vbe_bios_set_memory_window): ... to this.
43506 (grub_vbe_get_memory_window): Renamed from this...
43507 (grub_vbe_bios_get_memory_window): ... to this.
43508 (grub_vbe_set_scanline_length): Renamed from this...
43509 (grub_vbe_set_scanline_length): ... to this.
43510 (grub_vbe_get_scanline_length): Renamed from this...
43511 (grub_vbe_bios_get_scanline_length): ... to this.
43512 (grub_vbe_set_display_start): Renamed from this...
43513 (grub_vbe_bios_set_display_start): ... to this.
43514 (grub_vbe_get_display_start): Renamed from this...
43515 (grub_vbe_bios_get_display_start): ... to this.
43516 (grub_vbe_set_palette_data): Renamed from this...
43517 (grub_vbe_bios_set_palette_data): ... to this.
43518 (grub_vbe_bios_get_controller_info): Fixed problem with registers
43519 getting corrupted after calling it. Added more pushes and pops.
43520 (grub_vbe_bios_set_mode): Likewise.
43521 (grub_vbe_bios_get_mode): Likewise.
43522 (grub_vbe_bios_get_memory_window): Likewise.
43523 (grub_vbe_bios_set_scanline_length): Likewise.
43524 (grub_vbe_bios_get_scanline_length): Likewise.
43525 (grub_vbe_bios_get_display_start): Likewise.
43526 (grub_vbe_bios_set_palette_data): Likewise.
43528 * normal/cmdline.c (cl_set_pos): Refresh the screen.
43529 (cl_insert): Likewise.
43530 (cl_delete): Likewise.
43532 * term/gfxterm.c: New file.
43534 * term/i386/pc/vesafb.c: Removed file.
43536 * video/video.c: New file.
43538 * video/i386/pc/vbe.c (real2pm): Added new function.
43539 (grub_video_vbe_draw_pixel): Likewise.
43540 (grub_video_vbe_get_video_ptr): Likewise.
43541 (grub_video_vbe_get_pixel): Likewise
43542 (grub_video_vbe_init): Likewise.
43543 (grub_video_vbe_fini): Likewise.
43544 (grub_video_vbe_setup): Likewise.
43545 (grub_video_vbe_get_info): Likewise.
43546 (grub_video_vbe_set_palette): Likewise.
43547 (grub_video_vbe_get_palette): Likewise.
43548 (grub_video_vbe_set_viewport): Likewise.
43549 (grub_video_vbe_get_viewport): Likewise.
43550 (grub_video_vbe_map_color): Likewise.
43551 (grub_video_vbe_map_rgb): Likewise.
43552 (grub_video_vbe_map_rgba): Likewise.
43553 (grub_video_vbe_unmap_color): Likewise.
43554 (grub_video_vbe_fill_rect): Likewise.
43555 (grub_video_vbe_blit_glyph): Likewise.
43556 (grub_video_vbe_blit_bitmap): Likewise.
43557 (grub_video_vbe_blit_render_target): Likewise.
43558 (grub_video_vbe_scroll): Likewise.
43559 (grub_video_vbe_swap_buffers): Likewise.
43560 (grub_video_vbe_create_render_target): Likewise.
43561 (grub_video_vbe_delete_render_target): Likewise.
43562 (grub_video_vbe_set_active_render_target): Likewise.
43563 (grub_vbe_set_pixel_rgb): Remove function.
43564 (grub_vbe_set_pixel_index): Likewise.
43565 (index_color_mode): Remove static variable.
43566 (active_mode): Likewise.
43567 (framebuffer): Likewise.
43568 (bytes_per_scan_line): Likewise.
43569 (grub_video_vbe_adapter): Added new static variable.
43570 (framebuffer): Likewise.
43571 (render_target): Likewise.
43572 (initial_mode): Likewise.
43573 (mode_in_use): Likewise.
43574 (mode_list): Likewise.
43576 2006-03-10 Marco Gerards <marco@gnu.org>
43578 * configure.ac (AC_INIT): Bumped to 1.93.
43580 * DISTLIST: Added `include/grub/hfs.h'.
43582 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
43584 * boot/i386/pc/boot.S (general_error): Before looping, try INT
43585 18H, which might help the BIOS falling back to next boot media.
43587 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
43589 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
43590 Poe Chen <poe.poechen@gmail.com>.
43592 2006-01-17 Marco Gerards <marco@gnu.org>
43594 * include/grub/normal.h: Include <grub/script.h>.
43595 (grub_command_list): Removed struct.
43596 (grub_command_list_t): Removed type.
43597 (grub_menu_entry): Remove members `num' and `command_list'. Add
43598 members `commands' and `sourcecode'.
43599 * include/grub/script.h: Add inclusion guards.
43600 (grub_script_cmd_menuentry): New struct.
43601 (grub_script_execute_menuentry): New prototype.
43602 (grub_script_lexer_record_start): Likewise.
43603 (grub_script_lexer_record_stop): Likewise.
43604 * normal/execute.c (grub_script_execute_menuentry): New function.
43605 * normal/lexer.c (record, recording, recordpos, recordlen): New
43607 (grub_script_lexer_record_start): New function.
43608 (grub_script_lexer_record_stop): Likewise.
43609 (recordchar): Likewise.
43610 (nextchar): Likewise.
43611 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
43612 2048 as the buffer size. Add the tokens `menuentry' and `@'.
43613 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
43614 (current_menu): New variable.
43615 (free_menu): Mainly rewritten.
43616 (grub_normal_menu_addentry): New function.
43617 (read_config_file): Rewritten.
43618 * normal/menu.c (run_menu_entry): Mainly rewritten.
43619 * normal/menu_entry.c (make_screen): Rewritten the code to insert
43621 (run): Mainly rewritten.
43622 * normal/parser.y (menu_entry): New variable.
43623 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
43624 (menuentry): New rule.
43625 (command): Add `menuentry'.
43626 (if_statement): Allow additional returns before `fi'.
43627 * normal/script.c (grub_script_create_cmdmenu): New function.
43629 2006-01-03 Marco Gerards <marco@gnu.org>
43631 * INSTALL: GNU Bison is required.
43632 * configure.ac: Rewritten the test to detect Bison.
43633 * Makefile.in (YACC): New variable. Reported by Xun Sun
43634 <xun.sun.cn@gmail.com>.
43636 2006-01-03 Marco Gerards <marco@gnu.org>
43638 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
43639 the HFS+ filesystem to filesystem blocks.
43640 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
43641 GCC warning is silenced.
43643 2006-01-03 Marco Gerards <marco@gnu.org>
43645 * partmap/apple.c (apple_partition_map_iterate): Convert the data
43646 read from disk from big endian to host byte order.
43648 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
43650 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
43652 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
43653 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
43654 embedded HFS+ filesystem.
43655 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
43656 (grub_hfs_sblock): Move from here...
43657 * include/grub/hfs.h: To here... New file.
43658 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
43660 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
43662 (grub_hfsplus_volheader): Change type of member `magic' to
43664 (grub_hfsplus_data): Add new member `embedded_offset'.
43665 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
43667 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
43668 Calculate the offset.
43670 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43672 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
43674 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
43676 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43678 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
43679 ENV->NAME is NULL after allocating ENV->VALUE.
43681 2005-12-25 Marco Gerards <marco@gnu.org>
43683 * kern/env.c (grub_env_set): Rewritten the error handling code.
43685 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43687 * geninit.sh: Made more robust, and more portable.
43689 2005-12-25 Marco Gerards <marco@gnu.org>
43691 Add support for Apple HFS+ filesystems.
43693 * fs/hfsplus.c: New file.
43695 * DISTLIST: Added `fs/hfsplus.c'.
43697 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
43698 (hfsplus_mod_SOURCES): New variable.
43699 (hfsplus_mod_CFLAGS): Likewise.
43700 (hfsplus_mod_LDFLAGS): Likewise.
43701 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
43702 (grub_setup_SOURCES): Likewise.
43703 (grub_mkdevicemap_SOURCES): Likewise.
43704 (grub_emu_SOURCES): Likewise.
43705 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43707 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
43709 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
43711 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43713 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
43714 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
43715 include/grub/parser.h, include/grub/script.h, kern/parser.c,
43716 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
43717 normal/lexer.c, normal/parser.y, normal/script.c, and
43719 Removed kern/sparc64/cache.c.
43721 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
43722 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
43725 * configure.ac (AC_INIT): Bumped to 1.92.
43727 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
43729 * kern/err.c (grub_error_push): Added new function to support error
43731 (grub_error_pop): Likewise.
43732 (grub_error_stack_items): New local variable to support error stacks.
43733 (grub_error_stack_pos): Likewise.
43734 (grub_error_stack_assert): Likewise.
43735 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
43737 (grub_print_error): Added support to print errors from error stack.
43739 * include/grub/err.h (grub_error_push): Added function prototype.
43740 (grub_error_pop): Likewise.
43742 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
43744 * configure.ac: Accept `powerpc64' as host_cpu.
43745 (amd64): Rename to `biarch32'.
43747 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
43748 non-cacheline-aligned addresses.
43750 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
43751 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
43752 if `size' is non-zero.
43754 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
43756 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
43757 and `cd' to make sure the filename is not prefixed with a
43759 (pkgdata_MODULES): Add `gpt.mod'.
43760 (gpt_mod_SOURCES): New variable.
43761 (gpt_mod_CFLAGS): Likewise.
43762 (gpt_mod_LDFLAGS): Likewise.
43764 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
43766 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
43769 * partmap/gpt.c: New file.
43771 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
43772 GPT partition map is detected.
43774 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
43776 * commands/i386/pc/play.c: New file.
43777 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
43778 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
43781 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
43783 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
43784 ((unused))' to silence gcc warning.
43786 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
43788 * configure.ac: Correct `AC_PROG_YACC' test.
43790 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43792 * util/powerpc/ieee1275/grub-install.in: Run the mount point
43793 check before installing files.
43795 2005-11-22 Mike Small <smallm@panix.com>
43797 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
43798 number regex so multidigit numbers are recognized correctly.
43800 2005-11-22 Mike Small <smallm@panix.com>
43802 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
43803 debugging message before attempting to claim memory.
43804 (grub_rescue_cmd_initrd): Add a claim debugging message and try
43805 multiple addresses in case of failure.
43807 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43809 * term/tparm.c (get_space): Remove empty `if' statement.
43811 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
43813 * kern/parser.c (check_varstate): Rename `state' to 's'.
43815 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43817 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
43818 variable definitions to the beginning of each function. Sort stack
43820 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
43821 `buf' argument to `char *'.
43823 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43825 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
43826 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
43827 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
43828 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
43829 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
43830 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
43831 configfile.mod, search.mod, gzio.mod and test.mod.
43832 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
43833 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
43834 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
43835 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
43836 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
43837 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
43838 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
43839 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
43840 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
43841 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
43842 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
43843 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
43844 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
43845 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
43846 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
43847 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
43848 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
43849 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
43850 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
43851 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
43852 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
43853 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
43854 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
43856 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
43858 (pkgdata_MODULES): Add test.mod.
43860 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43862 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
43863 appending to variables with "+=".
43864 (PModule): Use full pathname to generate *.lst filenames.
43866 * Makefile.in: Fixed list rules moved from genmk.rb.
43867 (.DELETE_ON_ERROR): New special target.
43868 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
43870 * conf/i386-pc.rmk: Include conf/common.mk.
43871 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
43872 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
43873 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
43874 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
43875 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
43876 configfile.mod, search.mod, gzio.mod and test.mod.
43877 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
43878 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
43879 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
43880 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
43881 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
43882 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
43883 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
43884 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
43885 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
43886 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
43887 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
43888 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
43889 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
43890 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
43891 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
43892 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
43893 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
43894 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
43895 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
43896 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
43897 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
43898 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
43899 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
43901 * conf/common.rmk: ... to here. New file.
43903 * conf/common.mk: New file.
43905 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
43907 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
43908 (grub_script.tab.c): ... here.
43910 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
43911 (grub_script.tab.c): ... here.
43913 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
43914 (grub_script.tab.c): ... here.
43916 * normal/command.c (grub_command_find): Fixed a memory leak of
43917 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
43919 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43921 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
43922 "@" which marks the start of a comment on ARM.
43923 (VARIABLE): Likewise.
43925 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43927 Add support for Linux/ADFS partition tables.
43929 * partmap/acorn.c: New file.
43931 * include/grub/acorn_filecore.h: Likewise.
43933 * DISTLIST: Added `partmap/acorn.c' and
43934 `include/grub/acorn_filecore.h'.
43936 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
43938 (pkgdata_MODULES): Add `acorn.mod'.
43939 (acorn_mod_SOURCES): New variable.
43940 (acorn_mod_CFLAGS): Likewise.
43942 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
43944 (pkgdata_MODULES): Add `acorn.mod'.
43945 (acorn_mod_SOURCES): New variable.
43946 (acorn_mod_CFLAGS): Likewise.
43948 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
43949 (pkgdata_MODULES): Add `acorn.mod'.
43950 (acorn_mod_SOURCES): New variable.
43951 (acorn_mod_CFLAGS): Likewise.
43952 (acorn_mod_LDFLAGS): Likewise.
43954 * include/types.h (grub_disk_addr_t): New typedef.
43956 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
43958 * geninit.sh: New file.
43960 * geninitheader.sh: Likewise.
43962 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
43963 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
43964 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
43965 * commands/configfile.c (grub_configfile_init)
43966 (grub_configfile_fini): Likewise.
43967 * commands/default.c (grub_default_init, grub_default_fini):
43969 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
43970 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
43971 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
43972 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
43974 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
43975 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
43977 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
43978 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
43980 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
43982 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
43984 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
43985 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
43986 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
43987 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
43988 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
43989 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
43990 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
43991 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
43992 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
43993 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
43994 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
43995 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
43996 * partmap/amiga.c (grub_amiga_partition_map_init)
43997 (grub_amiga_partition_map_fini): Likewise.
43998 * partmap/apple.c (grub_apple_partition_map_init)
43999 (grub_apple_partition_map_fini): Likewise.
44000 * partmap/pc.c (grub_pc_partition_map_init)
44001 (grub_pc_partition_map_fini): Likewise.
44002 * partmap/sun.c (grub_sun_partition_map_init,
44003 grub_sun_partition_map_fini): Likewise.
44004 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
44007 * util/grub-emu.c: Include <grub_modules_init.h>.
44008 (main): Don't initialize and de-initialize any modules directly,
44009 use `grub_init_all' and `grub_fini_all' instead.
44011 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
44012 `grub_vesafb_mod_init'.
44013 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
44015 * term/i386/pc/vga.c (grub_vga_init): Renamed to
44016 `grub_vga_mod_init'. Updated all users.
44017 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
44019 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
44020 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
44023 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
44024 Generate a function to initialize the module in utilities.
44025 Updated all callers.
44026 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
44027 initialize the module in utilities. Updated all callers.
44029 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
44031 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
44032 escape sequence and a literal ^L to clear the screen.
44034 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
44035 when returning from Open Firmware.
44037 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
44039 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
44040 (grub_ofconsole_height): Likewise.
44041 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
44042 manually insert a '\n'.
44043 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
44044 `grub_ofconsole_height'. Return early if these are already set.
44046 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
44048 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
44049 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
44050 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
44051 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
44052 and `normal/script.c'.
44053 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44054 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44055 (test_mod_SOURCES): New variable.
44056 (test_mod_CFLAGS): Likewise.
44057 (test_mod_LDFLAGS): Likewise.
44058 (pkgdata_MODULES): Add `test.mod'.
44059 (grub_script.tab.c): New rule.
44060 (grub_script.tab.h): Likewise.
44062 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
44064 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
44065 `commands/test.c', `normal/execute.c', `normal/lexer.c',
44066 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44067 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44068 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44069 (test_mod_SOURCES): New variable.
44070 (test_mod_CFLAGS): Likewise.
44071 (pkgdata_MODULES): Add `test.mod'.
44072 (grub_script.tab.c): New rule.
44073 (grub_script.tab.h): Likewise.
44075 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
44077 Add initial scripting support.
44079 * commands/test.c: New file.
44080 * include/grub/script.h: Likewise.
44081 * normal/execute.c: Likewise.
44082 * normal/function.c: Likewise.
44083 * normal/lexer.c: Likewise.
44084 * normal/parser.y: Likewise.
44085 * normal/script.c: Likewise.
44087 * configure.ac: Add `AC_PROG_YACC' test.
44089 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
44090 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
44091 `normal/function.c' and `normal/script.c'.
44092 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44093 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44094 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
44096 (pkgdata_MODULES): Add `test.mod'.
44097 (grub_script.tab.c): New rule.
44098 (grub_script.tab.h): Likewise.
44100 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
44102 * include/grub/normal.h (grub_test_init): New prototype.
44103 (grub_test_fini): Likewise.
44105 * normal/command.c: Include <grub/script.h>.
44106 (grub_command_execute): Rewritten.
44108 * util/grub-emu.c (main): Call `grub_test_init' and
44111 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44113 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
44115 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
44116 there are no pending characters.
44118 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44120 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
44121 `grub_strndup' to drop device arguments. Replace unnecessary
44122 `grub_strndup' with `grub_strdup'.
44124 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44126 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
44127 `debug' environment variable has been set.
44129 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
44131 * Makefile.in (install-local): Use $(DATA).
44132 (uninstall): Likewise.
44133 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
44134 (sbin_UTILITIES): ... to here.
44135 (sbin_SCRIPTS): New variable.
44136 (grub_install_SOURCES): New variable.
44137 * util/powerpc/ieee1275/grub-install.in: New file.
44138 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
44140 (add_segments): Call `grub_util_get_path'.
44142 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
44144 From Timothy Baldwin:
44145 * commands/ls.c (grub_ls_list_files): Close FILE with
44147 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
44149 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
44151 * include/grub/parser.h: New file.
44153 * kern/parser.c: Likewise.
44155 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
44156 (grub_setup_SOURCES): Likewise.
44157 (grub_probefs_SOURCES): Likewise.
44158 (grub_emu_SOURCES): Likewise.
44159 (kernel_img_HEADERS): Add `parser.h'.
44161 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
44162 (grub_emu_SOURCES): Add `kern/parser.c'.
44163 (grubof_SOURCES): Likewise.
44165 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
44166 (grubof_SOURCES): Add `kern/parser.c'.
44168 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
44170 * kern/misc.c (grub_split_cmdline): Removed function.
44172 * kern/rescue.c: Include <grub/parser.h>.
44173 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
44174 of `grub_split_cmdline'.
44176 * normal/command.c: Include <grub/parser.h>.
44177 (grub_command_execute): Use `grub_parser_split_cmdline' instead
44178 of `grub_split_cmdline'.
44180 * normal/completion.c: Include <grub/parser.h>.
44181 (cmdline_state): New variable.
44182 (iterate_dir): End the filename with a quote depending on the
44183 command line state.
44184 (get_state): new function.
44185 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
44186 split the arguments and determine the current argument. When the
44187 argument string is not quoted, escape all spaces.
44189 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44191 * normal/sparc64/setjmp.S: New file.
44193 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44195 * include/grub/sparc64/libgcc.h: New file.
44196 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
44197 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
44198 normal/sparc64/setjmp.c.
44200 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44202 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
44203 * kern/sparc64/cache.S: New file.
44204 * kern/sparc64/cache.c: Removed.
44205 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
44206 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
44208 (COMMON_LDFLAGS): Add -melf64_sparc.
44209 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
44210 (grubof_SOURCES): Use cache.S instead of cache.c.
44211 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
44212 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
44213 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
44215 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
44216 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
44217 (linux_mod_CFLAGS): Commented out.
44218 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
44219 out because module isn't built.
44220 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
44221 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
44222 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
44223 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
44224 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
44225 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
44226 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
44227 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
44228 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
44229 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
44230 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44231 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44232 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
44233 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
44235 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
44237 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
44238 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
44239 longer, because HFS should not be used on PC.
44241 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44243 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
44244 consistently within the loop.
44246 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
44248 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
44249 directory can not be read.
44251 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44253 * configure.ac (AC_INIT): Increase the version number to 1.91.
44255 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
44256 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
44257 term/i386/pc/serial.c.
44259 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44261 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
44262 file size must be permitted.
44264 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
44265 between %ah and %al.
44267 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44269 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
44271 Call the hook with a NUL-terminated filename.
44272 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
44275 * kern/term.c (cursor_state): New variable.
44276 (grub_term_set_current): Reset the cursor state on a new
44278 (grub_setcursor): Rewritten to use CURSOR_STATE.
44279 (grub_getcursor): New function.
44281 * include/grub/term.h (grub_getcursor): New prototype.
44283 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
44284 integers on ARM. Reported by Timothy Baldwin
44285 <T.E.Baldwin99@members.leeds.ac.uk>.
44287 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
44289 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
44291 (grub_sfs_dir): Likewise.
44293 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
44295 Add support for the SFS filesystem.
44297 * fs/sfs.c: New file.
44299 * DISTLIST: Added `fs/sfs.c'.
44301 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
44302 (grub_probefs_SOURCES): Likewise.
44303 (grub_emu_SOURCES): Likewise.
44304 (pkgdata_MODULES): Add `sfs.mod'.
44305 (sfs_mod_SOURCES): New variable.
44306 (sfs_mod_CFLAGS): Likewise.
44307 (sfs_mod_LDFLAGS): Likewise.
44309 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
44310 (pkgdata_MODULES): Add `sfs.mod'.
44311 (sfs_mod_SOURCES): New variable.
44312 (sfs_mod_CFLAGS): Likewise.
44314 * util/grub-emu.c (main): Call `grub_sfs_init' and
44317 * include/grub/fs.h (grub_sfs_init): New prototype.
44318 (grub_sfs_fini): Likewise.
44320 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
44322 Add support for the AFFS filesystem.
44324 * fs/affs.c: New file.
44326 * DISTLIST: Added `fs/affs.c'.
44328 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
44329 (grub_probefs_SOURCES): Likewise.
44330 (grub_emu_SOURCES): Likewise.
44331 (pkgdata_MODULES): Add `affs.mod'.
44332 (affs_mod_SOURCES): New variable.
44333 (affs_mod_CFLAGS): Likewise.
44334 (affs_mod_LDFLAGS): Likewise.
44336 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
44337 (pkgdata_MODULES): Add `affs.mod'.
44338 (affs_mod_SOURCES): New variable.
44339 (affs_mod_CFLAGS): Likewise.
44341 * util/grub-emu.c (main): Call `grub_affs_init' and
44344 * include/grub/fs.h (grub_affs_init): New prototype.
44345 (grub_affs_fini): Likewise.
44347 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
44349 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
44351 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
44353 * configure.ac: Accept `x86_64' as host_cpu. In that case add
44356 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
44359 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
44360 (COMMON_LDFLAGS): New variable.
44361 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
44362 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
44363 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
44364 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
44365 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
44366 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
44367 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
44368 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
44369 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
44370 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
44371 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
44372 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
44373 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
44374 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
44375 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
44377 (normal_mod_ASFLAGS): Add `-m32'.
44379 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
44380 (grub_host_size_t, grub_host_ssize_t): New types.
44381 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
44382 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
44383 `GRUB_HOST_SIZEOF_VOID_P'.
44385 * include/grub/kernel.h (struct grub_module_header): Type of
44386 member offset changed to `grub_host_off_t'. Type of member size
44387 changed to `grub_host_size_t'.
44388 (struct grub_module_info): Type of member offset changed to
44389 `grub_host_off_t'. Type of member size changed to
44390 `grub_host_size_t'.
44392 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
44394 Make GRUB's kernel compliant to Multiboot Specification.
44396 * kern/i386/pc/startup.S (multiboot_header): New label.
44397 (multiboot_entry): Likewise.
44398 (multiboot_trampoline): Likewise.
44400 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44401 Increased to 0x4A0.
44403 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
44404 put parentheses after a question mark.
44405 [!GRUB_UTIL] (my_mod): New variable.
44407 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
44409 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
44411 Adds support for the XFS filesystem. Btrees are not supported
44414 * fs/xfs.c: New file.
44416 * DISTLIST: Added `fs/xfs.c'.
44418 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
44419 (grub_probefs_SOURCES): Likewise.
44420 (grub_emu_SOURCES): Likewise.
44421 (pkgdata_MODULES): Add `xfs.mod'.
44422 (xfs_mod_SOURCES): New variable.
44423 (xfs_mod_CFLAGS): Likewise.
44425 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
44426 (pkgdata_MODULES): Add `xfs.mod'.
44427 (xfs_mod_SOURCES): New variable.
44428 (xfs_mod_CFLAGS): Likewise.
44430 * util/grub-emu.c (main): Call `grub_xfs_init' and
44433 * include/grub/fs.h (grub_xfs_init): New prototype.
44434 (grub_xfs_fini): Likewise.
44437 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
44439 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
44440 color modes, allow greater than 16 colors to be configured as
44443 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
44445 * normal/completion.c (complete_arguments): Add the qualifier
44446 const into OPTIONS.
44448 From Omniflux <omniflux+lists@omniflux.com>:
44449 * include/grub/terminfo.h: New file.
44450 * include/grub/tparm.h: Likewise.
44451 * include/grub/i386/pc/serial.h: Likewise.
44452 * term/terminfo.c: Likewise.
44453 * term/tparm.c: Likewise.
44454 * term/i386/pc/serial.c: Likewise.
44455 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
44457 (terminfo_mod_SOURCES): New variable.
44458 (terminfo_mod_CFLAGS): Likewise.
44459 (serial_mod_SOURCES): Likewise.
44460 (serial_mod_CFLAGS): Likewise.
44462 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
44464 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
44465 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
44466 and kern/powerpc/ieee1275/cmain.c, respectively.
44468 * boot/powerpc/ieee1275/crt0.S: Moved to ...
44469 * kern/powerpc/ieee1275/crt0.S: ... here.
44471 * boot/powerpc/ieee1275/cmain.c: Moved to ...
44472 * kern/powerpc/ieee1275/cmain.c: ... here.
44474 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
44475 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
44476 instead of boot/powerpc/ieee1275/crt0.S and
44477 boot/powerpc/ieee1275/cmain.c, respectively.
44479 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
44480 sectors. It was not used anyway.
44482 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
44484 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
44485 `unused parameter' warning.
44487 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
44489 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
44491 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
44494 2005-08-28 Marco Gerards <metgerards@student.han.nl>
44496 * include/grub/normal.h (enum grub_completion_type): Added
44497 `GRUB_COMPLETION_TYPE_ARGUMENT'.
44499 * normal/cmdline.c (print_completion): Handle
44500 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
44501 * normal/menu_entry.c (store_completion): Likewise.
44503 * normal/completion.c (complete_arguments): New function.
44504 (grub_normal_do_completion): Call `complete_arguments' when the
44505 current words start with a dash.
44507 2005-08-27 Marco Gerards <metgerards@student.han.nl>
44509 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
44510 `gzio.mod' instead of `io.mod').
44512 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
44514 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
44515 (DISTDIRS): Added io and video.
44516 Rewrite the search routine to make an output consistently.
44518 * DISTLIST: Added conf/sparc64-ieee1275.mk,
44519 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
44520 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
44521 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
44522 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
44523 util/powerpc/ieee1275/misc.c.
44525 * include/grub/gzio.h: New file.
44526 * io/gzio.c: Likewise.
44528 * kern/file.c (grub_file_close): Call grub_device_close only if
44529 FILE->DEVICE is not NULL.
44531 * include/grub/mm.h [!NULL] (NULL): New macro.
44533 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
44535 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
44536 (pkgdata_MODULES): Added gzio.mod.
44537 (gzio_mod_SOURCES): New variable.
44538 (gzio_mod_CFLAGS): Likewise.
44540 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
44541 (pkgdata_MODULES): Added gzio.mod.
44542 (gzio_mod_SOURCES): New variable.
44543 (gzio_mod_CFLAGS): Likewise.
44545 * commands/cat.c: Include grub/gzio.h.
44546 (grub_cmd_cat): Use grub_gzfile_open instead of
44549 * commands/cmp.c: Include grub/gzio.h.
44550 (grub_cmd_cmp): Use grub_gzfile_open instead of
44553 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
44554 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
44556 (grub_rescue_cmd_module): Likewise.
44558 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
44560 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
44561 kern/sparc64/ieee1275/init.c because it contains _start.
44562 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
44564 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
44566 * configure.ac: Add support for sparc64 host with ieee1275
44568 * configure: Generated from configure.ac.
44569 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
44571 (grub_ofdisk_read): Likewise.
44572 (grub_ofdisk_open): Use %p to print pointer values, and cast the
44573 pointers as (void *) to remove a warning.
44574 (grub_ofdisk_close): Likewise.
44575 (grub_ofdisk_read): Likewise.
44576 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
44577 returns, so make it return void to remove a warning.
44578 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
44579 Corresponding prototype change.
44580 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
44581 values, and cast the pointers as (void *) to remove a warning.
44582 (grub_mm_dump): Likewise.
44583 * conf/sparc64-ieee1275.mk: New file.
44584 * conf/sparc64-ieee1275.rmk: Likewise.
44585 * include/grub/sparc64/setjmp.h: Likewise.
44586 * include/grub/sparc64/types.h: Likewise.
44587 * include/grub/sparc64/ieee1275/console.h: Likewise.
44588 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
44589 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
44590 * include/grub/sparc64/ieee1275/time.h: Likewise.
44591 * kern/sparc64/cache.c: Likewise.
44592 * kern/sparc64/dl.c: Likewise.
44593 * kern/sparc64/ieee1275/init.c: Likewise.
44594 * kern/sparc64/ieee1275/openfw.c: Likewise.
44596 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
44598 * util/console.c (grub_ncurses_putchar): If C is greater than
44599 0x7f, set C to a question mark.
44600 (grub_ncurses_getcharwidth): New function.
44601 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
44604 * normal/menu.c (print_entry): Made aware of Unicode. First,
44605 convert TITLE to UCS-4, and predict the cursor position by
44608 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
44610 * kern/misc.c (grub_utf16_to_utf8): Likewise.
44612 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44614 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
44615 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
44618 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
44619 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
44620 grub_strcpy and grub_strlen. Take it into account that a space
44621 character is inserted as a delimiter.
44623 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44625 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
44626 invalid magic in the error.
44628 * commands/search.c: New file.
44630 * util/grub-emu.c (main): Call grub_search_init and
44633 * kern/rescue.c (grub_rescue_print_disks): Removed.
44634 (grub_rescue_print_devices): New function.
44635 (grub_rescue_cmd_ls): Use grub_device_iterate with
44636 grub_rescue_print_devices instead of grub_disk_dev_iterate with
44637 grub_rescue_print_disks.
44639 * kern/partition.c (grub_partition_iterate): Return the result of
44640 PARTMAP->ITERATE instead of GRUB_ERRNO.
44642 * kern/device.c: Include grub/partition.h.
44643 (grub_device_iterate): New function.
44645 * include/grub/partition.h (grub_partition_iterate): Return int
44646 instead of grub_err_t.
44648 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
44650 [GRUB_UTIL] (grub_search_fini): Likewise.
44652 * include/grub/device.h (grub_device_iterate): New prototype.
44654 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
44656 (pkgdata_MODULES): Added search.mod.
44657 (search_mod_SOURCES): New variable.
44658 (search_mod_CFLAGS): Likewise.
44660 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
44661 (pkgdata_MODULES): Added search.mod.
44662 (search_mod_SOURCES): New variable.
44663 (search_mod_CFLAGS): Likewise.
44665 * commands/ls.c (grub_ls_list_disks): Renamed to ...
44666 (grub_ls_list_devices): ... this, and use grub_device_iterate.
44667 All callers changed.
44669 * DISTLIST: Added commands/search.c.
44671 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44673 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
44675 (grub_getcharwidth): New function.
44677 * kern/misc.c (grub_utf8_to_ucs4): New function.
44679 * include/grub/term.h (struct grub_term): Added a new member
44681 (grub_getcharwidth): New prototype.
44683 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
44685 * term/i386/pc/console.c (map_char): New function. Segregated from
44686 grub_console_putchar.
44687 (grub_console_putchar): Use map_char.
44688 (grub_console_getcharwidth): New function.
44689 (grub_console_term): Specified grub_console_getcharwidth as
44692 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
44693 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
44695 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
44697 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
44698 on grub_strtoul completely.
44699 (write_char): Declare local variables in the beginning of the
44701 (grub_vesafb_getcharwidth): New function.
44702 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
44705 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
44707 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
44708 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
44709 commands/i386/pc/vbetest.c.
44711 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
44712 call grub_vbe_get_controller_info again, because the returned
44713 information is volatile.
44714 (grub_vbe_set_video_mode): Mostly rewritten.
44715 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
44716 grub_vbe_status_t correctly.
44717 (grub_vbe_get_video_mode_info): Likewise.
44718 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
44719 several if statements.
44721 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
44722 * commands/i386/pc/vbeinfo.c: ... this.
44724 * commands/i386/pc/vbe_test.c: Renamed to ...
44725 * commands/i386/pc/vbetest.c: ... this.
44727 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
44729 (grub_cmd_vbeinfo): ... this. Save video modes before
44730 iterating. Skip a video mode, if it is not available, not enough
44731 information is given or it is monochrome. Show the memory
44732 model. Leave the interpretation of MODEVAR to grub_strtoul
44734 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
44735 (GRUB_MOD_FINI): Likewise.
44737 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
44738 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
44739 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
44740 duplicated grub_env_get. Leave the interpretation of MODEVAR to
44741 grub_strtoul completely.
44742 (real2pm): Removed.
44743 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
44744 (GRUB_MOD_FINI): Likewise.
44746 * normal/misc.c: Include grub/mm.h.
44748 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
44749 vbe_list_modes with vbetest.mod and vbeinfo.mod.
44750 (vbe_list_modes_mod_SOURCES): Removed.
44751 (vbe_list_modes_mod_CFLAGS): Likewise.
44752 (vbe_test_mod_SOURCES): Likewise.
44753 (vbe_test_mod_CFLAGS): Likewise.
44754 (vbeinfo_mod_SOURCES): New variable.
44755 (vbeinfo_mod_CFLAGS): Likewise.
44756 (vbetest_mod_SOURCES): Likewise.
44757 (vbetest_mod_CFLAGS): Likewise.
44759 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
44761 * normal/misc.c: New file.
44763 * DISTLIST: Added normal/misc.c.
44765 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
44766 DISK to HOOK. Call HOOK with DISK.
44767 * partmap/apple.c (apple_partition_map_iterate): Likewise.
44768 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44769 * partmap/sun.c (sun_partition_map_iterate): Likewise.
44771 * normal/menu_entry.c (struct screen): Added a new member
44772 "completion_shown".
44773 (completion_buffer): New global variable.
44774 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
44775 (store_completion): New function.
44776 (complete): Likewise.
44777 (clear_completions): Likewise.
44778 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
44779 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
44780 a tab, call complete.
44782 * normal/completion.c (disk_dev): Removed.
44783 (print_simple_completion): Likewise.
44784 (print_partition_completion): Likewise.
44785 (print_func): New global variable.
44786 (add_completion): Do not take the arguments WHAT or PRINT any
44787 longer. Added a new argument TYPE. Instead of printing directly,
44788 call PRINT_FUNC if not NULL.
44789 All callers changed.
44790 (complete_device): Use a local variable DEV instead of
44791 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
44792 (grub_normal_do_completion): Take a new argument HOOK. Do not
44793 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
44794 empty string, return NULL instead.
44795 All callers changed.
44797 * normal/cmdline.c (print_completion): New function.
44799 * kern/partition.c (grub_partition_iterate): Add an argument DISK
44801 All callers changed.
44803 * kern/disk.c (grub_print_partinfo): Removed.
44805 * include/grub/partition.h (struct grub_partition_map): Add a new
44806 argument DISK into HOOK of ITERATE.
44807 (grub_partition_iterate): Add a new argument DISK to HOOK.
44809 * include/grub/normal.h (enum grub_completion_type): New enum.
44810 (grub_completion_type_t): New type.
44811 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
44812 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
44813 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
44814 (GRUB_COMPLETION_TYPE_FILE): Likewise.
44815 (grub_normal_do_completion): Added a new argument HOOK.
44816 (grub_normal_print_device_info): New prototype.
44818 * include/grub/disk.h (grub_print_partinfo): Removed.
44820 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
44821 (normal_mod_SOURCES): Likewise.
44822 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44823 (normal_mod_SOURCES): Likewise.
44825 * commands/ls.c (grub_ls_list_disks): Use
44826 grub_normal_print_device_info instead of grub_print_partinfo. Free
44828 (grub_ls_list_files): Use grub_normal_print_device_info instead of
44829 duplicating the code.
44831 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
44833 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
44834 follow GCS more precisely.
44835 * commands/i386/pc/vbe_test.c: Likewise.
44836 * include/grub/i386/pc/vbe.h: Likewise.
44837 * term/i386/pc/vesafb.c: Likewise.
44838 * video/i386/pc/vbe.c: Likewise.
44840 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
44842 * DISTLIST: Added term/i386/pc/vesafb.c
44843 DISTLIST: Added video/i386/pc/vbe.c
44844 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
44845 DISTLIST: Added commands/i386/pc/vbe_test.c.
44846 * commands/i386/pc/vbe_list_modes.c: New file.
44847 * commands/i386/pc/vbe_test.c: Likewise.
44848 * term/i386/pc/vesafb.c: Likewise.
44849 * video/i386/pc/vbe.c: Likewise.
44850 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
44851 (grub_vbe_probe) Added prototype.
44852 (grub_vbe_set_video_mode) Likewise.
44853 (grub_vbe_get_video_mode) Likewise.
44854 (grub_vbe_get_video_mode_info) Likewise.
44855 (grub_vbe_set_pixel_rgb) Likewise.
44856 (grub_vbe_set_pixel_index) Likewise.
44857 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
44858 (pkgdata_MODULES): Added vesafb.mod.
44859 (pkgdata_MODULES): Added vbe_list_modes.mod.
44860 (pkgdata_MODULES): Added vbe_test.mod.
44861 (vbe_mod_SOURCES): Added.
44862 (vbe_mod_CFLAGS): Likewise.
44863 (vesafb_mod_SOURCES): Likewise.
44864 (vesafb_mod_CFLAGS): Likewise.
44865 (vbe_list_modes_mod_SOURCES): Likewise.
44866 (vbe_list_modes_mod_CFLAGS): Likewise.
44867 (vbe_test_mod_SOURCES): Likewise.
44868 (vbe_test_mod_CFLAGS): Likewise.
44870 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
44872 * normal/command.c (grub_command_execute): If INTERACTIVE is
44873 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
44874 CMDLINE. Disable the pager if INTERACTIVE is true.
44875 All callers are changed.
44877 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
44878 before reading a config file.
44879 * normal/main.c (read_config_file): Even if a command is not
44880 found, register it if it is within an entry.
44882 * util/grub-emu.c: Include sys/types.h and unistd.h.
44883 (options): Added --hold.
44884 (struct arguments): Added a new member "hold".
44885 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
44887 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
44888 cleared by a debugger, if it is not zero.
44890 * include/grub/normal.h (grub_command_execute): Add an argument
44893 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
44895 * DISTLIST: Added include/grub/i386/pc/vbe.h.
44897 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
44899 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
44900 program with another one, because the old one didn't detect a bug
44901 in gcc-3.4. Always use regparm 2, because the new test is still
44902 not enough for gcc-4.0. Someone must investigate a simple test
44903 case which detects a bug in gcc-4.0.
44905 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
44907 * DISTLIST: Added normal/completion.c.
44909 * normal/completion.c: New file.
44911 * term/i386/pc/console.c (grub_console_getwh): New function.
44912 (grub_console_term): Assign grub_console_getwh to getwh.
44914 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
44915 function is defined in normal/completion.c as
44916 grub_normal_do_completion.
44917 (grub_cmdline_get): Use grub_normal_do_completion instead of
44920 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
44921 returns non-zero, otherwise return 0.
44922 (grub_partition_iterate): First, probe the partition map. Then,
44923 call ITERATE only for this partition map.
44925 * kern/misc.c (grub_strncmp): Rewritten.
44927 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
44928 returns non-zero. Otherwise return 0.
44930 * include/grub/partition.h (grub_partition_map_iterate): Return
44931 int instead of void.
44933 * include/grub/normal.h (grub_normal_do_completion): New prototype.
44935 * include/grub/misc.h (grub_strncmp): Change the type of N to
44938 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
44941 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
44942 unsigned explicitly before comparing it with I.
44944 * kern/main.c (grub_env_write_root): Add the attribute unused into
44947 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
44948 normal/completion.c.
44949 (normal_mod_SOURCES): Likewise.
44950 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
44951 (normal_mod_SOURCES): Likewise.
44953 * normal/command.c (grub_iterate_commands): If ITERATE returns
44954 non-zero, return one immediately.
44956 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
44958 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
44959 * kern/i386/pc/startup.S: Updated Global Descriptor table's
44961 (grub_vbe_get_controller_info): New function.
44962 (grub_vbe_get_mode_info): Likewise.
44963 (grub_vbe_set_mode): Likewise.
44964 (grub_vbe_get_mode): Likewise.
44965 (grub_vbe_set_memory_window): Likewise.
44966 (grub_vbe_get_memory_window): Likewise.
44967 (grub_vbe_set_scanline_length): Likewise.
44968 (grub_vbe_get_scanline_length): Likewise.
44969 (grub_vbe_set_display_start): Likewise.
44970 (grub_vbe_get_display_start): Likewise.
44971 (grub_vbe_set_palette_data): Likewise.
44972 * include/grub/i386/pc/vbe.h: New file.
44974 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
44976 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
44977 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
44978 * DISTLIST: Likewise.
44979 * kern/ieee1275/of.c: Moved to ...
44980 * kern/ieee1275/ieee1275.c: ... here.
44982 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
44984 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
44985 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
44986 Pass 0 as `end' parameter to grub_strtoul().
44988 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
44990 * include/grub/powerpc/ieee1275/console.h: Do not include
44991 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
44993 (grub_console_cur_color): Remove i386-specific prototype.
44994 (grub_console_real_putchar): Likewise.
44995 (grub_console_checkkey): Likewise.
44996 (grub_console_getkey): Likewise.
44997 (grub_console_getxy): Likewise.
44998 (grub_console_gotoxy): Likewise.
44999 (grub_console_cls): Likewise.
45000 (grub_console_setcursor): Likewise.
45001 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
45002 Include <grub/machine/console.h>.
45003 * term/ieee1275/ofconsole.c: Likewise.
45005 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
45007 * Makefile.in (LIBLZO): New variable.
45009 * configure.ac: Check for LZO version 2.
45011 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
45012 lzo/lzo1x.h instead of lzo1x.h.
45014 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
45017 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
45018 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
45020 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
45021 copying the data from PARTITION to P.
45023 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45025 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
45026 negative, unload the module.
45028 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
45029 map is "pc_partition_map" but not "pc".
45030 (usage): Fix the description. The options are --boot-image and
45031 --core-image but not --boot-file or --core-file.
45032 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
45033 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
45036 * util/i386/pc/grub-install.in: Do not specify --boot-file or
45037 --core-file. Specify INSTALL_DEVICE as an argument.
45039 * util/console.c: Include config.h.
45040 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
45041 [HAVE_NCURSES_H]: Include ncurses.h.
45042 [HAVE_CURSES_H]: Include curses.h.
45043 [!A_NORMAL] (A_NORMAL): Defined as zero.
45044 [!A_STANDOUT] (A_STANDOUT): Likewise.
45046 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
45048 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
45050 * configure.ac: Check for curses libraries and headers.
45052 * Makefile.in (LIBCURSES): New variable.
45054 * genmk.rb (Script::rule): Set the executable bits.
45056 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
45057 name of the PC partition map is "pc_partition_map" but not "pc".
45059 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45061 * util/i386/pc/grub-install.in (grub_probefs): New variable.
45062 (modules): Likewise.
45063 (usage): Added descriptions for --modules and --grub-probefs.
45064 Handle --modules and --grub-probefs. Save the arguments in MODULES
45065 and GRUB_PROBEFS, respectively.
45066 Auto-detect a filesystem module against GRUBDIR. If the result is
45067 empty and modules are not specified explicitly, abort the
45068 installation. Add the result to MODULES.
45070 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
45071 disk/powerpc/ieee1275/ofdisk.c,
45072 include/grub/powerpc/ieee1275/init.h and
45073 term/powerpc/ieee1275/ofconsole.c.
45074 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
45075 term/ieee1275/ofconsole.c.
45077 * include/grub/powerpc/ieee1275/console.h: Resurrected.
45079 * COPYING: Upgraded to the latest version. Only the address of the
45080 FSF office has changed.
45082 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45084 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
45085 kern/ieee1275.c with kern/ieee1275/of.c.
45087 * kern/ieee1275.c: Moved to ...
45088 * kern/ieee1275/of.c: ... here.
45090 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
45092 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
45095 * config.guess: Updated to the latest version from gnulib.
45096 * config.sub: Likewise.
45097 * install.sh: Likewise.
45098 * mkinstalldirs: Likewise.
45100 * include/grub/console.h: Removed. This file is arch-specific. Do
45101 not put this in include/grub.
45103 * include/grub/i386/pc/console.h: Resurrected.
45105 * util/console.c: Include grub/machine/console.h instead of
45107 * util/grub-emu.c: Likewise.
45109 2005-08-04 Marco Gerards <metgerards@student.han.nl>
45111 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
45114 From Vincent Pelletier <subdino2004@yahoo.fr>
45115 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
45116 Redefined to use grub_getwh.
45117 (grub_term): New member named getwh.
45118 (grub_getwh): New prototype.
45119 * kern/term.c (grub_getwh): New function.
45120 * term/i386/pc/console.c (grub_console_getwh): New function.
45121 (grub_console_term): New member `getwh'.
45122 * term/i386/pc/vga.c (grub_vga_getwh): New function.
45123 (grub_vga_term): New member `getwh'.
45124 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
45126 (grub_ofconsole_getw): New function.
45127 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
45128 (grub_ofconsole_term): New field named getwh and new initial
45131 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
45133 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
45134 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
45135 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
45136 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
45137 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
45138 of <grub/machine/ieee1275.h>.
45139 * commands/ieee1275/reboot.c: Likewise.
45140 * boot/powerpc/ieee1275/ieee1275.c: Move ...
45141 * kern/ieee1275.c: ... to here. All users updated. Change all
45142 parameter structs to use new type `grub_ieee1275_cell_t'.
45143 * term/powerpc/ieee1275/ofconsole.c: Move ...
45144 * term/ieee1275/ofconsole.c: ... to here. All users updated.
45145 * disk/powerpc/ieee1275/ofdisk.c: Move ...
45146 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
45147 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
45149 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
45150 Remove unused prototypes. All users updated.
45151 * include/grub/powerpc/ieee1275/console.h: Removed.
45152 * include/grub/powerpc/ieee1275/ieee1275.h: Define
45153 `grub_ieee1275_cell_t'.
45154 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
45155 Cast comparisons with -1 to the correct type.
45156 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
45157 type to match `grub_ieee1275_entry_fn'.
45159 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
45161 * DISTLIST: Added util/i386/pc/grub-probefs.c.
45163 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
45164 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
45166 (grub_probefs_SOURCES): New variable.
45168 * util/i386/pc/grub-probefs.c: New file.
45170 * util/i386/pc/grub-setup.c (main): Call
45171 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
45172 grub_hfs_init and grub_jfs_init to initialize the system. Call
45173 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
45174 grub_pc_partition_map_fini to finish the system.
45176 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
45178 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
45180 (grub_multiboot_load_elf32): Likewise.
45181 (grub_multiboot_is_elf64): Likewise.
45182 (grub_multiboot_load_elf64): Likewise.
45183 (grub_multiboot_load_elf): Likewise.
45184 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
45185 an ELF32 or ELF64 file.
45186 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
45188 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
45189 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
45190 NULL before calling FS->LABEL.
45191 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
45192 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
45193 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
45194 before calling FS->LABEL.
45196 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
45198 * util/i386/pc/grub-install.in (datadir): New variable.
45200 (pkgdatadir): New variable.
45201 (pkglibdir): Removed.
45203 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
45205 * DISTLIST: Added util/i386/pc/grub-install.in.
45207 * util/i386/pc/grub-install.in: New file.
45209 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
45210 (grub_install_SOURCES): Likewise.
45212 * genmk.rb: Added support for scripts.
45213 (Script): New class.
45214 (scripts): New variable.
45216 * Makefile.in (install-local): Install sbin_SCRIPTS by
45218 (uninstall): Remove sbin_SCRIPTS.
45220 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
45221 device, try to get a GRUB device by
45222 grub_util_biosdisk_get_grub_dev.
45225 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
45226 description for --device-map.
45228 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
45230 Change the semantics of variable hooks. They now return strings
45231 instead of error values.
45233 * util/i386/pc/grub-setup.c: Include grub/env.h.
45234 (setup): Use grub_device_set_root instead of grub_env_set.
45236 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
45237 grub_env_get instead of grub_device_set_root and
45238 grub_device_get_root, respectively.
45240 * kern/main.c (grub_env_write_root): New function.
45241 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
45242 grub_env_set instead of grub_device_set_root.
45244 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
45246 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
45247 rather than calling ENV->WRITE_HOOK afterwards.
45248 (grub_env_get): Return the result of ENV->READ_HOOK rather than
45249 passing a pointer of a pointer.
45250 (grub_register_variable_hook): Change the types of "read_hook" and
45251 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
45253 Allocate the default empty string on the heap, because this string
45254 may be freed later.
45256 * kern/device.c: Include grub/env.h.
45257 (grub_device_set_root): Removed.
45258 (grub_device_get_root): Likewise.
45259 (grub_device_open): Use grub_env_get instead of
45260 grub_device_get_root.
45262 * include/grub/env.h (grub_env_read_hook_t): New type.
45263 (grub_env_write_hook_t): Likewise.
45264 (grub_env_var): Change the types of "read_hook" and "write_hook"
45265 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
45266 (grub_register_variable_hook): Likewise.
45268 * include/grub/device.h (grub_device_set_root): Removed.
45269 (grub_device_set_root): Likewise.
45271 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
45272 make sure that DIRNAME terminates with '/', so that
45273 grub_fat_find_dir will fail if PATH is not a directory.
45275 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
45277 Use the qualifier auto for print_files and print_files_long.
45278 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
45280 Put a newline only if there is no error.
45281 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
45284 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
45286 * kern/partition.c (grub_partition_probe): Initialize PART to
45287 NULL. Otherwise, when no partition map is registered, this returns
45290 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
45292 * partmap/apple.c (apple_partition_map_iterate): Check if POS
45293 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
45296 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
45298 * commands/ls.c (grub_ls_list_disks): Print the filesystem
45299 information on each device, if it does not have partitions. Print
45300 "Device" instead of "Disk", because this function is not specific
45303 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
45304 static to ensure that it is put on the memory rather than a
45307 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45309 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
45310 (grub_cat_init): Likewise.
45311 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
45312 (options): Likewise.
45313 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
45314 (grub_configfile_init): Likewise.
45315 * font/manager.c (GRUB_MOD_INIT): Likewise.
45316 * commands/help.c (GRUB_MOD_INIT): Likewise.
45317 (grub_help_init): Likewise.
45318 * normal/command.c (grub_command_init): Likewise.
45319 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
45320 * disk/loopback.c (grub_loop_init): Likewise.
45321 (GRUB_MOD_INIT): Likewise.
45322 * commands/ls.c (grub_ls_init): Likewise.
45323 (GRUB_MOD_INIT): Likewise.
45324 (options): Likewise.
45325 * commands/boot.c (grub_boot_init): Likewise.
45326 (GRUB_MOD_INIT): Likewise.
45327 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
45328 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
45329 (GRUB_MOD_INIT): Likewise.
45330 * commands/cmp.c (grub_cmp_init): Likewise.
45331 (GRUB_MOD_INIT): Likewise.
45333 * normal/arg.c: Use <> instead of "" to include header files.
45334 (SHORT_ARG_HELP): New macro.
45335 (SHORT_ARG_USAGE): Likewise.
45336 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
45337 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
45339 (find_short): Check if C is 'h' or 'u' explicitly.
45340 (grub_arg_show_help): Use space characters instead of tabs. Treat
45341 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
45342 are shown with --help and --usage only if they are not used for
45343 the command itself.
45344 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
45347 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
45348 const into "longarg". Change the type of "shortarg" to int.
45350 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45352 * boot/i386/pc/boot.S (boot_drive_check): New label.
45354 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
45357 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
45358 which do not pass a boot drive correctly. Copied from GRUB Legacy.
45360 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45362 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
45363 When turning off Gate A20, skip the check and return immediately,
45364 because this is not fatal usually.
45366 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45368 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
45369 be 0x7C00 instead of 0x8000.
45371 * boot/i386/pc/pxeboot.S: Rewritten.
45373 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
45375 (gate_a20_check_state): Read a byte from 0x108000. Invert the
45378 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
45380 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
45381 robustness. This routine now supports a BIOS call and System
45382 Control Port A to modify the gate A20.
45384 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
45385 Increased to 0x440.
45387 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
45389 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
45390 device path and resulting ihandle.
45391 (grub_ofdisk_close): dprintf the ihandle being closed.
45392 (grub_ofdisk_read): dprintf function parameters.
45393 * kern/mm.c (grub_mm_init_region): Likewise.
45394 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
45395 (grub_linux_boot): dprintf the Linux entry point, initrd address and
45396 size, and boot arguments.
45397 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
45398 before loading into memory.
45399 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
45400 before loading into memory.
45402 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
45404 * kern/mm.c: Added much documentation.
45405 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
45406 8, set to 5 instead of 8.
45408 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
45410 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
45412 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
45413 (grub_mkdevicemap_SOURCES): New variable.
45415 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
45416 lib/device.c of GRUB Legacy.
45418 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
45420 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
45421 instead of PATH is NULL.
45423 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
45425 * commands/cmp.c (BUFFER_SIZE): New macro.
45426 (grub_cmd_cmp): Close the right file at the right time. Compare
45427 only data just read. Don't report files of different size as
45428 identical. Dynamically allocate buffers. Move variable
45429 declarations at the beginning of function.
45431 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
45433 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
45436 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
45438 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
45439 when backspace is pressed at beginning of line.
45441 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
45443 * DISTLIST: Added genfslist.sh.
45445 * normal/main.c (fs_module_list): New variable.
45446 (autoload_fs_module): New function.
45447 (read_fs_list): Likewise.
45448 (grub_normal_execute): Call read_fs_list.
45450 * kern/fs.c (grub_fs_autoload_hook): New variable.
45451 (grub_fs_probe): Added support for auto-loading.
45453 * include/grub/normal.h (struct grub_fs_module_list): New struct.
45454 (grub_fs_module_list_t): New type.
45456 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
45457 (grub_fs_autoload_hook): New prototype.
45459 * genfslist.sh: New file.
45461 * genmk.rb: Added a rule to generate a filesystem list.
45463 2005-06-30 Marco Gerards <metgerards@student.han.nl>
45465 * configure.ac: Fix the test for cross-compiling.
45467 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
45468 define GRUB_UTIL anymore.
45470 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
45471 so this function works on other systems than just big endian.
45472 (load_modules): Likewise.
45473 (add_segments): Likewise.
45475 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
45477 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
45478 contains `l' modifier, get a long from va_arg().
45480 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
45482 * kern/mm.c (grub_free): If the next free block which is being
45483 merged is the first free block, set the first block to the block
45485 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
45487 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
45489 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
45490 `grub_ieee1275_chosen'.
45492 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
45494 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
45495 (grub_ieee1275_chosen): New variable.
45496 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
45498 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
45499 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
45500 Rename first argument to `phandle' for consistency.
45501 (grub_ieee1275_get_property_length): Likewise.
45502 (grub_ieee1275_next_property): Likewise. Change type of first argument
45503 to grub_ieee1275_phandle_t.
45504 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
45505 Move export next to declaration.
45506 (grub_ieee1275_chosen): New variable.
45507 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
45508 Correct cosmetic typo.
45509 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
45510 `grub_ieee1275_chosen'.
45511 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
45512 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
45513 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
45514 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
45515 `grub_ieee1275_chosen'.
45517 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
45519 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
45521 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
45522 /chosen/bootargs as "variable=value" pairs.
45524 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
45526 * include/grub/misc.h (grub_dprintf): New macro.
45527 (grub_real_dprintf): New prototype.
45528 (grub_strword): Likewise.
45529 (grub_iswordseparator): Likewise.
45530 * kern/misc.c (grub_real_dprintf): New function.
45531 (grub_strword): Likewise.
45532 (grub_iswordseparator): Likewise.
45534 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
45536 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
45537 (roundup): Remove macro.
45538 (grub_ieee1275_flags): Make static.
45539 (grub_ieee1275_realmode): Remove.
45540 (grub_ieee1275_test_flag): New function.
45541 (grub_ieee1275_set_flag): Likewise.
45542 (find_options): Rename to `grub_ieee1275_find_options'; update
45543 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
45544 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
45545 (cmain): New prototype.
45546 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
45547 `grub_ieee1275_flags' directly.
45548 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
45549 machine/biosdisk.h.
45550 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
45551 Don't include grub/machine/init.h.
45552 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
45553 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
45555 (grub_ieee1275_realmode): Likewise.
45556 (grub_ieee1275_flag): New enum.
45557 (grub_ieee1275_test_flag): New prototype.
45558 (grub_ieee1275_set_flag): New prototype.
45559 * include/grub/powerpc/ieee1275/init.h: Remove file.
45560 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
45561 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
45562 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
45563 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
45565 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
45566 `grub_ieee1275_test_flag'.
45567 (grub_ieee1275_encode_devname): Likewise.
45569 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
45571 * include/grub/powerpc/ieee1275/ieee1275.h
45572 (grub_ieee1275_encode_devname): New prototype.
45573 (grub_ieee1275_get_filename): Likewise.
45574 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
45576 (grub_set_prefix): Likewise.
45577 (grub_machine_init): Call grub_set_prefix.
45578 * kern/powerpc/ieee1275/openfw.c: Fix typos.
45579 (grub_parse_type): New enum.
45580 (grub_ieee1275_get_devargs): New function.
45581 (grub_ieee1275_get_devname): Likewise.
45582 (grub_ieee1275_parse_args): Likewise.
45583 (grub_ieee1275_get_filename): Likewise.
45584 (grub_ieee1275_encode_devname): Likewise.
45586 2005-03-30 Marco Gerards <metgerards@student.han.nl>
45588 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
45589 `grub_loader_unset'.
45591 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
45593 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
45594 instead of grub_ieee1275_interpret.
45595 (grub_halt_init): New function.
45596 (grub_halt_fini): Likewise.
45597 (GRUB_MOD_INIT): Correct message grammar.
45598 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
45599 instead of grub_ieee1275_interpret.
45600 (grub_reboot_init): New function.
45601 (grub_reboot_fini): Likewise.
45602 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
45603 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
45604 util/i386/pc/misc.c with commands/ieee1275/halt.c,
45605 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
45606 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
45608 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
45610 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
45612 (grub_halt): Likewise.
45613 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
45614 (cmain): Remove __attribute__((unused)).
45615 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
45616 (grub_heap_len): Likewise.
45617 (grub_machine_fini): New function.
45618 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
45619 (grub_halt): Likewise.
45620 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
45622 * util/powerpc/ieee1275/misc.c: New file.
45624 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
45626 * DISTLIST: New file.
45627 * gendistlist.sh: Likewise.
45629 * Makefile.in (COMMON_DISTFILES): Removed.
45630 (BOOT_DISTFILES): Likewise.
45631 (CONF_DISTFILES): Likewise.
45632 (DISK_DISTFILES): Likewise.
45633 (FS_DISTFILES): Likewise.
45634 (INCLUDE_DISTFILES): Likewise.
45635 (KERN_DISTFILES): Likewise.
45636 (LOADER_DISTFILES): Likewise.
45637 (TERM_DISTFILES): Likewise.
45638 (UTIL_DISTFILES): Likewise.
45639 (DISTFILES): Likewise.
45640 (uninstall): Uninstall files in $(pkgdata_DATA).
45641 (DISTLIST): New target.
45642 (distdir): Use the contents of the file DISTLIST to get a list of
45645 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
45647 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
45648 descriptor. This is ported from GRUB Legacy.
45650 * gencmdlist.sh: Added an extra semicolon to make it work with
45651 old sed versions. Reported by Robert Bihlmeyer
45652 <robbe@orcus.priv.at>.
45654 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
45656 Automatic loading of commands is supported.
45658 * normal/main.c (read_command_list): New function.
45659 (grub_normal_execute): Call read_command_list.
45661 * normal/command.c (grub_register_command): Return zero or CMD.
45662 Allocate CMD->NAME from the heap.
45663 Initialize CMD->MODULE_NAME to zero.
45664 Find the same name as well. If the same command is found and it is
45665 a dummy command, overwrite members. If it is not a dummy command,
45667 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
45668 (grub_command_find): If a dummy command is found, load a module
45669 and retry to find a command only once.
45671 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
45672 make sure that each command is loaded.
45674 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
45676 (struct grub_command): Remove const from the member `name'.
45677 Add a new member `module_name'.
45678 (grub_register_command): Return grub_command_t.
45680 * commands/help.c (grub_cmd_help): Call grub_command_find to make
45681 sure that each command is loaded.
45683 * genmk.rb (PModule::rule): Specify a module name without the
45684 suffix ".mod" to gencmdlist.sh.
45686 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
45688 * gencmdlist.sh: New file.
45690 * genmk.rb (PModule::rule): Generate a rule for a command list.
45692 Generate command.lst from $(COMMANDFILES).
45694 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
45695 (DATA): Added $(pkgdata_DATA).
45696 (install-local): Install files in $(pkgdata_DATA).
45698 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
45700 * term/i386/pc/vga.c (debug_command): Removed.
45701 (GRUB_MOD_INIT): Do not register the command "debug".
45703 From Hollis Blanchard:
45704 * commands/configfile.c: New file.
45705 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45706 commands/configfile.c.
45707 (pkgdata_MODULES): Added configfile.mod.
45708 (configfile_mod_SOURCES): New variable.
45709 (configfile_mod_CFLAGS): Likewise.
45710 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
45711 commands/configfile.c.
45712 (pkgdata_MODULES): Added configfile.mod.
45713 (configfile_mod_SOURCES): New variable.
45714 (configfile_mod_CFLAGS): Likewise.
45715 * util/grub-emu.c (main): Call grub_configfile_init and
45716 grub_configfile_fini.
45717 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
45719 [GRUB_UTIL] (grub_configfile_fini): Likewise.
45721 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
45723 * normal/arg.c (grub_arg_show_help): Do not show the bug report
45726 * commands/help.c (grub_cmd_help): Do not print newlines after
45727 the last command in print_command_help.
45729 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
45731 * commands/default.h: New file.
45732 * commands/timeout.h: Likewise.
45733 * normal/context.c: Likewise.
45735 * util/misc.c: Do not include sys/times.h.
45736 Include sys/time.h and grub/machine/time.h.
45737 (grub_get_rtc): Rewritten with gettimeofday.
45739 * util/grub-emu.c (main): Call grub_default_init and
45740 grub_timeout_init before grub_normal_init, and call
45741 grub_timeout_fini and grub_default_fini after grub_main.
45743 * util/console.c (grub_ncurses_checkkey): Return the read
45746 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
45749 * normal/main.c (read_config_file): Push MENU. If this fails,
45750 print an error and wait for a user input.
45751 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
45752 If a menu is empty or an error occurs, pop MENU.
45753 (grub_normal_execute): Pop and free MENU after grub_menu_run
45756 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
45758 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
45760 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
45762 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
45764 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
45767 * include/grub/normal.h (struct grub_menu_list): New struct.
45768 (grub_menu_list_t): New type.
45769 (struct grub_context): New struct.
45770 (grub_context_t): New type.
45771 (grub_register_command): Got rid of EXPORT_FUNC.
45772 (grub_unregister_command): Likewise.
45773 (grub_context_get): New prototype.
45774 (grub_context_get_current_menu): Likewise.
45775 (grub_context_push_menu): Likewise.
45776 (grub_context_pop_menu): Likewise.
45777 [GRUB_UTIL] (grub_default_init): Likewise.
45778 [GRUB_UTIL] (grub_default_fini): Likewise.
45779 [GRUB_UTIL] (grub_timeout_init): Likewise.
45780 [GRUB_UTIL] (grub_timeout_fini): Likewise.
45782 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
45783 commands/timeout.c and normal/context.c.
45784 (pkgdata_MODULES): Added default.mod and timeout.mod.
45785 (normal_mod_SOURCES): Added normal/context.c.
45786 (default_mod_SOURCES): New variable.
45787 (default_mod_CFLAGS): Likewise.
45788 (timeout_mod_SOURCES): Likewise.
45789 (timeout_mod_CFLAGS): Likewise.
45790 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
45792 (pkgdata_MODULES): Added default.mod and timeout.mod.
45793 (normal_mod_SOURCES): Added normal/context.c.
45794 (default_mod_SOURCES): New variable.
45795 (default_mod_CFLAGS): Likewise.
45796 (timeout_mod_SOURCES): Likewise.
45797 (timeout_mod_CFLAGS): Likewise.
45799 * Makefile.in (all-local): Added $(MKFILES).
45801 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
45803 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
45804 (grub_emu_SOURCES): Likewise.
45805 (pkgdata_MODULES): Add `sun.mod'.
45806 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
45807 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45809 (pkgdata_MODULES): Add `sun.mod'.
45810 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
45811 * include/grub/partition.h (grub_sun_partition_map_init): New
45813 (grub_sun_partition_map_fini): Likewise.
45814 * partmap/sun.c: New file.
45815 * util/grub-emu.c (main): Initialize and de-initialize the sun
45816 partitionmap support.
45818 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
45820 This implements an Emacs-like menu entry editor.
45822 * normal/menu_entry.c: New file.
45824 * util/console.c (grub_ncurses_putchar): Translate some Unicode
45825 characters to ASCII.
45826 (saved_char): New variable.
45827 (grub_ncurses_checkkey): Rewritten completely.
45828 (grub_ncurses_getkey): Likewise.
45829 (grub_ncurses_init): Call raw instead of cbreak.
45831 * normal/menu.c (print_entry): Do not put a space.
45832 (init_page): Renamed to ...
45833 (grub_menu_init_page): ... this. All callers changed.
45834 (edit_menu_entry): Removed.
45835 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
45837 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
45839 * kern/misc.c (grub_vprintf): Call grub_refresh.
45841 * normal/menu.c (DISP_LEFT): Renamed to ...
45842 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
45843 * normal/menu.c (DISP_UP): Renamed to ...
45844 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
45845 * normal/menu.c (DISP_RIGHT): Renamed to ...
45846 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
45847 * normal/menu.c (DISP_DOWN): Renamed to ...
45848 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
45849 * normal/menu.c (DISP_HLINE): Renamed to ...
45850 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
45851 * normal/menu.c (DISP_VLINE): Renamed to ...
45852 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
45853 * normal/menu.c (DISP_UL): Renamed to ...
45854 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
45855 * normal/menu.c (DISP_UR): Renamed to ...
45856 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
45857 * normal/menu.c (DISP_LL): Renamed to ...
45858 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
45859 * normal/menu.c (DISP_LR): Renamed to ...
45860 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
45861 * normal/menu.c (TERM_WIDTH): Renamed to ...
45862 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
45863 * normal/menu.c (TERM_HEIGHT): Renamed to ...
45864 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
45865 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
45866 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
45867 * normal/menu.c (TERM_MARGIN): Renamed to ...
45868 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
45869 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
45870 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
45871 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
45872 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
45873 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
45874 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
45875 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
45876 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
45877 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
45878 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
45879 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
45880 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
45881 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
45882 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
45883 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
45884 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
45885 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
45886 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
45887 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
45888 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
45889 All callers changed.
45891 * include/grub/normal.h: New prototype.
45893 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45894 normal/menu_entry.c.
45895 (normal_mod_SOURCES): Likewise.
45896 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45897 (normal_mod_SOURCES): Likewise.
45899 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
45901 * include/grub/normal.h (grub_halt_init): New prototype.
45902 (grub_halt_fini): Likewise.
45903 (grub_reboot_init): Likewise.
45904 (grub_reboot_fini): Likewise.
45906 * util/grub-emu.c: Include signal.h.
45907 (main_env): New global variable.
45908 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
45910 (grub_machine_fini): New function.
45911 (main): Call grub_halt_init and grub_reboot_init before
45912 grub_main, and grub_reboot_fini and grub_halt_fini after it.
45913 Call setjmp with MAIN_ENV to go back afterwards.
45914 Call grub_machine_fini right before return.
45916 * include/grub/util/misc.h: Include setjmp.h.
45917 (main_env): New prototype.
45919 * include/grub/kernel.h (grub_machine_fini): New prototype.
45920 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
45921 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
45923 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
45924 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
45925 * term/i386/pc/console.c (grub_console_fini): Likewise.
45927 * util/i386/pc/misc.c: New file.
45929 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45930 util/i386/pc/misc.c, commands/i386/pc/halt.c and
45931 commands/i386/pc/reboot.c.
45933 2005-02-14 Guillem Jover <guillem@hadrons.org>
45935 * include/grub/dl.h (grub_dl_check_header): New prototype.
45936 (grub_arch_dl_check_header): Change return type to grub_err_t,
45937 remove size parameter and export function. Update all callers.
45938 * kern/dl.c (grub_dl_check_header): New function.
45939 (grub_dl_load_core): Use `grub_dl_check_header' instead of
45940 `grub_arch_dl_check_header'. Check ELF type. Check if sections
45941 are inside the core.
45942 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
45943 independent ELF header checks.
45944 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
45945 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
45946 `grub_dl_check_header' instead of explicit checks. Check for the
45948 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
45949 `grub_dl_check_header' instead of explicit checks. Remove arch
45950 specific ELF header checks.
45952 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
45955 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
45957 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
45958 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
45960 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
45962 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
45963 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
45964 (part_map_iterate): Clear `grub_errno' and return 0 if
45965 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
45966 * partmap/amiga.c (amiga_partition_map_iterate): Return
45967 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
45968 * partmap/apple.c (apple_partition_map_iterate): Likewise.
45970 2005-02-01 Guillem Jover <guillem@hadrons.org>
45972 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
45975 2005-01-31 Marco Gerards <metgerards@student.han.nl>
45977 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
45979 (grub_rescue_cmd_linux): New prototype.
45980 (grub_rescue_cmd_initrd): Likewise.
45981 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
45983 (grub_linux_release_mem): Release the memory for the initrd.
45984 (grub_load_linux): Renamed from this...
45985 (grub_rescue_cmd_linux): ...To this. Changed all callers.
45986 Changed `entry' not to be static. Loop over memory regions to
45987 find another one when the default fails.
45988 (grub_rescue_cmd_initrd): New function.
45989 (grub_linux_init): Remove function.
45990 (grub_linux_fini): Likewise.
45991 (GRUB_MOD_INIT): Register `initrd'.
45992 (GRUB_MOD_FINI): Unregister `initrd'.
45993 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
45995 (grub_linux_normal_fini): Likewise.
45996 (GRUB_MOD_INIT): Register `initrd'.
45997 (GRUB_MOD_FINI): Unregister `initrd'.
45999 2005-01-31 Marco Gerards <metgerards@student.han.nl>
46001 * commands/help.c: New file.
46002 * normal/arg.c (show_help): Renamed to...
46003 (grub_arg_show_help): ... this.
46004 * commands/i386/pc/halt.c: New file.
46005 * commands/i386/pc/reboot.c: Likewise.
46006 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
46007 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
46008 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
46009 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
46011 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46013 (pkgdata_MODULES): Add `help.mod'.
46014 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
46015 * grub/i386/pc/init.h (grub_reboot): New prototype.
46016 (grub_halt): Likewise.
46017 * include/grub/normal.h (grub_arg_show_help): New prototype.
46018 (grub_help_init): Likewise.
46019 (grub_help_fini): Likewise.
46020 * util/grub-emu.c (main): Initialize and deinitialize the help
46023 * normal/cmdline.c (grub_cmdline_get): Doc fix.
46025 * normal/command.c (grub_command_init): Fixed the description of
46026 the `set' and `unset' commands.
46028 2005-01-31 Marco Gerards <metgerards@student.han.nl>
46030 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
46032 * commands/ieee1275/halt.c: New file.
46033 * commands/ieee1275/reboot.c: Likewise.
46034 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
46035 `__attribute__ ((unused))'. Some GCS related fixed.
46036 (grub_suspend_init) [GRUB_UTIL]: Function removed.
46037 (grub_suspend_fini): Likewise.
46038 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
46040 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
46041 (halt_mod_CFLAGS): New variables.
46042 * include/grub/powerpc/ieee1275/ieee1275.h
46043 (grub_ieee1275_interpret): New prototype.
46045 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
46047 * include/grub/misc.h (memmove): New prototype.
46048 (memcpy): Likewise.
46050 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
46052 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
46053 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
46055 2005-01-22 Marco Gerards <metgerards@student.han.nl>
46057 * kern/misc.c (grub_strndup): Function rewritten.
46059 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
46061 * normal/menu.c (TERM_WIDTH): Macro redefined.
46062 (TERM_TOP_BORDER_Y): Likewise.
46063 (draw_border): Replaced while-loop by a for-loop. Make the number
46064 of lines consistent with the number of lines displayed in
46065 print_entries. Added a margin below the rectangle.
46066 (print_entry): Make the entry fit in the rectangle.
46067 (print_entries): Display the scroll arrows next to the right
46070 2005-01-21 Marco Gerards <metgerards@student.han.nl>
46072 * fs/minix.c (grub_minix_find_file): Reserve more space for
46073 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
46074 `grub_strncpy' to copy `path' into it.
46076 2005-01-21 Marco Gerards <metgerards@student.han.nl>
46078 Add the loopback device, a device via which files can be accessed
46081 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
46082 (pkgdata_MODULES): Add loopback.mod.
46083 (loopback_mod_SOURCES): New variable.
46084 (loopback_mod_CFLAGS): Likewise.
46085 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46087 (pkgdata_MODULES): Add loopback.mod.
46088 (loopback_mod_SOURCES): New variable.
46089 (loopback_mod_CFLAGS): Likewise.
46090 * disk/loopback.c: new file.
46091 * include/grub/normal.h (grub_loop_init): New prototype.
46092 (grub_loop_fini): New prototype.
46093 * util/grub-emu.c (main): Initialize and de-initialize loopback
46095 * include/grub/disk.h (grub_disk_dev_id): Add
46096 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
46098 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
46100 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
46102 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
46103 (suspend_mod_SOURCES): New variable.
46104 (suspend_mod_CFLAGS): Likewise.
46105 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
46107 * commands/ieee1275/suspend.c: New file.
46109 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
46111 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
46112 ((unused))' to `__attribute__ ((used))'.
46113 (GRUB_MOD_FINI): Likewise.
46114 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
46115 * genmk.rb (PModule): Assign space to common symbols when linking
46118 2005-01-20 Marco Gerards <metgerards@student.han.nl>
46120 * include/grub/mm.h (grub_mm_init_region): Change the type of the
46121 `unsigned' arguments to `grub_size_t'.
46122 (grub_malloc): Likewise.
46123 (grub_realloc): Likewise.
46124 (grub_memalign): Likewise.
46125 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
46126 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
46127 * util/misc.c (grub_malloc): Likewise.
46128 (grub_realloc): Likewise.
46129 * kern/mm.c (get_header_from_pointer): Change the casts to
46130 `unsigned' into a cast to `grub_size_t'.
46132 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
46133 point to `currnode' when `currnode' is changed.
46135 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
46136 Schottelius <nico-linux@schottelius.org>.
46138 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
46140 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
46141 (note_path): Remove variable.
46142 (GRUB_IEEE1275_NOTE_NAME): New macro.
46143 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
46144 (grub_ieee1275_note_hdr): New structure.
46145 (grub_ieee1275_note_desc): Likewise.
46146 (grub_ieee1275_note): Likewise.
46147 (load_note): Remove `dir' argument. All callers updated. Remove
46148 `note_img' and `path'. Do not load a file from `note_path'.
46149 Initialize a struct grub_ieee1275_note and write that to `out'.
46150 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
46152 2005-01-05 Marco Gerards <metgerards@student.han.nl>
46154 * util/misc.c (grub_util_read_image): Revert last change. It
46155 called `grub_util_read_at', which seeks from the beginning of the
46158 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
46160 * TODO: Add note about endianness in grub-mkimage.
46161 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
46163 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
46164 (grub_mkimage_SOURCES): New target.
46165 * include/grub/kernel.h (grub_start_addr): Remove variable.
46166 (grub_end_addr): Likewise.
46167 (grub_total_module_size): Likewise.
46168 (grub_kernel_image_size): Likewise.
46169 (GRUB_MODULE_MAGIC): New constant.
46170 (grub_module_info): New structure.
46171 (grub_arch_modules_addr): New prototype.
46172 (grub_get_end_addr): Remove prototype.
46173 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
46174 * include/grub/powerpc/ieee1275/kernel.h: New file.
46175 * include/grub/util/misc.h (grub_util_get_fp_size): New
46177 (grub_util_read_at): Likewise.
46178 (grub_util_write_image_at): Likewise.
46179 * kern/main.c (grub_get_end_addr): Remove function.
46180 (grub_load_modules): Call grub_arch_modules_addr instead of using
46181 grub_end_addr. Look for a grub_module_info struct in memory. Use
46182 the grub_module_info fields instead of calling grub_get_end_addr
46183 as loop conditions. Move grub_add_unused_region code here.
46184 (grub_add_unused_region): Remove function.
46185 * kern/i386/pc/init.c: Include grub/cache.h.
46186 (grub_machine_init): Remove call to grub_get_end_addr. Remove
46187 one call to add_mem_region.
46188 (grub_arch_modules_addr): New function.
46189 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
46190 (grub_total_module_size): Likewise.
46191 Include grub/machine/kernel.h.
46192 (grub_arch_modules_addr): New function.
46193 * util/grub-emu.c (grub_end_addr): Remove variable.
46194 (grub_total_module_size): Likewise.
46195 (grub_arch_modules_addr): New function.
46196 * util/misc.c: Include unistd.h.
46197 (grub_util_get_fp_size): New function.
46198 (grub_util_read_at): Likewise.
46199 (grub_util_write_image_at): Likewise.
46200 (grub_util_read_image): Call grub_util_read_at.
46201 (grub_util_write_image): Call grub_util_write_image_at.
46202 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
46203 additional memory in kernel_img for a struct grub_module_info.
46204 Fill in that grub_module_info.
46205 * util/powerpc/ieee1275/grub-mkimage.c: New file.
46207 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
46209 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
46211 * include/grub/powerpc/ieee1275/ieee1275.h
46212 (grub_ieee1275_milliseconds): New prototype.
46213 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
46215 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
46216 grub_ieee1275_milliseconds.
46218 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
46220 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
46222 (find_options): New function.
46223 (cmain): Call find_options.
46224 * include/grub/powerpc/ieee1275/ieee1275.h
46225 (grub_ieee1275_realmode): New extern variable.
46226 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
46227 grub_map if grub_ieee1275_realmode is false.
46229 2004-12-29 Marco Gerards <metgerards@student.han.nl>
46231 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
46232 lines are inserted and make it work like readline. Reported by
46233 Vincent Pelletier <subdino2004@yahoo.fr>.
46235 2004-12-28 Marco Gerards <metgerards@student.han.nl>
46237 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
46239 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
46240 `kern/powerpc/cache.S'.
46242 2004-12-27 Marco Gerards <metgerards@student.han.nl>
46244 * genmk.rb: Handle the `Program' class in the main loop. Written
46245 by Johan Rydberg <jrydberg@gnu.org>.
46246 (Program): New class.
46247 (programs): New variable.
46248 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
46249 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
46250 instead of "grub/kernel.h". Include <grub/machine/init.h>.
46251 (help_arch): Function removed.
46252 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
46253 `powerpc/libgcc.h' and `loader.h'.
46254 (pkgdata_PROGRAMS): New variable.
46255 (sbin_UTILITIES): Variable removed.
46256 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
46257 (grubof_SOURCES): Variable re-defined so it only includes the
46258 core functionality.
46259 (grubof_CFLAGS): Remove `-DGRUBOF'.
46260 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
46261 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
46262 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
46263 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
46264 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
46265 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
46266 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
46267 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
46268 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
46269 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
46270 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
46271 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
46272 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
46273 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
46274 (pc_mod_CFLAGS): New variables.
46275 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
46276 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
46277 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
46278 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
46280 * include/grub/i386/pc/init.h (grub_os_area_addr)
46281 (rub_os_area_size): ... to here.
46282 * include/grub/powerpc/ieee1275/ieee1275.h
46283 (grub_ieee1275_entry_fn): Export symbol.
46284 * include/grub/powerpc/ieee1275/init.h: New file.
46285 * include/grub/powerpc/libgcc.h: Likewise.
46286 * include/grub/cache.h: Likewise.
46287 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
46288 <hollis@penguinppc.org>.
46289 * kern/dl.c: Include <grub/cache.h>.
46290 (grub_dl_flush_cache): New function.
46291 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
46293 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
46294 (grub_console_init): Removed prototypes.
46295 (grub_machine_init): Don't initialize the modules anymore.
46296 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
46298 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
46299 Macro undef removed.
46300 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
46301 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
46302 relocation `R_PPC_REL32'. Return an error when the relocation is
46304 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
46305 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
46306 * util/misc.c (grub_arch_sync_caches): Likewise.
46308 2004-12-19 Marco Gerards <metgerards@student.han.nl>
46310 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
46311 `symlist.c', add `grubof_symlist.c'.
46312 (symlist.c): Variable removed.
46313 (grubof_HEADERS): Variable added.
46314 (grubof_symlist.c): New target.
46315 (kernel_syms.lst): Use `grubof_HEADERS' instead of
46316 `kernel_img_HEADERS'.
46317 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
46318 * kern/powerpc/dl.c: New file.
46319 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
46321 (grub_arch_dl_relocate_symbols): Likewise.
46322 (grub_register_exported_symbols): Likewise.
46324 2004-12-13 Marco Gerards <metgerards@student.han.nl>
46326 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
46327 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
46328 to fail instead. Reported by Vincent Pelletier
46329 <subdino2004@yahoo.fr>.
46331 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
46332 it is not allocated. Reported by Vincent Pelletier
46333 <subdino2004@yahoo.fr>.
46335 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
46336 output so the output looks better.
46338 2004-12-04 Marco Gerards <metgerards@student.han.nl>
46340 Modulize the partition map support and add support for the amiga
46343 * commands/ls.c: Include <grub/partition.h> instead of
46344 <grub/machine/partition.h>.
46345 * kern/disk.c: Likewise.
46346 * kern/rescue.c: Likewise.
46347 * loader/i386/pc/chainloader.c: Likewise.
46348 * normal/cmdline.c: Likewise.
46349 * kern/powerpc/ieee1275/init.c: Likewise.
46350 (grub_machine_init): Call `grub_pc_partition_map_init',
46351 `grub_amiga_partition_map_init' and
46352 `grub_apple_partition_map_init'.
46353 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
46354 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
46355 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
46356 `partition.h' and `pc_partition.h'.
46357 (grub_setup_SOURCES): Remove
46358 `disk/i386/pc/partition.c'. Add `kern/partition.c',
46359 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
46360 (grub_emu_SOURCES): Likewise.
46361 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
46362 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
46363 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
46364 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
46365 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
46366 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
46367 (grubof_SOURCES): Likewise.
46368 * disk/i386/pc/partition.c: File removed.
46369 * disk/powerpc/ieee1275/partition.c: Likewise.
46370 * include/grub/powerpc/ieee1275/partition.h: Likewise.
46371 * include/grub/i386/pc/partition.h: Likewise.
46372 * kern/partition.c: New file.
46373 * partmap/amiga.c: Likewise.
46374 * partmap/apple.c: Likewise.
46375 * partmap/pc.c: Likewise.
46376 * include/grub/partition.h: Likewise..
46377 * include/grub/pc_partition.h: Likewise.
46378 * util/grub-emu.c: Include <grub/partition.h> instead of
46379 <grub/machine/partition.h>.
46380 (main): Call `grub_pc_partition_map_init',
46381 `grub_amiga_partition_map_init' and
46382 `grub_apple_partition_map_init' and deinitialize afterwards.
46383 * util/i386/pc/biosdisk.c: Include `#include
46384 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
46385 `<grub/machine/partition.h>'.
46386 * util/i386/pc/grub-setup.c: Likewise.
46387 * util/i386/pc/biosdisk.c: Likewise.
46388 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
46389 partition information in case of a PC partition.
46390 * util/i386/pc/grub-setup.c: Include `#include
46391 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
46392 `<grub/machine/partition.h>'.
46393 (setup): Only access the PC specific partition information in case
46396 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
46398 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
46399 (grub_longjmp): Likewise.
46400 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
46402 * normal/powerpc/setjmp.S: New file.
46403 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
46404 `normal/powerpc/setjmp.S'.
46405 (grubof_CFLAGS): Add `-DGRUBOF'.
46406 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
46407 [GRUB_UTIL && !GRUBOF].
46409 2004-11-16 Marco Gerards <metgerards@student.han.nl>
46411 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
46412 property named `name'. Correctly handle the error returned by
46413 `grub_ieee1275_finddevice' if a device can not be opened.
46415 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
46417 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
46418 `actual' for negativity.
46419 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
46422 2004-11-01 Marco Gerards <metgerards@student.han.nl>
46424 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
46425 (PAGE_OFFSET): New macro.
46426 (CRTC_ADDR_PORT): Likewise.
46427 (CRTC_DATA_PORT): Likewise.
46428 (START_ADDR_HIGH_REGISTER): Likewise.
46429 (START_ADDR_LOW_REGISTER): Likewise.
46430 (GRAPHICS_ADDR_PORT): Likewise.
46431 (GRAPHICS_DATA_PORT): Likewise.
46432 (READ_MAP_REGISTER): Likewise.
46433 (INPUT_STATUS1_REGISTER): Likewise.
46434 (INPUT_STATUS1_VERTR_BIT): Likewise.
46435 (page): New variable.
46436 (wait_vretrace): New function.
46437 (set_read_map): Likewise.
46438 (set_start_address): Likewise.
46439 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
46441 (check_vga_mem): Take the page into account.
46442 (write_char): Likewise.
46443 (write_cursor): Likewise.
46444 (scroll_up): Likewise. Copy the page to the page that is not
46445 shown and switch between both pages.
46446 (grub_vga_putchar): Fix off by one error.
46447 (grub_vga_cls): Wait for the vertical retrace. Take the page into
46450 2004-11-01 Marco Gerards <metgerards@student.han.nl>
46452 Add support for iso9660 (including rockridge).
46454 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
46455 (iso9660_mod_SOURCES): New variable.
46456 (iso9660_mod_CFLAGS): Likewise.
46457 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
46458 * include/grub/fs.h (grub_iso9660_init): New prototype.
46459 * util/grub-emu.c (main): Call `grub_iso9660_init'.
46460 * fs/iso9660.c: New file.
46462 * include/grub/misc.h (grub_strncat): New prototype.
46463 * kern/misc.c (grub_strncat): New function.
46465 * fs/hfs.c (grub_hfs_mount): Translate the error
46466 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
46467 * fs/jfs.c (grub_jfs_mount): Likewise.
46468 * fs/ufs.c (grub_ufs_mount): Likewise.
46470 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
46472 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
46473 which initialized BAT registers.
46474 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
46475 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
46477 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
46478 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
46480 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
46481 (grub_mapclaim): Likewise.
46482 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
46483 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
46486 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
46488 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
46489 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
46490 -ffreestanding and -msoft-float.
46492 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
46494 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
46495 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
46496 set in grub_ieee1275_flags.
46498 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
46500 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
46502 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
46503 grub_console_init first.
46504 Change the memory range used for grub_ieee1275_claim and
46505 grub_mm_init_region.
46506 Print an error message if the claim fails.
46507 Include <grub/misc.h>.
46509 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
46511 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
46512 Call grub_children_iterate for device nodes of type `scsi',
46514 (grub_ofdisk_open): Remove manual device alias resolution.
46515 Fix memory leak when device cannot be opened.
46516 * include/grub/powerpc/ieee1275/ieee1275.h
46517 (grub_children_iterate): New prototype.
46518 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
46520 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46521 Return -1 if args.size was -1.
46523 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
46525 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
46526 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
46527 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
46528 Open Firmware's memory for it; claim memory from _start to _end.
46529 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
46530 (_end): New extern.
46531 (_start): Zero BSS from __bss_start to _end.
46532 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
46534 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
46536 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
46538 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
46539 -1 if args.base was -1.
46541 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
46543 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
46544 escape sequence instead of a literal ^L. Also call
46545 grub_ofconsole_gotoxy.
46547 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
46549 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
46550 void * arguments to grub_addr_t. All callers updated. Also make
46551 the `result' argument optional.
46552 (grub_ieee1275_release): change void * arguments to grub_addr_t.
46553 All callers updated.
46555 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
46557 * commands/ls.c (grub_ls_list_files): Use the string following the
46558 initial ')', if present, as the filesystem path.
46559 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
46561 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
46563 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
46565 Make the source code of the menu interface more readable.
46567 * normal/menu.c: Include grub/mm.h.
46568 (TERM_WIDTH): New macro.
46569 (TERM_HEIGHT): Likewise.
46570 (TERM_INFO_HEIGHT): Likewise.
46571 (TERM_MARGIN): Likewise.
46572 (TERM_SCROLL_WIDTH): Likewise.
46573 (TERM_TOP_BORDER_Y): Likewise.
46574 (TERM_LEFT_BORDER_X): Likewise.
46575 (TERM_BORDER_WIDTH): Likewise.
46576 (TERM_MESSAGE_HEIGHT): Likewise.
46577 (TERM_BORDER_HEIGHT): Likewise.
46578 (TERM_NUM_ENTRIES): Likewise.
46579 (TERM_FIRST_ENTRY_Y): Likewise.
46580 (TERM_ENTRY_WIDTH): Likewise.
46581 (TERM_CURSOR_X): Likewise.
46582 (draw_border): Use macros instead of magic numbers.
46583 (print_entry): Likewise.
46584 (print_entries): Likewise.
46585 (run_menu): Likewise. Also, handle the key 'e'.
46586 (run_menu_entry): Ignore empty command lines.
46587 (print_message): Added a new argument EDIT. If EDIT is true,
46588 print a different message.
46589 (init_page): Likewise.
46590 (edit_menu_entry): New function. Not implemented yet.
46592 2004-09-17 Marco Gerards <metgerards@student.han.nl>
46594 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
46595 can be loaded from normal mode.
46597 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
46599 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
46600 (multiboot_mod_CFLAGS): New variables.
46601 * loader/i386/pc/linux_normal.c: New file.
46602 * loader/i386/pc/multiboot_normal.c: Likewise.
46604 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
46605 attribute `unused'.
46607 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
46608 `fdiro' to read the mode information from instead of `diro'.
46610 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
46611 looking up a symlink.
46613 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
46615 * normal/command.c (grub_command_execute): Don't parse the
46616 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
46617 flags of the command.
46619 * normal/menu.c (grub_menu_run): Fix typo.
46621 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
46623 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
46625 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
46626 `y + 1' instead of `y - 1'.
46628 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
46630 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
46632 From Hollis Blanchard <hollis@penguinppc.org>:
46633 * kern/misc.c (memmove): New alias for grub_memmove.
46634 (memcmp): New alias for grub_memcmp.
46635 (memset): New alias for grub_memset.
46636 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46637 Change "int handle" to "grub_ieee1275_phandle_t handle".
46638 * include/grub/powerpc/ieee1275/ieee1275.h
46639 (grub_ieee1275_get_property): Likewise.
46641 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
46643 Added normal mode command `chainloader' as module chain.mod, which
46644 depends on normal.mod and _chain.mod.
46646 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
46647 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
46648 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
46650 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
46651 but arguments parsing moved to ...
46652 (grub_chainloader_cmd): ... here. New function.
46653 * include/grub/i386/pc/chainloader.h: New file.
46654 * loader/i386/pc/chainloader_normal.c: Likewise.
46656 2004-09-11 Marco Gerards <metgerards@student.han.nl>
46658 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
46659 (grub_mkimage_LDFLAGS): Likewise.
46660 (grub_emu_SOURCES): Likewise.
46661 (kernel_img_HEADERS): Added fshelp.h.
46662 * fs/ext2.c: Include <grub/fshelp.h>.
46663 (FILETYPE_REG): New macro.
46664 (FILETYPE_INO_REG): Likewise.
46665 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
46667 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
46669 (grub_fshelp_node): New struct.
46670 (grub_ext2_data): Added member `diropen'. Changed member `inode'
46672 (grub_ext2_get_file_block): Removed function.
46673 (grub_ext2_read_block): New function.
46674 (grub_ext2_read_file): Replaced parameter `data' by `node'.
46675 This function was written.
46676 (grub_ext2_mount): Read the root inode. Create a diropen struct.
46677 (grub_ext2_find_file): Removed function.
46678 (grub_ext2_read_symlink): New function.
46679 (grub_ext2_iterate_dir): Likewise.
46680 (grub_ext2_open): Rewritten.
46681 (grub_ext2_dir): Rewritten.
46682 * include/grub/fshelp.h: New file.
46683 * fs/fshelp.c: Likewise.
46685 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
46687 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
46688 (print_message): Add a missing newline.
46689 (run_menu): Added timeout support.
46690 (run_menu_entry): New local function.
46691 (grub_menu_run): Added support for booting.
46693 * kern/loader.c (grub_loader_is_loaded): New function.
46695 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
46696 (grub_get_rtc): Exported.
46698 * include/grub/i386/pc/time.h: Include grub/symbol.h.
46699 (grub_get_rtc): Exported.
46701 * include/grub/normal.h (struct grub_command_list): Remove
46702 constant from the member `command'.
46704 * include/grub/loader.h (grub_loader_is_loaded): Declared.
46706 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
46708 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
46710 2004-08-28 Marco Gerards <metgerards@student.han.nl>
46712 Add support for the JFS filesystem.
46714 * fs/jfs.c: New file.
46715 * include/grub/fs.h (grub_jfs_init): New prototype.
46716 (grub_jfs_fini): New prototype.
46717 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
46718 (grub_emu_SOURCES): Likewise.
46719 (pkgdata_MODULES): Add jfs.mod.
46720 (jfs_mod_SOURCES): New variable.
46721 (jfs_mod_CFLAGS): Likewise.
46722 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
46723 (grubof_SOURCES): Likewise.
46724 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
46726 * fs/fat.c (grub_fat_find_dir): Convert the filename little
46727 endian to the host endian.
46728 (grub_fat_utf16_to_utf8): Move function from there...
46729 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
46730 the endianness of the source string anymore.
46731 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
46733 2004-08-24 Marco Gerards <metgerards@student.han.nl>
46735 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
46736 (grub_boot_fini) [GRUB_UTIL]: Likewise.
46737 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
46738 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
46740 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
46741 (grub_hfs_iterate_dir): Make the function static. Add prototypes
46742 for `node_found' and `it_dir'.
46743 (grub_hfs_dir): Add prototype for `dir_hook'.
46745 * fs/minix.c (grub_minix_get_file_block): Add prototype for
46746 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
46747 and `indir32' to silence a gcc warning.
46749 * include/grub/fs.h (grub_hfs_init): New prototype.
46750 (grub_hfs_fini): Likewise.
46753 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
46755 Each disk device has its own id now. This is useful to make use
46756 of multiple disk devices.
46758 * include/grub/disk.h (grub_disk_dev_id): New enum.
46759 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
46760 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
46762 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
46763 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
46765 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
46766 GRUB_DISK_DEVICE_OFDISK_ID as an id.
46768 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
46769 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
46771 * include/grub/disk.h (struct grub_disk_dev): Added a new member
46772 "id" which is used by the cache manager.
46774 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
46777 2004-08-18 Marco Gerards <metgerards@student.han.nl>
46779 * fs/hfs.c: New file.
46780 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
46781 (grub_emu_SOURCES): Likewise.
46782 (pkgdata_MODULES): Add hfs.mod.
46783 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
46784 (grubof_SOURCES): Likewise.
46785 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
46787 * include/grub/misc.h (grub_strncasecmp): Add prototype.
46788 * kern/misc.c (grub_strncasecmp): Add function.
46790 2004-08-14 Marco Gerards <metgerards@student.han.nl>
46792 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
46795 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
46796 (grub_ext2_dir): In case the directory entry type is unknown, read
46799 2004-08-02 Peter Bruin <pjbruin@dds.nl>
46801 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
46802 grub_load_linux instead of grub_rescue_cmd_linux as second
46803 argument of grub_rescue_register_command.
46805 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
46807 2004-07-27 Marco Gerards <metgerards@student.han.nl>
46809 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
46811 * commands/boot.c: Remove the check for `GRUB_UTIL'.
46812 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
46813 `loader/powerpc/ieee1275/linux.c',
46814 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
46815 * include/grub/powerpc/ieee1275/ieee1275.h
46816 (grub_ieee1275_release): New prototype.
46817 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
46818 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
46819 normal, boot, linux and linux_normal.
46820 * loader/powerpc/ieee1275/linux.c: New file.
46821 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
46823 2004-07-12 Marco Gerards <metgerards@student.han.nl>
46825 * normal/arg.c (grub_arg_parse): Correct error handling after
46826 reallocating the argumentlist (check if `argl' is not null instead
46827 of checking if `args' is not null).
46828 * kern/mm.c (grub_realloc): Return the same pointer when using the
46829 same region, instead of returning the header address.
46831 2004-07-11 Marco Gerards <metgerards@student.han.nl>
46833 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
46834 one block instead of two when looking for the initial partition.
46835 (grub_partition_probe): Initialize the local variable `p' with 0.
46836 Use base 10 for the grub_strtoul call.
46837 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
46838 need for one local variable.
46839 (grub_strtoul): Don't add the new value to `num', instead of that
46842 2004-07-11 Marco Gerards <metgerards@student.han.nl>
46844 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
46845 (pxeboot_img_SOURCES): New variable.
46846 (pxeboot_img_ASFLAGS): Likewise.
46847 (pxeboot_img_LDFLAGS): Likewise.
46848 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
46849 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
46850 <lode_leroy@hotmail.com>.
46852 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
46854 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
46855 there was no input.
46857 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
46859 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
46860 the history buffer logic.
46862 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
46864 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
46865 (FILETYPE_INO_SYMLINK): New macros.
46866 (grub_ext2_find_file): Check if the node is a directory using the
46867 inode stat information instead of using the filetype in the
46868 dirent. Exclude the first character of an absolute symlink.
46869 (grub_ext2_dir): Mask out the filetype part of the mode member of
46872 2004-05-24 Marco Gerards <metgerards@student.han.nl>
46874 Add support for UFS version 1 and 2. Add support for the minix
46875 filesystem version 1 and 2, both the variants with 14 and 30 long
46878 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
46880 (grub_emu_SOURCES): Likewise.
46881 (pkgdata_MODULES): Add ufs.mod and minix.mod.
46882 (ufs_mod_SOURCES): New variable.
46883 (ufs_mod_CFLAGS): Likewise.
46884 (minix_mod_SOURCES): Likewise.
46885 (minix_mod_CFLAGS): Likewise.
46886 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
46888 (grubof_SOURCES): Likewise.
46889 * fs/ufs.c: New file.
46890 * fs/minix.c: New file.
46891 * include/grub/fs.h (grub_ufs_init): New prototype.
46892 (grub_ufs_fini): Likewise.
46893 (grub_minix_init): Likewise.
46894 (grub_minix_fini): Likewise.
46895 * util/grub-emu.c (main): Initialize and deinitialize UFS and
46898 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
46900 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
46901 commands/ls.c, commands/terminal.c, commands/boot.c,
46902 commands/cmp.c and commands/cat.c.
46903 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
46905 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
46908 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
46910 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
46911 and grub_, respectively. Because the conversion is trivial and
46912 mechanical, I omit the details here. Please refer to the CVS
46913 if you need more information.
46915 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
46917 * include/pupa: Renamed to ...
46918 * include/grub: ... this.
46919 * util/i386/pc/pupa-mkimage.c: Renamed to ...
46920 * util/i386/pc/grub-mkimage.c: ... this.
46921 * util/i386/pc/pupa-setup.c: Renamed to ...
46922 * util/i386/pc/grub-setup.c: ... this.
46923 * util/pupa-emu.c: Renamed to ...
46924 * util/grub-emu.c: ... this.
46926 2004-03-29 Marco Gerards <metgerards@student.han.nl>
46928 Add support for the newworld apple macintosh (PPC). This has been
46929 tested on the powerbook 2000 only. It only adds support for
46930 generic ieee1275 functions, console and disk support. This should
46931 be easy to port to other architectures with support for Open
46934 * configure.ac: Accept the powerpc as host_cpu. In the case of
46935 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
46936 specific tests are only executed while building for the i386.
46937 Inverse test for crosscompile.
46938 * genmk.rb (Utility): Allow assembler files.
46939 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
46940 * conf/powerpc-ieee1275.rmk: New file.
46941 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
46942 * disk/powerpc/ieee1275/partition.c: Likewise.
46943 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
46944 * include/pupa/powerpc/ieee1275/console.h: Likewise.
46945 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
46946 * include/pupa/powerpc/ieee1275/time.h: Likewise.
46947 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
46948 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
46949 * include/pupa/powerpc/ieee1275/loader.h
46950 * include/pupa/powerpc/setjmp.h: Likewise.
46951 * include/pupa/powerpc/types.h: Likewise.
46952 * kern/powerpc/ieee1275/init.c: Likewise.
46953 * kern/powerpc/ieee1275/openfw.c: Likewise.
46954 * term/powerpc/ieee1275/ofconsole.c: Likewise.
46956 These files were written by Johan Rydberg
46957 (jrydberg@night.trouble.net) and I only modified them slightly.
46959 * boot/powerpc/ieee1275/cmain.c: New file.
46960 * boot/powerpc/ieee1275/crt0.S: Likewise.
46961 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
46962 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
46964 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
46966 * Makefile.in: Update copyright.
46967 * genmodsrc.sh: Likewise.
46968 * gensymlist.sh: Likewise.
46969 * term/i386/pc/vga.c: Indent correctly.
46971 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
46972 bugreporting address.
46973 * util/i386/pc/pupa-setup.c (usage): Likewise,
46974 (main): Call pupa_ext2_init and pupa_ext2_fini.
46976 * fs/fat.c (log2): Renamed to ...
46977 (fat_log2): ... this.
46978 All callers changed.
46979 * kern/misc.c (memcpy): Alias to pupa_memmove.
46980 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
46982 * util/console.c (pupa_ncurses_fini): Return 0.
46984 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
46985 Move fail label here.
46986 [__GNU__]: Don't warn when using stat.
46987 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
46988 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
46989 long int. Use strtol instead of strtoul.
46991 2004-03-14 Marco Gerards <metgerards@student.han.nl>
46993 * commands/boot.c: New file.
46994 * commands/cat.c: Likewise.
46995 * commands/cmp.c: Likewise.
46996 * commands/ls.c: Likewise.
46997 * commands/terminal.c: Likewise.
46998 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
46999 (pupa_register_command): Changed interface to match the new
47001 (pupa_command_execute): Changed (almost rewritten) so it uses
47002 pupa_split_command. Added support for setting variables using the
47004 (rescue_command): Changed to work with the new argument parser.
47005 (terminal_command): Moved from here to commands/terminal.c.
47006 (set_command): New function.
47007 (unset_command): New function.
47008 (insmod_command): New function.
47009 (rmmod_command): New function.
47010 (lsmod_command): New function.
47011 (pupa_command_init): Don't initialize the command terminal
47012 anymore. Initialize the commands set, unset, insmod, rmmod and
47014 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
47015 (kernel_img_HEADERS): Add arg.h and env.h.
47016 (pupa_mkimage_LDFLAGS): Add kern/env.c.
47017 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
47018 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
47020 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
47022 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
47023 (boot_mod_SOURCES): New variable.
47024 (terminal_mod_SOURCES): Likewise.
47025 (ls_mod_SOURCES): Likewise.
47026 (cmp_mod_SOURCES): Likewise.
47027 (cat_mod_SOURCES): Likewise.
47029 * normal/arg.c: New file.
47030 * kern/env.c: Likewise.
47031 * include/pupa/arg.h: Likewise.
47032 * include/pupa/env.h: Likewise.
47033 * font/manager.c (font_command): Changed to match argument parsing
47035 (PUPA_MOD_INIT): Likewise.
47036 * hello/hello.c (pupa_cmd_hello): Likewise.
47037 (PUPA_MOD_INIT): Likewise.
47038 * include/pupa/disk.h: Include <pupa/device.h>.
47039 (pupa_print_partinfo): New prototype.
47040 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
47041 (pupa_dl_get_prefix): Likewise.
47042 * include/pupa/misc.h: Include <pupa/err.h>.
47043 (pupa_isgraph): New prototype.
47044 (pupa_isdigit): Likewise.
47045 (pupa_split_cmdline): Likewise.
47046 * include/pupa/normal.h: Include <pupa/arg.h>.
47047 (pupa_command): Changed the prototype of the member `func' to
47048 match the argument parsing interface. Added member `options'.
47049 (pupa_register_command): Updated to match function.
47050 (pupa_arg_parse): New prototype.
47051 (pupa_hello_init) [PUPA_UTIL]: New prototype.
47052 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
47053 (pupa_ls_init) [PUPA_UTIL]: Likewise.
47054 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
47055 (pupa_cat_init) [PUPA_UTIL]: Likewise.
47056 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
47057 (pupa_boot_init) [PUPA_UTIL]: Likewise.
47058 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
47059 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
47060 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
47061 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
47062 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
47063 * kern/disk.c: Include <pupa/file.h>.
47064 (pupa_print_partinfo): New function.
47065 * kern/dl.c: Include <pupa/env.h>.
47066 (pupa_dl_dir): Variable removed.
47067 (pupa_dl_load): Use the environment variable `prefix' instead of
47068 the variable pupa_dl_dir.
47069 (pupa_dl_set_prefix): Function removed.
47070 (pupa_dl_get_prefix): Likewise.
47071 * kern/i386/pc/init.c: Include <pupa/env.h>.
47072 (pupa_machine_init): Use the environment variable `prefix' instead of
47073 using pupa_dl_set_prefix to set the prefix.
47074 * kern/main.c: Include <pupa/env.h>.
47075 (pupa_set_root_dev): Use the environment variable `prefix' instead of
47076 using pupa_dl_get_prefix to get the prefix.
47077 * kern/misc.c: Include <pupa/env.h>.
47078 (pupa_isdigit): New function.
47079 (pupa_isgraph): Likewise.
47080 (pupa_ftoa): Likewise.
47081 (pupa_vsprintf): Added support for printing values of the type
47082 `double'. Make it possible to format variable output when using
47083 formatting like `%1.2%f'.
47084 (pupa_split_cmdline): New function.
47085 * kern/rescue.c: Include <pupa/env.h>.
47086 (next_word): Removed function.
47087 (pupa_rescue_cmd_prefix): Likewise.
47088 (pupa_rescue_cmd_set): New function.
47089 (pupa_rescue_cmd_unset): New function.
47090 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
47091 split the command line instead of splitting it here. Added
47092 support for setting variables using the syntax `foo=bar'. Don't
47093 initialize the prefix command anymore. Initialized the set and
47095 * normal/cmdline.c: Include <pupa/env.h>.
47096 (pupa_tab_complete): Added prototypes for print_simple_completion,
47097 print_partition_completion, add_completion, iterate_commands,
47098 iterate_dev, iterate_part and iterate_dir. Moved code to print
47099 partition information from here to kern/disk.c.
47100 (pupa_cmdline_run): Don't check if the function exists anymore.
47101 * normal/main.c: Include <pupa/env.h>.
47102 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
47103 instead of using pupa_dl_get_prefix to get the prefix.
47104 * term/i386/pc/vga.c: Include <pupa/arg.h>.
47105 (check_vga_mem): Cast pointers to `void *' to silence a gcc
47107 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
47108 (pupa_vga_setcolor): Declare unused variables with `__attribute__
47109 ((unused))' to silence a gcc warning.
47110 (pupa_vga_setcolor): Likewise.
47111 (debug_command): Changed to match argument parsing
47113 * util/pupa-emu.c: Include <pupa/env.h>.
47114 (options): Added 0's for unused fields to silence a gcc warning.
47116 (main): Use the environment variable `prefix' instead of using
47117 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
47118 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
47121 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
47122 * util/misc.c: Include <malloc.h>.
47123 (pupa_malloc): Rewritten so errors are correctly reported.
47124 (pupa_realloc): Likewise.
47125 (pupa_memalign): Likewise.
47126 (pupa_mm_init_region): Declare unused variables with
47127 `__attribute__ ((unused))' to silence a gcc warning.
47128 * normal/i386/setjmp.S: Remove tab at the end of the file to
47129 silence a gcc warning.
47130 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
47131 variables with `__attribute__ ((unused))' to silence a gcc
47133 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
47134 local variable i unsigned to silence a gcc warning.
47136 * kern/term.c: Include <pupa/misc.h>.
47137 (pupa_more_lines): New variable.
47138 (pupa_more): Likewise.
47139 (pupa_putcode): When the pager is active pause at the end of every
47141 (pupa_set_more): New function.
47142 * include/pupa/term.h (pupa_set_more): New prototype.
47145 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
47147 Now this project is GRUB 2 rather than PUPA. The location of
47148 the CVS repository was moved to GRUB's.
47150 * configure.ac: Use bug-grub as the reporting address.
47151 Use GRUB instead of PUPA.
47152 Change the version number to 1.90.
47154 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
47156 * genkernsyms.sh: Updated copyright information.
47157 * genmk.rb: Likewise.
47158 * genmodsrc.sh: Likewise.
47159 * gensymlist.sh: Likewise.
47160 * boot/i386/pc/boot.S: Likewise.
47161 * boot/i386/pc/diskboot.S: Likewise.
47162 * disk/i386/pc/biosdisk.c: Likewise.
47163 * disk/i386/pc/partition.c: Likewise.
47164 * font/manager.c: Likewise.
47165 * fs/ext2.c: Likewise.
47166 * fs/fat.c: Likewise.
47167 * include/pupa/boot.h: Likewise.
47168 * include/pupa/device.h: Likewise.
47169 * include/pupa/disk.h: Likewise.
47170 * include/pupa/dl.h: Likewise.
47171 * include/pupa/elf.h: Likewise.
47172 * include/pupa/err.h: Likewise.
47173 * include/pupa/file.h: Likewise.
47174 * include/pupa/font.h: Likewise.
47175 * include/pupa/fs.h: Likewise.
47176 * include/pupa/kernel.h: Likewise.
47177 * include/pupa/loader.h: Likewise.
47178 * include/pupa/misc.h: Likewise.
47179 * include/pupa/mm.h: Likewise.
47180 * include/pupa/net.h: Likewise.
47181 * include/pupa/normal.h: Likewise.
47182 * include/pupa/rescue.h: Likewise.
47183 * include/pupa/setjmp.h: Likewise.
47184 * include/pupa/symbol.h: Likewise.
47185 * include/pupa/term.h: Likewise.
47186 * include/pupa/types.h: Likewise.
47187 * include/pupa/i386/setjmp.h: Likewise.
47188 * include/pupa/i386/types.h: Likewise.
47189 * include/pupa/i386/pc/biosdisk.h: Likewise.
47190 * include/pupa/i386/pc/boot.h: Likewise.
47191 * include/pupa/i386/pc/console.h: Likewise.
47192 * include/pupa/i386/pc/init.h: Likewise.
47193 * include/pupa/i386/pc/kernel.h: Likewise.
47194 * include/pupa/i386/pc/linux.h: Likewise.
47195 * include/pupa/i386/pc/loader.h: Likewise.
47196 * include/pupa/i386/pc/memory.h: Likewise.
47197 * include/pupa/i386/pc/multiboot.h: Likewise.
47198 * include/pupa/i386/pc/partition.h: Likewise.
47199 * include/pupa/i386/pc/time.h: Likewise.
47200 * include/pupa/i386/pc/vga.h: Likewise.
47201 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
47202 * include/pupa/util/getroot.h: Likewise.
47203 * include/pupa/util/misc.h: Likewise.
47204 * include/pupa/util/resolve.h: Likewise.
47205 * kern/device.c: Likewise.
47206 * kern/disk.c: Likewise.
47207 * kern/dl.c: Likewise.
47208 * kern/err.c: Likewise.
47209 * kern/file.c: Likewise.
47210 * kern/fs.c: Likewise.
47211 * kern/loader.c: Likewise.
47212 * kern/main.c: Likewise.
47213 * kern/misc.c: Likewise.
47214 * kern/mm.c: Likewise.
47215 * kern/rescue.c: Likewise.
47216 * kern/term.c: Likewise.
47217 * kern/i386/dl.c: Likewise.
47218 * kern/i386/pc/init.c: Likewise.
47219 * kern/i386/pc/lzo1x.S: Likewise.
47220 * kern/i386/pc/startup.S: Likewise.
47221 * loader/i386/pc/chainloader.c: Likewise.
47222 * loader/i386/pc/linux.c: Likewise.
47223 * loader/i386/pc/multiboot.c: Likewise.
47224 * normal/cmdline.c: Likewise.
47225 * normal/command.c: Likewise.
47226 * normal/main.c: Likewise.
47227 * normal/menu.c: Likewise.
47228 * normal/i386/setjmp.S: Likewise.
47229 * term/i386/pc/console.c: Likewise.
47230 * term/i386/pc/vga.c: Likewise.
47231 * util/console.c: Likewise.
47232 * util/genmoddep.c: Likewise.
47233 * util/misc.c: Likewise.
47234 * util/pupa-emu.c: Likewise.
47235 * util/resolve.c: Likewise.
47236 * util/unifont2pff.rb: Likewise.
47237 * util/i386/pc/biosdisk.c: Likewise.
47238 * util/i386/pc/getroot.c: Likewise.
47239 * util/i386/pc/pupa-mkimage.c: Likewise.
47240 * util/i386/pc/pupa-setup.c: Likewise.
47242 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
47244 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
47245 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
47246 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
47247 reading and reset it after reading.
47248 (pupa_ext2_close): Return PUPA_ERR_NONE.
47250 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
47252 (struct linux_kernel_header): Add kernel_version and
47254 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
47255 pupa_file_read succeeds.
47256 (pupa_rescue_cmd_initrd): Implement.
47258 2003-12-03 Marco Gerards <metgerards@student.han.nl>
47260 * fs/ext2.c (pupa_ext2_label): New function.
47261 (pupa_ext2_fs): Added label.
47262 * fs/fat.c (pupa_fat_label): New function.
47263 (pupa_fat_fs): Added label.
47264 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
47266 * kern/misc.c (pupa_strndup): New function.
47267 * include/pupa/misc.h (pupa_strndup): New prototype.
47269 * include/pupa/normal.h: Include <pupa/err.h>.
47270 (pupa_set_history): New prototype.
47271 (pupa_iterate_commands): New prototype.
47272 * normal/cmdline.c: Include <pupa/machine/partition.h>,
47273 <pupa/disk.h>, <pupa/file.h>.
47274 (hist_size): New variable.
47275 (hist_lines): Likewise.
47276 (hist_end): Likewise.
47277 (hist_used): Likewise.
47278 (pupa_set_history): New function.
47279 (pupa_history_get): Likewise.
47280 (pupa_history_add): Likewise.
47281 (pupa_history_replace): Likewise.
47282 (pupa_tab_complete): Likewise.
47283 (pupa_cmdline_run): Added tab completion and history buffer. Tab
47284 completion shows partitionnames while completing partitions, this
47285 feature was suggested by Jeff Bailey.
47286 * normal/command.c (pupa_iterate_commands): New function.
47287 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
47288 (pupa_normal_init): Initialize history buffer.
47289 (PUPA_MOD_INIT): Likewise.
47290 (pupa_normal_fini): Free the history buffer.
47291 (PUPA_MOD_FINI): Likewise.
47293 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
47296 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
47297 * configure.ac [i386]: Check for regparam bug.
47298 (NESTED_FUNC_ATTR) [! i386]: Defined.
47300 2003-11-17 Marco Gerards <metgerards@student.han.nl>
47302 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
47303 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
47304 (pupa_emu_SOURCES): New variable.
47305 (pupa_emu_LDFLAGS): Likewise.
47306 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
47307 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
47308 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
47309 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
47310 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
47311 (pupa_jmp_buf): New typedef.
47312 (pupa_setjmp) [PUPA_UTIL]: New macro.
47313 (pupa_longjmp) [PUPA_UTIL]: Likewise.
47314 * include/pupa/term.h (struct pupa_term): New member `refresh'.
47315 (pupa_refresh): New prototype.
47316 * include/pupa/util/getroot.h: New file.
47317 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
47319 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
47320 (pupa_rescue_cmd_cat): Likewise.
47321 (pupa_rescue_cmd_ls): Likewise.
47322 (pupa_rescue_cmd_testload): Likewise.
47323 (pupa_rescue_cmd_lsmod): Likewise.
47324 * normal/cmdline.c (pupa_cmdline_get): Likewise.
47325 * normal/menu.c (run_menu): Likewise.
47326 * kern/term.c (pupa_cls): Likewise.
47327 (pupa_refresh): New function.
47328 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
47329 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
47330 * util/console.c: New file.
47332 * util/i386/pc/getroot.c: New file.
47333 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
47334 (pupa_putchar): New function.
47335 (pupa_refresh): Likewise.
47336 (xgetcwd): Function moved to ...
47337 (strip_extra_slashes): Likewise.
47338 (get_prefix): Likewise.
47339 * util/i386/pc/getroot.c: ... here.
47340 (find_root_device): Function moved and renamed to...
47341 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
47342 Changed all callers.
47343 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
47345 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
47346 Changed all callers.
47347 * util/misc.c (pupa_memalign): New function.
47348 (pupa_mm_init_region): Likewise.
47349 (pupa_register_exported_symbols): Likewise.
47350 (pupa_putchar): Function removed.
47351 * util/pupa-emu.c: New file.
47353 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
47355 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
47356 (_multiboot_mod_SOURCES): New variable.
47357 (_multiboot_mod_CFLAGS): Likewise.
47358 * loader/i386/pc/multiboot.c: New file.
47359 * include/pupa/i386/pc/multiboot.h: Likewise.
47360 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
47361 (pupa_multiboot_real_boot): New function.
47362 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
47363 (pupa_multiboot_real_boot): New prototype.
47364 (pupa_rescue_cmd_multiboot): Likewise
47365 (pupa_rescue_cmd_module): Likewise.
47367 * kern/loader.c (pupa_loader_set): Continue when
47368 pupa_loader_unload_func() fails.
47369 (pupa_loader_unset): New function.
47370 * include/pupa/loader.h (pupa_loader_unset): New prototype.
47372 * kern/misc.c (pupa_stpcpy): New function.
47373 * include/pupa/misc.h (pupa_stpcpy): New prototype.
47375 2003-11-12 Marco Gerards <metgerards@student.han.nl>
47377 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
47378 for available extensions.
47380 * include/pupa/i386/pc/time.h: New file.
47381 * kern/disk.c: Include <pupa/machine/time.h>.
47382 (PUPA_CACHE_TIMEOUT): New macro.
47383 (pupa_last_time): New variable.
47384 (pupa_disk_open): Flush the cache when there was a timeout.
47385 (pupa_disk_close): Reset the timer.
47386 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
47388 * util/misc.c: Include <sys/times.h>
47389 (pupa_get_rtc): New function.
47391 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
47393 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
47395 (pupa_ext2_get_file_block): Use blocks member.
47397 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
47398 first block. Return -1 instead of pupa_errno on error.
47400 2003-10-27 Marco Gerards <metgerards@student.han.nl>
47402 * README: In the pupa-mkimage example use _chain instead of chain
47403 and ext2 instead of fat.
47404 * TODO: Replace ext2fs with jfs as an example. Add an item for
47405 adding journal playback for ext2fs.
47406 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
47407 (pkgdata_MODULES): Added ext2.mod.
47408 (ext2_mod_SOURCES): New variable.
47409 (ext2_mod_CFLAGS): Likewise.
47410 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
47411 * include/pupa/misc.h (pupa_strncpy): New prototype.
47412 (pupa_strcat): Likewise.
47413 (pupa_strncmp): Likewise.
47414 * kern/misc.c (pupa_strcat): Enable function.
47415 (pupa_strncpy): New function.
47416 (pupa_strncmp): Likewise.
47417 * fs/ext2.c: New file.
47419 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
47420 when the read failed before retrying.
47421 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
47422 (_FILE_OFFSET_BITS): Likewise.
47423 * configure.ac: Added AC_SYS_LARGEFILE.
47425 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
47427 * genmk.rb (PModule#rule): Make sure to get only symbol names
47428 from the output of nm.
47429 Reported by Robert Millan <rmh.grub@aybabtu.com>.
47431 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
47433 I forgot to check in these changes for a long time. This adds
47434 incomplete support for VGA console, and this is still very
47435 buggy. Also, a lot of consideration is required for I18N,
47436 UNICODE, and VGA font issues. Therefore, assume that this is
47437 such that "better than nothing".
47439 * font/manager.c: New file.
47440 * include/pupa/font.h: Likewise.
47441 * include/pupa/i386/pc/vga.h: Likewise.
47442 * term/i386/pc/vga.c: Likewise.
47443 * util/unifont2pff.rb: Likewise.
47445 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
47446 (pkgdata_MODULES): Added vga.mod and font.mod.
47447 (vga_mod_SOURCES): New variables.
47448 (vga_mod_CFLAGS): Likewise.
47449 (font_mod_SOURCES): Likewise.
47450 (font_mod_CFLAGS): Likewise.
47452 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
47454 * include/pupa/term.h: Include pupa/err.h.
47455 (struct pupa_term): Added init and fini.
47456 Changed the argument of putchar to pupa_uint32_t.
47458 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
47459 (pupa_console_real_putchar): New prototype.
47460 (pupa_console_putchar): Removed.
47461 (pupa_console_checkkey): Exported.
47462 (pupa_console_getkey): Likewise.
47464 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
47467 * kern/term.c (pupa_term_set_current): Rewritten.
47468 (pupa_putchar): Likewise.
47469 (pupa_putcode): New function.
47471 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
47472 (pupa_console_real_putchar): ... this.
47473 (pupa_vga_set_mode): New function.
47474 (pupa_vga_get_font): Likewise.
47476 * normal/command.c: Include pupa/term.h.
47477 (terminal_command): New function.
47478 (pupa_command_init): Register the command "terminal".
47480 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
47481 (DISP_UP): Likewise.
47482 (DISP_RIGHT): Likewise.
47483 (DISP_DOWN): Likewise.
47484 (DISP_HLINE): Likewise.
47485 (DISP_VLINE): Likewise.
47486 (DISP_UL): Likewise.
47487 (DISP_UR): Likewise.
47488 (DISP_LL): Likewise.
47489 (DISP_LR): Likewise.
47491 * term/i386/pc/console.c (pupa_console_putchar): New function.
47493 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
47495 * util/resolve.c (pupa_util_resolve_dependencies): BUG
47496 FIX. Reverse the path_list.
47498 * include/pupa/normal.h: Export pupa_register_command and
47499 pupa_unregister_command.
47501 * hello/hello.c (pupa_cmd_hello): New module.
47502 * conf/i386-pc.rmk: Added hello.mod.
47504 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
47506 * kern/i386/pc/lzo1x.S: New file.
47508 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
47509 (compress_kernel): New variable.
47510 (generate_image): Heavily modified to support compressing a
47511 large part of the core image.
47513 * util/misc.c (pupa_util_read_image): Fix a file descriptor
47515 (pupa_util_load_image): New function.
47517 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
47518 (pupa_compressed_size): New variable.
47519 (codestart): Enable Gate A20 here.
47520 Decompress the compressed part of the core image.
47521 Rearrange the code to put functions and variables which are
47522 required for initialization in the non-compressed part.
47525 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
47528 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
47530 * include/pupa/i386/pc/kernel.h
47531 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
47532 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
47533 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
47534 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
47535 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
47537 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
47539 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
47540 (Utility#rule): Likewise.
47542 * configure.ac: Check if LZO is available.
47544 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
47546 * include/pupa/normal.h: New file.
47547 * include/pupa/setjmp.h: Likewise.
47548 * include/pupa/i386/setjmp.h: Likewise.
47549 * normal/cmdline.c: Likewise.
47550 * normal/command.c: Likewise.
47551 * normal/main.c: Likewise.
47552 * normal/menu.c: Likewise.
47553 * normal/i386/setjmp.S: Likewise.
47555 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
47556 (pupa_rescue_cmd_initrd): Likewise.
47558 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
47561 * kern/i386/pc/startup.S (translation_table): New variable.
47562 (translate_keycode): New function.
47563 (pupa_console_getkey): Call translate_keycode.
47565 * kern/rescue.c (attempt_normal_mode): New function.
47566 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
47567 it failed, print a message.
47569 * kern/mm.c (pupa_real_malloc): Print more information when a
47570 free magic is broken.
47571 (pupa_free): If the first free header is not free actually, set
47574 * kern/main.c (pupa_load_normal_mode): Just load the module
47576 (pupa_main): Don't print the message
47577 "Entering into rescue mode..." here.
47579 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
47581 (pupa_rescue_cmd_initrd): Likewise.
47582 (pupa_rescue_cmd_initrd): Likewise.
47584 * include/pupa/symbol.h (FUNCTION): Specify the type.
47585 (VARIABLE): Likewise.
47587 * include/pupa/err.h (pupa_err_t): Added
47588 PUPA_ERR_UNKNOWN_COMMAND.
47590 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
47591 (pupa_dl_get_prefix): Likewise.
47593 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
47594 Added _chain.mod and _linux.mod instead of chain.mod and
47596 (chain_mod_SOURCES): Renamed to ...
47597 (_chain_mod_SOURCES): ... this.
47598 (chain_mod_CFLAGS): Renamed to ...
47599 (_chain_mod_CFLAGS): ... this.
47600 (linux_mod_SOURCES): Renamed to ...
47601 (_linux_mod_SOURCES): ... this.
47602 (linux_mod_CFLAGS): Renamed to ...
47603 (_linux_mod_CFLAGS): ... this.
47604 (normal_mod_SOURCES): New variable.
47605 (normal_mod_CFLAGS): Likewise.
47606 (normal_mod_ASFLAGS): Likewise.
47608 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
47610 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
47613 * kern/dl.c (pupa_dl_ref): Refer depending modules
47615 (pupa_dl_unref): Unrefer depending modules recursively.
47616 Don't call pupa_dl_unload implicitly, because PUPA can crash if
47617 a module is unloaded before one depending on that module is
47619 (pupa_dl_unload): Unload depending modules explicitly,
47622 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
47624 * include/pupa/i386/pc/linux.h: New file.
47625 * loader/i386/pc/linux.c: Likewise.
47627 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
47629 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
47630 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
47631 of PUPA_CHAINLOADER_BOOT_SECTOR.
47633 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
47634 (pupa_linux_prot_size): New variable.
47635 (pupa_linux_tmp_addr): Likewise.
47636 (pupa_linux_real_addr): Likewise.
47637 (pupa_linux_boot_zimage): New function.
47638 (pupa_linux_boot_bzimage): Likewise.
47640 * kern/i386/pc/init.c (struct mem_region): New structure.
47641 (MAX_REGIONS): New macro.
47642 (mem_regions): New variable.
47643 (num_regions): Likewise.
47644 (pupa_os_area_addr): Likewise.
47645 (pupa_os_area_size): Likewise.
47646 (pupa_lower_mem): Likewise.
47647 (pupa_upper_mem): Likewise.
47648 (add_mem_region): New function.
47649 (compact_mem_regions): Likewise.
47650 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
47651 the size of the conventional memory and that of so-called upper
47652 memory (before the first memory hole).
47653 Instead of adding each found region to free memory, use
47654 add_mem_region and add them after removing overlaps.
47655 Also, add only 1/4 of the upper memory to free memory. The rest
47656 is used for loading OS images. Maybe this is ad hoc, but this
47657 makes it much easier to relocate OS images when booting.
47659 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
47660 (pupa_enter_rescue_mode): Don't register initrd and module.
47662 * kern/mm.c: Include pupa/dl.h.
47664 * kern/main.c: Include pupa/file.h and pupa/device.h.
47666 * kern/loader.c (pupa_loader_load_module_func): Removed.
47667 (pupa_loader_load_module): Likewise.
47669 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
47672 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
47673 (pupa_linux_tmp_addr): Likewise.
47674 (pupa_linux_real_addr): Likewise.
47675 (pupa_linux_boot_zimage): Likewise.
47676 (pupa_linux_boot_bzimage): Likewise.
47678 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
47679 (pupa_upper_mem): Likewise.
47680 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
47681 module is too dangerous.
47683 * include/pupa/loader.h (pupa_os_area_addr): Declared.
47684 (pupa_os_area_size): Likewise.
47685 (pupa_loader_set): Remove the first argument. Loader doesn't
47686 manage modules or initrd any longer.
47687 (pupa_loader_load_module): Removed.
47689 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
47690 (linux_mod_SOURCES): New variable.
47691 (linux_mod_CFLAGS): Likewise.
47693 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
47695 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
47696 the length of a blocklist correctly.
47698 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
47699 Use ioctl only if the OS file is a block device.
47700 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
47701 not very useful for normal files.
47703 * kern/main.c (pupa_set_root_dev): New function.
47704 (pupa_load_normal_mode): Likewise.
47705 (pupa_main): Call those above.
47707 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
47710 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
47712 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
47714 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
47715 (setup): Configure the installed partition information and the
47718 * loader/i386/pc/chainloader.c (my_mod): New variable.
47719 (pupa_chainloader_unload): New function.
47720 (pupa_rescue_cmd_chainloader): Refer itself.
47721 (PUPA_MOD_INIT): Save its own module in MY_MOD.
47723 * kern/i386/pc/startup.S (install_partition): Removed.
47724 (version_string): Likewise.
47725 (config_file): Likewise.
47726 (pupa_install_dos_part): New variable.
47727 (pupa_install_bsd_part): Likewise.
47728 (pupa_prefix): Likewise.
47729 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
47731 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
47733 (make_install_device): New function.
47734 (pupa_machine_init): Set the dl prefix.
47736 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
47737 (buf): Renamed to ...
47738 (linebuf): ... this.
47739 (pupa_rescue_cmd_prefix): New function.
47740 (pupa_rescue_cmd_insmod): Likewise.
47741 (pupa_rescue_cmd_rmmod): Likewise.
47742 (pupa_rescue_cmd_lsmod): Likewise.
47743 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
47746 * kern/mm.c (pupa_memalign): If failed even after invalidating
47747 disk caches, unload unneeded modules and retry.
47749 * kern/misc.c (pupa_memmove): New function.
47750 (pupa_memcpy): Removed.
47751 (pupa_strcpy): New function.
47752 (pupa_itoa): Made static.
47754 * kern/dl.c (pupa_dl_iterate): New function.
47755 (pupa_dl_ref): Likewise.
47756 (pupa_dl_unref): Likewise.
47757 (pupa_dl_unload): Return if succeeded or not.
47758 (pupa_dl_unload_unneeded): New function.
47759 (pupa_dl_unload_all): Likewise.
47760 (pupa_dl_init): Renamed to ...
47761 (pupa_dl_set_prefix): ... this.
47762 (pupa_dl_get_prefix): New function.
47764 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
47765 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
47766 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
47767 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
47768 (pupa_install_dos_part): Declared.
47769 (pupa_install_bsd_part): Likewise.
47770 (pupa_prefix): Likewise.
47771 (pupa_boot_drive): Likewise.
47773 * include/pupa/types.h: Fix a typo.
47775 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
47777 (pupa_memmove): Declared.
47778 (pupa_strcpy): Likewise.
47780 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
47781 pupa_mod_init takes one argument, its own module.
47782 (pupa_dl_unload_unneeded): Declared.
47783 (pupa_dl_unload_all): Likewise.
47784 (pupa_dl_ref): Likewise.
47785 (pupa_dl_unref): Likewise.
47786 (pupa_dl_iterate): Likewise.
47787 (pupa_dl_init): Renamed to ...
47788 (pupa_dl_set_prefix): ... this.
47789 (pupa_dl_get_prefix): Declared.
47791 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
47792 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
47794 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
47795 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
47797 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
47798 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
47800 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
47802 * util/i386/pc/pupa-setup.c (setup): Define the internal
47803 function find_first_partition_start at the top level, because GCC
47804 3.0.x cannot compile internal functions in deeper scopes
47806 (find_root_device): Use lstat instead of stat.
47807 Don't follow symbolic links.
47808 Fix the path-constructing code.
47810 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
47811 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
47812 by a BLKGETSIZE ioctl first, because block devices don't fill
47813 the member st_mode of the structure stat on Linux.
47814 [__linux__] (linux_find_partition): Use a temporary buffer
47815 REAL_DEV for the working space. Copy it to DEV before returning.
47816 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
47817 buffer cache consistent.
47818 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
47819 strncmp. The previous value was merely wrong.
47820 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
47822 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
47823 FAT size is 12. The previous value was merely wrong.
47825 * kern/main.c (pupa_main): Don't split the starting message from
47828 * kern/term.c (pupa_putchar): Put CR after LF instead of before
47829 LF, because BIOS goes crazy about character attributes in this
47832 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
47834 * include/i386/pc/util/biosdisk.h: New file.
47835 * util/i386/pc/biosdisk.c: Likewise.
47836 * util/i386/pc/pupa-setup.c: Likewise.
47838 * Makefile.in (INCLUDE_DISTFILES): Added
47839 include/pupa/i386/pc/util/biosdisk.h.
47840 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
47841 directory util/i386/pc.
47842 (install-local): Added a rule for sbin_UTILITIES.
47843 (uninstall): Likewise.
47845 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
47847 * util/misc.c (xrealloc): New function.
47848 (pupa_malloc): Likewise.
47849 (pupa_free): Likewise.
47850 (pupa_realloc): Likewise.
47851 (pupa_stop): Likewise.
47852 (pupa_putchar): Likewise.
47854 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
47856 * include/pupa/util/misc.h (xrealloc): Declared.
47858 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
47860 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
47861 (PUPA_BOOT_MACHINE_BPB_END): ... this.
47863 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
47864 [PUPA_UTIL] (pupa_fat_fini): Likewise.
47866 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
47867 way should be implemented.
47868 [PUPA_UTIL] (pupa_fat_fini): Likewise.
47870 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
47871 the size of NAME for safety.
47872 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
47875 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
47876 (pupa_setup_SOURCES): Likewise.
47878 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
47880 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
47882 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
47883 bunch of pushl's from pusha, because this destroys the return
47886 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
47888 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
47889 This means that any missing prototypes could be fatal. Also, you
47890 must take care when writing assembly code. See the comments at
47891 the beginning of startup.S, for more details.
47893 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
47894 compilation mechanism.
47895 (pupa_chainloader_real_boot): Likewise.
47896 (pupa_biosdisk_rw_int13_extensions): Likewise.
47897 (pupa_biosdisk_rw_standard): Likewise.
47898 (pupa_biosdisk_check_int13_extensions): Likewise.
47899 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
47900 (pupa_biosdisk_get_diskinfo_standard): Likewise.
47901 (pupa_get_memsize): Likewise.
47902 (pupa_get_mmap_entry): Likewise.
47903 (pupa_console_putchar): Likewise.
47904 (pupa_console_setcursor): Likewise.
47905 (pupa_getrtsecs): Use pushl instead of push.
47907 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
47908 memory instead of the stack for a mmap entry, because some
47909 BIOSes may ignore the maximum size and overflow.
47911 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
47913 * genmk.rb (PModule#rule): Compile automatically generated
47914 sources with module-specific CFLAGS as well as other sources.
47916 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
47918 * configure.ac: Check ld.
47919 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
47920 respectively, before checking endianness and sizes.
47922 * Makefile.in (LD): New variable.
47924 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
47926 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
47928 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
47930 * Changelog: New file.