#include <struct/list.h>
+#if CONFIG_KERN_PREEMPTIVE
+ #include <ucontext.h> // XXX
+#endif
+
typedef struct Process
{
Node link; /**< Link Process into scheduler lists */
#if CONFIG_KERN_PREEMPTIVE
int forbid_cnt; /**< Nesting count for proc_forbid()/proc_permit(). */
+ bool leaving; /**< XXX: maybe global? */
+ ucontext_t context;
#endif
#if CONFIG_KERN_HEAP