Home
last modified time | relevance | path

Searched refs:uc_mcontext (Results 1 – 25 of 55) 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/unicore32/kernel/
Dsignal.c61 err |= __get_user(regs->UCreg_00, &sf->uc.uc_mcontext.regs.UCreg_00); in restore_sigframe()
62 err |= __get_user(regs->UCreg_01, &sf->uc.uc_mcontext.regs.UCreg_01); in restore_sigframe()
63 err |= __get_user(regs->UCreg_02, &sf->uc.uc_mcontext.regs.UCreg_02); in restore_sigframe()
64 err |= __get_user(regs->UCreg_03, &sf->uc.uc_mcontext.regs.UCreg_03); in restore_sigframe()
65 err |= __get_user(regs->UCreg_04, &sf->uc.uc_mcontext.regs.UCreg_04); in restore_sigframe()
66 err |= __get_user(regs->UCreg_05, &sf->uc.uc_mcontext.regs.UCreg_05); in restore_sigframe()
67 err |= __get_user(regs->UCreg_06, &sf->uc.uc_mcontext.regs.UCreg_06); in restore_sigframe()
68 err |= __get_user(regs->UCreg_07, &sf->uc.uc_mcontext.regs.UCreg_07); in restore_sigframe()
69 err |= __get_user(regs->UCreg_08, &sf->uc.uc_mcontext.regs.UCreg_08); in restore_sigframe()
70 err |= __get_user(regs->UCreg_09, &sf->uc.uc_mcontext.regs.UCreg_09); in restore_sigframe()
[all …]
/arch/arm64/kernel/
Dsignal32.c198 __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()
[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()
328 struct sigcontext __user *const sc = &sf->uc.uc_mcontext; in parse_user_sigframe()
495 __get_user_error(regs->regs[i], &sf->uc.uc_mcontext.regs[i], in restore_sigframe()
497 __get_user_error(regs->sp, &sf->uc.uc_mcontext.sp, err); in restore_sigframe()
498 __get_user_error(regs->pc, &sf->uc.uc_mcontext.pc, err); in restore_sigframe()
499 __get_user_error(regs->pstate, &sf->uc.uc_mcontext.pstate, err); in restore_sigframe()
617 __put_user_error(regs->regs[i], &sf->uc.uc_mcontext.regs[i], in setup_sigframe()
619 __put_user_error(regs->sp, &sf->uc.uc_mcontext.sp, err); in setup_sigframe()
620 __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/sparc/kernel/
Dsignal_64.c58 grp = &ucp->uc_mcontext.mc_gregs; in sparc64_set_context()
103 err |= __get_user(fp, &(ucp->uc_mcontext.mc_fp)); in sparc64_set_context()
104 err |= __get_user(i7, &(ucp->uc_mcontext.mc_i7)); in sparc64_set_context()
110 err |= __get_user(fenab, &(ucp->uc_mcontext.mc_fpregs.mcfpu_enab)); in sparc64_set_context()
116 err |= __get_user(fprs, &(ucp->uc_mcontext.mc_fpregs.mcfpu_fprs)); in sparc64_set_context()
119 &(ucp->uc_mcontext.mc_fpregs.mcfpu_fregs), in sparc64_set_context()
123 ((unsigned long __user *)&(ucp->uc_mcontext.mc_fpregs.mcfpu_fregs))+16, in sparc64_set_context()
126 &(ucp->uc_mcontext.mc_fpregs.mcfpu_fsr)); in sparc64_set_context()
128 &(ucp->uc_mcontext.mc_fpregs.mcfpu_gsr)); in sparc64_set_context()
162 mcp = &ucp->uc_mcontext; in sparc64_get_context()
/arch/parisc/kernel/
Dsignal.c130 &compat_frame->uc.uc_mcontext); in sys_rt_sigreturn()
132 if (restore_sigcontext32(&compat_frame->uc.uc_mcontext, in sys_rt_sigreturn()
143 &frame->uc.uc_mcontext); in sys_rt_sigreturn()
144 if (restore_sigcontext(&frame->uc.uc_mcontext, regs)) in sys_rt_sigreturn()
263 DBG(1,"setup_rt_frame: frame->uc.uc_mcontext = 0x%p\n", &compat_frame->uc.uc_mcontext); in setup_rt_frame()
264 err |= setup_sigcontext32(&compat_frame->uc.uc_mcontext, in setup_rt_frame()
275 DBG(1,"setup_rt_frame: frame->uc.uc_mcontext = 0x%p\n", &frame->uc.uc_mcontext); in setup_rt_frame()
276 err |= setup_sigcontext(&frame->uc.uc_mcontext, regs, in_syscall); in setup_rt_frame()
/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/arm64/include/uapi/asm/
Ducontext.h30 struct sigcontext uc_mcontext; member
/arch/riscv/include/uapi/asm/
Ducontext.h31 struct sigcontext uc_mcontext; member
/arch/x86/um/
Dstub_segv.c17 &uc->uc_mcontext); in stub_segv_handler()
/arch/powerpc/kernel/
Dsignal_64.c644 get_user(new_msr, &new_ctx->uc_mcontext.gp_regs[PT_MSR])) in SYSCALL_DEFINE3()
665 || setup_sigcontext(&old_ctx->uc_mcontext, current, 0, NULL, 0, in SYSCALL_DEFINE3()
693 if (restore_sigcontext(current, NULL, 0, &new_ctx->uc_mcontext)) in SYSCALL_DEFINE3()
764 if (__get_user(msr, &uc->uc_mcontext.gp_regs[PT_MSR])) in SYSCALL_DEFINE0()
776 if (restore_tm_sigcontexts(current, &uc->uc_mcontext, in SYSCALL_DEFINE0()
777 &uc_transact->uc_mcontext)) in SYSCALL_DEFINE0()
795 if (restore_sigcontext(current, NULL, 1, &uc->uc_mcontext)) in SYSCALL_DEFINE0()
848 err |= setup_tm_sigcontexts(&frame->uc.uc_mcontext, in handle_rt_signal64()
849 &frame->uc_transact.uc_mcontext, in handle_rt_signal64()
857 err |= setup_sigcontext(&frame->uc.uc_mcontext, tsk, ksig->sig, in handle_rt_signal64()
[all …]
Dppc32.h57 struct mcontext32 uc_mcontext; member
/arch/mips/include/uapi/asm/
Ducontext.h59 struct sigcontext uc_mcontext; member
/arch/m68k/include/asm/
Ducontext.h26 struct mcontext uc_mcontext; member
/arch/x86/include/asm/
Dia32.h22 struct sigcontext_32 uc_mcontext; member
/arch/m68k/kernel/
Dsignal.c342 uc->uc_mcontext.fpregs.f_fpcntl, 12)) in rt_restore_fpu_state()
346 uc->uc_mcontext.fpregs.f_fpregs, 96)) in rt_restore_fpu_state()
384 if (__copy_from_user(&fpregs, &uc->uc_mcontext.fpregs, in rt_restore_fpu_state()
491 err |= copy_to_user(uc->uc_mcontext.fpregs.f_fpcntl, in rt_save_fpu_state()
494 err |= copy_to_user(uc->uc_mcontext.fpregs.f_fpregs, in rt_save_fpu_state()
542 err |= copy_to_user(&uc->uc_mcontext.fpregs, &fpregs, in rt_save_fpu_state()
736 greg_t __user *gregs = uc->uc_mcontext.gregs; in rt_restore_ucontext()
743 err = __get_user(temp, &uc->uc_mcontext.version); in rt_restore_ucontext()
858 greg_t __user *gregs = uc->uc_mcontext.gregs; in rt_setup_ucontext()
861 err |= __put_user(MCONTEXT_VERSION, &uc->uc_mcontext.version); in rt_setup_ucontext()
/arch/nios2/kernel/
Dsignal.c42 unsigned long *gregs = uc->uc_mcontext.gregs; in rt_restore_ucontext()
48 err = __get_user(temp, &uc->uc_mcontext.version); in rt_restore_ucontext()
130 unsigned long *gregs = uc->uc_mcontext.gregs; in rt_setup_ucontext()
133 err |= __put_user(MCONTEXT_VERSION, &uc->uc_mcontext.version); in rt_setup_ucontext()

123