Skip to content

Commit

Permalink
Merge pull request #9 from uyjulian/fix_ee_sjlj
Browse files Browse the repository at this point in the history
fix: Use correct register for longjmp second argument
  • Loading branch information
fjtrujy authored Dec 3, 2023
2 parents 7f4815c + 6205e5b commit 9575ff0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions newlib/libc/machine/r5900/setjmp.S
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ longjmp:
lwc1 $f30, O_F30($a0)
lwc1 $f31, O_F31($a0)

bne $a0, $0, 1f
li $a0, 1
bne $a1, $0, 1f
li $a1, 1
1:
move $v0, $a0
move $v0, $a1

jr $ra

Expand Down

0 comments on commit 9575ff0

Please sign in to comment.