diff options
Diffstat (limited to 'libc-top-half/musl/src/setjmp/mips/longjmp.S')
-rw-r--r-- | libc-top-half/musl/src/setjmp/mips/longjmp.S | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/setjmp/mips/longjmp.S b/libc-top-half/musl/src/setjmp/mips/longjmp.S new file mode 100644 index 0000000..ecf4085 --- /dev/null +++ b/libc-top-half/musl/src/setjmp/mips/longjmp.S @@ -0,0 +1,34 @@ +.set noreorder + +.global _longjmp +.global longjmp +.type _longjmp,@function +.type longjmp,@function +_longjmp: +longjmp: + move $2, $5 + bne $2, $0, 1f + nop + addu $2, $2, 1 +1: +#ifndef __mips_soft_float + l.d $f20, 56($4) + l.d $f22, 64($4) + l.d $f24, 72($4) + l.d $f26, 80($4) + l.d $f28, 88($4) + l.d $f30, 96($4) +#endif + lw $ra, 0($4) + lw $sp, 4($4) + lw $16, 8($4) + lw $17, 12($4) + lw $18, 16($4) + lw $19, 20($4) + lw $20, 24($4) + lw $21, 28($4) + lw $22, 32($4) + lw $23, 36($4) + lw $30, 40($4) + jr $ra + lw $28, 44($4) |