Lines Matching refs:uc

178 	ucontext_t uc;
203 savecontext(&uc, &curthread->t_hold);
204 if (uc.uc_flags & UC_SIGMASK)
205 SIGSET_NATIVE_TO_BRAND(&uc.uc_sigmask);
216 uc.uc_mcontext.fpregs.fpu_qcnt = 0;
217 uc.uc_mcontext.fpregs.fpu_q = (struct _fq *)NULL;
219 if (copyout(&uc, arg, sizeof (ucontext_t)))
231 if (copyin(ucp, &uc, sizeof (ucontext_t) -
232 sizeof (uc.uc_filler) -
233 sizeof (uc.uc_mcontext.fpregs) -
234 sizeof (uc.uc_mcontext.xrs) -
235 sizeof (uc.uc_mcontext.asrs) -
236 sizeof (uc.uc_mcontext.filler))) {
239 if (uc.uc_flags & UC_SIGMASK)
240 SIGSET_BRAND_TO_NATIVE(&uc.uc_sigmask);
241 if (copyin(&ucp->uc_mcontext.xrs, &uc.uc_mcontext.xrs,
242 sizeof (uc.uc_mcontext.xrs))) {
245 fpp = &uc.uc_mcontext.fpregs;
246 if (uc.uc_flags & UC_FPU) {
251 &uc.uc_mcontext.fpregs,
252 sizeof (uc.uc_mcontext.fpregs)))
270 if (uc.uc_mcontext.gwins) { /* if windows in context */
281 if (copyin(uc.uc_mcontext.gwins,
293 copyin(uc.uc_mcontext.gwins, gwin, gwin_size)) {
297 uc.uc_mcontext.gwins = gwin;
304 xregs_clrptr(lwp, &uc);
305 if (copyin(&ucp->uc_mcontext.asrs, &uc.uc_mcontext.asrs,
313 restorecontext(&uc);
315 if ((uc.uc_flags & UC_STACK) && (lwp->lwp_ustack != 0)) {
316 (void) copyout(&uc.uc_stack, (stack_t *)lwp->lwp_ustack,
425 ucontext32_t uc;
453 savecontext32(&uc, &curthread->t_hold, NULL);
454 if (uc.uc_flags & UC_SIGMASK)
455 SIGSET_NATIVE_TO_BRAND(&uc.uc_sigmask);
466 uc.uc_mcontext.fpregs.fpu_qcnt = 0;
467 uc.uc_mcontext.fpregs.fpu_q = (caddr32_t)NULL;
469 if (copyout(&uc, arg, sizeof (ucontext32_t)))
481 if (copyin(ucp, &uc, sizeof (uc) - sizeof (uc.uc_filler) -
482 sizeof (uc.uc_mcontext.fpregs) -
483 sizeof (uc.uc_mcontext.xrs) -
484 sizeof (uc.uc_mcontext.filler))) {
487 if (uc.uc_flags & UC_SIGMASK)
488 SIGSET_BRAND_TO_NATIVE(&uc.uc_sigmask);
489 if (copyin(&ucp->uc_mcontext.xrs, &uc.uc_mcontext.xrs,
490 sizeof (uc.uc_mcontext.xrs))) {
493 fpp = &uc.uc_mcontext.fpregs;
494 if (uc.uc_flags & UC_FPU) {
499 &uc.uc_mcontext.fpregs,
500 sizeof (uc.uc_mcontext.fpregs)))
518 if (uc.uc_mcontext.gwins) { /* if windows in context */
529 if (copyin((void *)(uintptr_t)uc.uc_mcontext.gwins,
542 copyin((void *)(uintptr_t)uc.uc_mcontext.gwins,
548 uc.uc_mcontext.gwins = (caddr32_t)0;
551 ucontext_32ton(&uc, &ucnat, fpu_q, fpu_qnat);
556 if (xregs_hasptr32(lwp, &uc) &&
559 if (copyin((void *)(uintptr_t)xregs_getptr32(lwp, &uc),
573 if ((uc.uc_flags & UC_STACK) && (lwp->lwp_ustack != 0)) {
574 (void) copyout(&uc.uc_stack,