32x: drc: mmap dram+rom for direct dereference
[picodrive.git] / pico / 32x / memory.c
index 7104cef..999a060 100644 (file)
@@ -1419,7 +1419,7 @@ void PicoMemSetup32x(void)
   unsigned int rs;
   int i;
 
-  Pico32xMem = calloc(1, sizeof(*Pico32xMem));
+  Pico32xMem = plat_mmap(0x06000000, sizeof(*Pico32xMem));
   if (Pico32xMem == NULL) {
     elprintf(EL_STATUS, "OOM");
     return;