sebastianene07 commented on pull request #1602:
URL: https://github.com/apache/incubator-nuttx/pull/1602#issuecomment-686238069


   > @sebastianene07 you can rebase this patch now, I have an idea which may 
avoid to touch the common code and will try in the next couple day.
   
   Thanks for the update, I figured it out and we don't have to modify the 
common code to pass arguments to new tasks. The entry point for a new task is 
```nxtask_start``` and this function takes no arguments. It grabs the arguments 
(argc and argv) from the TCB and calls the `tcb->cmn.entry.main` with them. So 
the mechanism to pass the arguments is very generic and works like a charm in 
our case without any modification.


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