]> Git Repo - qemu.git/commitdiff
vga-pci: Fix access to linear framebuffer
authorStefan Weil <[email protected]>
Mon, 16 Nov 2009 20:11:38 +0000 (21:11 +0100)
committerAnthony Liguori <[email protected]>
Wed, 2 Dec 2009 14:47:08 +0000 (08:47 -0600)
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 <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
hw/vga-pci.c

index 234d5812e4e62a8c09cdaa316503a847561591ba..a6ad46ba7d0c29ca4130741e8f9699a58ee94fe3 100644 (file)
@@ -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;
This page took 0.022335 seconds and 4 git commands to generate.