Lines Matching refs:uc

291 	ucontext_t uc;  in getsetcontext()  local
312 ret = savecontext(&uc, &curthread->t_hold, SAVECTXT_F_NONE); in getsetcontext()
315 if (uc.uc_flags & UC_SIGMASK) in getsetcontext()
316 SIGSET_NATIVE_TO_BRAND(&uc.uc_sigmask); in getsetcontext()
317 if (copyout(&uc, arg, sizeof (uc))) in getsetcontext()
338 if (copyin(&ucp->uc_xsave, &uc.uc_xsave, in getsetcontext()
339 sizeof (uc.uc_xsave)) != 0) { in getsetcontext()
342 ret = savecontext(&uc, &curthread->t_hold, SAVECTXT_F_EXTD); in getsetcontext()
345 if (uc.uc_flags & UC_SIGMASK) in getsetcontext()
346 SIGSET_NATIVE_TO_BRAND(&uc.uc_sigmask); in getsetcontext()
347 if (copyout(&uc, arg, sizeof (uc))) in getsetcontext()
360 if (copyin(ucp, &uc, offsetof(ucontext_t, uc_filler) - in getsetcontext()
361 sizeof (uc.uc_mcontext.fpregs))) { in getsetcontext()
364 if (uc.uc_flags & UC_SIGMASK) in getsetcontext()
365 SIGSET_BRAND_TO_NATIVE(&uc.uc_sigmask); in getsetcontext()
367 if ((uc.uc_flags & UC_FPU) && in getsetcontext()
368 copyin(&ucp->uc_mcontext.fpregs, &uc.uc_mcontext.fpregs, in getsetcontext()
369 sizeof (uc.uc_mcontext.fpregs))) { in getsetcontext()
373 uc.uc_xsave = 0; in getsetcontext()
374 if ((uc.uc_flags & UC_XSAVE) != 0) { in getsetcontext()
377 if (copyin(&ucp->uc_xsave, &uc.uc_xsave, in getsetcontext()
378 sizeof (uc.uc_xsave)) != 0) { in getsetcontext()
382 ret = fpu_signal_copyin(lwp, &uc); in getsetcontext()
388 restorecontext(&uc); in getsetcontext()
390 if ((uc.uc_flags & UC_STACK) && (lwp->lwp_ustack != 0)) in getsetcontext()
391 (void) copyout(&uc.uc_stack, (stack_t *)lwp->lwp_ustack, in getsetcontext()
392 sizeof (uc.uc_stack)); in getsetcontext()
519 ucontext32_t uc; in getsetcontext32() local
533 ret = savecontext32(&uc, &curthread->t_hold, SAVECTXT_F_NONE); in getsetcontext32()
536 if (uc.uc_flags & UC_SIGMASK) in getsetcontext32()
537 SIGSET_NATIVE_TO_BRAND(&uc.uc_sigmask); in getsetcontext32()
538 if (copyout(&uc, arg, sizeof (uc))) in getsetcontext32()
548 if (copyin(&ucp->uc_xsave, &uc.uc_xsave, in getsetcontext32()
549 sizeof (uc.uc_xsave)) != 0) { in getsetcontext32()
552 ret = savecontext32(&uc, &curthread->t_hold, SAVECTXT_F_EXTD); in getsetcontext32()
555 if (uc.uc_flags & UC_SIGMASK) in getsetcontext32()
556 SIGSET_NATIVE_TO_BRAND(&uc.uc_sigmask); in getsetcontext32()
557 if (copyout(&uc, arg, sizeof (uc))) in getsetcontext32()
565 if (copyin(ucp, &uc, offsetof(ucontext32_t, uc_filler) - in getsetcontext32()
566 sizeof (uc.uc_mcontext.fpregs))) { in getsetcontext32()
569 if (uc.uc_flags & UC_SIGMASK) in getsetcontext32()
570 SIGSET_BRAND_TO_NATIVE(&uc.uc_sigmask); in getsetcontext32()
571 if ((uc.uc_flags & UC_FPU) && in getsetcontext32()
572 copyin(&ucp->uc_mcontext.fpregs, &uc.uc_mcontext.fpregs, in getsetcontext32()
573 sizeof (uc.uc_mcontext.fpregs))) { in getsetcontext32()
577 uc.uc_xsave = 0; in getsetcontext32()
578 if ((uc.uc_flags & UC_XSAVE) != 0 && in getsetcontext32()
579 copyin(&ucp->uc_xsave, &uc.uc_xsave, in getsetcontext32()
580 sizeof (uc.uc_xsave)) != 0) { in getsetcontext32()
584 ucontext_32ton(&uc, &ucnat); in getsetcontext32()
595 if ((uc.uc_flags & UC_STACK) && (lwp->lwp_ustack != 0)) in getsetcontext32()
596 (void) copyout(&uc.uc_stack, in getsetcontext32()
597 (stack32_t *)lwp->lwp_ustack, sizeof (uc.uc_stack)); in getsetcontext32()