1 /* $NetBSD: __syscall.S,v 1.1 2014/09/03 19:34:26 matt Exp $ */
3 #include <machine/asm.h>
6 l.or r13,r3,r0 /* syscall number */
12 // at most 5 arguments can be passed via registers so the others
13 // must be on the stack.
15 l.lwz r11,4(r1) /* use return value regs for last 2 */
16 l.lwz r12,8(r1) /* use return value regs for last 2 */
18 l.bf _C_LABEL(__cerror)
24 STRONG_ALIAS(syscall, __syscall)