diff options
author | Rich Felker <dalias@aerifal.cx> | 2016-08-11 18:36:46 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2016-08-11 18:36:46 -0400 |
commit | 7cc3a28eed7e3b72a1ce4568fb55154bb0540726 (patch) | |
tree | e26aaecd58946d49e6648a4788fbb7ddc6c1ef43 /src/internal/syscall.h | |
parent | 39494a273eaa6b714e0fa0c59ce7a1f5fbc80a1e (diff) | |
download | musl-7cc3a28eed7e3b72a1ce4568fb55154bb0540726.tar.gz musl-7cc3a28eed7e3b72a1ce4568fb55154bb0540726.tar.bz2 musl-7cc3a28eed7e3b72a1ce4568fb55154bb0540726.tar.xz musl-7cc3a28eed7e3b72a1ce4568fb55154bb0540726.zip |
fix pread/pwrite syscall calling convention on sh
despite sh not generally using register-pair alignment for 64-bit
syscall arguments, there are arch-specific versions of the syscall
entry points for pread and pwrite which include a dummy argument for
alignment before the 64-bit offset argument.
Diffstat (limited to 'src/internal/syscall.h')
-rw-r--r-- | src/internal/syscall.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/internal/syscall.h b/src/internal/syscall.h index ff3cf53a..6d378a81 100644 --- a/src/internal/syscall.h +++ b/src/internal/syscall.h @@ -12,6 +12,10 @@ #define SYSCALL_MMAP2_UNIT 4096ULL #endif +#ifndef __SYSCALL_LL_PRW +#define __SYSCALL_LL_PRW(x) __SYSCALL_LL_O(x) +#endif + #ifndef __scc #define __scc(X) ((long) (X)) typedef long syscall_arg_t; |