Skip to content

Commit 2c70f3c

Browse files
uyjulianfjtrujy
authored andcommitted
fix: Use correct register for longjmp second argument
1 parent a118ffe commit 2c70f3c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

newlib/libc/machine/r5900/setjmp.S

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ longjmp:
9494
lwc1 $f30, O_F30($a0)
9595
lwc1 $f31, O_F31($a0)
9696

97-
bne $a0, $0, 1f
98-
li $a0, 1
97+
bne $a1, $0, 1f
98+
li $a1, 1
9999
1:
100-
move $v0, $a0
100+
move $v0, $a1
101101

102102
jr $ra
103103

0 commit comments

Comments
 (0)