summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/sh/syscall.c
AgeCommit message (Collapse)Author
2005-05-07Fix trapa value for _syscall6() to conform with new sh syscall ABI.Paul Mundt
The old sh system call interface used 0x00 - 0x0f for the trapa value (number of arguments), whereas the new ABI uses the 0x10 - 0x1f range. For some reason we were using an off-by-1 trapa immediate which ended up trashing r1 in the _syscall6() case, so we fix it up..
2003-12-02Add a syscall() implementation using a hacked version of the syscall6 macro.Manuel Novoa III
Untested, but syscall() is needed by busybox for pivot_root at least.