Lines Matching refs:ucp
45 _ctx_done (ucontext_t *ucp) in _ctx_done() argument
47 if (ucp->uc_link == NULL) in _ctx_done()
55 ucp->uc_mcontext.mc_len = 0; in _ctx_done()
59 setcontext((const ucontext_t *)ucp->uc_link); in _ctx_done()
65 __makecontext(ucontext_t *ucp, void (*start)(void), int argc, ...) in __makecontext() argument
72 if (ucp == NULL) in __makecontext()
74 else if ((ucp->uc_stack.ss_sp == NULL) || in __makecontext()
75 (ucp->uc_stack.ss_size < MINSIGSTKSZ)) { in __makecontext()
82 ucp->uc_mcontext.mc_len = 0; in __makecontext()
86 ucp->uc_mcontext.mc_len = 0; in __makecontext()
89 else if (ucp->uc_mcontext.mc_len == sizeof(mcontext_t)) { in __makecontext()
111 stack_top = (char *)(ucp->uc_stack.ss_sp + in __makecontext()
112 ucp->uc_stack.ss_size - sizeof(intptr_t)); in __makecontext()
146 *argp = (intptr_t)ucp; in __makecontext()
157 ucp->uc_mcontext.mc_esi = (int)argp; in __makecontext()
158 ucp->uc_mcontext.mc_ebp = 0; in __makecontext()
159 ucp->uc_mcontext.mc_esp = (int)stack_top + sizeof(caddr_t); in __makecontext()
160 ucp->uc_mcontext.mc_eip = (int)_ctx_start; in __makecontext()