mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 19:49:43 +00:00
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>
This commit is contained in:
parent
a73e8e4309
commit
1062977b97
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user