[OpenBIOS] [PATCH] prep: fix start address of PCI memory region

Hervé Poussineau hpoussin at reactos.org
Fri Sep 13 11:54:10 CEST 2013


PCI devices having memory BARs are now accessed at the right address.
This at least fixes the QEMU video card, which is now able to display
the OpenBIOS prompt.

Signed-off-by: Hervé Poussineau <hpoussin at reactos.org>
---
 arch/ppc/qemu/init.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/ppc/qemu/init.c b/arch/ppc/qemu/init.c
index f370514..cbed740 100644
--- a/arch/ppc/qemu/init.c
+++ b/arch/ppc/qemu/init.c
@@ -99,8 +99,8 @@ static const pci_arch_t known_arch[] = {
         .cfg_data = 0x80000cfc,
         .cfg_base = 0x80000000,
         .cfg_len = 0x00100000,
-        .host_pci_base = 0x0,
-        .pci_mem_base = 0xf0000000,
+        .host_mem_base = 0xc0000000,
+        .pci_mem_base = 0x100000, /* avoid VGA at 0xa0000 */
         .mem_len = 0x10000000,
         .io_base = 0x80000000,
         .io_len = 0x00010000,
-- 
1.7.10.4




More information about the OpenBIOS mailing list