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


##########
arch/arm64/src/common/arm64_syscall.c:
##########
@@ -193,8 +195,11 @@ uint64_t *arm64_syscall(uint64_t *regs)
 
         restore_critical_section(tcb, cpu);
         break;
-      case SYS_switch_context:
 
+      case SYS_switch_context:
+#ifdef CONFIG_ARCH_ADDRENV

Review Comment:
   move after line 211



##########
arch/arm64/src/common/arm64_syscall.c:
##########
@@ -193,8 +195,11 @@ uint64_t *arm64_syscall(uint64_t *regs)
 
         restore_critical_section(tcb, cpu);
         break;
-      case SYS_switch_context:
 
+      case SYS_switch_context:
+#ifdef CONFIG_ARCH_ADDRENV
+        addrenv_switch(NULL);

Review Comment:
   ```suggestion
           addrenv_switch(tcb);
   ```



##########
arch/arm64/src/common/arm64_syscall.c:
##########
@@ -184,7 +184,9 @@ uint64_t *arm64_syscall(uint64_t *regs)
   switch (cmd)
     {
       case SYS_restore_context:
-
+#ifdef CONFIG_ARCH_ADDRENV
+        addrenv_switch(NULL);

Review Comment:
   ```suggestion
           addrenv_switch(tcb);
   ```



##########
arch/arm64/src/common/arm64_syscall.c:
##########
@@ -184,7 +184,9 @@ uint64_t *arm64_syscall(uint64_t *regs)
   switch (cmd)
     {
       case SYS_restore_context:
-
+#ifdef CONFIG_ARCH_ADDRENV

Review Comment:
   move after line 196



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