You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/06/09 14:17:52 UTC

[GitHub] [incubator-nuttx] patacongo commented on issue #3875: PID == 0 is not always the IDLE thread.

patacongo commented on issue #3875:
URL: https://github.com/apache/incubator-nuttx/issues/3875#issuecomment-857733792


   
   > It's intentional to check pid == 0 in some place, e.g. all up_initialstate.c:
   > ...
   > The special if statement is to setup the idle thread stack pointer in tcb which is just required for the main(CPU0) idle thread since other idle(CPU1-x) threads go through the normal tcb initialization path and then these stack pointer set correctly naturally.
   
   Thanks, that relieves some my concerns.  However, I think it is not a very clean, modular solution.  I would prefer to see some call out in nx_task() to do that job.
   
   


-- 
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:
users@infra.apache.org