patacongo opened a new pull request #1141:
URL: https://github.com/apache/incubator-nuttx/pull/1141


   ## Summary
   
   sched_releasetcb() will normally free the stack allocated for a task.  
However, a task with a custom, user-managed stack may be created using` 
nxtask_init()` followed by `nxtask_activate()`.  If such a custom stack is used 
then it must not be free in this many or a crash will most likely result.
   
   This change addes a flag call `TCB_FLAG_CUSTOM_STACK` that may be passed in 
the the pre-alloacted TCB to `nxtask_init()`.  This flag is not used internally 
anywhere in the OS except that if set, it will prevent `sched_releasetcb()` 
from attempting to free that custom stack.
   
   ## Impact
   
   None expected
   
   ## Testing
   
   sim:nsh
   
   


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