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


##########
arch/risc-v/src/common/supervisor/riscv_perform_syscall.c:
##########
@@ -46,6 +46,16 @@ void *riscv_perform_syscall(uintreg_t *regs)
     {
       (*running_task)->xcp.regs = regs;
     }
+  else
+    {
+      /* Update scheduler parameters *running_task == this_task() */
+
+      nxsched_resume_scheduler(*running_task);
+
+#ifdef CONFIG_ARCH_ADDRENV
+      addrenv_switch(*running_task);

Review Comment:
   why call addrenv_switch here and line 80? could we merge two places into one?



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