From: Stefan Weil Date: Mon, 16 Nov 2009 20:11:38 +0000 (+0100) Subject: vga-pci: Fix access to linear framebuffer X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1062977b970789848f971e19e17bdfbe5ee471a4;p=qemu.git vga-pci: Fix access to linear framebuffer Anthony Liguori's patch fixes the problems with vga display in graphical mode and SeaBIOS. I only adapted some values for vga-pci. Signed-off-by: Stefan Weil Signed-off-by: Anthony Liguori --- diff --git a/hw/vga-pci.c b/hw/vga-pci.c index 234d5812e4..a6ad46ba7d 100644 --- a/hw/vga-pci.c +++ b/hw/vga-pci.c @@ -107,6 +107,12 @@ static int pci_vga_initfn(PCIDevice *dev) PCI_BASE_ADDRESS_MEM_PREFETCH, vga_map); } +#ifdef CONFIG_BOCHS_VBE + /* XXX: use optimized standard vga accesses */ + cpu_register_physical_memory(VBE_DISPI_LFB_PHYSICAL_ADDRESS, + VGA_RAM_SIZE, s->vram_offset); +#endif + /* ROM BIOS */ rom_add_vga(VGABIOS_FILENAME); return 0;