From 79b846ecc0275ceb02b5e2d3b03a34d7c43e6bf9 Mon Sep 17 00:00:00 2001 From: David Holsgrove Date: Tue, 4 Feb 2014 09:26:15 +1000 Subject: microblaze BZ #15705: Define MMAP2_PAGE_SHIFT Define MMAP2_PAGE_SHIFT to -1 for microblaze so the correct shift for the syscall is determined dynamically using getpagesize ports/ChangeLog.microblaze 2014-02-04 David Holsgrove * sysdeps/unix/sysv/linux/microblaze/mmap64.c: New file. Signed-off-by: David Holsgrove --- ports/sysdeps/unix/sysv/linux/microblaze/mmap64.c | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 ports/sysdeps/unix/sysv/linux/microblaze/mmap64.c (limited to 'ports/sysdeps') diff --git a/ports/sysdeps/unix/sysv/linux/microblaze/mmap64.c b/ports/sysdeps/unix/sysv/linux/microblaze/mmap64.c new file mode 100644 index 0000000000..11a6bd8245 --- /dev/null +++ b/ports/sysdeps/unix/sysv/linux/microblaze/mmap64.c @@ -0,0 +1,4 @@ +/* Microblaze kernel has PAGE_SHIFT set to 12. + Determine the shift dynamically with getpagesize. */ +#define MMAP2_PAGE_SHIFT -1 +#include -- cgit 1.4.1