Lines Matching full:frame

53 /* Store registers needed to create the signal frame */
183 sigframe32 __user *frame = (sigframe32 __user *)regs->gprs[15]; in COMPAT_SYSCALL_DEFINE0() local
186 if (get_compat_sigset(&set, (compat_sigset_t __user *)frame->sc.oldmask)) in COMPAT_SYSCALL_DEFINE0()
190 if (restore_sigregs32(regs, &frame->sregs)) in COMPAT_SYSCALL_DEFINE0()
192 if (restore_sigregs_ext32(regs, &frame->sregs_ext)) in COMPAT_SYSCALL_DEFINE0()
204 rt_sigframe32 __user *frame = (rt_sigframe32 __user *)regs->gprs[15]; in COMPAT_SYSCALL_DEFINE0() local
207 if (get_compat_sigset(&set, &frame->uc.uc_sigmask)) in COMPAT_SYSCALL_DEFINE0()
210 if (compat_restore_altstack(&frame->uc.uc_stack)) in COMPAT_SYSCALL_DEFINE0()
213 if (restore_sigregs32(regs, &frame->uc.uc_mcontext)) in COMPAT_SYSCALL_DEFINE0()
215 if (restore_sigregs_ext32(regs, &frame->uc.uc_mcontext_ext)) in COMPAT_SYSCALL_DEFINE0()
225 * Set up a signal frame.
257 sigframe32 __user *frame; in setup_frame32() local
266 frame_size = sizeof(*frame) - sizeof(frame->sregs_ext.__reserved); in setup_frame32()
268 frame_size -= sizeof(frame->sregs_ext.vxrs_low) + in setup_frame32()
269 sizeof(frame->sregs_ext.vxrs_high); in setup_frame32()
270 frame = get_sigframe(&ksig->ka, regs, frame_size); in setup_frame32()
271 if (frame == (void __user *) -1UL) in setup_frame32()
275 if (__put_user(regs->gprs[15], (unsigned int __user *) frame)) in setup_frame32()
279 if (put_compat_sigset((compat_sigset_t __user *)frame->sc.oldmask, in setup_frame32()
282 if (__put_user(ptr_to_compat(&frame->sregs), &frame->sc.sregs)) in setup_frame32()
285 /* Store registers needed to create the signal frame */ in setup_frame32()
289 if (save_sigregs32(regs, &frame->sregs)) in setup_frame32()
293 if (__put_user(regs->gprs[2], (int __force __user *) &frame->signo)) in setup_frame32()
297 if (save_sigregs_ext32(regs, &frame->sregs_ext)) in setup_frame32()
307 __u16 __user *svc = (void __user *) frame + frame_size - 2; in setup_frame32()
315 regs->gprs[15] = (__force __u64) frame; in setup_frame32()
323 regs->gprs[3] = (__force __u64) &frame->sc; in setup_frame32()
341 rt_sigframe32 __user *frame; in setup_rt_frame32() local
346 frame_size = sizeof(*frame) - in setup_rt_frame32()
347 sizeof(frame->uc.uc_mcontext_ext.__reserved); in setup_rt_frame32()
357 frame_size -= sizeof(frame->uc.uc_mcontext_ext.vxrs_low) + in setup_rt_frame32()
358 sizeof(frame->uc.uc_mcontext_ext.vxrs_high); in setup_rt_frame32()
359 frame = get_sigframe(&ksig->ka, regs, frame_size); in setup_rt_frame32()
360 if (frame == (void __user *) -1UL) in setup_rt_frame32()
364 if (__put_user(regs->gprs[15], (unsigned int __force __user *) frame)) in setup_rt_frame32()
373 __u16 __user *svc = &frame->svc_insn; in setup_rt_frame32()
380 if (copy_siginfo_to_user32(&frame->info, &ksig->info)) in setup_rt_frame32()
383 /* Store registers needed to create the signal frame */ in setup_rt_frame32()
387 if (__put_user(uc_flags, &frame->uc.uc_flags) || in setup_rt_frame32()
388 __put_user(0, &frame->uc.uc_link) || in setup_rt_frame32()
389 __compat_save_altstack(&frame->uc.uc_stack, regs->gprs[15]) || in setup_rt_frame32()
390 save_sigregs32(regs, &frame->uc.uc_mcontext) || in setup_rt_frame32()
391 put_compat_sigset(&frame->uc.uc_sigmask, set, sizeof(compat_sigset_t)) || in setup_rt_frame32()
392 save_sigregs_ext32(regs, &frame->uc.uc_mcontext_ext)) in setup_rt_frame32()
397 regs->gprs[15] = (__force __u64) frame; in setup_rt_frame32()
405 regs->gprs[3] = (__force __u64) &frame->info; in setup_rt_frame32()
406 regs->gprs[4] = (__force __u64) &frame->uc; in setup_rt_frame32()
420 /* Set up the stack frame */ in handle_signal32()