Lines Matching refs:_thread
99 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \
102 if(_SETJMP(CONTEXT(_thread))) (*_main)(); \
103 _MD_GET_SP(_thread) = (int) ((_sp) - 128); \
106 #define _MD_SWITCH_CONTEXT(_thread) \
107 if (!_SETJMP(CONTEXT(_thread))) { \
108 (_thread)->md.errcode = errno; \
115 #define _MD_RESTORE_CONTEXT(_thread) \
117 errno = (_thread)->md.errcode; \
118 _MD_SET_CURRENT_THREAD(_thread); \
119 _LONGJMP(CONTEXT(_thread), 1); \
208 #define _MD_CLEAN_THREAD(_thread)