Lines Matching refs:_thread
90 #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \
92 int *context = (_thread)->md.context; \
96 (_thread)->md.context[2] = (int) ((_sp) - 64); \
97 (_thread)->md.context[2] &= ~7; \
98 (_thread)->md.context[3] = (int) _main; \
99 (_thread)->md.context[4] = (int) _main + 4; \
102 #define _MD_SWITCH_CONTEXT(_thread) \
104 if (!setjmp(CONTEXT(_thread))) { \
105 (_thread)->md.errcode = errno; \
112 #define _MD_RESTORE_CONTEXT(_thread) \
114 errno = (_thread)->md.errcode; \
115 _MD_SET_CURRENT_THREAD(_thread); \
116 longjmp(CONTEXT(_thread), 1); \
224 #define _MD_CLEAN_THREAD(_thread)