Add missing ifdef, move QNX RAM mapping closer to others
authorCatalystG <CatalystGdev@gmail.com>
Mon, 25 Mar 2013 00:24:44 +0000 (20:24 -0400)
committerCatalystG <CatalystGdev@gmail.com>
Mon, 25 Mar 2013 00:24:44 +0000 (20:24 -0400)
libpcsxcore/new_dynarec/new_dynarec.c
libpcsxcore/psxmem.c

index 5cdeb96..a3b766a 100644 (file)
 #include "assem_arm.h"
 #endif
 
+#ifdef __BLACKBERRY_QNX__
 #undef __clear_cache
 #define __clear_cache(start,end) msync(start, (size_t)((void*)end - (void*)start), MS_SYNC | MS_CACHE_ONLY | MS_INVALIDATE_ICACHE);
-
+#endif
 
 #define MAXBLOCK 4096
 #define MAX_OUTPUT_BLOCK_SIZE 262144
index 422b485..62bbe26 100644 (file)
@@ -131,7 +131,7 @@ int psxMemInit() {
 #ifndef RAM_FIXED
 #ifdef __BLACKBERRY_QNX__
        if (psxM == NULL)
-               psxM = psxMap(0x70000000, 0x00210000, 0, MAP_TAG_RAM);
+               psxM = psxMap(0x77000000, 0x00210000, 0, MAP_TAG_RAM);
 #else
        if (psxM == NULL)
                psxM = psxMap(0x78000000, 0x00210000, 0, MAP_TAG_RAM);