]>
git.ipfire.org Git - thirdparty/grub.git/log
Colin Watson [Wed, 5 Sep 2012 12:55:54 +0000 (13:55 +0100)]
* NEWS: Fix typo.
Colin Watson [Wed, 5 Sep 2012 08:00:39 +0000 (09:00 +0100)]
* util/import_gcry.py: Sort cipher_files, to make build system
generation more deterministic.
Vladimir 'phcoder' Serbinenko [Wed, 5 Sep 2012 06:56:08 +0000 (08:56 +0200)]
* grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
* grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
(grub_set_datetime): Likewise.
Vladimir 'phcoder' Serbinenko [Wed, 5 Sep 2012 06:51:31 +0000 (08:51 +0200)]
* grub-core/script/yylex.l: Ignore unused-function and sign-compare
warnings.
Vladimir 'phcoder' Serbinenko [Wed, 5 Sep 2012 06:47:39 +0000 (08:47 +0200)]
* grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
Vladimir 'phcoder' Serbinenko [Wed, 5 Sep 2012 06:45:07 +0000 (08:45 +0200)]
* grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
Colin Watson [Tue, 4 Sep 2012 22:35:38 +0000 (23:35 +0100)]
* Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
required for checkouts from bzr, but it may be useful for users or
distributors wishing to update translations against a tarball
distribution, and it can be helpful for the tarball to be a superset
of what's in bzr.
Colin Watson [Tue, 4 Sep 2012 17:59:41 +0000 (18:59 +0100)]
* Makefile.am (EXTRA_DIST): Add
grub-core/tests/boot/linux.init-mips.S,
grub-core/tests/boot/linux.init-ppc.S, and
grub-core/tests/boot/linux-ppc.cfg.
Colin Watson [Tue, 4 Sep 2012 17:56:13 +0000 (18:56 +0100)]
* grub-core/mmap/mips/loongson: Remove empty directory.
Colin Watson [Tue, 4 Sep 2012 17:39:40 +0000 (18:39 +0100)]
* docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
gone.
Colin Watson [Tue, 4 Sep 2012 17:33:33 +0000 (18:33 +0100)]
* .bzrignore: Add grub-bios-setup, grub-ofpathname, and
grub-sparc64-setup.
Grégoire Sutre [Sun, 5 Aug 2012 14:49:03 +0000 (16:49 +0200)]
Strengthen the configure test for working -nostdinc -isystem.
Grégoire Sutre [Tue, 31 Jul 2012 23:06:53 +0000 (01:06 +0200)]
Regenerate po/POTFILES.in with the following commmand in a clean tree:
export LC_ALL=en_US.UTF-8
find . -iname '*.[ch]' | sort > po/POTFILES.in
Grégoire Sutre [Tue, 31 Jul 2012 22:18:57 +0000 (00:18 +0200)]
Update manual NetBSD-wise.
starous [Sun, 22 Jul 2012 19:09:30 +0000 (21:09 +0200)]
EHCI and OHCI PCI bus master
Vladimir 'phcoder' Serbinenko [Sun, 22 Jul 2012 18:02:17 +0000 (20:02 +0200)]
* util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
* util/grub.d/10_hurd.in: Add missing quoting.
* util/grub.d/10_illumos.in: Likewise.
* util/grub.d/10_kfreebsd.in: Likewise.
* util/grub.d/10_linux.in: Likewise.
* util/grub.d/20_linux_xen.in: Likewise.
Vladimir 'phcoder' Serbinenko [Sun, 22 Jul 2012 17:59:06 +0000 (19:59 +0200)]
New command `lsefi'.
* grub-core/Makefile.core.def (lsefi): New module.
* grub-core/commands/efi/lsefi.c: New file.
* include/grub/efi/api.h: Add more GUIDs.
Vladimir 'phcoder' Serbinenko [Sun, 22 Jul 2012 14:30:48 +0000 (16:30 +0200)]
* grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
(grub_bsd_elf32_hook): Likewise.
(grub_bsd_elf64_size_hook): Likewise.
(grub_bsd_elf64_hook): Likewise.
(grub_bsd_load_elf): Likewise.
Vladimir 'phcoder' Serbinenko [Sun, 22 Jul 2012 14:27:03 +0000 (16:27 +0200)]
* grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
if hash function is unavailable.
(dec_stream_header): Likewise.
Vladimir 'phcoder' Serbinenko [Sun, 22 Jul 2012 14:23:46 +0000 (16:23 +0200)]
* grub-core/normal/autofs.c (autoload_fs_module): Save and restore
filter state.
Vladimir 'phcoder' Serbinenko [Sun, 22 Jul 2012 14:21:24 +0000 (16:21 +0200)]
Fix coreboot compilation.
* grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
(grub_vga_text_init_real): ... this.
(grub_vga_text_fini): Rename to ...
(grub_vga_text_fini_real): ... this.
Vladimir 'phcoder' Serbinenko [Sat, 7 Jul 2012 12:29:01 +0000 (14:29 +0200)]
* grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
Vladimir 'phcoder' Serbinenko [Mon, 2 Jul 2012 09:31:31 +0000 (11:31 +0200)]
* grub-core/lib/legacy_parse.c: Support clear and testload.
Vladimir 'phcoder' Serbinenko [Mon, 2 Jul 2012 09:30:04 +0000 (11:30 +0200)]
* grub-core/term/efi/serial.c: Support 1.5 stop bits.
Vladimir 'phcoder' Serbinenko [Mon, 2 Jul 2012 09:28:42 +0000 (11:28 +0200)]
* grub-core/fs/ext2.c: Experimental support for 64-bit.
Vladimir 'phcoder' Serbinenko [Mon, 2 Jul 2012 09:22:50 +0000 (11:22 +0200)]
* grub-core/net/tftp.c (ack): Fix endianness problem.
(tftp_receive): Likewise.
Reported by: Michael Davidsaver.
Vladimir 'phcoder' Serbinenko [Mon, 2 Jul 2012 09:20:51 +0000 (11:20 +0200)]
* gentpl.py: Make mans depend on grub-mkconfig_lib.
Vladimir 'phcoder' Serbinenko [Mon, 2 Jul 2012 09:19:22 +0000 (11:19 +0200)]
* include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
* include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
* grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
Vladimir 'phcoder' Serbinenko [Mon, 2 Jul 2012 09:14:37 +0000 (11:14 +0200)]
* grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
efi_mmap_size.
Reported by: Stuart Hayes.
Vladimir 'phcoder' Serbinenko [Thu, 28 Jun 2012 13:36:48 +0000 (15:36 +0200)]
missing file from last commit
Vladimir 'phcoder' Serbinenko [Thu, 28 Jun 2012 13:27:54 +0000 (15:27 +0200)]
Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
* grub-core/Makefile.core.def (mda_text): New module.
* grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
* grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
* grub-core/term/i386/pc/vga_text.c (cur_color): ... here
* grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
here.
* grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
* grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
* grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
here.
* grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
to ..
* grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
... here
* grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
here.
* grub-core/term/i386/vga_common.c: Removed.
* include/grub/i386/vga_common.h: Likewise.
* include/grub/vga.h (grub_vga_cr_bw_write): New function.
(grub_vga_cr_bw_read): Likewise.
* include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
(GRUB_VGA_IO_CR_BW_DATA): Likewise.
* grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
grub_vga_cr_read/grub_vga_cr_write.
(grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
Vladimir 'phcoder' Serbinenko [Thu, 28 Jun 2012 00:06:36 +0000 (02:06 +0200)]
* configure.ac: Bump version to 2.00.
* grub-core/normal/main.c (features): Add feature_200_final.
Vladimir 'phcoder' Serbinenko [Wed, 27 Jun 2012 21:37:20 +0000 (23:37 +0200)]
* NEWS: Fix unclarity and language mistakes.
Vladimir 'phcoder' Serbinenko [Wed, 27 Jun 2012 20:55:09 +0000 (22:55 +0200)]
* grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
additional size to 3 pages.
Reported by: Stuart Hayes.
Vladimir 'phcoder' Serbinenko [Wed, 27 Jun 2012 20:28:32 +0000 (22:28 +0200)]
* NEWS: Add 2.00 entry.
Vladimir 'phcoder' Serbinenko [Wed, 27 Jun 2012 19:13:06 +0000 (21:13 +0200)]
* grub-core/commands/wildcard.c (check_file): Fix bad logic.
put explicit "/" for empty path.
(wildcard_expand): Improve dprintf.
Vladimir 'phcoder' Serbinenko [Wed, 27 Jun 2012 17:37:40 +0000 (19:37 +0200)]
* grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
it's equal to currnode. This can happen with "" symlink.
Yves Blusseau [Wed, 27 Jun 2012 09:22:43 +0000 (11:22 +0200)]
* util/grub-mkconfig_lib.in: Fix print messages replacing builtin
echo shell command by printf command.
Vladimir 'phcoder' Serbinenko [Tue, 26 Jun 2012 21:34:32 +0000 (23:34 +0200)]
* grub-core/term/arc/console.c (grub_console_init_output): Add one since
the value returned by firmware is the maximal position, not diumension.
(grub_terminfo_output_state): Use a more sane fallback.
Vladimir 'phcoder' Serbinenko [Tue, 26 Jun 2012 21:32:00 +0000 (23:32 +0200)]
* grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
Vladimir 'phcoder' Serbinenko [Tue, 26 Jun 2012 21:28:23 +0000 (23:28 +0200)]
* grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
frequency to 150 MHz.
Vladimir 'phcoder' Serbinenko [Tue, 26 Jun 2012 12:56:28 +0000 (14:56 +0200)]
Apple fixes.
* grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
__APPLE_
* grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
definition.
* grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
Vladimir 'phcoder' Serbinenko [Tue, 26 Jun 2012 12:53:35 +0000 (14:53 +0200)]
Handle slash in HFS label.
* grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
(grub_hfs_dir): Tanslate slash.
(grub_hfs_label): Don't translate slash.
Vladimir 'phcoder' Serbinenko [Tue, 26 Jun 2012 01:45:46 +0000 (03:45 +0200)]
* grub-core/commands/ls.c (grub_ls_list_devices): Disable
network protocol listing since it introduces problematic dependency on
net module.
Vladimir 'phcoder' Serbinenko [Tue, 26 Jun 2012 01:38:10 +0000 (03:38 +0200)]
* util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
Vladimir 'phcoder' Serbinenko [Tue, 26 Jun 2012 01:36:14 +0000 (03:36 +0200)]
Init video early on yeeloong to avoid being rebooted by watchdog.
* grub-core/Makefile.am (gensm712): New target.
(sm712_start.S): Likewise.
(boot/mips/loongson/fwstart.S): Depend on sm712_start.S
* grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
* grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
description.
* include/grub/vga.h: Move registry definitions to...
* include/grub/vgaregs.h: ... here.
Vladimir 'phcoder' Serbinenko [Tue, 26 Jun 2012 01:31:41 +0000 (03:31 +0200)]
* grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
signedness.
Vladimir 'phcoder' Serbinenko [Mon, 25 Jun 2012 17:32:22 +0000 (19:32 +0200)]
* util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
platforms with firmware disk drivers in the core.
Vladimir 'phcoder' Serbinenko [Mon, 25 Jun 2012 15:54:46 +0000 (17:54 +0200)]
* grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
informative verbose message.
(read_lv): Handle 64-bit segment size.
Vladimir 'phcoder' Serbinenko [Mon, 25 Jun 2012 15:52:20 +0000 (17:52 +0200)]
* grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
Vladimir 'phcoder' Serbinenko [Mon, 25 Jun 2012 15:47:52 +0000 (17:47 +0200)]
* grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
character but still remove trainling spaces.
(grub_fat_label): Ignore archive flag.
Vladimir 'phcoder' Serbinenko [Mon, 25 Jun 2012 15:44:36 +0000 (17:44 +0200)]
* grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
cast between linux_kernel_header and linux_kernel_params.
Vladimir 'phcoder' Serbinenko [Mon, 25 Jun 2012 15:36:50 +0000 (17:36 +0200)]
* include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
type for size.
(grub_raid6_recover_func_t): Likewise.
* grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
* grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
Vladimir 'phcoder' Serbinenko [Mon, 25 Jun 2012 10:36:50 +0000 (12:36 +0200)]
* util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
Grégoire Sutre [Mon, 25 Jun 2012 08:09:57 +0000 (10:09 +0200)]
Fix overflow in grub_util_get_fd_size for NetBSD.
Vladimir 'phcoder' Serbinenko [Sat, 23 Jun 2012 20:56:19 +0000 (22:56 +0200)]
* configure.ac: Bump to 2.00~rc1.
Vladimir 'phcoder' Serbinenko [Sat, 23 Jun 2012 09:27:27 +0000 (11:27 +0200)]
* grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
half of $a0.
Vladimir 'phcoder' Serbinenko [Sat, 23 Jun 2012 08:55:14 +0000 (10:55 +0200)]
* docs/grub.texi: Fix search syntax.
(Multi-boot manual config): Put msdos rather than GPT example.
Grammar corrections.
Vladimir 'phcoder' Serbinenko [Fri, 22 Jun 2012 22:55:25 +0000 (00:55 +0200)]
* docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
Vladimir 'phcoder' Serbinenko [Fri, 22 Jun 2012 22:39:10 +0000 (00:39 +0200)]
* grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
Vladimir 'phcoder' Serbinenko [Fri, 22 Jun 2012 21:54:43 +0000 (23:54 +0200)]
* grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
message on double free. Put the value of magic in case of mismatch.
Vladimir 'phcoder' Serbinenko [Fri, 22 Jun 2012 21:47:34 +0000 (23:47 +0200)]
Speed-up video on yeeloong.
* grub-core/video/sm712.c (framebuffer): Remove render_target and
add cached_ptr.
(grub_video_sm712_video_fini): Unmap cached_ptr.
(grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
(grub_video_sm712_set_active_render_target): Removed.
(grub_video_adapter): Use grub_video_fb_set_active_render_target.
(grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
sync caches.
Vladimir 'phcoder' Serbinenko [Fri, 22 Jun 2012 21:36:33 +0000 (23:36 +0200)]
Avoid flushing the same line multiple times on loongson.
* grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
Step in 32 bytes and not 1 byte.
* grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
Likewise.
Vladimir 'phcoder' Serbinenko [Fri, 22 Jun 2012 20:11:23 +0000 (22:11 +0200)]
* util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
subvolumes.
Vladimir 'phcoder' Serbinenko [Fri, 22 Jun 2012 20:09:31 +0000 (22:09 +0200)]
Implement flow control for http.
* grub-core/net/http.c (parse_line): Handle response 206.
(http_receive): Stall if too many packets are in the queue.
(http_establish): Fix range header.
(http_seek): Fix double free.
(http_close): Likewise.
(http_packets_pulled): New function.
(grub_http_protocol): Set http_seek
* grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
(ack_real): Set window depending on i_stall.
(grub_net_send_tcp_packet): Likewise.
(grub_net_tcp_stall): New function.
(grub_net_tcp_unstall): Likewise.
* include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
(grub_net_tcp_unstall): Likewise.
Vladimir 'phcoder' Serbinenko [Fri, 22 Jun 2012 20:04:16 +0000 (22:04 +0200)]
* grub-core/net/tftp.c: Decrease stall to 50 packets.
Vladimir 'phcoder' Serbinenko [Fri, 22 Jun 2012 20:02:47 +0000 (22:02 +0200)]
* grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
Vladimir 'phcoder' Serbinenko [Fri, 22 Jun 2012 19:59:10 +0000 (21:59 +0200)]
* tests/util/grub-shell.in: Fix a typo.
Vladimir 'phcoder' Serbinenko [Fri, 22 Jun 2012 12:17:46 +0000 (14:17 +0200)]
Implement flow control for tftp.
* grub-core/net/net.c (receive_packets): Decrease the stop to 10
packets but stop only if stop condition is satisfied.
(grub_net_fs_read_real): Call packets_pulled after real read. Use
`stall' instead of `eof' as stop condition.
* grub-core/net/http.c (parse_line): Set `stall' on EOF.
(http_err): Likewise.
* grub-core/net/tftp.c (ack): Replace the first argument with data
instead of socket.
(tftp_receive): Stall if too many packets are in wait queue.
(tftp_packets_pulled): New function.
(grub_tftp_protocol): Set packets_pulled.
* include/grub/net.h (grub_net_packets): New field count.
(grub_net_put_packet): Increment count.
(grub_net_remove_packet): Likewise.
(grub_net_app_protocol): New field `packets_pulled'.
(grub_net): New field `stall'.
Vladimir 'phcoder' Serbinenko [Fri, 22 Jun 2012 10:42:31 +0000 (12:42 +0200)]
* grub-core/net/net.c (receive_packets): Stop after 100 packets to let
sync part to handle them.
Vladimir 'phcoder' Serbinenko [Fri, 22 Jun 2012 09:51:48 +0000 (11:51 +0200)]
* grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
* grub-core/net/drivers/ieee1275/ofnet.c
(grub_ieee1275_net_config_real): Likewise.
Vladimir 'phcoder' Serbinenko [Thu, 21 Jun 2012 20:20:57 +0000 (22:20 +0200)]
* grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
the direct route for server/gateway.
Vladimir 'phcoder' Serbinenko [Thu, 21 Jun 2012 20:15:10 +0000 (22:15 +0200)]
* grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
IP address to server name since we may not hame the DNS.
Vladimir 'phcoder' Serbinenko [Thu, 21 Jun 2012 20:11:47 +0000 (22:11 +0200)]
* grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
freeing random buffer on failure.
* grub-core/net/net.c (grub_net_resolve_address): Likewise.
Vladimir 'phcoder' Serbinenko [Thu, 21 Jun 2012 20:08:33 +0000 (22:08 +0200)]
* grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
Vladimir 'phcoder' Serbinenko [Thu, 21 Jun 2012 20:05:41 +0000 (22:05 +0200)]
* grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
reserved bytes.
* grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
* grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
Handle malloc error correctly.
Vladimir 'phcoder' Serbinenko [Thu, 21 Jun 2012 20:02:09 +0000 (22:02 +0200)]
* grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
blocks.
Vladimir 'phcoder' Serbinenko [Thu, 21 Jun 2012 19:59:52 +0000 (21:59 +0200)]
* grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
increment.
Vladimir 'phcoder' Serbinenko [Wed, 20 Jun 2012 22:14:51 +0000 (00:14 +0200)]
* grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
none is explicitly specified.
Vladimir 'phcoder' Serbinenko [Wed, 20 Jun 2012 21:51:56 +0000 (23:51 +0200)]
* grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
while reallocating.
Vladimir 'phcoder' Serbinenko [Wed, 20 Jun 2012 21:46:50 +0000 (23:46 +0200)]
Respect netmask from bootp/dhcp.
* grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
(grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
* grub-core/net/net.c (grub_net_add_addr): Split creating local route
into ...
(grub_net_add_ipv4_local): ... this.
(grub_cmd_addaddr): Use grub_net_add_ipv4_local.
* include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
(grub_net_add_ipv4_local): New proto.
Vladimir 'phcoder' Serbinenko [Wed, 20 Jun 2012 21:39:33 +0000 (23:39 +0200)]
* grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
determining EFI memory map size.
Vladimir 'phcoder' Serbinenko [Wed, 20 Jun 2012 21:37:24 +0000 (23:37 +0200)]
* grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
Vladimir 'phcoder' Serbinenko [Wed, 20 Jun 2012 21:33:34 +0000 (23:33 +0200)]
* grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
when looking for partition separator.
Vladimir 'phcoder' Serbinenko [Wed, 20 Jun 2012 21:31:59 +0000 (23:31 +0200)]
* grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
Escape commas.
Vladimir 'phcoder' Serbinenko [Wed, 20 Jun 2012 21:29:28 +0000 (23:29 +0200)]
Restructure FAT driver to avoid hook in label reading as it hits a
GCC bug.
* include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
* grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
(grub_fat_iterate_dir): Split into ...
(grub_fat_iterate_init): ... this, ...
(grub_fat_iterate_fini): ... this, ...
(grub_fat_iterate_dir_next): ... and this. All users updated.
Vladimir 'phcoder' Serbinenko [Wed, 20 Jun 2012 20:19:26 +0000 (22:19 +0200)]
* include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
* grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
* include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
New fields last_key and last_key_time.
* grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
extended key-esc into extended key-extended key.
Vladimir 'phcoder' Serbinenko [Tue, 19 Jun 2012 17:34:51 +0000 (19:34 +0200)]
Avoid unnecessary memcpy of whole video buffer.
* grub-core/video/fb/video_fb.c (dirty): New struct.
(framebuffer): Add members current_dirty and previous_dirty.
(dirty): New function.
(grub_video_fb_fill_rect): Update dirty.
(common_blitter): Likewise.
(grub_video_fb_scroll): Likewise.
(doublebuf_blit_update_screen): Copy only dirty part.
(doublebuf_pageflipping_update_screen): Likewise.
(grub_video_fb_doublebuf_blit_init): Init dirty.
(doublebuf_pageflipping_init): Likewise.
(grub_video_fb_setup): Likewise.
Vladimir 'phcoder' Serbinenko [Tue, 19 Jun 2012 13:44:51 +0000 (15:44 +0200)]
* grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
poll rate.
Vladimir 'phcoder' Serbinenko [Tue, 19 Jun 2012 12:13:19 +0000 (14:13 +0200)]
Fix wildcard regexp dot and other special characters handling.
Reported by: Robert Mabee.
* grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
(make_regex): Escape "|+{}[]". Transform '?' to '.?'.
(split_path): Trigger expansion on '?'.
(unescape): New function.
(wildcard_expand): Unescape parts copied without globbing.
* grub-core/script/execute.c (wildcard_escape): Escape '?'.
(grub_script_arglist_to_argv): Don't unescape expansions.
Vladimir 'phcoder' Serbinenko [Tue, 19 Jun 2012 09:34:52 +0000 (11:34 +0200)]
* include/grub/net.h (grub_net_card): New member txbufsize.
* include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
* grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
txbufsize.
* grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
compatible property to check for macs. Set
GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
* grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
(send_card_buffer): Use txbuf.
(grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
nested function out of the parent while on it.
Vladimir 'phcoder' Serbinenko [Tue, 19 Jun 2012 09:25:37 +0000 (11:25 +0200)]
* grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
presence check.
(grub_ieee1275_net_config_real): Fix config pointer.
Vladimir 'phcoder' Serbinenko [Tue, 19 Jun 2012 09:23:13 +0000 (11:23 +0200)]
* grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
filename parsing to non-block devices.
Vladimir 'phcoder' Serbinenko [Tue, 19 Jun 2012 09:20:34 +0000 (11:20 +0200)]
* grub-core/kern/device.c (grub_device_open): Remove dead code.
Vladimir 'phcoder' Serbinenko [Mon, 18 Jun 2012 19:09:57 +0000 (21:09 +0200)]
* include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
All users updated.
Vladimir 'phcoder' Serbinenko [Mon, 18 Jun 2012 19:07:26 +0000 (21:07 +0200)]
* util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
UUID search command even if hints probing failed.
Vladimir 'phcoder' Serbinenko [Mon, 18 Jun 2012 19:05:08 +0000 (21:05 +0200)]
* po/POTFILES.in: Regenerated.
Vladimir 'phcoder' Serbinenko [Sat, 16 Jun 2012 23:09:32 +0000 (01:09 +0200)]
Speed-up video on fuloong.
* grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
New function.
(grub_pci_device_unmap_range): Handle non-cached address.
* grub-core/video/sis315pro.c (framebuffer): Remove render_target and
add direct_ptr.
(grub_video_sis315pro_video_fini): Unmap direct_ptr.
(grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
(grub_video_sis315pro_set_active_render_target): Removed.
(grub_video_sis315pro_get_info_and_fini): Use uncached address.
(grub_video_adapter): Use grub_video_fb_set_active_render_target.
(grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
sync caches.
* include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
New proto.
Vladimir 'phcoder' Serbinenko [Fri, 15 Jun 2012 22:32:59 +0000 (00:32 +0200)]
* docs/grub.texi (Multi-boot manual config): New section.
Vladimir 'phcoder' Serbinenko [Fri, 15 Jun 2012 21:57:20 +0000 (23:57 +0200)]
Avoid slow read-back from VRAM.
* include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
Move from here ...
* grub-core/video/fb/video_fb.c
(grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
* grub-core/video/fb/video_fb.c (framebuf_t): New type.
(front_target): Remove front_target. Add pages.
(grub_video_fb_init): Skip setting front_pages.
(grub_video_fb_fini): Likewise.
(doublebuf_blit_update_screen): Use pages.
(grub_video_fb_doublebuf_blit_init): Likewise.
(doublebuf_pageflipping_init): Allocate offscreen buffer.
(doublebuf_pageflipping_update_screen): Use offscreen buffer.
(grub_video_fb_setup): Prefer doublebuffing.