#include #include #include #include #include #include int process_spawn (process_func_t func, void* argument_ptr) { void* stack = malloc (PROC_STACK_SIZE); if (stack == NULL) return -ST_OOM_ERROR; uintptr_t top = (uintptr_t)stack + PROC_STACK_SIZE; return clone (top, func, argument_ptr); } int process_quit (void) { return quit (); } void* process_argument (void) { return argument_ptr (); }