Lines Matching refs:ucp
46 _ctx_done (ucontext_t *ucp) in _ctx_done() argument
48 if (ucp->uc_link == NULL) in _ctx_done()
56 ucp->uc_mcontext.mc_len = 0; in _ctx_done()
60 setcontext((const ucontext_t *)ucp->uc_link); in _ctx_done()
66 __makecontext(ucontext_t *ucp, void (*start)(void), int argc, ...) in __makecontext() argument
73 if (ucp == NULL) in __makecontext()
75 else if ((ucp->uc_stack.ss_sp == NULL) || in __makecontext()
76 (ucp->uc_stack.ss_size < MINSIGSTKSZ)) { in __makecontext()
83 ucp->uc_mcontext.mc_len = 0; in __makecontext()
87 ucp->uc_mcontext.mc_len = 0; in __makecontext()
90 else if (ucp->uc_mcontext.mc_len == sizeof(mcontext_t)) { in __makecontext()
112 stack_top = (char *)(ucp->uc_stack.ss_sp + in __makecontext()
113 ucp->uc_stack.ss_size - sizeof(intptr_t)); in __makecontext()
147 *argp = (intptr_t)ucp; in __makecontext()
158 ucp->uc_mcontext.mc_esi = (int)argp; in __makecontext()
159 ucp->uc_mcontext.mc_ebp = 0; in __makecontext()
160 ucp->uc_mcontext.mc_esp = (int)stack_top + sizeof(caddr_t); in __makecontext()
161 ucp->uc_mcontext.mc_eip = (int)_ctx_start; in __makecontext()