summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2006-02-23 15:39:09 +0000
committerPeter Kjellerstedt <peter.kjellerstedt@axis.com>2006-02-23 15:39:09 +0000
commit19358217bff6ddadfba57cd28078b39d4a8c3526 (patch)
tree87d77c49bb0e92d2a54592617013edc9bdf617d9
parenta92b3b7566e7378642f8c1a24f9adff89a7c346c (diff)
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.
-rw-r--r--ldso/ldso/cris/dl-syscalls.h2
-rw-r--r--libc/sysdeps/linux/cris/bits/uClibc_page.h6
2 files changed, 6 insertions, 2 deletions
diff --git a/ldso/ldso/cris/dl-syscalls.h b/ldso/ldso/cris/dl-syscalls.h
index 74dcc346f..996bb87c6 100644
--- a/ldso/ldso/cris/dl-syscalls.h
+++ b/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
diff --git a/libc/sysdeps/linux/cris/bits/uClibc_page.h b/libc/sysdeps/linux/cris/bits/uClibc_page.h
index 8219a19da..adfc3c9af 100644
--- a/libc/sysdeps/linux/cris/bits/uClibc_page.h
+++ b/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 */