Lines Matching refs:_thread
83 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \
86 if(_SETJMP(CONTEXT(_thread))) (*_main)(); \
87 _MD_GET_SP(_thread) = (int) ((_sp) - 128); \
90 #define _MD_SWITCH_CONTEXT(_thread) \
91 if (!_SETJMP(CONTEXT(_thread))) { \
92 (_thread)->md.errcode = errno; \
99 #define _MD_RESTORE_CONTEXT(_thread) \
101 errno = (_thread)->md.errcode; \
102 _MD_SET_CURRENT_THREAD(_thread); \
103 _LONGJMP(CONTEXT(_thread), 1); \
200 #define _MD_CLEAN_THREAD(_thread)