aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorStefan Weil <weil@mail.berlios.de>2009-11-16 21:11:38 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-12-02 08:47:08 -0600
commit1062977b970789848f971e19e17bdfbe5ee471a4 (patch)
tree51118aa810b979f70327be70c9ec516caf8aa432 /hw
parenta73e8e4309a1b84143d0839d96a5b2318089eef1 (diff)
downloadqemu-1062977b970789848f971e19e17bdfbe5ee471a4.zip
qemu-1062977b970789848f971e19e17bdfbe5ee471a4.tar.gz
qemu-1062977b970789848f971e19e17bdfbe5ee471a4.tar.bz2
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 <weil@mail.berlios.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/vga-pci.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/vga-pci.c b/hw/vga-pci.c
index 234d581..a6ad46b 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;