summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2014-07-30 23:25:37 -0400
committerRich Felker <dalias@aerifal.cx>2014-07-30 23:25:37 -0400
commit4f449374320ef487191611ddaa40c0a89c475a8a (patch)
treee8b598acc85a6affd59bdcd619b64ae9e17ebb5f
parentb5bbe797493ea732d4cac15619753c545ed392af (diff)
downloadmusl-4f449374320ef487191611ddaa40c0a89c475a8a.tar.gz
musl-4f449374320ef487191611ddaa40c0a89c475a8a.tar.bz2
musl-4f449374320ef487191611ddaa40c0a89c475a8a.tar.xz
musl-4f449374320ef487191611ddaa40c0a89c475a8a.zip
fix broken offset argument to the mmap2 syscall on or1k
for or1k, the kernel expects the offset passed to mmap2 in units of the 8k page size, not the standard unit of 4k used on most other archs.
-rw-r--r--arch/or1k/syscall_arch.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/or1k/syscall_arch.h b/arch/or1k/syscall_arch.h
index aa1e623d..9d90b11e 100644
--- a/arch/or1k/syscall_arch.h
+++ b/arch/or1k/syscall_arch.h
@@ -3,6 +3,8 @@
((union { long long ll; long l[2]; }){ .ll = x }).l[1]
#define __SYSCALL_LL_O(x) 0, __SYSCALL_LL_E((x))
+#define SYSCALL_MMAP2_UNIT 8192ULL
+
long (__syscall)(long, ...);
#ifndef __clang__