1/* $NetBSD: __syscall.S,v 1.2 2014/01/31 18:06:26 matt Exp $ */ 2 3#include "SYS.h" 4 5#ifdef __mips_o32 6RSYSCALL(__syscall) 7#else 8 9LEAF(__syscall) 10 PIC_PROLOGUE(__syscall) 11 move v0, a0 12 move a0, a1 13 move a1, a2 14 move a2, a3 15 move a3, a4 16 move a4, a5 17 move a5, a6 18 move a6, a7 19 REG_L a7, (sp) 20 SYSTRAP(__syscall) 21 bne a3,zero,1f 22 PIC_RETURN() 231: 24 PIC_TAILCALL(__cerror) 25END(__syscall) 26STRONG_ALIAS(syscall, __syscall) 27#endif 28