diff options
author | Rich Felker <dalias@aerifal.cx> | 2016-01-20 01:44:06 +0000 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2016-01-20 01:45:44 +0000 |
commit | 4b9a08f29303661e9680fc1ee1569daa25df7d50 (patch) | |
tree | 13d9b55f34c7cc76235fb4544c8b27e27d7d5ed7 /src/setjmp/mips/longjmp.S | |
parent | 56764601af17aa6fb8b70b714c6bd8bb1d9f4229 (diff) | |
download | musl-4b9a08f29303661e9680fc1ee1569daa25df7d50.tar.gz musl-4b9a08f29303661e9680fc1ee1569daa25df7d50.tar.bz2 musl-4b9a08f29303661e9680fc1ee1569daa25df7d50.tar.xz musl-4b9a08f29303661e9680fc1ee1569daa25df7d50.zip |
switch sh and mips setjmp asm from .sub system to .S files
Diffstat (limited to 'src/setjmp/mips/longjmp.S')
-rw-r--r-- | src/setjmp/mips/longjmp.S | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/setjmp/mips/longjmp.S b/src/setjmp/mips/longjmp.S new file mode 100644 index 00000000..fdb6c95d --- /dev/null +++ b/src/setjmp/mips/longjmp.S @@ -0,0 +1,40 @@ +.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 + lwc1 $20, 56($4) + lwc1 $21, 60($4) + lwc1 $22, 64($4) + lwc1 $23, 68($4) + lwc1 $24, 72($4) + lwc1 $25, 76($4) + lwc1 $26, 80($4) + lwc1 $27, 84($4) + lwc1 $28, 88($4) + lwc1 $29, 92($4) + lwc1 $30, 96($4) + lwc1 $31, 100($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) |