summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/sh/syscall.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix trapa value for _syscall6() to conform with new sh syscall ABI.Paul Mundt2005-05-071-1/+1
| | | | | | | | 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..
* Add a syscall() implementation using a hacked version of the syscall6 macro.Manuel Novoa III2003-12-021-0/+25
Untested, but syscall() is needed by busybox for pivot_root at least.