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 2020/07/01 14:54:45 UTC

[GitHub] [incubator-nuttx] patacongo commented on pull request #1346: sched/kthread: extend kthread_create() to support configurable stack

patacongo commented on pull request #1346:
URL: https://github.com/apache/incubator-nuttx/pull/1346#issuecomment-652467695


   We have already gone throught this before with PR #1099 .  I will not accept this change.  The mechanism to provide a configurable status is already in place.
   
   I provided in the instructions in that PR:  Here is how you need to create a kernel thread with a custom stack:
   
       Allocate the TCB with kmm_zalloc().
       Initialize the TCB. See binfmt/binfmt_execmodule.c for an example for ELF modules.
       Make certain that the tcb->flags field is set to indicate a kernel thread:
       Allocate a stack from whatever memory you wish.
       Call task_init(), passing it the TCB, stack and other parameters.
       Do another other things you would like, and finally
       Call task_activate()
   


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