fix broken mips syscall asm
[musl] / src / internal / mips / syscall.s
1 .set    noreorder
2
3 .global __syscall
4 .type   __syscall,@function
5 __syscall:
6         move    $25, $4
7         move    $4, $5
8         move    $5, $6
9         move    $6, $7
10         lw      $7, 16($sp)
11         lw      $8, 20($sp)
12         lw      $9, 24($sp)
13         subu    $sp, $sp, 32
14         sw      $8, 16($sp)
15         sw      $9, 20($sp)
16         move    $2, $25
17         syscall
18         beq     $7, $0, 1f
19         addu    $sp, $sp, 32
20         subu    $2, $0, $2
21 1:      jr      $ra
22         nop