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/09/03 04:03:53 UTC

[GitHub] [incubator-nuttx] sebastianene07 commented on pull request #1602: arch/sim: Add support for preemptive scheduling in the simulator build using ucontext API

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