Home
last modified time | relevance | path

Searched refs:uc_mcontext (Results 1 – 25 of 53) sorted by relevance

123

/arch/nds32/kernel/
Dsignal.c90 __get_user_error(regs->uregs[0], &sf->uc.uc_mcontext.nds32_r0, err); in restore_sigframe()
91 __get_user_error(regs->uregs[1], &sf->uc.uc_mcontext.nds32_r1, err); in restore_sigframe()
92 __get_user_error(regs->uregs[2], &sf->uc.uc_mcontext.nds32_r2, err); in restore_sigframe()
93 __get_user_error(regs->uregs[3], &sf->uc.uc_mcontext.nds32_r3, err); in restore_sigframe()
94 __get_user_error(regs->uregs[4], &sf->uc.uc_mcontext.nds32_r4, err); in restore_sigframe()
95 __get_user_error(regs->uregs[5], &sf->uc.uc_mcontext.nds32_r5, err); in restore_sigframe()
96 __get_user_error(regs->uregs[6], &sf->uc.uc_mcontext.nds32_r6, err); in restore_sigframe()
97 __get_user_error(regs->uregs[7], &sf->uc.uc_mcontext.nds32_r7, err); in restore_sigframe()
98 __get_user_error(regs->uregs[8], &sf->uc.uc_mcontext.nds32_r8, err); in restore_sigframe()
99 __get_user_error(regs->uregs[9], &sf->uc.uc_mcontext.nds32_r9, err); in restore_sigframe()
[all …]
/arch/arm64/kernel/
Dsignal32.c194 __get_user_error(regs->regs[0], &sf->uc.uc_mcontext.arm_r0, err); in compat_restore_sigframe()
195 __get_user_error(regs->regs[1], &sf->uc.uc_mcontext.arm_r1, err); in compat_restore_sigframe()
196 __get_user_error(regs->regs[2], &sf->uc.uc_mcontext.arm_r2, err); in compat_restore_sigframe()
197 __get_user_error(regs->regs[3], &sf->uc.uc_mcontext.arm_r3, err); in compat_restore_sigframe()
198 __get_user_error(regs->regs[4], &sf->uc.uc_mcontext.arm_r4, err); in compat_restore_sigframe()
199 __get_user_error(regs->regs[5], &sf->uc.uc_mcontext.arm_r5, err); in compat_restore_sigframe()
200 __get_user_error(regs->regs[6], &sf->uc.uc_mcontext.arm_r6, err); in compat_restore_sigframe()
201 __get_user_error(regs->regs[7], &sf->uc.uc_mcontext.arm_r7, err); in compat_restore_sigframe()
202 __get_user_error(regs->regs[8], &sf->uc.uc_mcontext.arm_r8, err); in compat_restore_sigframe()
203 __get_user_error(regs->regs[9], &sf->uc.uc_mcontext.arm_r9, err); in compat_restore_sigframe()
[all …]
Dsignal.c71 sizeof(user->sigframe->uc.uc_mcontext.__reserved); in init_user_layout()
74 user->size = offsetof(struct rt_sigframe, uc.uc_mcontext.__reserved); in init_user_layout()
334 struct sigcontext __user *const sc = &sf->uc.uc_mcontext; in parse_user_sigframe()
503 __get_user_error(regs->regs[i], &sf->uc.uc_mcontext.regs[i], in restore_sigframe()
505 __get_user_error(regs->sp, &sf->uc.uc_mcontext.sp, err); in restore_sigframe()
506 __get_user_error(regs->pc, &sf->uc.uc_mcontext.pc, err); in restore_sigframe()
507 __get_user_error(regs->pstate, &sf->uc.uc_mcontext.pstate, err); in restore_sigframe()
627 __put_user_error(regs->regs[i], &sf->uc.uc_mcontext.regs[i], in setup_sigframe()
629 __put_user_error(regs->sp, &sf->uc.uc_mcontext.sp, err); in setup_sigframe()
630 __put_user_error(regs->pc, &sf->uc.uc_mcontext.pc, err); in setup_sigframe()
[all …]
/arch/ia64/include/uapi/asm/
Ducontext.h6 struct sigcontext uc_mcontext; member
9 #define uc_link uc_mcontext.sc_gr[0] /* wrong type; nobody cares */
10 #define uc_sigmask uc_mcontext.sc_sigmask
11 #define uc_stack uc_mcontext.sc_stack
/arch/s390/include/uapi/asm/
Ducontext.h24 _sigregs uc_mcontext; member
35 _sigregs uc_mcontext; member
/arch/powerpc/include/uapi/asm/
Ducontext.h33 struct sigcontext uc_mcontext; /* last for extensibility */ member
37 struct mcontext uc_mcontext; member
/arch/mips/kernel/
Dsignal_n32.c43 struct sigcontext uc_mcontext; member
70 sig = restore_sigcontext(regs, &frame->rs_uc.uc_mcontext); in sysn32_rt_sigreturn()
110 err |= setup_sigcontext(regs, &frame->rs_uc.uc_mcontext); in setup_rt_frame_n32()
/arch/powerpc/kernel/
Dsignal_64.c657 get_user(new_msr, &new_ctx->uc_mcontext.gp_regs[PT_MSR])) in SYSCALL_DEFINE3()
681 unsafe_setup_sigcontext(&old_ctx->uc_mcontext, current, 0, NULL, in SYSCALL_DEFINE3()
714 if (__unsafe_restore_sigcontext(current, NULL, 0, &new_ctx->uc_mcontext)) { in SYSCALL_DEFINE3()
792 if (__get_user(msr, &uc->uc_mcontext.gp_regs[PT_MSR])) in SYSCALL_DEFINE0()
806 if (restore_tm_sigcontexts(current, &uc->uc_mcontext, in SYSCALL_DEFINE0()
807 &uc_transact->uc_mcontext)) in SYSCALL_DEFINE0()
824 if (!user_read_access_begin(&uc->uc_mcontext, sizeof(uc->uc_mcontext))) in SYSCALL_DEFINE0()
827 unsafe_restore_sigcontext(current, NULL, 1, &uc->uc_mcontext, in SYSCALL_DEFINE0()
887 err |= setup_tm_sigcontexts(&frame->uc.uc_mcontext, in handle_rt_signal64()
888 &frame->uc_transact.uc_mcontext, in handle_rt_signal64()
[all …]
Dppc32.h57 struct mcontext32 uc_mcontext; member
/arch/parisc/kernel/
Dsignal.c129 &compat_frame->uc.uc_mcontext); in sys_rt_sigreturn()
131 if (restore_sigcontext32(&compat_frame->uc.uc_mcontext, in sys_rt_sigreturn()
142 &frame->uc.uc_mcontext); in sys_rt_sigreturn()
143 if (restore_sigcontext(&frame->uc.uc_mcontext, regs)) in sys_rt_sigreturn()
266 DBG(1,"setup_rt_frame: frame->uc.uc_mcontext = 0x%p\n", &compat_frame->uc.uc_mcontext); in setup_rt_frame()
267 err |= setup_sigcontext32(&compat_frame->uc.uc_mcontext, in setup_rt_frame()
278 DBG(1,"setup_rt_frame: frame->uc.uc_mcontext = 0x%p\n", &frame->uc.uc_mcontext); in setup_rt_frame()
279 err |= setup_sigcontext(&frame->uc.uc_mcontext, regs, in_syscall); in setup_rt_frame()
/arch/powerpc/perf/
Dcallchain_32.c71 uc.uc_mcontext.mc_pad)) in is_rt_sigreturn_32_address()
98 return regs == (unsigned long) &sf->uc.uc_mcontext; in sane_rt_signal_32_frame()
125 mctx = &rt_sf->uc.uc_mcontext; in signal_frame_32_regs()
/arch/sparc/kernel/
Dsignal_64.c57 grp = &ucp->uc_mcontext.mc_gregs; in sparc64_set_context()
102 err |= __get_user(fp, &(ucp->uc_mcontext.mc_fp)); in sparc64_set_context()
103 err |= __get_user(i7, &(ucp->uc_mcontext.mc_i7)); in sparc64_set_context()
109 err |= __get_user(fenab, &(ucp->uc_mcontext.mc_fpregs.mcfpu_enab)); in sparc64_set_context()
115 err |= __get_user(fprs, &(ucp->uc_mcontext.mc_fpregs.mcfpu_fprs)); in sparc64_set_context()
118 &(ucp->uc_mcontext.mc_fpregs.mcfpu_fregs), in sparc64_set_context()
122 ((unsigned long __user *)&(ucp->uc_mcontext.mc_fpregs.mcfpu_fregs))+16, in sparc64_set_context()
125 &(ucp->uc_mcontext.mc_fpregs.mcfpu_fsr)); in sparc64_set_context()
127 &(ucp->uc_mcontext.mc_fpregs.mcfpu_gsr)); in sparc64_set_context()
161 mcp = &ucp->uc_mcontext; in sparc64_get_context()
/arch/arc/kernel/
Dsignal.c130 err = __copy_to_user(&(sf->uc.uc_mcontext.regs.scratch), &uregs.scratch, in stash_usr_regs()
131 sizeof(sf->uc.uc_mcontext.regs.scratch)); in stash_usr_regs()
134 err |= save_arcv2_regs(&(sf->uc.uc_mcontext), regs); in stash_usr_regs()
149 &(sf->uc.uc_mcontext.regs.scratch), in restore_usr_regs()
150 sizeof(sf->uc.uc_mcontext.regs.scratch)); in restore_usr_regs()
153 err |= restore_arcv2_regs(&(sf->uc.uc_mcontext), regs); in restore_usr_regs()
/arch/parisc/include/asm/
Ducontext.h9 struct sigcontext uc_mcontext; member
Dcompat_ucontext.h14 struct compat_sigcontext uc_mcontext; member
/arch/xtensa/include/asm/
Ducontext.h18 struct sigcontext uc_mcontext; member
/arch/alpha/include/asm/
Ducontext.h10 struct sigcontext uc_mcontext; member
/arch/riscv/include/uapi/asm/
Ducontext.h31 struct sigcontext uc_mcontext; member
/arch/arm64/include/uapi/asm/
Ducontext.h30 struct sigcontext uc_mcontext; member
/arch/x86/um/
Dstub_segv.c17 GET_FAULTINFO_FROM_MC(*f, &uc->uc_mcontext); in stub_segv_handler()
/arch/mips/include/uapi/asm/
Ducontext.h59 struct sigcontext uc_mcontext; member
/arch/m68k/include/asm/
Ducontext.h26 struct mcontext uc_mcontext; member
/arch/m68k/kernel/
Dsignal.c341 uc->uc_mcontext.fpregs.f_fpcntl, 12)) in rt_restore_fpu_state()
345 uc->uc_mcontext.fpregs.f_fpregs, 96)) in rt_restore_fpu_state()
383 if (__copy_from_user(&fpregs, &uc->uc_mcontext.fpregs, in rt_restore_fpu_state()
490 err |= copy_to_user(uc->uc_mcontext.fpregs.f_fpcntl, in rt_save_fpu_state()
493 err |= copy_to_user(uc->uc_mcontext.fpregs.f_fpregs, in rt_save_fpu_state()
541 err |= copy_to_user(&uc->uc_mcontext.fpregs, &fpregs, in rt_save_fpu_state()
712 greg_t __user *gregs = uc->uc_mcontext.gregs; in rt_restore_ucontext()
719 err = __get_user(temp, &uc->uc_mcontext.version); in rt_restore_ucontext()
832 greg_t __user *gregs = uc->uc_mcontext.gregs; in rt_setup_ucontext()
835 err |= __put_user(MCONTEXT_VERSION, &uc->uc_mcontext.version); in rt_setup_ucontext()
/arch/x86/include/asm/
Dia32.h22 struct sigcontext_32 uc_mcontext; member
/arch/arm/include/asm/
Ducontext.h22 struct sigcontext uc_mcontext; member

123