Home | History | Annotate | Download | only in md

Lines Matching refs:CONTEXT

67 #define CONTEXT(_thread) (&(_thread)->md.context)
69 #define _MD_GET_SP(_t) (_t)->md.context.uc_mcontext.gregs[CXT_SP]
72 ** Initialize the thread context preparing it to execute "e(o,a)"
77 getcontext(CONTEXT(thread)); \
78 CONTEXT(thread)->uc_stack.ss_sp = (char*) (thread)->stack->stackBottom; \
79 CONTEXT(thread)->uc_stack.ss_size = (thread)->stack->stackSize; \
81 makecontext(CONTEXT(thread), _main, 0); \
85 if (!getcontext(CONTEXT(_thread))) { \
91 ** Restore a thread context, saved by _MD_SWITCH_CONTEXT
95 ucontext_t *uc = CONTEXT(_thread); \
106 PR_CONTEXT_TYPE context;