summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2006-02-23 15:24:19 +0000
committerPeter Kjellerstedt <peter.kjellerstedt@axis.com>2006-02-23 15:24:19 +0000
commitaecc5b0cf7d3d12dbd28d1d3ad49d8cdd8dbe958 (patch)
tree314dbeca89cc7e3c6d6287826ad908d299555485
parentcbea2418b59c91f955d856448ce6bdf2083c4f9f (diff)
Corrected a comment regarding mmap2().
-rw-r--r--libc/sysdeps/linux/common/mmap64.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/mmap64.c b/libc/sysdeps/linux/common/mmap64.c
index 9f7ae75f3..152e7296b 100644
--- a/libc/sysdeps/linux/common/mmap64.c
+++ b/libc/sysdeps/linux/common/mmap64.c
@@ -53,7 +53,10 @@ __ptr_t mmap64(__ptr_t addr, size_t len, int prot, int flags, int fd, __off64_t
static inline _syscall6(__ptr_t, __syscall_mmap2, __ptr_t, addr,
size_t, len, int, prot, int, flags, int, fd, off_t, offset);
-/* This is always 12, even on architectures where PAGE_SHIFT != 12. */
+/* Some architectures always use 12 as page shift for mmap2() eventhough the
+ * real PAGE_SHIFT != 12. Other architectures use the same value as
+ * PAGE_SHIFT...
+ */
# ifndef MMAP2_PAGE_SHIFT
# define MMAP2_PAGE_SHIFT 12
# endif