Lines Matching refs:_thread
90 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \
93 if(_SETJMP(CONTEXT(_thread))) (*_main)(); \
94 _MD_GET_SP(_thread) = (int) ((_sp) - 128); \
97 #define _MD_SWITCH_CONTEXT(_thread) \
98 if (!_SETJMP(CONTEXT(_thread))) { \
99 (_thread)->md.errcode = errno; \
106 #define _MD_RESTORE_CONTEXT(_thread) \
108 errno = (_thread)->md.errcode; \
109 _MD_SET_CURRENT_THREAD(_thread); \
110 _LONGJMP(CONTEXT(_thread), 1); \
199 #define _MD_CLEAN_THREAD(_thread)