Lines Matching refs:ucp
458 getucontext32(struct lwp *l, ucontext32_t *ucp)
464 ucp->uc_flags = 0;
465 ucp->uc_link = (uint32_t)(intptr_t)l->l_ctxlink;
466 ucp->uc_sigmask = l->l_sigmask;
467 ucp->uc_flags |= _UC_SIGMASK;
475 ucp->uc_stack.ss_sp = USRSTACK32;
476 ucp->uc_stack.ss_size = ctob(p->p_vmspace->vm_ssize);
477 ucp->uc_stack.ss_flags = 0; /* XXX, def. is Very Fishy */
480 ucp->uc_stack.ss_sp =
482 ucp->uc_stack.ss_size = l->l_sigstk.ss_size;
483 ucp->uc_stack.ss_flags = l->l_sigstk.ss_flags;
485 ucp->uc_flags |= _UC_STACK;
487 cpu_getmcontext32(l, &ucp->uc_mcontext, &ucp->uc_flags);
495 syscallarg(netbsd32_ucontextp) ucp;
506 return copyout(&uc, SCARG_P32(uap, ucp), sizeof (ucontext32_t));
510 setucontext32(struct lwp *l, const ucontext32_t *ucp)
517 if ((ucp->uc_flags & _UC_SIGMASK) != 0) {
518 error = sigprocmask1(l, SIG_SETMASK, &ucp->uc_sigmask, NULL);
524 error = cpu_setmcontext32(l, &ucp->uc_mcontext, ucp->uc_flags);
529 l->l_ctxlink = (void *)(intptr_t)ucp->uc_link;
535 if ((ucp->uc_flags & _UC_STACK) != 0) {
536 if (ucp->uc_stack.ss_flags & SS_ONSTACK)
550 syscallarg(netbsd32_ucontextp) ucp;
556 error = copyin(SCARG_P32(uap, ucp), &uc, sizeof (uc));