Home | History | Annotate | Download | only in md

Lines Matching refs:CONTEXT

58 #define CONTEXT(_thread)	(&(_thread)->md.context)
60 #define _MD_GET_SP(_t) (_t)->md.context.uc_mcontext.gregs[CXT_SP]
63 ** Initialize the thread context preparing it to execute _main()
68 getcontext(CONTEXT(_thread)); \
69 CONTEXT(_thread)->uc_stack.ss_sp = (char*) (_thread)->stack->stackBottom; \
70 CONTEXT(_thread)->uc_stack.ss_size = (_thread)->stack->stackSize; \
72 makecontext(CONTEXT(_thread), _main, 0); \
76 if (!getcontext(CONTEXT(_thread))) { \
82 ** Restore a thread context, saved by _MD_SWITCH_CONTEXT
86 ucontext_t *uc = CONTEXT(_thread); \
97 PR_CONTEXT_TYPE context;