Go to the documentation of this file.
25 #define XENO_SKIN_MAGIC 0x52544149
27 #include <nucleus/types.h>
29 #define TM_INFINITE XN_INFINITE
30 #define TM_NONBLOCK XN_NONBLOCK
31 #define TM_NOW XN_INFINITE
33 #if defined(__KERNEL__) || defined(__XENO_SIM__)
35 #ifndef CONFIG_XENO_OPT_DEBUG_NATIVE
36 #define CONFIG_XENO_OPT_DEBUG_NATIVE 0
39 typedef xnticks_t RTIME;
41 typedef xnsticks_t SRTIME;
43 #define xeno_h2obj_validate(h,m,t) \
44 ((h) && ((t *)(h))->magic == (m) ? ((t *)(h)) : NULL)
46 #define xeno_h2obj_deleted(h,m,t) \
47 ((h) && ((t *)(h))->magic == ~(m))
49 #define xeno_mark_deleted(t) ((t)->magic = ~(t)->magic)
51 #define xeno_handle_error(h,m,t) \
52 (xeno_h2obj_deleted(h,m,t) ? -EIDRM : -EINVAL)
54 #define xeno_test_magic(h,m) \
55 ((h) && *((unsigned *)(h)) == (m))
59 typedef unsigned long long RTIME;
61 typedef long long SRTIME;
65 typedef xnsigmask_t rt_sigset_t;
67 #define RT_HANDLER_NONE XNTHREAD_INVALID_ASR
71 typedef void (*rt_alarm_t)(
struct rt_alarm *alarm,
74 typedef xnisr_t rt_isr_t;
76 typedef xniack_t rt_iack_t;