Home | History | Annotate | Line # | Download | only in sys
__syscall.S revision 1.3
      1  1.3  thorpej /*	$NetBSD: __syscall.S,v 1.3 2020/04/18 23:55:51 thorpej Exp $	*/
      2  1.1   simonb 
      3  1.1   simonb #include "SYS.h"
      4  1.1   simonb 
      5  1.2     matt #ifdef __mips_o32
      6  1.3  thorpej 
      7  1.1   simonb RSYSCALL(__syscall)
      8  1.3  thorpej 
      9  1.3  thorpej #else /* ! __mips_o32 */
     10  1.2     matt 
     11  1.2     matt LEAF(__syscall)
     12  1.2     matt         PIC_PROLOGUE(__syscall)
     13  1.2     matt 	move	v0, a0
     14  1.2     matt 	move	a0, a1
     15  1.2     matt 	move	a1, a2
     16  1.2     matt 	move	a2, a3
     17  1.2     matt 	move	a3, a4
     18  1.2     matt 	move	a4, a5
     19  1.2     matt 	move	a5, a6
     20  1.2     matt 	move	a6, a7
     21  1.2     matt 	REG_L	a7, (sp)
     22  1.2     matt         SYSTRAP(__syscall)
     23  1.2     matt         bne a3,zero,1f
     24  1.2     matt         PIC_RETURN()
     25  1.2     matt 1:
     26  1.2     matt         PIC_TAILCALL(__cerror)
     27  1.2     matt END(__syscall)
     28  1.3  thorpej STRONG_ALIAS(_syscall,__syscall)
     29  1.3  thorpej WEAK_ALIAS(syscall,__syscall)
     30  1.3  thorpej 
     31  1.3  thorpej #endif /* __mips_o32 */
     32