13#ifndef __xwos_osal_skd_h__
14#define __xwos_osal_skd_h__
89#define XWOS_SKD_PRIORITY_RT_MIN XWOSDL_SKD_PRIORITY_RT_MIN
94#define XWOS_SKD_PRIORITY_RT_MAX XWOSDL_SKD_PRIORITY_RT_MAX
99#define XWOS_SKD_PRIORITY_INVALID XWOSDL_SKD_PRIORITY_INVALID
104#define XWOS_SKD_PRIORITY_RAISE(base, inc) XWOSDL_SKD_PRIORITY_RAISE(base, inc)
109#define XWOS_SKD_PRIORITY_DROP(base, dec) XWOSDL_SKD_PRIORITY_DROP(base, dec)
122#define XWOS_SKD_CONTEXT_BOOT XWOSDL_SKD_CONTEXT_BOOT
127#define XWOS_SKD_CONTEXT_THD XWOSDL_SKD_CONTEXT_THD
132#define XWOS_SKD_CONTEXT_ISR XWOSDL_SKD_CONTEXT_ISR
137#define XWOS_SKD_CONTEXT_BH XWOSDL_SKD_CONTEXT_BH
142#define XWOS_SKD_CONTEXT_IDLE XWOSDL_SKD_CONTEXT_IDLE
149#define XWOS_THD_LOCAL_DATA_NUM XWOSDL_THD_LOCAL_DATA_NUM
164 return xwosdl_skd_prio_tst_valid(prio);
180 return xwosdl_skd_start_lc();
192 return xwosdl_skd_get_cpuid_lc();
206 xwosdl_skd_get_context_lc(ctxbuf, irqnbuf);
217 xwosdl_skd_dspmpt_lc();
228 xwosdl_skd_enpmpt_lc();
239 xwosdl_skd_dsbh_lc();
250 xwosdl_skd_enbh_lc();
267 return xwosdl_skd_continue_lc();
284 return xwosdl_skd_pause_lc();
#define __xwos_inline_api
static xwer_t xwos_skd_continue_lc(void)
XWOS API:继续运行本地CPU调度器
static void xwos_skd_enpmpt_lc(void)
XWOS API:开启本地CPU调度器的抢占
static xwer_t xwos_skd_start_lc(void)
XWOS API:启动当前CPU的调度器
static void xwos_skd_dspmpt_lc(void)
XWOS API:关闭本地CPU调度器的抢占
static bool xwos_skd_prio_tst_valid(xwpr_t prio)
XWOS API:检查优先级是否有效
static xwer_t xwos_skd_pause_lc(void)
XWOS API:暂停本地CPU调度器
static xwid_t xwos_skd_get_cpuid_lc(void)
XWOS API:获取当前CPU的ID
static void xwos_skd_get_context_lc(xwsq_t *ctxbuf, xwirq_t *irqnbuf)
XWOS API:获取当前代码的上下文
static void xwos_skd_enbh_lc(void)
XWOS API:开启本地CPU调度器的中断底半部
static void xwos_skd_dsbh_lc(void)
XWOS API:关闭本地CPU调度器的中断底半部