From aecc5b0cf7d3d12dbd28d1d3ad49d8cdd8dbe958 Mon Sep 17 00:00:00 2001 From: Peter Kjellerstedt Date: Thu, 23 Feb 2006 15:24:19 +0000 Subject: Corrected a comment regarding mmap2(). --- libc/sysdeps/linux/common/mmap64.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libc/sysdeps') 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 -- cgit v1.2.3