Browse Source

Moved the definition of MMAP2_PAGE_SHIFT from ldso/ldso/cris/dl-syscalls.h
to libc/sysdeps/linux/cris/bits/uClibc_page.h where it belongs.

Peter Kjellerstedt 19 years ago
parent
commit
19358217bf
2 changed files with 6 additions and 2 deletions
  1. 0 2
      ldso/ldso/cris/dl-syscalls.h
  2. 6 0
      libc/sysdeps/linux/cris/bits/uClibc_page.h

+ 0 - 2
ldso/ldso/cris/dl-syscalls.h

@@ -4,5 +4,3 @@
 extern int _dl_errno;
 #undef __set_errno
 #define __set_errno(X) {(_dl_errno) = (X);}
-
-#define MMAP2_PAGE_SHIFT 13

+ 6 - 0
libc/sysdeps/linux/cris/bits/uClibc_page.h

@@ -25,4 +25,10 @@
 #define PAGE_SIZE	(1UL << PAGE_SHIFT)
 #define PAGE_MASK	(~(PAGE_SIZE-1))
 
+/* 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...
+ */
+#define MMAP2_PAGE_SHIFT PAGE_SHIFT
+
 #endif /* _UCLIBC_PAGE_H */