Fix running on CTR: dyncache mmap doesn't specify MAP_FIXED anymore
authorYuxuan Shui <yshuiv7@gmail.com>
Tue, 4 Apr 2017 02:32:58 +0000 (22:32 -0400)
committerYuxuan Shui <yshuiv7@gmail.com>
Tue, 4 Apr 2017 02:43:46 +0000 (22:43 -0400)
frontend/3ds/sys/mman.h

index e295b89..61dde6c 100644 (file)
@@ -32,7 +32,7 @@ static inline void* mmap(void *addr, size_t len, int prot, int flags, int fd, of
    void* addr_out;
 
    if((prot == (PROT_READ | PROT_WRITE | PROT_EXEC)) &&
-      (flags == (MAP_FIXED | MAP_PRIVATE | MAP_ANONYMOUS)))
+      (flags == (MAP_PRIVATE | MAP_ANONYMOUS)))
    {
       if(__ctr_svchax)
       {