patacongo edited a comment 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()
That is the whole purpose of task_init(). Do not create other
implementations with the correct implemtation is already in place.
----------------------------------------------------------------
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]