Browse Source

For now, leave mmap on mips using mmap1, since mmap2 seems
to have 'issues' (i.e. it doesn't work 100% properly).
-Erik

Eric Andersen 22 years ago
parent
commit
c2b0e3d9b7
1 changed files with 5 additions and 0 deletions
  1. 5 0
      libc/sysdeps/linux/mips/_mmap.c

+ 5 - 0
libc/sysdeps/linux/mips/_mmap.c

@@ -4,10 +4,15 @@
 #include <sys/mman.h>
 #include <sys/mman.h>
 #include <sys/syscall.h>
 #include <sys/syscall.h>
 
 
+#if 0
+/* For now, leave mmap using mmap1 since mmap2 seems
+ * to have issues (i.e. it doesn't work 100% properly).
+ */
 #ifdef __NR_mmap2
 #ifdef __NR_mmap2
 # undef __NR_mmap
 # undef __NR_mmap
 # define __NR_mmap __NR_mmap2
 # define __NR_mmap __NR_mmap2
 #endif
 #endif
+#endif
 
 
 _syscall6 (__ptr_t, mmap, __ptr_t, addr, size_t, len, int, prot,
 _syscall6 (__ptr_t, mmap, __ptr_t, addr, size_t, len, int, prot,
 	   int, flags, int, fd, __off_t, offset);
 	   int, flags, int, fd, __off_t, offset);