summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/xgi_driver.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xgi_driver.c b/src/xgi_driver.c
index 15bda22..79fe4fe 100644
--- a/src/xgi_driver.c
+++ b/src/xgi_driver.c
@@ -2612,8 +2612,12 @@ XGIPreInit(ScrnInfoPtr pScrn, int flags)
if (pXGI->Primary) {
#if defined(__arm__)
+#ifdef XSERVER_LIBPCIACCESS
+ VGAHWPTR(pScrn)->MapPhys = pXGI->PciInfo->regions[2].base_addr + 0xf2000000;
+#else
VGAHWPTR(pScrn)->MapPhys = pXGI->PciInfo->ioBase[2] + 0xf2000000;
#endif
+#endif
VGAHWPTR(pScrn)->MapSize = 0x10000; /* Standard 64k VGA window */
if (!vgaHWMapMem(pScrn)) {