]> git.proxmox.com Git - grub2.git/log
grub2.git
12 years ago * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
Vladimir 'phcoder' Serbinenko [Fri, 8 Jun 2012 18:29:15 +0000 (20:29 +0200)]
* tests/util/grub-shell.in: Use escc-ch-a port on ppc.

12 years ago * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
Vladimir 'phcoder' Serbinenko [Fri, 8 Jun 2012 18:23:39 +0000 (20:23 +0200)]
* util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
--rom-directory.
Add -graft-points.

12 years ago ESCC serial driver for conducting sautomated tests in qemu.
Vladimir 'phcoder' Serbinenko [Fri, 8 Jun 2012 17:42:59 +0000 (19:42 +0200)]
ESCC serial driver for conducting sautomated tests in qemu.
Not tested on real hardware.

* include/grub/serial.h (grub_serial_port): New field escc_desc.
* grub-core/term/ieee1275/escc.c: New file.
* grub-core/Makefile.core.def (escc): New module.

12 years ago * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
Vladimir 'phcoder' Serbinenko [Fri, 8 Jun 2012 17:34:57 +0000 (19:34 +0200)]
* grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
invalid on error.
(serial_hw_fetch): Don't read invalid handle.
(serial_hw_put): Don't write into invalid handle.

12 years ago Add a 1.5 stop bits value.
Vladimir 'phcoder' Serbinenko [Fri, 8 Jun 2012 17:32:57 +0000 (19:32 +0200)]
Add a 1.5 stop bits value.

* grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
* include/grub/serial.h (grub_serial_stop_bits_t): Add
GRUB_SERIAL_STOP_BITS_1_5.

12 years ago * grub-core/commands/wildcard.c (wildcard_expand): Set default return
Vladimir 'phcoder' Serbinenko [Fri, 8 Jun 2012 17:29:43 +0000 (19:29 +0200)]
* grub-core/commands/wildcard.c (wildcard_expand): Set default return
value rather than let it uninited.

12 years ago * grub-core/commands/wildcard.c (+check_file): New function.
Vladimir 'phcoder' Serbinenko [Thu, 7 Jun 2012 21:18:04 +0000 (23:18 +0200)]
* grub-core/commands/wildcard.c (+check_file): New function.
(wildcard_expand): Don't expand to non-existing files, expand with
suffix and not attempt to expand if not needed.

12 years ago * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
Vladimir 'phcoder' Serbinenko [Thu, 7 Jun 2012 19:55:55 +0000 (21:55 +0200)]
* grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
out of partitions containing other partitions.

12 years ago Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
Vladimir 'phcoder' Serbinenko [Thu, 7 Jun 2012 14:41:52 +0000 (16:41 +0200)]
Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
on some qemu versions with GRUB.

* include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
define.
(grub_openbsd_bootarg_pcibios): New struct.
* grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
Add PCIINFO.

12 years ago * tests/util/grub-shell.in: Trim firmware output on EFI.
Vladimir 'phcoder' Serbinenko [Thu, 7 Jun 2012 14:33:17 +0000 (16:33 +0200)]
* tests/util/grub-shell.in: Trim firmware output on EFI.

12 years ago * grub-core/Makefile.core.def (vga_text): Disable on muliboot
Vladimir 'phcoder' Serbinenko [Thu, 7 Jun 2012 13:18:21 +0000 (15:18 +0200)]
* grub-core/Makefile.core.def (vga_text): Disable on muliboot
and coreboot since it's already in kernel.

