Lines Matching refs:_thread
72 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \
75 if (SAVE_CONTEXT(_thread)) { \
78 _MD_SET_THR_SP(_thread, _sp); \
79 _thread->no_sched = 0; \
82 #define _MD_SWITCH_CONTEXT(_thread) \
84 PR_ASSERT(_thread->no_sched); \
85 if (!SAVE_CONTEXT(_thread)) { \
86 (_thread)->md.errcode = errno; \
87 _MD_SET_LAST_THREAD(_thread); \
97 #define _MD_RESTORE_CONTEXT(_thread) \
99 errno = (_thread)->md.errcode; \
100 _MD_SET_CURRENT_THREAD(_thread); \
101 _thread->no_sched = 1; \
102 GOTO_CONTEXT(_thread); \