NevynUK commented on code in PR #20125: URL: https://github.com/apache/nuttx/pull/20125#discussion_r3999344336
########## arch/risc-v/src/common/riscv_swint.c: ########## @@ -137,6 +140,170 @@ uintptr_t dispatch_syscall(unsigned int nbr, uintptr_t parm1, } #endif +#ifdef CONFIG_RISCV_FRAME_TRACE Review Comment: Removed, new PR being put together/ ########## arch/risc-v/src/common/riscv_schedulesigaction.c: ########## @@ -121,4 +121,13 @@ void up_schedule_sigaction(struct tcb_s *tcb) #endif tcb->xcp.regs[REG_INT_CTX] = int_ctx; + +#ifdef CONFIG_RISCV_FRAME_TRACE + /* Record the frame this built. It deliberately sets MPP=M so the + * trampoline runs privileged, and leaves REG_MCAUSE as the copied user + * value. + */ + + riscv_trace_frame(RISCV_TRACE_TAG_SIG_SCHED, tcb, tcb->xcp.regs); Review Comment: Done. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
