Skip to content

Commit f66492a

Browse files
Yannis Huberaykevl
authored andcommitted
Fix return address in scheduler
1 parent 445fd37 commit f66492a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/runtime/scheduler_tinygoriscv.S

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ tinygo_scanCurrentStack:
2222
mv a0, sp
2323
call tinygo_scanstack
2424

25+
// Restore return address.
26+
lw ra, 60(sp)
27+
2528
// Restore stack state.
2629
addi sp, sp, 64
2730

0 commit comments

Comments
 (0)