Lines Matching refs:uc
183 ucontext_t uc; in getsetcontext() local
202 savecontext(&uc, &curthread->t_hold); in getsetcontext()
203 if (uc.uc_flags & UC_SIGMASK) in getsetcontext()
204 SIGSET_NATIVE_TO_BRAND(&uc.uc_sigmask); in getsetcontext()
205 if (copyout(&uc, arg, sizeof (uc))) in getsetcontext()
217 if (copyin(ucp, &uc, sizeof (ucontext_t) - in getsetcontext()
218 sizeof (uc.uc_filler) - in getsetcontext()
219 sizeof (uc.uc_mcontext.fpregs))) { in getsetcontext()
222 if (uc.uc_flags & UC_SIGMASK) in getsetcontext()
223 SIGSET_BRAND_TO_NATIVE(&uc.uc_sigmask); in getsetcontext()
225 if ((uc.uc_flags & UC_FPU) && in getsetcontext()
226 copyin(&ucp->uc_mcontext.fpregs, &uc.uc_mcontext.fpregs, in getsetcontext()
227 sizeof (uc.uc_mcontext.fpregs))) { in getsetcontext()
231 restorecontext(&uc); in getsetcontext()
233 if ((uc.uc_flags & UC_STACK) && (lwp->lwp_ustack != 0)) in getsetcontext()
234 (void) copyout(&uc.uc_stack, (stack_t *)lwp->lwp_ustack, in getsetcontext()
235 sizeof (uc.uc_stack)); in getsetcontext()
320 ucontext32_t uc; in getsetcontext32() local
333 savecontext32(&uc, &curthread->t_hold); in getsetcontext32()
334 if (uc.uc_flags & UC_SIGMASK) in getsetcontext32()
335 SIGSET_NATIVE_TO_BRAND(&uc.uc_sigmask); in getsetcontext32()
336 if (copyout(&uc, arg, sizeof (uc))) in getsetcontext32()
344 if (copyin(ucp, &uc, sizeof (uc) - in getsetcontext32()
345 sizeof (uc.uc_filler) - in getsetcontext32()
346 sizeof (uc.uc_mcontext.fpregs))) { in getsetcontext32()
349 if (uc.uc_flags & UC_SIGMASK) in getsetcontext32()
350 SIGSET_BRAND_TO_NATIVE(&uc.uc_sigmask); in getsetcontext32()
351 if ((uc.uc_flags & UC_FPU) && in getsetcontext32()
352 copyin(&ucp->uc_mcontext.fpregs, &uc.uc_mcontext.fpregs, in getsetcontext32()
353 sizeof (uc.uc_mcontext.fpregs))) { in getsetcontext32()
357 ucontext_32ton(&uc, &ucnat); in getsetcontext32()
360 if ((uc.uc_flags & UC_STACK) && (lwp->lwp_ustack != 0)) in getsetcontext32()
361 (void) copyout(&uc.uc_stack, in getsetcontext32()
362 (stack32_t *)lwp->lwp_ustack, sizeof (uc.uc_stack)); in getsetcontext32()