25 #define THREAD_API_INLINED 
   29 static inline void _ecall_dispatch(uint32_t num, 
void *ctx)
 
   33         "add a0, x0, %[num] \n" 
   34         "add a1, x0, %[ctx] \n" 
   37         :[num] 
"r" (num), [ctx] 
"r" (ctx)
 
   38         : 
"memory", 
"a0", 
"a1" 
   48         _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.