projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5bbe79
)
fix broken offset argument to the mmap2 syscall on or1k
author
Rich Felker
<dalias@aerifal.cx>
Thu, 31 Jul 2014 03:25:37 +0000
(23:25 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Thu, 31 Jul 2014 03:25:37 +0000
(23:25 -0400)
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.
arch/or1k/syscall_arch.h
patch
|
blob
|
history
diff --git
a/arch/or1k/syscall_arch.h
b/arch/or1k/syscall_arch.h
index aa1e623d4919cc9f46ac5cad566052dc7289d5c6..9d90b11e1c5f824992f417ad7f684c9c495b9ec7 100644
(file)
--- 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__