add mips64 port
[musl.git] / src / internal / mips64 / syscall.s
blob98448667abecb84a8bb87664c15643debdb29c0a
1 .set noreorder
2 .global __syscall
3 .hidden __syscall
4 .type __syscall,@function
5 __syscall:
6 move $2, $4
7 move $4, $5
8 move $5, $6
9 move $6, $7
10 move $7, $8
11 move $8, $9
12 move $9, $10
13 move $10, $11
14 syscall
15 beq $7, $0, 1f
16 nop
17 dsubu $2, $0, $2
18 1: jr $ra
19 nop