Lines Matching refs:ucp
83 makecontext(ucontext_t *ucp, void (*func)(), int argc, ...) in makecontext() argument
90 ucp->uc_mcontext.gregs[EIP] = (greg_t)func; in makecontext()
94 tsp = (long *)(((uintptr_t)ucp->uc_stack.ss_sp + in makecontext()
95 ucp->uc_stack.ss_size - size) & ~(STACK_ALIGN - 1)); in makecontext()
106 ucp->uc_mcontext.gregs[UESP] = (greg_t)sp; in makecontext()
139 ucontext_t *ucp; in ucontext_alloc() local
171 ucp = calloc(1, to_alloc); in ucontext_alloc()
172 if (ucp == NULL) { in ucontext_alloc()
177 uintptr_t addr = (uintptr_t)ucp; in ucontext_alloc()
178 ucp->uc_xsave = addr + sizeof (ucontext_t); in ucontext_alloc()
181 return (ucp); in ucontext_alloc()
185 ucontext_free(ucontext_t *ucp) in ucontext_free() argument
187 free(ucp); in ucontext_free()