Lines Matching refs:_thread
79 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \
82 if (setjmp(CONTEXT(_thread))) { \
85 _MD_GET_SP(_thread) = (unsigned char*) ((_sp) - 64); \
88 #define _MD_SWITCH_CONTEXT(_thread) \
89 if (!setjmp(CONTEXT(_thread))) { \
90 (_thread)->md.errcode = errno; \
97 #define _MD_RESTORE_CONTEXT(_thread) \
99 errno = (_thread)->md.errcode; \
100 _MD_SET_CURRENT_THREAD(_thread); \
101 longjmp(CONTEXT(_thread), 1); \
188 #define _MD_CLEAN_THREAD(_thread)