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.
This commit is contained in:
Rich Felker 2014-07-30 23:25:37 -04:00
parent b5bbe79749
commit 4f44937432
1 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,8 @@
((union { long long ll; long l[2]; }){ .ll = x }).l[1] ((union { long long ll; long l[2]; }){ .ll = x }).l[1]
#define __SYSCALL_LL_O(x) 0, __SYSCALL_LL_E((x)) #define __SYSCALL_LL_O(x) 0, __SYSCALL_LL_E((x))
#define SYSCALL_MMAP2_UNIT 8192ULL
long (__syscall)(long, ...); long (__syscall)(long, ...);
#ifndef __clang__ #ifndef __clang__