MAP_FIXED overrides existing mappings, we don't want that
{
extern void (*psxCP2[64])();
extern void psxNULL();
+ extern u_char *out;
size_t i;
new_dynarec_init();
zeromem_ptr = zero_mem;
scratch_buf_ptr = scratch_buf;
+ SysPrintf("Mapped (RAM/scrp/ROM/LUTs/TC):\n");
+ SysPrintf("%08x/%08x/%08x/%08x/%08x\n",
+ psxM, psxH, psxR, mem_rtab, out);
+
return 0;
}
void *psxH_ptr;
void *zeromem_ptr;
u8 zero_mem[0x1000];
+u_char *out;
+void *mem_rtab;
void *scratch_buf_ptr;
void new_dynarec_init() { (void)ari64_execute; }
void new_dyna_start() {}
goto out;
}
- if (is_fixed)
- flags |= MAP_FIXED;
+ /* avoid MAP_FIXED, it overrides existing mappings.. */
+ /* if (is_fixed)
+ flags |= MAP_FIXED; */
req = (void *)addr;
ret = mmap(req, size, PROT_READ | PROT_WRITE, flags, -1, 0);
SysMessage("psxMap: warning: wanted to map @%08x, got %p\n",
addr, ret);
+ if (is_fixed) {
+ psxUnmap(ret, size, tag);
+ return NULL;
+ }
+
if (ret != NULL && ((addr ^ (long)ret) & 0x00ffffff)
&& !tried_to_align)
{