pussuw commented on code in PR #14739:
URL: https://github.com/apache/nuttx/pull/14739#discussion_r1839507457
##########
arch/arm64/src/common/arm64_syscall.c:
##########
@@ -217,10 +219,13 @@ uint64_t *arm64_syscall(uint64_t *regs)
case SYS_switch_context:
{
+ struct tcb_s *rtcb = regs[REG_X1];
+ struct tcb_s *tcb = regs[REG_X2];
+
DEBUGASSERT(regs[REG_X1] != 0 && regs[REG_X2] != 0);
- *(uint64_t **)regs[REG_X1] = regs;
+ *(uint64_t **)(&rtcb->xcp.regs) = regs;
Review Comment:
If not, `rtcb->xcp.regs = regs` should suffice
--
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]