diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-11-05 00:38:40 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-11-05 00:38:40 -0500 |
commit | de2b9c21d94e0b76b629fec0060d043f535eef01 (patch) | |
tree | 7d6d2a308bcd47ff12f75ea928b52618fb58bda0 /arch/or1k/syscall_arch.h | |
parent | e146e6035fecea080fb17450db3c8bb44d36e07d (diff) | |
download | musl-de2b9c21d94e0b76b629fec0060d043f535eef01.tar.gz |
fix 64-bit syscall argument passing on or1k
the kernel syscall interface for or1k does not expect 64-bit arguments
to be aligned to "even" register boundaries. this incorrect alignment
broke truncate/ftruncate and as well as a few less-common syscalls.
Diffstat (limited to 'arch/or1k/syscall_arch.h')
-rw-r--r-- | arch/or1k/syscall_arch.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/or1k/syscall_arch.h b/arch/or1k/syscall_arch.h index 9d90b11e..fe664559 100644 --- a/arch/or1k/syscall_arch.h +++ b/arch/or1k/syscall_arch.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) 0, __SYSCALL_LL_E((x)) +#define __SYSCALL_LL_O(x) __SYSCALL_LL_E((x)) #define SYSCALL_MMAP2_UNIT 8192ULL |