提交 4c7634bc 编写于 作者: B bellard

init VGA with default config


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@900 c046a42c-6fe2-441c-8c8c-71466251a162
上级 a21ae81d
......@@ -1030,6 +1030,8 @@ static void pci_bios_init_device(PCIDevice *d)
}
break;
case 0x0300:
if (vendor_id != 0x1234)
goto default_map;
/* VGA: map frame buffer to default Bochs VBE address */
pci_set_io_region_addr(d, 0, 0xE0000000);
break;
......@@ -1040,6 +1042,7 @@ static void pci_bios_init_device(PCIDevice *d)
}
break;
default:
default_map:
/* default memory mappings */
for(i = 0; i < PCI_NUM_REGIONS; i++) {
r = &d->io_regions[i];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册