Lines Matching refs:uc

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