xiaoxiang781216 commented on a change in pull request #1703:
URL: https://github.com/apache/incubator-nuttx/pull/1703#discussion_r484212693



##########
File path: arch/sim/src/sim/up_exit.c
##########
@@ -94,7 +97,14 @@ void up_exit(int status)
 
   /* Then switch contexts */
 
+#ifdef CONFIG_SIM_UCONTEXT_PREEMPTION
+  up_destroy_context(prev_tcb->xcp.ucontext_buffer,

Review comment:
       Let's use the stack memory allocated by nuttx kernel which is more 
simple than managing the stack by ourself.




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to