Lines Matching refs:_thread
93 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \
96 if (setjmp(CONTEXT(_thread))) { \
99 _MD_GET_SP(_thread) = (int) (_sp - 64); \
102 #define _MD_SWITCH_CONTEXT(_thread) \
103 if (!setjmp(CONTEXT(_thread))) { \
104 (_thread)->md.errcode = errno; \
111 #define _MD_RESTORE_CONTEXT(_thread) \
113 errno = (_thread)->md.errcode; \
114 _MD_SET_CURRENT_THREAD(_thread); \
115 longjmp(CONTEXT(_thread), 1); \
198 #define _MD_CLEAN_THREAD(_thread)