mirror of
https://github.com/fluencelabs/musl
synced 2025-06-30 15:11:55 +00:00
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.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user