Skip to content

Commit 6fdda16

Browse files
committed
runtime/riscv: access ucontext
1 parent 2f37bb8 commit 6fdda16

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

runtime/core/barrier.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,8 @@ static void alaska_barrier_signal_handler(int sig, siginfo_t* info, void* ptr) {
449449
return_address = ucontext->uc_mcontext.gregs[REG_RIP];
450450
#elif defined(__aarch64__)
451451
return_address = ucontext->uc_mcontext.pc;
452+
#elif defined(__riscv__)
453+
return_address = ucontext->uc_mcontext.__gregs[REG_PC];
452454
#endif
453455

454456
auto state = get_stack_state(return_address);

0 commit comments

Comments
 (0)