Lines Matching refs:_thread
94 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \
97 if(_SETJMP(CONTEXT(_thread))) (*_main)(); \
98 _MD_GET_SP(_thread) = (int) ((_sp) - 128); \
101 #define _MD_SWITCH_CONTEXT(_thread) \
102 if (!_SETJMP(CONTEXT(_thread))) { \
103 (_thread)->md.errcode = errno; \
110 #define _MD_RESTORE_CONTEXT(_thread) \
112 errno = (_thread)->md.errcode; \
113 _MD_SET_CURRENT_THREAD(_thread); \
114 _LONGJMP(CONTEXT(_thread), 1); \
211 #define _MD_CLEAN_THREAD(_thread)