]> git.proxmox.com Git - wasi-libc.git/blob - libc-top-half/musl/src/internal/mips/syscall.s
Fix predefined macros check after recent clang change
[wasi-libc.git] / libc-top-half / musl / src / internal / mips / syscall.s
1 .set noreorder
2
3 .global __syscall
4 .hidden __syscall
5 .type __syscall,@function
6 __syscall:
7 move $2, $4
8 move $4, $5
9 move $5, $6
10 move $6, $7
11 lw $7, 16($sp)
12 lw $8, 20($sp)
13 lw $9, 24($sp)
14 lw $10,28($sp)
15 subu $sp, $sp, 32
16 sw $8, 16($sp)
17 sw $9, 20($sp)
18 sw $10,24($sp)
19 sw $2 ,28($sp)
20 lw $2, 28($sp)
21 syscall
22 beq $7, $0, 1f
23 addu $sp, $sp, 32
24 subu $2, $0, $2
25 1: jr $ra
26 nop