Fix vga initialization for qemu virtual graphics adapter.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Myles Watson <mylesgw@gmail.com>



git-svn-id: svn://coreboot.org/repository/coreboot-v3@666 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
Stefan Reinauer 2008-04-24 20:45:57 +00:00
parent df60eea846
commit 479ca87df3
2 changed files with 7 additions and 2 deletions

View file

@ -61,7 +61,13 @@ struct rom_header *pci_rom_probe(struct device *dev)
rom_address = 0xc0000;
} else {
rom_address = pci_read_config32(dev, PCI_ROM_ADDRESS);
if (dev->rom_address) {
/* Override in place? */
rom_address = dev->rom_address;
} else {
rom_address = pci_read_config32(dev, PCI_ROM_ADDRESS) & 0xfffffffe;
}
}
if (rom_address == 0x00000000 || rom_address == 0xffffffff) {

View file

@ -33,7 +33,6 @@ static void setup_onboard(struct device *dev)
printk(BIOS_INFO, "Init VGA device\n");
dev->on_mainboard = 1;
dev->rom_address = 0xc0000;
/*