__syscall.S revision 1.2 1 1.2 matt /* $NetBSD: __syscall.S,v 1.2 2014/01/31 18:06:26 matt 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.1 simonb RSYSCALL(__syscall)
7 1.2 matt #else
8 1.2 matt
9 1.2 matt LEAF(__syscall)
10 1.2 matt PIC_PROLOGUE(__syscall)
11 1.2 matt move v0, a0
12 1.2 matt move a0, a1
13 1.2 matt move a1, a2
14 1.2 matt move a2, a3
15 1.2 matt move a3, a4
16 1.2 matt move a4, a5
17 1.2 matt move a5, a6
18 1.2 matt move a6, a7
19 1.2 matt REG_L a7, (sp)
20 1.2 matt SYSTRAP(__syscall)
21 1.2 matt bne a3,zero,1f
22 1.2 matt PIC_RETURN()
23 1.2 matt 1:
24 1.2 matt PIC_TAILCALL(__cerror)
25 1.2 matt END(__syscall)
26 1.2 matt STRONG_ALIAS(syscall, __syscall)
27 1.2 matt #endif
28