Lines Matching defs:ucp
68 setup_context(ucontext_t *ucp, void *(*func)(ulwp_t *),
74 (void) memset(ucp, 0, sizeof (*ucp));
77 ucp->uc_mcontext.gregs[REG_FSBASE] = (greg_t)ulwp;
78 ucp->uc_mcontext.gregs[REG_FS] = 0; /* null selector indicates fsbase */
81 ucp->uc_mcontext.gregs[REG_SS] = UDS_SEL;
91 ucp->uc_flags |= UC_CPU;
92 ucp->uc_mcontext.gregs[REG_RDI] = (greg_t)ulwp;
93 ucp->uc_mcontext.gregs[REG_RIP] = (greg_t)func;
94 ucp->uc_mcontext.gregs[REG_RSP] = (greg_t)stack;
95 ucp->uc_mcontext.gregs[REG_RBP] = (greg_t)(stack + 1);
176 ucontext_t *ucp = (ucontext_t *)env;
179 ucp->uc_link = self->ul_siglink;
181 ucp->uc_stack = self->ul_ustack;
183 ucp->uc_stack.ss_sp =
185 ucp->uc_stack.ss_size = self->ul_stksiz;
186 ucp->uc_stack.ss_flags = 0;
188 ucp->uc_flags = UC_STACK | UC_CPU;
190 ucp->uc_flags |= UC_SIGMASK;
192 ucp->uc_sigmask = self->ul_sigmask;
195 (void) memcpy(ucp->uc_mcontext.gregs, rs, _NGREG * sizeof (greg_t));