mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-07-26 06:38:42 +00:00
compiler, runtime: support recover on riscv64
This commit is contained in:
@@ -47,8 +47,8 @@ tinygo_scanCurrentStack:
|
||||
tinygo_longjmp:
|
||||
// Note: the code we jump to assumes a0 is non-zero, which is already the
|
||||
// case because that's the defer frame pointer.
|
||||
lw sp, 0(a0) // jumpSP
|
||||
lw a1, REGSIZE(a0) // jumpPC
|
||||
LREG sp, 0(a0) // jumpSP
|
||||
LREG a1, REGSIZE(a0) // jumpPC
|
||||
jr a1
|
||||
|
||||
.section .text.tinygo_checkpointJump
|
||||
|
||||
Reference in New Issue
Block a user