hujun260 commented on code in PR #14739: URL: https://github.com/apache/nuttx/pull/14739#discussion_r1839276170
########## arch/arm64/src/common/arm64_syscall.c: ########## @@ -192,7 +192,9 @@ uint64_t *arm64_syscall(uint64_t *regs) * set will determine the restored context. */ - ret_regs = (uint64_t *)regs[REG_X1]; + struct tcb_s *tcb = regs[REG_X1]; + + ret_regs = (uint64_t *)tcb->xcp.regs; regs[REG_X1] = 0; /* set the saveregs = 0 */ Review Comment: remove -- 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