Lines Matching refs:err
101 int i, err = 0; in compat_preserve_vfp_context() local
111 __put_user_error(magic, &frame->magic, err); in compat_preserve_vfp_context()
112 __put_user_error(size, &frame->size, err); in compat_preserve_vfp_context()
123 __put_user_error(vreg.lo, &frame->ufp.fpregs[i], err); in compat_preserve_vfp_context()
124 __put_user_error(vreg.hi, &frame->ufp.fpregs[i + 1], err); in compat_preserve_vfp_context()
130 __put_user_error(fpscr, &frame->ufp.fpscr, err); in compat_preserve_vfp_context()
137 __put_user_error(fpexc, &frame->ufp_exc.fpexc, err); in compat_preserve_vfp_context()
138 __put_user_error(0, &frame->ufp_exc.fpinst, err); in compat_preserve_vfp_context()
139 __put_user_error(0, &frame->ufp_exc.fpinst2, err); in compat_preserve_vfp_context()
141 return err ? -EFAULT : 0; in compat_preserve_vfp_context()
150 int i, err = 0; in compat_restore_vfp_context() local
152 __get_user_error(magic, &frame->magic, err); in compat_restore_vfp_context()
153 __get_user_error(size, &frame->size, err); in compat_restore_vfp_context()
155 if (err) in compat_restore_vfp_context()
164 __get_user_error(vreg.lo, &frame->ufp.fpregs[i], err); in compat_restore_vfp_context()
165 __get_user_error(vreg.hi, &frame->ufp.fpregs[i + 1], err); in compat_restore_vfp_context()
170 __get_user_error(fpscr, &frame->ufp.fpscr, err); in compat_restore_vfp_context()
178 if (!err) in compat_restore_vfp_context()
181 return err ? -EFAULT : 0; in compat_restore_vfp_context()
187 int err; in compat_restore_sigframe() local
192 err = get_sigset_t(&set, &sf->uc.uc_sigmask); in compat_restore_sigframe()
193 if (err == 0) { in compat_restore_sigframe()
198 __get_user_error(regs->regs[0], &sf->uc.uc_mcontext.arm_r0, err); in compat_restore_sigframe()
199 __get_user_error(regs->regs[1], &sf->uc.uc_mcontext.arm_r1, err); in compat_restore_sigframe()
200 __get_user_error(regs->regs[2], &sf->uc.uc_mcontext.arm_r2, err); in compat_restore_sigframe()
201 __get_user_error(regs->regs[3], &sf->uc.uc_mcontext.arm_r3, err); in compat_restore_sigframe()
202 __get_user_error(regs->regs[4], &sf->uc.uc_mcontext.arm_r4, err); in compat_restore_sigframe()
203 __get_user_error(regs->regs[5], &sf->uc.uc_mcontext.arm_r5, err); in compat_restore_sigframe()
204 __get_user_error(regs->regs[6], &sf->uc.uc_mcontext.arm_r6, err); in compat_restore_sigframe()
205 __get_user_error(regs->regs[7], &sf->uc.uc_mcontext.arm_r7, err); in compat_restore_sigframe()
206 __get_user_error(regs->regs[8], &sf->uc.uc_mcontext.arm_r8, err); in compat_restore_sigframe()
207 __get_user_error(regs->regs[9], &sf->uc.uc_mcontext.arm_r9, err); in compat_restore_sigframe()
208 __get_user_error(regs->regs[10], &sf->uc.uc_mcontext.arm_r10, err); in compat_restore_sigframe()
209 __get_user_error(regs->regs[11], &sf->uc.uc_mcontext.arm_fp, err); in compat_restore_sigframe()
210 __get_user_error(regs->regs[12], &sf->uc.uc_mcontext.arm_ip, err); in compat_restore_sigframe()
211 __get_user_error(regs->compat_sp, &sf->uc.uc_mcontext.arm_sp, err); in compat_restore_sigframe()
212 __get_user_error(regs->compat_lr, &sf->uc.uc_mcontext.arm_lr, err); in compat_restore_sigframe()
213 __get_user_error(regs->pc, &sf->uc.uc_mcontext.arm_pc, err); in compat_restore_sigframe()
214 __get_user_error(psr, &sf->uc.uc_mcontext.arm_cpsr, err); in compat_restore_sigframe()
223 err |= !valid_user_regs(®s->user_regs, current); in compat_restore_sigframe()
226 if (err == 0) in compat_restore_sigframe()
227 err |= compat_restore_vfp_context(&aux->vfp); in compat_restore_sigframe()
229 return err; in compat_restore_sigframe()
391 int err = 0; in compat_setup_sigframe() local
393 __put_user_error(regs->regs[0], &sf->uc.uc_mcontext.arm_r0, err); in compat_setup_sigframe()
394 __put_user_error(regs->regs[1], &sf->uc.uc_mcontext.arm_r1, err); in compat_setup_sigframe()
395 __put_user_error(regs->regs[2], &sf->uc.uc_mcontext.arm_r2, err); in compat_setup_sigframe()
396 __put_user_error(regs->regs[3], &sf->uc.uc_mcontext.arm_r3, err); in compat_setup_sigframe()
397 __put_user_error(regs->regs[4], &sf->uc.uc_mcontext.arm_r4, err); in compat_setup_sigframe()
398 __put_user_error(regs->regs[5], &sf->uc.uc_mcontext.arm_r5, err); in compat_setup_sigframe()
399 __put_user_error(regs->regs[6], &sf->uc.uc_mcontext.arm_r6, err); in compat_setup_sigframe()
400 __put_user_error(regs->regs[7], &sf->uc.uc_mcontext.arm_r7, err); in compat_setup_sigframe()
401 __put_user_error(regs->regs[8], &sf->uc.uc_mcontext.arm_r8, err); in compat_setup_sigframe()
402 __put_user_error(regs->regs[9], &sf->uc.uc_mcontext.arm_r9, err); in compat_setup_sigframe()
403 __put_user_error(regs->regs[10], &sf->uc.uc_mcontext.arm_r10, err); in compat_setup_sigframe()
404 __put_user_error(regs->regs[11], &sf->uc.uc_mcontext.arm_fp, err); in compat_setup_sigframe()
405 __put_user_error(regs->regs[12], &sf->uc.uc_mcontext.arm_ip, err); in compat_setup_sigframe()
406 __put_user_error(regs->compat_sp, &sf->uc.uc_mcontext.arm_sp, err); in compat_setup_sigframe()
407 __put_user_error(regs->compat_lr, &sf->uc.uc_mcontext.arm_lr, err); in compat_setup_sigframe()
408 __put_user_error(regs->pc, &sf->uc.uc_mcontext.arm_pc, err); in compat_setup_sigframe()
409 __put_user_error(psr, &sf->uc.uc_mcontext.arm_cpsr, err); in compat_setup_sigframe()
411 __put_user_error((compat_ulong_t)0, &sf->uc.uc_mcontext.trap_no, err); in compat_setup_sigframe()
414 FSR_WRITE_SHIFT, &sf->uc.uc_mcontext.error_code, err); in compat_setup_sigframe()
415 __put_user_error(current->thread.fault_address, &sf->uc.uc_mcontext.fault_address, err); in compat_setup_sigframe()
416 __put_user_error(set->sig[0], &sf->uc.uc_mcontext.oldmask, err); in compat_setup_sigframe()
418 err |= put_sigset_t(&sf->uc.uc_sigmask, set); in compat_setup_sigframe()
422 if (err == 0) in compat_setup_sigframe()
423 err |= compat_preserve_vfp_context(&aux->vfp); in compat_setup_sigframe()
424 __put_user_error(0, &aux->end_magic, err); in compat_setup_sigframe()
426 return err; in compat_setup_sigframe()
436 int err = 0; in compat_setup_rt_frame() local
443 err |= copy_siginfo_to_user32(&frame->info, &ksig->info); in compat_setup_rt_frame()
445 __put_user_error(0, &frame->sig.uc.uc_flags, err); in compat_setup_rt_frame()
446 __put_user_error(0, &frame->sig.uc.uc_link, err); in compat_setup_rt_frame()
448 err |= __compat_save_altstack(&frame->sig.uc.uc_stack, regs->compat_sp); in compat_setup_rt_frame()
450 err |= compat_setup_sigframe(&frame->sig, regs, set); in compat_setup_rt_frame()
452 if (err == 0) { in compat_setup_rt_frame()
458 return err; in compat_setup_rt_frame()
465 int err = 0; in compat_setup_frame() local
472 __put_user_error(0x5ac3c35a, &frame->uc.uc_flags, err); in compat_setup_frame()
474 err |= compat_setup_sigframe(frame, regs, set); in compat_setup_frame()
475 if (err == 0) in compat_setup_frame()
478 return err; in compat_setup_frame()