12 years ago * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
Vladimir 'phcoder' Serbinenko [Thu, 7 Jun 2012 12:24:48 +0000 (14:24 +0200)]
* util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
* grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
to here. New return value start. All users updated.
Recursively scan linear mappings.
* include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
proto.
* grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
Use grub_util_get_dm_node_linear_info.
* util/getroot.c (convert_system_partition_to_system_disk): Use
grub_util_info rather than grub_dprintf.
(grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.

12 years ago Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
Vladimir 'phcoder' Serbinenko [Thu, 7 Jun 2012 12:14:02 +0000 (14:14 +0200)]
Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.

* Makefile.am: Remove GRUB_QEMU_OPTS handling.
* tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.

12 years ago * include/grub/types.h (grub_set_unaligned64): New function.
Vladimir 'phcoder' Serbinenko [Thu, 7 Jun 2012 12:07:02 +0000 (14:07 +0200)]
* include/grub/types.h (grub_set_unaligned64): New function.
* util/grub-setup.c (write_rootdev): Use unaligned access functions.
(setup): Likewise.

12 years ago * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
Vladimir 'phcoder' Serbinenko [Wed, 6 Jun 2012 17:00:04 +0000 (19:00 +0200)]
* grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
(grub_ofdisk_fini): Quiesce USB devices.

12 years ago * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
Vladimir 'phcoder' Serbinenko [Wed, 6 Jun 2012 16:58:19 +0000 (18:58 +0200)]
* grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
caches.

12 years ago * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
Vladimir 'phcoder' Serbinenko [Wed, 6 Jun 2012 10:42:11 +0000 (12:42 +0200)]
* util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.

12 years ago * grub-core/disk/pata.c (grub_pata_pio_read)
Vladimir 'phcoder' Serbinenko [Wed, 6 Jun 2012 10:38:49 +0000 (12:38 +0200)]
* grub-core/disk/pata.c (grub_pata_pio_read)
[GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
(grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.

12 years ago Extend automated tests to qemu-mips.
Vladimir 'phcoder' Serbinenko [Wed, 6 Jun 2012 10:36:33 +0000 (12:36 +0200)]
Extend automated tests to qemu-mips.

* Makefile.am: reorganise tests and enable qemu-mips.
* configure.ac (COND_mipseb), (COND_mipsel): New conditions.
* grub-core/tests/boot/linux.init-mips.S: New file.
* tests/partmap_test.in: Handle ata0 disks.
* tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
non-pc i386.

12 years ago * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
Vladimir 'phcoder' Serbinenko [Wed, 6 Jun 2012 10:31:24 +0000 (12:31 +0200)]
* Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
ia64.
* util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
quotes while on it.

12 years ago * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
Vladimir 'phcoder' Serbinenko [Wed, 6 Jun 2012 10:28:25 +0000 (12:28 +0200)]
* grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
(grub_halt): Likewise.
* grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.

12 years ago * grub-core/term/serial.c (grub_serial_register)
Vladimir 'phcoder' Serbinenko [Wed, 6 Jun 2012 10:25:13 +0000 (12:25 +0200)]
* grub-core/term/serial.c (grub_serial_register)
[GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
the behaviour in line with x86 platforms.

12 years ago * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
Vladimir 'phcoder' Serbinenko [Wed, 6 Jun 2012 10:22:32 +0000 (12:22 +0200)]
* grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
(grub_ata_strncpy): Likewise.
(grub_ata_identify): Add missing byteswaps.

12 years ago * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
Vladimir 'phcoder' Serbinenko [Wed, 6 Jun 2012 10:20:08 +0000 (12:20 +0200)]
* grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
byte-swap.
(screen_read_char): Likewise.
(grub_vga_text_cls): Likewise.

12 years ago * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
Vladimir 'phcoder' Serbinenko [Wed, 6 Jun 2012 00:34:32 +0000 (02:34 +0200)]
* grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
filenames.
(make_file_path): Likewise.

12 years ago * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
Vladimir 'phcoder' Serbinenko [Wed, 6 Jun 2012 00:31:27 +0000 (02:31 +0200)]
* grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
machines.
Tested by: Paulo Flabiano Smorigo.
Crucial information about API supplied by: Coleen <Last name unknown>.
Reviewed by: Coleen <Last name unknown>.

12 years ago * util/grub-mkimage.c: Disable -Wcast-align.
Vladimir 'phcoder' Serbinenko [Tue, 5 Jun 2012 15:22:29 +0000 (17:22 +0200)]
* util/grub-mkimage.c: Disable -Wcast-align.

12 years ago * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
Vladimir 'phcoder' Serbinenko [Tue, 5 Jun 2012 15:20:39 +0000 (17:20 +0200)]
* grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
as they are fatal.

12 years ago * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
Vladimir 'phcoder' Serbinenko [Tue, 5 Jun 2012 15:18:04 +0000 (17:18 +0200)]
* grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.

12 years ago * util/grub-probe.c (escape_of_path): Fix double free.
Vladimir 'phcoder' Serbinenko [Tue, 5 Jun 2012 15:16:14 +0000 (17:16 +0200)]
* util/grub-probe.c (escape_of_path): Fix double free.

12 years ago * grub-core/commands/videoinfo.c (hook): Show pitch.
Vladimir 'phcoder' Serbinenko [Tue, 5 Jun 2012 10:03:36 +0000 (12:03 +0200)]
* grub-core/commands/videoinfo.c (hook): Show pitch.

12 years ago * util/grub.d/20_linux_xen.in: Skip xen-syms.
Vladimir 'phcoder' Serbinenko [Tue, 5 Jun 2012 09:55:48 +0000 (11:55 +0200)]
* util/grub.d/20_linux_xen.in: Skip xen-syms.

12 years ago * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
Vladimir 'phcoder' Serbinenko [Tue, 5 Jun 2012 09:31:10 +0000 (11:31 +0200)]
* util/grub-probe.c (escape_of_path): Don't add ieee1275/.
(probe): Add ieee1275 to OFW devices.

12 years ago * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
Vladimir 'phcoder' Serbinenko [Mon, 4 Jun 2012 21:15:54 +0000 (23:15 +0200)]
* util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.

12 years ago Handle IBM OFW path.
Vladimir 'phcoder' Serbinenko [Mon, 4 Jun 2012 20:37:39 +0000 (22:37 +0200)]
Handle IBM OFW path.

* util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
available.
(of_path_of_scsi): Handle vdevice.

12 years ago * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
Vladimir 'phcoder' Serbinenko [Sun, 3 Jun 2012 16:00:37 +0000 (18:00 +0200)]
* grub-core/mmap/i386/pc/mmap.c (malloc_hook):
Allocate in multiples of 16 to avoid adding a few bytes free region the
windows bugs upon.

12 years ago * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
Vladimir 'phcoder' Serbinenko [Sun, 3 Jun 2012 15:47:20 +0000 (17:47 +0200)]
* grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
Allocate in multiples of 16 to avoid adding a few bytes free region the
windows bugs upon.
* grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.

12 years ago * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
Vladimir 'phcoder' Serbinenko [Sat, 2 Jun 2012 18:15:11 +0000 (20:15 +0200)]
* grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
resolutions.
* grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
* grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.

12 years ago * util/ieee1275/ofpath.c (check_sas): Fix sas path.
Isao Shimizu [Sat, 2 Jun 2012 12:53:23 +0000 (14:53 +0200)]
* util/ieee1275/ofpath.c (check_sas): Fix sas path.

12 years ago * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
Vladimir 'phcoder' Serbinenko [Sat, 2 Jun 2012 12:46:22 +0000 (14:46 +0200)]
* grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
resulted in \\ at the end of the line.

12 years ago * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
Vladimir 'phcoder' Serbinenko [Sat, 2 Jun 2012 12:39:35 +0000 (14:39 +0200)]
* grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
(grub_parser_cmdline_state): Likewise.
(grub_parser_split_cmdline): Likewise.

12 years ago * util/getroot.c (grub_guess_root_devices): Don't canonicalise
Vladimir 'phcoder' Serbinenko [Sat, 2 Jun 2012 12:36:27 +0000 (14:36 +0200)]
* util/getroot.c (grub_guess_root_devices): Don't canonicalise
/dev/root and /dev/dm-*.

12 years ago * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
Vladimir 'phcoder' Serbinenko [Sat, 2 Jun 2012 12:30:52 +0000 (14:30 +0200)]
* grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
fix partially stale display.

12 years ago * grub-core/normal/menu_entry.c (backward_char): Use right line for
Vladimir 'phcoder' Serbinenko [Sat, 2 Jun 2012 12:28:12 +0000 (14:28 +0200)]
* grub-core/normal/menu_entry.c (backward_char): Use right line for
substraction.

12 years ago * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
Vladimir 'phcoder' Serbinenko [Sat, 2 Jun 2012 11:48:44 +0000 (13:48 +0200)]
* grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
Fix MBR remapping workaround.
(grub_util_biosdisk_read) [__linux__]: Likewise.

12 years ago * util/grub-install.in: Check for ieee1275 and not ieee1276.
Vladimir 'phcoder' Serbinenko [Fri, 1 Jun 2012 20:43:10 +0000 (22:43 +0200)]
* util/grub-install.in: Check for ieee1275 and not ieee1276.

12 years ago * configure.ac: Bump to beta6.
Vladimir 'phcoder' Serbinenko [Thu, 31 May 2012 13:44:37 +0000 (15:44 +0200)]
* configure.ac: Bump to beta6.

12 years ago * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
Christer Weinigel [Thu, 31 May 2012 12:34:12 +0000 (14:34 +0200)]
* grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.

12 years ago * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
Vladimir 'phcoder' Serbinenko [Thu, 31 May 2012 12:06:11 +0000 (14:06 +0200)]
* grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
(grub_cmd_linux): Likewise.

12 years ago Fix EHCI low-speed.
Christer Weinigel [Thu, 31 May 2012 12:02:46 +0000 (14:02 +0200)]
Fix EHCI low-speed.

* grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
(GRUB_EHCI_MULT_TWO): Likewise.
(GRUB_EHCI_MULT_THREE): Likewise.
(GRUB_EHCI_CMASK_MASK): New enum value.
(GRUB_EHCI_SMASK_MASK): Likewise.
(GRUB_EHCI_CMASK_OFF): Likewise.
(GRUB_EHCI_SMASK_OFF): Likewise.
(grub_ehci_pci_iter): Enable periodic schedule.
(grub_ehci_parse_notrun): Likewise.
(grub_ehci_restore_hw): Likewise.
(grub_ehci_setup_qh): Set flags for low speed transfers.
(grub_ehci_find_qh): Use periodic list for low speed.
(grub_ehci_setup_transfer): Check periodic queue as well.
(grub_ehci_check_transfer): Likewise.
(grub_ehci_cancel_transfer): Cancel periodic transfer.

12 years ago * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
Paulo Flabiano Smorigo [Thu, 31 May 2012 11:38:21 +0000 (13:38 +0200)]
* util/grub-install.in: Write core.elf in PReP even if the --no-nvram
parameter is used.

12 years ago * include/grub/i386/linux.h (linux_kernel_params): Add v206.
Peter Jones [Thu, 31 May 2012 11:23:30 +0000 (13:23 +0200)]
* include/grub/i386/linux.h (linux_kernel_params): Add v206.
* grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
(grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.

12 years ago * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
Vladimir 'phcoder' Serbinenko [Thu, 31 May 2012 10:04:55 +0000 (12:04 +0200)]
* grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
uninited variable. Allocate at least setup_sects.

12 years ago Fix handling of EFI with big memory maps.
Vladimir 'phcoder' Serbinenko [Wed, 30 May 2012 12:56:53 +0000 (14:56 +0200)]
Fix handling of EFI with big memory maps.

* grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
(real_mode_mem): Likewise.
(real_mode_target): Likewise.
(real_mode_pages): Likewise.
(prot_mode_pages): Likewise.
(linux_params): New var.
(linux_cmdline): Likewise.
(free_pages): Don't set real mode variables.
(allocate_pages): Don't allocate real mode memory.
(grub_e820_add_region): Remove the limit.
(grub_linux_boot): Allocate and copy real mode memory.
(grub_linux_unload): Free linux_cmdline.
(grub_cmd_linux): Use temporary storage for parameters.
(grub_cmd_initrd): Likewise.
* include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
(linux_kernel_params): Make it 1K big.

12 years ago * Makefile.util.def: Remove -Wno-format.
Vladimir 'phcoder' Serbinenko [Wed, 30 May 2012 11:56:50 +0000 (13:56 +0200)]
* Makefile.util.def: Remove -Wno-format.
* grub-core/Makefile.core.def: Likewise.

12 years ago * tests/cmp_unit_test.c: Add missing failure message.
Vladimir 'phcoder' Serbinenko [Wed, 30 May 2012 11:54:30 +0000 (13:54 +0200)]
* tests/cmp_unit_test.c: Add missing failure message.
* tests/example_unit_test.c: Likewise.
* tests/printf_unit_test.c: Likewise.

12 years ago * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
Vladimir 'phcoder' Serbinenko [Wed, 30 May 2012 11:51:50 +0000 (13:51 +0200)]
* grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
relaxation of protective MBR requirements.

12 years ago * configure.ac: Add condition for COND_HOST_XNU.
Vladimir 'phcoder' Serbinenko [Tue, 29 May 2012 11:56:21 +0000 (13:56 +0200)]
* configure.ac: Add condition for COND_HOST_XNU.
* Makefile.util.def (10_xnu): New script.
* util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.

12 years ago * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
Vladimir 'phcoder' Serbinenko [Tue, 29 May 2012 11:54:33 +0000 (13:54 +0200)]
* grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
objconv bug.

12 years ago * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
Vladimir 'phcoder' Serbinenko [Tue, 29 May 2012 11:52:26 +0000 (13:52 +0200)]
* grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
Binary on other platforms stays identical.

12 years ago * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
Vladimir 'phcoder' Serbinenko [Mon, 28 May 2012 15:58:33 +0000 (17:58 +0200)]
* configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
Apple.

12 years ago * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
Vladimir 'phcoder' Serbinenko [Mon, 28 May 2012 15:57:18 +0000 (17:57 +0200)]
* gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.

12 years ago * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
Vladimir 'phcoder' Serbinenko [Mon, 28 May 2012 15:55:46 +0000 (17:55 +0200)]
* grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
rather than defining size_t ourselves to avoid conflict.

12 years ago * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
Vladimir 'phcoder' Serbinenko [Mon, 28 May 2012 15:54:18 +0000 (17:54 +0200)]
* grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
initialisation to avoid __bzero reference.

12 years ago * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
Vladimir 'phcoder' Serbinenko [Mon, 28 May 2012 15:51:57 +0000 (17:51 +0200)]
* grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
version.
* grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
* grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
* grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
* grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
* grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.

12 years ago * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
Vladimir 'phcoder' Serbinenko [Mon, 28 May 2012 15:49:18 +0000 (17:49 +0200)]
* grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
* grub-core/kern/misc.c: Likewise.
* grub-core/loader/i386/xnu.c: Likewise.
* include/grub/i386/tsc.h: Likewise.
* include/grub/symbol.h: Likewise.

12 years ago * include/grub/list.h (grub_bad_type_cast_real): Remove return.
Vladimir 'phcoder' Serbinenko [Mon, 28 May 2012 15:45:53 +0000 (17:45 +0200)]
* include/grub/list.h (grub_bad_type_cast_real): Remove return.
* include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
on older compiler.

12 years ago * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
Vladimir 'phcoder' Serbinenko [Mon, 28 May 2012 15:43:12 +0000 (17:43 +0200)]
* util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
Implement Apple flavour.
(convert_system_partition_to_system_disk) [__APPLE__]: Likewise.

12 years ago * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
Vladimir 'phcoder' Serbinenko [Mon, 28 May 2012 15:37:18 +0000 (17:37 +0200)]
* include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
(memmove) [__APPLE__]: Likewise.
(memcpy) [__APPLE__]: Likewise.
(memset) [__APPLE__]: Likewise.
* grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
(memmove) [__APPLE__]: Likewise.
(memcpy) [__APPLE__]: Likewise.
(memset) [__APPLE__]: Likewise.

12 years ago * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
Vladimir 'phcoder' Serbinenko [Mon, 28 May 2012 15:32:24 +0000 (17:32 +0200)]
* grub-core/genmod.sh.in: Fix a bug in Apple part which caused
dependency discard.

12 years ago * grub-core/normal/main.c (read_config_file): Provide config_file and
Vladimir 'phcoder' Serbinenko [Sun, 27 May 2012 13:34:41 +0000 (15:34 +0200)]
* grub-core/normal/main.c (read_config_file): Provide config_file and
config_directory.
* util/grub.d/41_custom.in: Use config_directoy when available.

12 years ago * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
Vladimir 'phcoder' Serbinenko [Sun, 27 May 2012 13:31:54 +0000 (15:31 +0200)]
* grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
(grub_bfs_dir): Likewise.

12 years ago The old code gives arguments to a printf function which can't work
Peter Jones [Sun, 27 May 2012 12:26:18 +0000 (14:26 +0200)]
The old code gives arguments to a printf function which can't work
correctly, and the compiler complains.

* grub-core/tests/example_functional_test.c (example_test): Add
missing text.
* grub-core/tests/lib/test.c (add_failure): Rewrite.
* include/grub/test.h (grub_test_assert_helper): New declaration.
(grub_test_assert): Use grub_test_assert_helper.

12 years ago * grub-core/Makefile.core.def (example_functional_test): Rename to ...
Vladimir 'phcoder' Serbinenko [Sun, 27 May 2012 12:12:48 +0000 (14:12 +0200)]
* grub-core/Makefile.core.def (example_functional_test): Rename to ...
(exfctest): ... this to avoid overlong filenames.
All users updated.

12 years ago Handle "." and ".." on squashfs.
Vladimir 'phcoder' Serbinenko [Sun, 27 May 2012 11:44:48 +0000 (13:44 +0200)]
Handle "." and ".." on squashfs.

* grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
Make inode numbers into stack.
(grub_squash_read_symlink): Use stack.
(grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
(make_root_node): Fill stack.
(grub_squash_open): Use stack.

12 years ago * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
Vladimir 'phcoder' Serbinenko [Sun, 27 May 2012 11:19:09 +0000 (13:19 +0200)]
* grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
freeing.

12 years ago * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
Vladimir 'phcoder' Serbinenko [Sun, 27 May 2012 11:14:42 +0000 (13:14 +0200)]
* util/grub-mkconfig_lib.in (print_option_help): Properly redirect
stderr on test calls.

12 years ago * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
Vladimir 'phcoder' Serbinenko [Sat, 26 May 2012 23:03:26 +0000 (01:03 +0200)]
* grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".

12 years ago * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
Vladimir 'phcoder' Serbinenko [Sat, 26 May 2012 23:00:46 +0000 (01:00 +0200)]
* grub-core/fs/ntfs.c (list_file): Set mtime to correct value.

12 years ago * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
Vladimir 'phcoder' Serbinenko [Sat, 26 May 2012 22:58:48 +0000 (00:58 +0200)]
* grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
"..".

12 years ago * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
Vladimir 'phcoder' Serbinenko [Sat, 26 May 2012 22:56:55 +0000 (00:56 +0200)]
* grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
(grub_hfsplus_iterate_dir): Add "." and "..".

12 years ago * grub-core/fs/cpio.c (canonicalize): Handle "..".
Vladimir 'phcoder' Serbinenko [Sat, 26 May 2012 22:54:41 +0000 (00:54 +0200)]
* grub-core/fs/cpio.c (canonicalize): Handle "..".
(grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.

12 years ago * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
Vladimir 'phcoder' Serbinenko [Sat, 26 May 2012 22:47:37 +0000 (00:47 +0200)]
* grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
(find_path): Handle "." and "..".

12 years ago * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
Vladimir 'phcoder' Serbinenko [Sat, 26 May 2012 22:45:41 +0000 (00:45 +0200)]
* grub-core/fs/affs.c (grub_affs_file): New field hardlink.
(GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
(grub_affs_iterate_dir): Handle hardlinks.

12 years ago * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
Matthew Garrett [Sat, 26 May 2012 11:33:34 +0000 (13:33 +0200)]
* grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
(grub_efi_console_fini): Likewise.
* grub-core/video/efi_gop.c (framebuffer): New field offscreen.
(grub_video_gop_fill_mode_info): Rename to ...
(grub_video_gop_fill_real_mode_info): ... this.
(grub_video_gop_fill_mode_info): New function.
(grub_video_gop_setup): Setup double framebuffer.
(grub_video_gop_get_info_and_fini): Use original framebuffer.
Free offscreen.
(grub_video_gop_swap_buffers): Copy framebuffer.
(grub_video_gop_fini): Free offscreen buffer.
* include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
New enum.
(grub_efi_gop_blt_pixel): New struct.

12 years ago * gentpl.py: Remove error disabling for objconv.
Vladimir 'phcoder' Serbinenko [Sat, 26 May 2012 10:06:17 +0000 (12:06 +0200)]
* gentpl.py: Remove error disabling for objconv.

12 years ago * configure.ac: Remove -Wunitialized as it's not available on older
Vladimir 'phcoder' Serbinenko [Sat, 26 May 2012 10:03:47 +0000 (12:03 +0200)]
* configure.ac: Remove -Wunitialized as it's not available on older
compilers.

12 years ago Fix extent overflow comparator.
Vladimir 'phcoder' Serbinenko [Sat, 26 May 2012 09:54:20 +0000 (11:54 +0200)]
Fix extent overflow comparator.

* grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
(grub_hfsplus_read_block): Set type.
(grub_hfsplus_cmp_extkey): Compare type.

12 years ago * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
Vladimir 'phcoder' Serbinenko [Fri, 25 May 2012 15:57:25 +0000 (17:57 +0200)]
* util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.

12 years ago * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
Vladimir 'phcoder' Serbinenko [Thu, 24 May 2012 22:47:49 +0000 (00:47 +0200)]
* grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
than 0.

12 years ago * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
Vladimir 'phcoder' Serbinenko [Thu, 24 May 2012 22:36:14 +0000 (00:36 +0200)]
* Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
(dejavu_bold_14.pf2): New target.

12 years ago * configure.ac: Fix djvu font detection.
Vladimir 'phcoder' Serbinenko [Thu, 24 May 2012 22:28:43 +0000 (00:28 +0200)]
* configure.ac: Fix djvu font detection.

12 years ago * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
Vladimir 'phcoder' Serbinenko [Wed, 23 May 2012 07:10:56 +0000 (09:10 +0200)]
* grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
ext* instead of ext2.

12 years ago * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
Vladimir 'phcoder' Serbinenko [Wed, 23 May 2012 07:09:36 +0000 (09:09 +0200)]
* grub-core/normal/term.c (read_terminal_list): Terminate the terminal
name with \0.

12 years ago * docs/grub-dev.texi: Remove dot from .png.
Jordan Uggla [Tue, 22 May 2012 07:15:28 +0000 (09:15 +0200)]
* docs/grub-dev.texi: Remove dot from .png.

12 years ago * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
Vladimir 'phcoder' Serbinenko [Tue, 22 May 2012 07:09:00 +0000 (09:09 +0200)]
* grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
protective entry in any slot.
* grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
if protective entry is found in any slot.

Protective entry in non-first slot make no sense but is a widespread
brain damage.

12 years ago * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
Vladimir 'phcoder' Serbinenko [Tue, 22 May 2012 06:38:17 +0000 (08:38 +0200)]
* grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.

12 years ago * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
Vladimir 'phcoder' Serbinenko [Tue, 22 May 2012 06:30:57 +0000 (08:30 +0200)]
* grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
with old reiserfs.
(grub_reiserfs_open): Don't free root.

12 years ago * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
Vladimir 'phcoder' Serbinenko [Tue, 22 May 2012 06:24:27 +0000 (08:24 +0200)]
* grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
after freeing for safety.

12 years ago * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
Vladimir 'phcoder' Serbinenko [Mon, 21 May 2012 22:02:21 +0000 (00:02 +0200)]
* grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
Reported by: Jordan Uggla.