#pragma once #include #include #ifdef __cplusplus extern "C" { #endif // Initialize the given stack with a new context that will execute fn(arg). void *rt_context_init(uintptr_t fn, uintptr_t arg, void *stack, size_t stack_size); /* Pointer to the previous task's context field, used to store the suspending * context during a context switch. */ extern void **rt_context_prev; #ifdef __cplusplus } #endif