29#define THREAD_API_INLINED
33static inline void _ecall_dispatch(uint32_t num,
void *ctx)
37 "add a0, x0, %[num] \n"
38 "add a1, x0, %[ctx] \n"
41 :[num]
"r" (num), [ctx]
"r" (ctx)
42 :
"memory",
"a0",
"a1"
52 _ecall_dispatch(0, NULL);
MAYBE_INLINE bool irq_is_in(void)
Check whether called from interrupt service routine.
volatile unsigned int sched_context_switch_request
Flag indicating whether a context switch is necessary after handling an interrupt.
THREAD_MAYBE_INLINE void thread_yield_higher(void)
Lets current thread yield in favor of a higher prioritized thread.