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

Hervé Poussineau hpoussin at reactos.org
Fri Sep 13 13:26:00 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>
---

Changes v1->v2:
- rebased on r1228

 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..1124c6f 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_pci_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