Home
last modified time | relevance | path

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

123

/arch/unicore32/kernel/
Dsignal.c64 err |= __get_user(regs->UCreg_00, &sf->uc.uc_mcontext.regs.UCreg_00); in restore_sigframe()
65 err |= __get_user(regs->UCreg_01, &sf->uc.uc_mcontext.regs.UCreg_01); in restore_sigframe()
66 err |= __get_user(regs->UCreg_02, &sf->uc.uc_mcontext.regs.UCreg_02); in restore_sigframe()
67 err |= __get_user(regs->UCreg_03, &sf->uc.uc_mcontext.regs.UCreg_03); in restore_sigframe()
68 err |= __get_user(regs->UCreg_04, &sf->uc.uc_mcontext.regs.UCreg_04); in restore_sigframe()
69 err |= __get_user(regs->UCreg_05, &sf->uc.uc_mcontext.regs.UCreg_05); in restore_sigframe()
70 err |= __get_user(regs->UCreg_06, &sf->uc.uc_mcontext.regs.UCreg_06); in restore_sigframe()
71 err |= __get_user(regs->UCreg_07, &sf->uc.uc_mcontext.regs.UCreg_07); in restore_sigframe()
72 err |= __get_user(regs->UCreg_08, &sf->uc.uc_mcontext.regs.UCreg_08); in restore_sigframe()
73 err |= __get_user(regs->UCreg_09, &sf->uc.uc_mcontext.regs.UCreg_09); in restore_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/arm64/kernel/
Dsignal32.c62 struct compat_sigcontext uc_mcontext; member
332 __get_user_error(regs->regs[0], &sf->uc.uc_mcontext.arm_r0, err); in compat_restore_sigframe()
333 __get_user_error(regs->regs[1], &sf->uc.uc_mcontext.arm_r1, err); in compat_restore_sigframe()
334 __get_user_error(regs->regs[2], &sf->uc.uc_mcontext.arm_r2, err); in compat_restore_sigframe()
335 __get_user_error(regs->regs[3], &sf->uc.uc_mcontext.arm_r3, err); in compat_restore_sigframe()
336 __get_user_error(regs->regs[4], &sf->uc.uc_mcontext.arm_r4, err); in compat_restore_sigframe()
337 __get_user_error(regs->regs[5], &sf->uc.uc_mcontext.arm_r5, err); in compat_restore_sigframe()
338 __get_user_error(regs->regs[6], &sf->uc.uc_mcontext.arm_r6, err); in compat_restore_sigframe()
339 __get_user_error(regs->regs[7], &sf->uc.uc_mcontext.arm_r7, err); in compat_restore_sigframe()
340 __get_user_error(regs->regs[8], &sf->uc.uc_mcontext.arm_r8, err); in compat_restore_sigframe()
[all …]
Dsignal.c77 sizeof(user->sigframe->uc.uc_mcontext.__reserved); in init_user_layout()
80 user->size = offsetof(struct rt_sigframe, uc.uc_mcontext.__reserved); in init_user_layout()
231 struct sigcontext __user *const sc = &sf->uc.uc_mcontext; in parse_user_sigframe()
383 __get_user_error(regs->regs[i], &sf->uc.uc_mcontext.regs[i], in restore_sigframe()
385 __get_user_error(regs->sp, &sf->uc.uc_mcontext.sp, err); in restore_sigframe()
386 __get_user_error(regs->pc, &sf->uc.uc_mcontext.pc, err); in restore_sigframe()
387 __get_user_error(regs->pstate, &sf->uc.uc_mcontext.pstate, err); in restore_sigframe()
473 __put_user_error(regs->regs[i], &sf->uc.uc_mcontext.regs[i], in setup_sigframe()
475 __put_user_error(regs->sp, &sf->uc.uc_mcontext.sp, err); in setup_sigframe()
476 __put_user_error(regs->pc, &sf->uc.uc_mcontext.pc, err); in setup_sigframe()
[all …]
/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.c56 struct sigcontext uc_mcontext; member
81 sig = restore_sigcontext(&regs, &frame->rs_uc.uc_mcontext); in sysn32_rt_sigreturn()
121 err |= setup_sigcontext(regs, &frame->rs_uc.uc_mcontext); in setup_rt_frame_n32()
/arch/sparc/kernel/
Dsignal_64.c61 grp = &ucp->uc_mcontext.mc_gregs; in sparc64_set_context()
106 err |= __get_user(fp, &(ucp->uc_mcontext.mc_fp)); in sparc64_set_context()
107 err |= __get_user(i7, &(ucp->uc_mcontext.mc_i7)); in sparc64_set_context()
113 err |= __get_user(fenab, &(ucp->uc_mcontext.mc_fpregs.mcfpu_enab)); in sparc64_set_context()
119 err |= __get_user(fprs, &(ucp->uc_mcontext.mc_fpregs.mcfpu_fprs)); in sparc64_set_context()
122 &(ucp->uc_mcontext.mc_fpregs.mcfpu_fregs), in sparc64_set_context()
126 ((unsigned long __user *)&(ucp->uc_mcontext.mc_fpregs.mcfpu_fregs))+16, in sparc64_set_context()
129 &(ucp->uc_mcontext.mc_fpregs.mcfpu_fsr)); in sparc64_set_context()
131 &(ucp->uc_mcontext.mc_fpregs.mcfpu_gsr)); in sparc64_set_context()
165 mcp = &ucp->uc_mcontext; in sparc64_get_context()
/arch/parisc/kernel/
Dsignal.c133 &compat_frame->uc.uc_mcontext); in sys_rt_sigreturn()
135 if (restore_sigcontext32(&compat_frame->uc.uc_mcontext, in sys_rt_sigreturn()
146 &frame->uc.uc_mcontext); in sys_rt_sigreturn()
147 if (restore_sigcontext(&frame->uc.uc_mcontext, regs)) in sys_rt_sigreturn()
261 DBG(1,"setup_rt_frame: frame->uc.uc_mcontext = 0x%p\n", &compat_frame->uc.uc_mcontext); in setup_rt_frame()
262 err |= setup_sigcontext32(&compat_frame->uc.uc_mcontext, in setup_rt_frame()
273 DBG(1,"setup_rt_frame: frame->uc.uc_mcontext = 0x%p\n", &frame->uc.uc_mcontext); in setup_rt_frame()
274 err |= setup_sigcontext(&frame->uc.uc_mcontext, regs, in_syscall); in setup_rt_frame()
/arch/m32r/include/asm/
Ducontext.h9 struct sigcontext uc_mcontext; member
/arch/xtensa/include/asm/
Ducontext.h18 struct sigcontext uc_mcontext; member
/arch/frv/include/asm/
Ducontext.h9 struct sigcontext uc_mcontext; member
/arch/mn10300/include/asm/
Ducontext.h18 struct sigcontext uc_mcontext; member
/arch/parisc/include/asm/
Ducontext.h9 struct sigcontext uc_mcontext; member
Dcompat_ucontext.h14 struct compat_sigcontext uc_mcontext; member
/arch/cris/include/asm/
Ducontext.h9 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/x86/um/
Dstub_segv.c17 &uc->uc_mcontext); in stub_segv_handler()
/arch/mips/include/uapi/asm/
Ducontext.h59 struct sigcontext uc_mcontext; member
/arch/powerpc/kernel/
Dsignal_64.c641 get_user(new_msr, &new_ctx->uc_mcontext.gp_regs[PT_MSR])) in sys_swapcontext()
662 || setup_sigcontext(&old_ctx->uc_mcontext, current, 0, NULL, 0, in sys_swapcontext()
690 if (restore_sigcontext(current, NULL, 0, &new_ctx->uc_mcontext)) in sys_swapcontext()
739 if (__get_user(msr, &uc->uc_mcontext.gp_regs[PT_MSR])) in sys_rt_sigreturn()
751 if (restore_tm_sigcontexts(current, &uc->uc_mcontext, in sys_rt_sigreturn()
752 &uc_transact->uc_mcontext)) in sys_rt_sigreturn()
770 if (restore_sigcontext(current, NULL, 1, &uc->uc_mcontext)) in sys_rt_sigreturn()
819 err |= setup_tm_sigcontexts(&frame->uc.uc_mcontext, in handle_rt_signal64()
820 &frame->uc_transact.uc_mcontext, in handle_rt_signal64()
827 err |= setup_sigcontext(&frame->uc.uc_mcontext, tsk, ksig->sig, in handle_rt_signal64()
[all …]
/arch/m68k/include/asm/
Ducontext.h26 struct mcontext 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()
672 greg_t __user *gregs = uc->uc_mcontext.gregs; in rt_restore_ucontext()
679 err = __get_user(temp, &uc->uc_mcontext.version); in rt_restore_ucontext()
787 greg_t __user *gregs = uc->uc_mcontext.gregs; in rt_setup_ucontext()
790 err |= __put_user(MCONTEXT_VERSION, &uc->uc_mcontext.version); in rt_setup_ucontext()
/arch/arc/kernel/
Dsignal.c98 err = __copy_to_user(&(sf->uc.uc_mcontext.regs.scratch), &uregs.scratch, in stash_usr_regs()
99 sizeof(sf->uc.uc_mcontext.regs.scratch)); in stash_usr_regs()
113 &(sf->uc.uc_mcontext.regs.scratch), in restore_usr_regs()
114 sizeof(sf->uc.uc_mcontext.regs.scratch)); in restore_usr_regs()
/arch/x86/include/asm/
Dia32.h22 struct sigcontext_32 uc_mcontext; member

123