Lines Matching refs:ucp
57 makecontext(ucontext_t *ucp, void (*func)(), int argc, ...) in makecontext() argument
67 ucp->uc_mcontext.gregs[REG_PC] = (greg_t)func; in makecontext()
77 sp = (long *)(((uintptr_t)ucp->uc_stack.ss_sp + in makecontext()
78 ucp->uc_stack.ss_size - size) & ~(STACK_ENTRY_ALIGN - 1)); in makecontext()
91 ucp->uc_mcontext.gregs[REG_RDI] = tmp; in makecontext()
94 ucp->uc_mcontext.gregs[REG_RSI] = tmp; in makecontext()
97 ucp->uc_mcontext.gregs[REG_RDX] = tmp; in makecontext()
100 ucp->uc_mcontext.gregs[REG_RCX] = tmp; in makecontext()
103 ucp->uc_mcontext.gregs[REG_R8] = tmp; in makecontext()
106 ucp->uc_mcontext.gregs[REG_R9] = tmp; in makecontext()
118 ucp->uc_mcontext.gregs[REG_SP] = (greg_t)sp; in makecontext()
143 ucontext_t *ucp; in ucontext_alloc() local
175 ucp = calloc(1, to_alloc); in ucontext_alloc()
176 if (ucp == NULL) { in ucontext_alloc()
187 uintptr_t addr = (uintptr_t)ucp; in ucontext_alloc()
188 ucp->uc_xsave = addr + sizeof (ucontext_t); in ucontext_alloc()
191 return (ucp); in ucontext_alloc()
195 ucontext_free(ucontext_t *ucp) in ucontext_free() argument
197 free(ucp); in ucontext_free()