aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2012-05-15 12:12:44 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2012-05-15 12:12:44 -0700
commitb6198b408721a80341d353bdc31b6a043a5ead32 (patch)
treeda1382b44a659e65db2267c815f6054d727ef4f7
parentc9386db2f81259069d8615667b56bd76e6233a56 (diff)
downloadklibc-b6198b408721a80341d353bdc31b6a043a5ead32.tar.gz
[klibc] If we need mmap2(), it doesn't matter if NO_MMU
Just because we are NO_MMU doesn't mean we might not need to use mmap2(). It makes it less likely, but if that is the situation then the archconfig.h should have something like: Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r--usr/klibc/mmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/klibc/mmap.c b/usr/klibc/mmap.c
index 9b1dcd97f8f09..2c427ca0771e1 100644
--- a/usr/klibc/mmap.c
+++ b/usr/klibc/mmap.c
@@ -14,7 +14,7 @@
* Set in SYSCALLS whether or not we should use an unadorned mmap() system
* call (typical on 64-bit architectures).
*/
-#if !_KLIBC_NO_MMU && _KLIBC_USE_MMAP2
+#if _KLIBC_USE_MMAP2
/* This architecture uses mmap2(). The Linux mmap2() system call takes
a page offset as the offset argument. We need to make sure we have