hujun260 commented on code in PR #15651: URL: https://github.com/apache/nuttx/pull/15651#discussion_r1925271451
########## arch/risc-v/src/common/supervisor/riscv_perform_syscall.c: ########## @@ -89,5 +89,10 @@ void *riscv_perform_syscall(uintreg_t *regs) up_set_interrupt_context(false); + /* (*running_task)->xcp.regs is about to become invalid + * and will be marked as NULL to avoid misusage. + */ + + (*running_task)->xcp.regs = NULL; return 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: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org