Lines Matching full:frame
55 /* Store registers needed to create the signal frame */
181 sigframe32 __user *frame = (sigframe32 __user *)regs->gprs[15]; in COMPAT_SYSCALL_DEFINE0() local
184 if (get_compat_sigset(&set, (compat_sigset_t __user *)frame->sc.oldmask)) in COMPAT_SYSCALL_DEFINE0()
188 if (restore_sigregs32(regs, &frame->sregs)) in COMPAT_SYSCALL_DEFINE0()
190 if (restore_sigregs_ext32(regs, &frame->sregs_ext)) in COMPAT_SYSCALL_DEFINE0()
202 rt_sigframe32 __user *frame = (rt_sigframe32 __user *)regs->gprs[15]; in COMPAT_SYSCALL_DEFINE0() local
205 if (get_compat_sigset(&set, &frame->uc.uc_sigmask)) in COMPAT_SYSCALL_DEFINE0()
208 if (compat_restore_altstack(&frame->uc.uc_stack)) in COMPAT_SYSCALL_DEFINE0()
211 if (restore_sigregs32(regs, &frame->uc.uc_mcontext)) in COMPAT_SYSCALL_DEFINE0()
213 if (restore_sigregs_ext32(regs, &frame->uc.uc_mcontext_ext)) in COMPAT_SYSCALL_DEFINE0()
223 * Set up a signal frame.
255 sigframe32 __user *frame; in setup_frame32() local
264 frame_size = sizeof(*frame) - sizeof(frame->sregs_ext.__reserved); in setup_frame32()
266 frame_size -= sizeof(frame->sregs_ext.vxrs_low) + in setup_frame32()
267 sizeof(frame->sregs_ext.vxrs_high); in setup_frame32()
268 frame = get_sigframe(&ksig->ka, regs, frame_size); in setup_frame32()
269 if (frame == (void __user *) -1UL) in setup_frame32()
273 if (__put_user(regs->gprs[15], (unsigned int __user *) frame)) in setup_frame32()
277 if (put_compat_sigset((compat_sigset_t __user *)frame->sc.oldmask, in setup_frame32()
280 if (__put_user(ptr_to_compat(&frame->sregs), &frame->sc.sregs)) in setup_frame32()
283 /* Store registers needed to create the signal frame */ in setup_frame32()
287 if (save_sigregs32(regs, &frame->sregs)) in setup_frame32()
291 if (__put_user(regs->gprs[2], (int __force __user *) &frame->signo)) in setup_frame32()
295 if (save_sigregs_ext32(regs, &frame->sregs_ext)) in setup_frame32()
309 regs->gprs[15] = (__force __u64) frame; in setup_frame32()
317 regs->gprs[3] = (__force __u64) &frame->sc; in setup_frame32()
335 rt_sigframe32 __user *frame; in setup_rt_frame32() local
340 frame_size = sizeof(*frame) - in setup_rt_frame32()
341 sizeof(frame->uc.uc_mcontext_ext.__reserved); in setup_rt_frame32()
351 frame_size -= sizeof(frame->uc.uc_mcontext_ext.vxrs_low) + in setup_rt_frame32()
352 sizeof(frame->uc.uc_mcontext_ext.vxrs_high); in setup_rt_frame32()
354 frame = get_sigframe(&ksig->ka, regs, frame_size); in setup_rt_frame32()
355 if (frame == (void __user *) -1UL) in setup_rt_frame32()
359 if (__put_user(regs->gprs[15], (unsigned int __force __user *) frame)) in setup_rt_frame32()
372 if (copy_siginfo_to_user32(&frame->info, &ksig->info)) in setup_rt_frame32()
375 /* Store registers needed to create the signal frame */ in setup_rt_frame32()
379 if (__put_user(uc_flags, &frame->uc.uc_flags) || in setup_rt_frame32()
380 __put_user(0, &frame->uc.uc_link) || in setup_rt_frame32()
381 __compat_save_altstack(&frame->uc.uc_stack, regs->gprs[15]) || in setup_rt_frame32()
382 save_sigregs32(regs, &frame->uc.uc_mcontext) || in setup_rt_frame32()
383 put_compat_sigset(&frame->uc.uc_sigmask, set, sizeof(compat_sigset_t)) || in setup_rt_frame32()
384 save_sigregs_ext32(regs, &frame->uc.uc_mcontext_ext)) in setup_rt_frame32()
389 regs->gprs[15] = (__force __u64) frame; in setup_rt_frame32()
397 regs->gprs[3] = (__force __u64) &frame->info; in setup_rt_frame32()
398 regs->gprs[4] = (__force __u64) &frame->uc; in setup_rt_frame32()
412 /* Set up the stack frame */ in handle_signal32()