40 #if ENV_STAGE_SUPPORTS_COOP
47 enum cb_err (*entry)(
void *);
void arch_prepare_thread(struct thread *t, asmlinkage void(*thread_entry)(void *), void *arg)
cb_err
coreboot error codes
static void thread_coop_disable(void)
static void thread_mutex_unlock(struct thread_mutex *mutex)
static void thread_mutex_lock(struct thread_mutex *mutex)
int thread_run_until(struct thread_handle *handle, enum cb_err(*func)(void *), void *arg, boot_state_t state, boot_state_sequence_t seq)
static int thread_yield(void)
static void thread_coop_enable(void)
int thread_run(struct thread_handle *handle, enum cb_err(*func)(void *), void *arg)
enum cb_err thread_join(struct thread_handle *handle)
static int thread_yield_microseconds(unsigned int microsecs)