浏览代码

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 23 年之前
父节点
当前提交
c2b0e3d9b7
共有 1 个文件被更改,包括 5 次插入0 次删除
  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);