xiaoxiang781216 commented on code in PR #13520:
URL: https://github.com/apache/nuttx/pull/13520#discussion_r1765557640


##########
arch/arm64/src/common/arm64_syscall.c:
##########
@@ -192,13 +192,13 @@ uint64_t *arm64_syscall_switch(uint64_t * regs)
            * set will determine the restored context.
            */
 
-          ret_regs = (uint64_t *)f_regs->regs[REG_X1];
+          ret_regs = (uint64_t *)regs[REG_X1];
 
           DEBUGASSERT(ret_regs);
         }
         break;
 
-      /* x0 = SYS_switch_context:  This a switch context command:
+       /* x0 = SYS_switch_context:  This a switch context command:

Review Comment:
   revert



##########
arch/arm64/src/common/arm64_syscall.c:
##########
@@ -216,85 +216,14 @@ uint64_t *arm64_syscall_switch(uint64_t * regs)
 
       case SYS_switch_context:
         {
-          DEBUGASSERT(f_regs->regs[REG_X1] != 0 &&
-                      f_regs->regs[REG_X2] != 0);
-          *(uint64_t **)f_regs->regs[REG_X1] = regs;
+          DEBUGASSERT(regs[REG_X1] != 0 &&
+                      regs[REG_X2] != 0);

Review Comment:
   merge to one line



-- 
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]

Reply via email to