svn commit: trunk/uClibc/ldso/include

pkj at uclibc.org pkj at uclibc.org
Thu Feb 23 15:11:30 UTC 2006


Author: pkj
Date: 2006-02-23 07:11:29 -0800 (Thu, 23 Feb 2006)
New Revision: 14237

Log:
Allow MMAP2_PAGE_SHIFT to be specified by the architecture specific
header files.


Modified:
   trunk/uClibc/ldso/include/dl-syscall.h


Changeset:
Modified: trunk/uClibc/ldso/include/dl-syscall.h
===================================================================
--- trunk/uClibc/ldso/include/dl-syscall.h	2006-02-23 14:58:37 UTC (rev 14236)
+++ trunk/uClibc/ldso/include/dl-syscall.h	2006-02-23 15:11:29 UTC (rev 14237)
@@ -150,8 +150,15 @@
 # define __NR___syscall_mmap2       __NR_mmap2
 static inline _syscall6(__ptr_t, __syscall_mmap2, __ptr_t, addr, size_t, len,
                         int, prot, int, flags, int, fd, off_t, offset);
-/* 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
+
 static inline void * _dl_mmap(void * addr, unsigned long size, int prot,
                               int flags, int fd, unsigned long offset)
 {




More information about the uClibc-cvs mailing list