netbsd32_lwp.c | 57 ucontext32_t *newuc = NULL; local in function:netbsd32__lwp_create 61 KASSERT(p->p_emul->e_ucsize == sizeof(*newuc)); 63 newuc = kmem_alloc(sizeof(ucontext_t), KM_SLEEP); 64 error = copyin(SCARG_P32(uap, ucp), newuc, p->p_emul->e_ucsize); 69 if ((newuc->uc_flags & _UC_CPU) == 0) { 73 error = cpu_mcontext32_validate(l, &newuc->uc_mcontext); 77 const sigset_t *sigmask = newuc->uc_flags & _UC_SIGMASK ? 78 &newuc->uc_sigmask : &l->l_sigmask; 80 error = do_lwp_create(l, newuc, SCARG(uap, flags), &l2, sigmask, 93 kmem_free(newuc, sizeof(ucontext_t)) [all...] |