Home | History | Annotate | Line # | Download | only in sys
__syscall.S revision 1.1.60.1
      1 /*	$NetBSD: __syscall.S,v 1.1.60.1 2014/05/22 11:36:48 yamt Exp $	*/
      2 
      3 #include "SYS.h"
      4 
      5 #ifdef __mips_o32
      6 RSYSCALL(__syscall)
      7 #else
      8 
      9 LEAF(__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()
     23 1:
     24         PIC_TAILCALL(__cerror)
     25 END(__syscall)
     26 STRONG_ALIAS(syscall, __syscall)
     27 #endif
     28