From db11e96493d1a814266104332fa1f53a51622213 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 12 Jul 2012 13:48:56 -0400 Subject: [PATCH] fix mips syscalls with long long args like arm, mips requires 64-bit arguments to be "aligned" on an even register boundary. --- arch/mips/bits/syscall.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/bits/syscall.h b/arch/mips/bits/syscall.h index e24ba5ed..868ce0fe 100644 --- 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, ...); -- GitLab