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:
bbbe87e
)
fix mips syscalls with long long args
author
Rich Felker
<dalias@aerifal.cx>
Thu, 12 Jul 2012 17:48:56 +0000
(13:48 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Thu, 12 Jul 2012 17:48:56 +0000
(13:48 -0400)
like arm, mips requires 64-bit arguments to be "aligned" on an even
register boundary.
arch/mips/bits/syscall.h
patch
|
blob
|
history
diff --git
a/arch/mips/bits/syscall.h
b/arch/mips/bits/syscall.h
index e24ba5edd9d5008963a4bb0f4feaea4aa847aba9..868ce0fe474e482c6808a95d492afd6edb871b1b 100644
(file)
--- a/
arch/mips/bits/syscall.h
+++ b/
arch/mips/bits/syscall.h
@@
-1,7
+1,7
@@
#define __SYSCALL_LL_E(x) \
((union { long long ll; long l[2]; }){ .ll = x }).l[0], \
((union { long long ll; long l[2]; }){ .ll = x }).l[1]
-#define __SYSCALL_LL_O(x) __SYSCALL_LL_E((x))
+#define __SYSCALL_LL_O(x)
0,
__SYSCALL_LL_E((x))
long (__syscall)(long, ...);