sebastianene07 commented on a change in pull request #1009: URL: https://github.com/apache/incubator-nuttx/pull/1009#discussion_r440806239
########## File path: arch/sim/include/irq.h ########## @@ -44,6 +44,10 @@ * Included Files ****************************************************************************/ +#ifdef CONFIG_SIM_PREEMPTIBLE +# include <ucontext.h> Review comment: As I'm working on my new patch (to switch from ucontext API to sigsetjmp/siglongjmp pair) I need to keep the sigjmp_buf inside the xcpcontext. The problem is that you can't simply use a pointer and use dynamic memory allocation because the heap memory is not initialized when up_initial_state() is called for the Idle Task. We can have an array that can hold the sigjmp_buf data but the size of this is arch dependent. Do you have a better solution to this ? ---------------------------------------------------------------- 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: us...@infra.apache.org