]> git.proxmox.com Git - grub2.git/commit
Use write-combining MTRR to speed up video with buggy BIOSes.
authorColin Watson <cjwatson@ubuntu.com>
Mon, 27 Feb 2012 21:31:51 +0000 (22:31 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 27 Feb 2012 21:31:51 +0000 (22:31 +0100)
commitcfe456dc03fc29833ba7e7c77e03d25b5aa73217
tree8f322790502aed2b1061337cfbaf19948c317cb2
parente3c78337c32606fe824c15c9de4f4601f87b7ab6
Use write-combining MTRR to speed up video with buggy BIOSes.

* grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
(cpuid): New define.
(rdmsr): Likewise.
(wrmsr): Likewise.
(mtrr_base): Likewise.
(mtrr_mask): Likewise.
(grub_vbe_enable_mtrr_entry): New function.
(grub_vbe_enable_mtrr): Likewise.
(grub_vbe_disable_mtrr): Likewise.
(grub_vbe_bios_set_display_start): Disable mtrr when handing the
control off to BIOS.
(grub_video_vbe_init): Fill mtrr.
(grub_video_vbe_fini): Disable mtrr.
(grub_video_vbe_get_info_and_fini): Likewise.
(grub_video_vbe_setup): Enable mtrr.
ChangeLog
grub-core/video/i386/pc/vbe.c