Searched refs:uc_mcontext (Results 1 - 77 of 77) sorted by relevance

/linux-4.4.14/arch/ia64/include/uapi/asm/
H A Ducontext.h5 struct sigcontext uc_mcontext; member in struct:ucontext
8 #define uc_link uc_mcontext.sc_gr[0] /* wrong type; nobody cares */
9 #define uc_sigmask uc_mcontext.sc_sigmask
10 #define uc_stack uc_mcontext.sc_stack
/linux-4.4.14/arch/unicore32/kernel/
H A Dsignal.c64 err |= __get_user(regs->UCreg_00, &sf->uc.uc_mcontext.regs.UCreg_00); restore_sigframe()
65 err |= __get_user(regs->UCreg_01, &sf->uc.uc_mcontext.regs.UCreg_01); restore_sigframe()
66 err |= __get_user(regs->UCreg_02, &sf->uc.uc_mcontext.regs.UCreg_02); restore_sigframe()
67 err |= __get_user(regs->UCreg_03, &sf->uc.uc_mcontext.regs.UCreg_03); restore_sigframe()
68 err |= __get_user(regs->UCreg_04, &sf->uc.uc_mcontext.regs.UCreg_04); restore_sigframe()
69 err |= __get_user(regs->UCreg_05, &sf->uc.uc_mcontext.regs.UCreg_05); restore_sigframe()
70 err |= __get_user(regs->UCreg_06, &sf->uc.uc_mcontext.regs.UCreg_06); restore_sigframe()
71 err |= __get_user(regs->UCreg_07, &sf->uc.uc_mcontext.regs.UCreg_07); restore_sigframe()
72 err |= __get_user(regs->UCreg_08, &sf->uc.uc_mcontext.regs.UCreg_08); restore_sigframe()
73 err |= __get_user(regs->UCreg_09, &sf->uc.uc_mcontext.regs.UCreg_09); restore_sigframe()
74 err |= __get_user(regs->UCreg_10, &sf->uc.uc_mcontext.regs.UCreg_10); restore_sigframe()
75 err |= __get_user(regs->UCreg_11, &sf->uc.uc_mcontext.regs.UCreg_11); restore_sigframe()
76 err |= __get_user(regs->UCreg_12, &sf->uc.uc_mcontext.regs.UCreg_12); restore_sigframe()
77 err |= __get_user(regs->UCreg_13, &sf->uc.uc_mcontext.regs.UCreg_13); restore_sigframe()
78 err |= __get_user(regs->UCreg_14, &sf->uc.uc_mcontext.regs.UCreg_14); restore_sigframe()
79 err |= __get_user(regs->UCreg_15, &sf->uc.uc_mcontext.regs.UCreg_15); restore_sigframe()
80 err |= __get_user(regs->UCreg_16, &sf->uc.uc_mcontext.regs.UCreg_16); restore_sigframe()
81 err |= __get_user(regs->UCreg_17, &sf->uc.uc_mcontext.regs.UCreg_17); restore_sigframe()
82 err |= __get_user(regs->UCreg_18, &sf->uc.uc_mcontext.regs.UCreg_18); restore_sigframe()
83 err |= __get_user(regs->UCreg_19, &sf->uc.uc_mcontext.regs.UCreg_19); restore_sigframe()
84 err |= __get_user(regs->UCreg_20, &sf->uc.uc_mcontext.regs.UCreg_20); restore_sigframe()
85 err |= __get_user(regs->UCreg_21, &sf->uc.uc_mcontext.regs.UCreg_21); restore_sigframe()
86 err |= __get_user(regs->UCreg_22, &sf->uc.uc_mcontext.regs.UCreg_22); restore_sigframe()
87 err |= __get_user(regs->UCreg_23, &sf->uc.uc_mcontext.regs.UCreg_23); restore_sigframe()
88 err |= __get_user(regs->UCreg_24, &sf->uc.uc_mcontext.regs.UCreg_24); restore_sigframe()
89 err |= __get_user(regs->UCreg_25, &sf->uc.uc_mcontext.regs.UCreg_25); restore_sigframe()
90 err |= __get_user(regs->UCreg_26, &sf->uc.uc_mcontext.regs.UCreg_26); restore_sigframe()
91 err |= __get_user(regs->UCreg_fp, &sf->uc.uc_mcontext.regs.UCreg_fp); restore_sigframe()
92 err |= __get_user(regs->UCreg_ip, &sf->uc.uc_mcontext.regs.UCreg_ip); restore_sigframe()
93 err |= __get_user(regs->UCreg_sp, &sf->uc.uc_mcontext.regs.UCreg_sp); restore_sigframe()
94 err |= __get_user(regs->UCreg_lr, &sf->uc.uc_mcontext.regs.UCreg_lr); restore_sigframe()
95 err |= __get_user(regs->UCreg_pc, &sf->uc.uc_mcontext.regs.UCreg_pc); restore_sigframe()
96 err |= __get_user(regs->UCreg_asr, &sf->uc.uc_mcontext.regs.UCreg_asr); restore_sigframe()
141 err |= __put_user(regs->UCreg_00, &sf->uc.uc_mcontext.regs.UCreg_00); setup_sigframe()
142 err |= __put_user(regs->UCreg_01, &sf->uc.uc_mcontext.regs.UCreg_01); setup_sigframe()
143 err |= __put_user(regs->UCreg_02, &sf->uc.uc_mcontext.regs.UCreg_02); setup_sigframe()
144 err |= __put_user(regs->UCreg_03, &sf->uc.uc_mcontext.regs.UCreg_03); setup_sigframe()
145 err |= __put_user(regs->UCreg_04, &sf->uc.uc_mcontext.regs.UCreg_04); setup_sigframe()
146 err |= __put_user(regs->UCreg_05, &sf->uc.uc_mcontext.regs.UCreg_05); setup_sigframe()
147 err |= __put_user(regs->UCreg_06, &sf->uc.uc_mcontext.regs.UCreg_06); setup_sigframe()
148 err |= __put_user(regs->UCreg_07, &sf->uc.uc_mcontext.regs.UCreg_07); setup_sigframe()
149 err |= __put_user(regs->UCreg_08, &sf->uc.uc_mcontext.regs.UCreg_08); setup_sigframe()
150 err |= __put_user(regs->UCreg_09, &sf->uc.uc_mcontext.regs.UCreg_09); setup_sigframe()
151 err |= __put_user(regs->UCreg_10, &sf->uc.uc_mcontext.regs.UCreg_10); setup_sigframe()
152 err |= __put_user(regs->UCreg_11, &sf->uc.uc_mcontext.regs.UCreg_11); setup_sigframe()
153 err |= __put_user(regs->UCreg_12, &sf->uc.uc_mcontext.regs.UCreg_12); setup_sigframe()
154 err |= __put_user(regs->UCreg_13, &sf->uc.uc_mcontext.regs.UCreg_13); setup_sigframe()
155 err |= __put_user(regs->UCreg_14, &sf->uc.uc_mcontext.regs.UCreg_14); setup_sigframe()
156 err |= __put_user(regs->UCreg_15, &sf->uc.uc_mcontext.regs.UCreg_15); setup_sigframe()
157 err |= __put_user(regs->UCreg_16, &sf->uc.uc_mcontext.regs.UCreg_16); setup_sigframe()
158 err |= __put_user(regs->UCreg_17, &sf->uc.uc_mcontext.regs.UCreg_17); setup_sigframe()
159 err |= __put_user(regs->UCreg_18, &sf->uc.uc_mcontext.regs.UCreg_18); setup_sigframe()
160 err |= __put_user(regs->UCreg_19, &sf->uc.uc_mcontext.regs.UCreg_19); setup_sigframe()
161 err |= __put_user(regs->UCreg_20, &sf->uc.uc_mcontext.regs.UCreg_20); setup_sigframe()
162 err |= __put_user(regs->UCreg_21, &sf->uc.uc_mcontext.regs.UCreg_21); setup_sigframe()
163 err |= __put_user(regs->UCreg_22, &sf->uc.uc_mcontext.regs.UCreg_22); setup_sigframe()
164 err |= __put_user(regs->UCreg_23, &sf->uc.uc_mcontext.regs.UCreg_23); setup_sigframe()
165 err |= __put_user(regs->UCreg_24, &sf->uc.uc_mcontext.regs.UCreg_24); setup_sigframe()
166 err |= __put_user(regs->UCreg_25, &sf->uc.uc_mcontext.regs.UCreg_25); setup_sigframe()
167 err |= __put_user(regs->UCreg_26, &sf->uc.uc_mcontext.regs.UCreg_26); setup_sigframe()
168 err |= __put_user(regs->UCreg_fp, &sf->uc.uc_mcontext.regs.UCreg_fp); setup_sigframe()
169 err |= __put_user(regs->UCreg_ip, &sf->uc.uc_mcontext.regs.UCreg_ip); setup_sigframe()
170 err |= __put_user(regs->UCreg_sp, &sf->uc.uc_mcontext.regs.UCreg_sp); setup_sigframe()
171 err |= __put_user(regs->UCreg_lr, &sf->uc.uc_mcontext.regs.UCreg_lr); setup_sigframe()
172 err |= __put_user(regs->UCreg_pc, &sf->uc.uc_mcontext.regs.UCreg_pc); setup_sigframe()
173 err |= __put_user(regs->UCreg_asr, &sf->uc.uc_mcontext.regs.UCreg_asr); setup_sigframe()
176 &sf->uc.uc_mcontext.trap_no); setup_sigframe()
178 &sf->uc.uc_mcontext.error_code); setup_sigframe()
180 &sf->uc.uc_mcontext.fault_address); setup_sigframe()
181 err |= __put_user(set->sig[0], &sf->uc.uc_mcontext.oldmask); setup_sigframe()
/linux-4.4.14/arch/alpha/include/asm/
H A Ducontext.h9 struct sigcontext uc_mcontext; member in struct:ucontext
/linux-4.4.14/include/uapi/asm-generic/
H A Ducontext.h8 struct sigcontext uc_mcontext; member in struct:ucontext
/linux-4.4.14/arch/parisc/include/asm/
H A Ducontext.h8 struct sigcontext uc_mcontext; member in struct:ucontext
H A Dcompat_ucontext.h11 /* FIXME: Pad out to get uc_mcontext to start at an 8-byte aligned boundary */
13 struct compat_sigcontext uc_mcontext; member in struct:compat_ucontext
/linux-4.4.14/arch/cris/include/asm/
H A Ducontext.h8 struct sigcontext uc_mcontext; member in struct:ucontext
/linux-4.4.14/arch/frv/include/asm/
H A Ducontext.h8 struct sigcontext uc_mcontext; member in struct:ucontext
/linux-4.4.14/arch/m32r/include/asm/
H A Ducontext.h8 struct sigcontext uc_mcontext; member in struct:ucontext
/linux-4.4.14/arch/avr32/include/asm/
H A Ducontext.h8 struct sigcontext uc_mcontext; member in struct:ucontext
/linux-4.4.14/arch/powerpc/include/uapi/asm/
H A Ducontext.h26 struct mcontext __user *uc_regs;/* points to uc_mcontext field */
32 struct sigcontext uc_mcontext; /* last for extensibility */ member in struct:ucontext
36 struct mcontext uc_mcontext; member in struct:ucontext
/linux-4.4.14/arch/x86/include/uapi/asm/
H A Ducontext.h7 * sigcontext struct (uc_mcontext).
/linux-4.4.14/arch/x86/um/
H A Dstub_segv.c16 &uc->uc_mcontext); stub_segv_handler()
H A Dsignal.c346 err |= copy_sc_to_user(&uc->uc_mcontext, fp, &current->thread.regs, 0); copy_ucontext_to_user()
526 err |= copy_sc_to_user(&frame->uc.uc_mcontext, &frame->fpstate, regs, setup_signal_stack_si()
531 err |= __put_user(fp_to, &frame->uc.uc_mcontext.fpstate); setup_signal_stack_si()
585 if (copy_sc_from_user(&current->thread.regs, &uc->uc_mcontext)) sys_rt_sigreturn()
/linux-4.4.14/arch/xtensa/include/asm/
H A Ducontext.h18 struct sigcontext uc_mcontext; member in struct:ucontext
/linux-4.4.14/arch/m68k/include/asm/
H A Ducontext.h25 struct mcontext uc_mcontext; member in struct:ucontext
/linux-4.4.14/arch/arm64/kernel/
H A Dsignal32.c62 struct compat_sigcontext uc_mcontext; member in struct:compat_ucontext
336 __get_user_error(regs->regs[0], &sf->uc.uc_mcontext.arm_r0, err); compat_restore_sigframe()
337 __get_user_error(regs->regs[1], &sf->uc.uc_mcontext.arm_r1, err); compat_restore_sigframe()
338 __get_user_error(regs->regs[2], &sf->uc.uc_mcontext.arm_r2, err); compat_restore_sigframe()
339 __get_user_error(regs->regs[3], &sf->uc.uc_mcontext.arm_r3, err); compat_restore_sigframe()
340 __get_user_error(regs->regs[4], &sf->uc.uc_mcontext.arm_r4, err); compat_restore_sigframe()
341 __get_user_error(regs->regs[5], &sf->uc.uc_mcontext.arm_r5, err); compat_restore_sigframe()
342 __get_user_error(regs->regs[6], &sf->uc.uc_mcontext.arm_r6, err); compat_restore_sigframe()
343 __get_user_error(regs->regs[7], &sf->uc.uc_mcontext.arm_r7, err); compat_restore_sigframe()
344 __get_user_error(regs->regs[8], &sf->uc.uc_mcontext.arm_r8, err); compat_restore_sigframe()
345 __get_user_error(regs->regs[9], &sf->uc.uc_mcontext.arm_r9, err); compat_restore_sigframe()
346 __get_user_error(regs->regs[10], &sf->uc.uc_mcontext.arm_r10, err); compat_restore_sigframe()
347 __get_user_error(regs->regs[11], &sf->uc.uc_mcontext.arm_fp, err); compat_restore_sigframe()
348 __get_user_error(regs->regs[12], &sf->uc.uc_mcontext.arm_ip, err); compat_restore_sigframe()
349 __get_user_error(regs->compat_sp, &sf->uc.uc_mcontext.arm_sp, err); compat_restore_sigframe()
350 __get_user_error(regs->compat_lr, &sf->uc.uc_mcontext.arm_lr, err); compat_restore_sigframe()
351 __get_user_error(regs->pc, &sf->uc.uc_mcontext.arm_pc, err); compat_restore_sigframe()
352 __get_user_error(regs->pstate, &sf->uc.uc_mcontext.arm_cpsr, err); compat_restore_sigframe()
510 __put_user_error(regs->regs[0], &sf->uc.uc_mcontext.arm_r0, err); compat_setup_sigframe()
511 __put_user_error(regs->regs[1], &sf->uc.uc_mcontext.arm_r1, err); compat_setup_sigframe()
512 __put_user_error(regs->regs[2], &sf->uc.uc_mcontext.arm_r2, err); compat_setup_sigframe()
513 __put_user_error(regs->regs[3], &sf->uc.uc_mcontext.arm_r3, err); compat_setup_sigframe()
514 __put_user_error(regs->regs[4], &sf->uc.uc_mcontext.arm_r4, err); compat_setup_sigframe()
515 __put_user_error(regs->regs[5], &sf->uc.uc_mcontext.arm_r5, err); compat_setup_sigframe()
516 __put_user_error(regs->regs[6], &sf->uc.uc_mcontext.arm_r6, err); compat_setup_sigframe()
517 __put_user_error(regs->regs[7], &sf->uc.uc_mcontext.arm_r7, err); compat_setup_sigframe()
518 __put_user_error(regs->regs[8], &sf->uc.uc_mcontext.arm_r8, err); compat_setup_sigframe()
519 __put_user_error(regs->regs[9], &sf->uc.uc_mcontext.arm_r9, err); compat_setup_sigframe()
520 __put_user_error(regs->regs[10], &sf->uc.uc_mcontext.arm_r10, err); compat_setup_sigframe()
521 __put_user_error(regs->regs[11], &sf->uc.uc_mcontext.arm_fp, err); compat_setup_sigframe()
522 __put_user_error(regs->regs[12], &sf->uc.uc_mcontext.arm_ip, err); compat_setup_sigframe()
523 __put_user_error(regs->compat_sp, &sf->uc.uc_mcontext.arm_sp, err); compat_setup_sigframe()
524 __put_user_error(regs->compat_lr, &sf->uc.uc_mcontext.arm_lr, err); compat_setup_sigframe()
525 __put_user_error(regs->pc, &sf->uc.uc_mcontext.arm_pc, err); compat_setup_sigframe()
526 __put_user_error(regs->pstate, &sf->uc.uc_mcontext.arm_cpsr, err); compat_setup_sigframe()
528 __put_user_error((compat_ulong_t)0, &sf->uc.uc_mcontext.trap_no, err); compat_setup_sigframe()
531 FSR_WRITE_SHIFT, &sf->uc.uc_mcontext.error_code, err); compat_setup_sigframe()
532 __put_user_error(current->thread.fault_address, &sf->uc.uc_mcontext.fault_address, err); compat_setup_sigframe()
533 __put_user_error(set->sig[0], &sf->uc.uc_mcontext.oldmask, err); compat_setup_sigframe()
H A Dsignal.c100 void *aux = sf->uc.uc_mcontext.__reserved; restore_sigframe()
107 __get_user_error(regs->regs[i], &sf->uc.uc_mcontext.regs[i], restore_sigframe()
109 __get_user_error(regs->sp, &sf->uc.uc_mcontext.sp, err); restore_sigframe()
110 __get_user_error(regs->pc, &sf->uc.uc_mcontext.pc, err); restore_sigframe()
111 __get_user_error(regs->pstate, &sf->uc.uc_mcontext.pstate, err); restore_sigframe()
169 void *aux = sf->uc.uc_mcontext.__reserved; setup_sigframe()
177 __put_user_error(regs->regs[i], &sf->uc.uc_mcontext.regs[i], setup_sigframe()
179 __put_user_error(regs->sp, &sf->uc.uc_mcontext.sp, err); setup_sigframe()
180 __put_user_error(regs->pc, &sf->uc.uc_mcontext.pc, err); setup_sigframe()
181 __put_user_error(regs->pstate, &sf->uc.uc_mcontext.pstate, err); setup_sigframe()
183 __put_user_error(current->thread.fault_address, &sf->uc.uc_mcontext.fault_address, err); setup_sigframe()
/linux-4.4.14/arch/arm/kernel/
H A Dsignal.c152 __get_user_error(regs->ARM_r0, &sf->uc.uc_mcontext.arm_r0, err); restore_sigframe()
153 __get_user_error(regs->ARM_r1, &sf->uc.uc_mcontext.arm_r1, err); restore_sigframe()
154 __get_user_error(regs->ARM_r2, &sf->uc.uc_mcontext.arm_r2, err); restore_sigframe()
155 __get_user_error(regs->ARM_r3, &sf->uc.uc_mcontext.arm_r3, err); restore_sigframe()
156 __get_user_error(regs->ARM_r4, &sf->uc.uc_mcontext.arm_r4, err); restore_sigframe()
157 __get_user_error(regs->ARM_r5, &sf->uc.uc_mcontext.arm_r5, err); restore_sigframe()
158 __get_user_error(regs->ARM_r6, &sf->uc.uc_mcontext.arm_r6, err); restore_sigframe()
159 __get_user_error(regs->ARM_r7, &sf->uc.uc_mcontext.arm_r7, err); restore_sigframe()
160 __get_user_error(regs->ARM_r8, &sf->uc.uc_mcontext.arm_r8, err); restore_sigframe()
161 __get_user_error(regs->ARM_r9, &sf->uc.uc_mcontext.arm_r9, err); restore_sigframe()
162 __get_user_error(regs->ARM_r10, &sf->uc.uc_mcontext.arm_r10, err); restore_sigframe()
163 __get_user_error(regs->ARM_fp, &sf->uc.uc_mcontext.arm_fp, err); restore_sigframe()
164 __get_user_error(regs->ARM_ip, &sf->uc.uc_mcontext.arm_ip, err); restore_sigframe()
165 __get_user_error(regs->ARM_sp, &sf->uc.uc_mcontext.arm_sp, err); restore_sigframe()
166 __get_user_error(regs->ARM_lr, &sf->uc.uc_mcontext.arm_lr, err); restore_sigframe()
167 __get_user_error(regs->ARM_pc, &sf->uc.uc_mcontext.arm_pc, err); restore_sigframe()
168 __get_user_error(regs->ARM_cpsr, &sf->uc.uc_mcontext.arm_cpsr, err); restore_sigframe()
258 __put_user_error(regs->ARM_r0, &sf->uc.uc_mcontext.arm_r0, err); setup_sigframe()
259 __put_user_error(regs->ARM_r1, &sf->uc.uc_mcontext.arm_r1, err); setup_sigframe()
260 __put_user_error(regs->ARM_r2, &sf->uc.uc_mcontext.arm_r2, err); setup_sigframe()
261 __put_user_error(regs->ARM_r3, &sf->uc.uc_mcontext.arm_r3, err); setup_sigframe()
262 __put_user_error(regs->ARM_r4, &sf->uc.uc_mcontext.arm_r4, err); setup_sigframe()
263 __put_user_error(regs->ARM_r5, &sf->uc.uc_mcontext.arm_r5, err); setup_sigframe()
264 __put_user_error(regs->ARM_r6, &sf->uc.uc_mcontext.arm_r6, err); setup_sigframe()
265 __put_user_error(regs->ARM_r7, &sf->uc.uc_mcontext.arm_r7, err); setup_sigframe()
266 __put_user_error(regs->ARM_r8, &sf->uc.uc_mcontext.arm_r8, err); setup_sigframe()
267 __put_user_error(regs->ARM_r9, &sf->uc.uc_mcontext.arm_r9, err); setup_sigframe()
268 __put_user_error(regs->ARM_r10, &sf->uc.uc_mcontext.arm_r10, err); setup_sigframe()
269 __put_user_error(regs->ARM_fp, &sf->uc.uc_mcontext.arm_fp, err); setup_sigframe()
270 __put_user_error(regs->ARM_ip, &sf->uc.uc_mcontext.arm_ip, err); setup_sigframe()
271 __put_user_error(regs->ARM_sp, &sf->uc.uc_mcontext.arm_sp, err); setup_sigframe()
272 __put_user_error(regs->ARM_lr, &sf->uc.uc_mcontext.arm_lr, err); setup_sigframe()
273 __put_user_error(regs->ARM_pc, &sf->uc.uc_mcontext.arm_pc, err); setup_sigframe()
274 __put_user_error(regs->ARM_cpsr, &sf->uc.uc_mcontext.arm_cpsr, err); setup_sigframe()
276 __put_user_error(current->thread.trap_no, &sf->uc.uc_mcontext.trap_no, err); setup_sigframe()
277 __put_user_error(current->thread.error_code, &sf->uc.uc_mcontext.error_code, err); setup_sigframe()
278 __put_user_error(current->thread.address, &sf->uc.uc_mcontext.fault_address, err); setup_sigframe()
279 __put_user_error(set->sig[0], &sf->uc.uc_mcontext.oldmask, err); setup_sigframe()
/linux-4.4.14/arch/s390/include/uapi/asm/
H A Ducontext.h23 _sigregs uc_mcontext; member in struct:ucontext_extended
34 _sigregs uc_mcontext; member in struct:ucontext
/linux-4.4.14/arch/mn10300/include/asm/
H A Ducontext.h18 struct sigcontext uc_mcontext; member in struct:ucontext
/linux-4.4.14/samples/seccomp/
H A Dbpf-direct.c72 syscall = ctx->uc_mcontext.gregs[REG_SYSCALL]; emulator()
73 buf = (char *) ctx->uc_mcontext.gregs[REG_ARG1]; emulator()
74 len = (size_t) ctx->uc_mcontext.gregs[REG_ARG2]; emulator()
78 if (ctx->uc_mcontext.gregs[REG_ARG0] != STDERR_FILENO) emulator()
81 ctx->uc_mcontext.gregs[REG_RESULT] = -1; emulator()
84 ctx->uc_mcontext.gregs[REG_RESULT] = bytes; emulator()
/linux-4.4.14/arch/powerpc/kernel/
H A Dppc32.h56 compat_uptr_t uc_regs; /* points to uc_mcontext field */
61 struct mcontext32 uc_mcontext; member in struct:ucontext32
H A Dsignal_64.c611 get_user(new_msr, &new_ctx->uc_mcontext.gp_regs[PT_MSR])) sys_swapcontext()
632 || setup_sigcontext(&old_ctx->uc_mcontext, regs, 0, NULL, 0, sys_swapcontext()
660 if (restore_sigcontext(regs, NULL, 0, &new_ctx->uc_mcontext)) sys_swapcontext()
693 if (__get_user(msr, &uc->uc_mcontext.gp_regs[PT_MSR])) sys_rt_sigreturn()
700 if (restore_tm_sigcontexts(regs, &uc->uc_mcontext, sys_rt_sigreturn()
701 &uc_transact->uc_mcontext)) sys_rt_sigreturn()
707 if (restore_sigcontext(regs, NULL, 1, &uc->uc_mcontext)) sys_rt_sigreturn()
751 err |= setup_tm_sigcontexts(&frame->uc.uc_mcontext, handle_rt_signal64()
752 &frame->uc_transact.uc_mcontext, handle_rt_signal64()
760 err |= setup_sigcontext(&frame->uc.uc_mcontext, regs, ksig->sig, handle_rt_signal64()
813 regs->gpr[4] = (unsigned long)&frame->uc.uc_mcontext; handle_rt_signal64()
H A Dsignal_32.c1013 || __put_user(to_user_ptr(&rt_sf->uc.uc_mcontext), handle_rt_signal32()
1019 frame = &rt_sf->uc.uc_mcontext; handle_rt_signal32()
1030 tm_frame = &rt_sf->uc_transact.uc_mcontext; handle_rt_signal32()
1192 * case old_ctx->uc_mcontext won't be either. sys_swapcontext()
1194 * before old_ctx->uc_mcontext, we need to round down sys_swapcontext()
1195 * from &old_ctx->uc_mcontext to a 16-byte boundary. sys_swapcontext()
1198 ((unsigned long) &old_ctx->uc_mcontext & ~0xfUL); sys_swapcontext()
/linux-4.4.14/arch/x86/include/asm/
H A Dia32.h21 struct sigcontext_32 uc_mcontext; member in struct:ucontext_ia32
H A Dsigframe.h76 struct sigcontext uc_mcontext; /* the 64-bit sigcontext type */ member in struct:ucontext_x32
/linux-4.4.14/arch/sparc/include/uapi/asm/
H A Ductx.h67 mcontext_t uc_mcontext; member in struct:ucontext
/linux-4.4.14/arch/arm64/include/uapi/asm/
H A Ducontext.h29 struct sigcontext uc_mcontext; member in struct:ucontext
/linux-4.4.14/arch/mips/include/uapi/asm/
H A Ducontext.h49 * @uc_mcontext: holds basic processor state
58 struct sigcontext uc_mcontext; member in struct:ucontext
/linux-4.4.14/tools/testing/selftests/x86/
H A Dsigreturn.c283 struct selectors *sels = (void *)&ctx->uc_mcontext.gregs[REG_CSGSFS]; ssptr()
289 struct selectors *sels = (void *)&ctx->uc_mcontext.gregs[REG_CSGSFS]; csptr()
299 return &ctx->uc_mcontext.gregs[REG_SS]; ssptr()
304 return &ctx->uc_mcontext.gregs[REG_CS]; csptr()
320 memcpy(&initial_regs, &ctx->uc_mcontext.gregs, sizeof(gregset_t)); sigusr1()
325 ctx->uc_mcontext.gregs[REG_IP] = sigusr1()
327 ctx->uc_mcontext.gregs[REG_SP] = (unsigned long)0x8badf00d5aadc0deULL; sigusr1()
328 ctx->uc_mcontext.gregs[REG_AX] = 0; sigusr1()
330 memcpy(&requested_regs, &ctx->uc_mcontext.gregs, sizeof(gregset_t)); sigusr1()
344 sig_err = ctx->uc_mcontext.gregs[REG_ERR]; sigtrap()
345 sig_trapno = ctx->uc_mcontext.gregs[REG_TRAPNO]; sigtrap()
350 greg_t asm_ss = ctx->uc_mcontext.gregs[REG_AX]; sigtrap()
358 memcpy(&resulting_regs, &ctx->uc_mcontext.gregs, sizeof(gregset_t)); sigtrap()
359 memcpy(&ctx->uc_mcontext.gregs, &initial_regs, sizeof(gregset_t)); sigtrap()
H A Dunwind_vdso.c139 unsigned long ip = ctx->uc_mcontext.gregs[REG_EIP]; sigtrap()
145 return_address = *(unsigned long *)(unsigned long)ctx->uc_mcontext.gregs[REG_ESP]; sigtrap()
155 ctx->uc_mcontext.gregs[REG_EFL] &= ~X86_EFLAGS_TF; sigtrap()
H A Dsyscall_arg_fault.c50 if (ctx->uc_mcontext.gregs[REG_EAX] != -EFAULT) { sigsegv()
52 ctx->uc_mcontext.gregs[REG_EAX]); sigsegv()
H A Dentry_from_vm86.c59 if (ctx->uc_mcontext.gregs[REG_EFL] & X86_EFLAGS_VM || sighandler()
60 (ctx->uc_mcontext.gregs[REG_CS] & 3) != 3) { sighandler()
74 (unsigned long)ctx->uc_mcontext.gregs[REG_EFL], sighandler()
75 (unsigned short)ctx->uc_mcontext.gregs[REG_CS]); sighandler()
H A Dsingle_step_syscall.c95 (unsigned long)ctx->uc_mcontext.gregs[REG_IP]); sigtrap()
/linux-4.4.14/arch/mips/kernel/
H A Dsignal_n32.c56 struct sigcontext uc_mcontext; member in struct:ucontextn32
81 sig = restore_sigcontext(&regs, &frame->rs_uc.uc_mcontext); sysn32_rt_sigreturn()
121 err |= setup_sigcontext(regs, &frame->rs_uc.uc_mcontext); setup_rt_frame_n32()
H A Dsignal32.c52 struct sigcontext32 uc_mcontext; member in struct:ucontext32
293 sig = restore_sigcontext32(&regs, &frame->rs_uc.uc_mcontext); sys32_rt_sigreturn()
373 err |= setup_sigcontext32(regs, &frame->rs_uc.uc_mcontext); setup_rt_frame_32()
H A Dsignal.c52 /* Matches struct ucontext from its uc_mcontext field onwards */
141 uc = container_of(sc, struct ucontext, uc_mcontext); sc_to_extcontext()
644 sig = restore_sigcontext(&regs, &frame->rs_uc.uc_mcontext); sys_rt_sigreturn()
724 err |= setup_sigcontext(regs, &frame->rs_uc.uc_mcontext); setup_rt_frame()
894 offsetof(struct rt_sigframe, rs_uc.uc_mcontext))); signal_setup()
/linux-4.4.14/arch/parisc/kernel/
H A Dsignal.c130 DBG(1,"sys_rt_sigreturn: compat_frame->uc.uc_mcontext 0x%p\n", sys_rt_sigreturn()
131 &compat_frame->uc.uc_mcontext); sys_rt_sigreturn()
133 if (restore_sigcontext32(&compat_frame->uc.uc_mcontext, sys_rt_sigreturn()
143 DBG(1,"sys_rt_sigreturn: frame->uc.uc_mcontext 0x%p\n", sys_rt_sigreturn()
144 &frame->uc.uc_mcontext); sys_rt_sigreturn()
145 if (restore_sigcontext(&frame->uc.uc_mcontext, regs)) sys_rt_sigreturn()
258 DBG(1,"setup_rt_frame: frame->uc.uc_mcontext = 0x%p\n", &compat_frame->uc.uc_mcontext); setup_rt_frame()
259 err |= setup_sigcontext32(&compat_frame->uc.uc_mcontext, setup_rt_frame()
270 DBG(1,"setup_rt_frame: frame->uc.uc_mcontext = 0x%p\n", &frame->uc.uc_mcontext); setup_rt_frame()
271 err |= setup_sigcontext(&frame->uc.uc_mcontext, regs, in_syscall); setup_rt_frame()
H A Dsignal32.h29 /* FIXME: Pad out to get uc_mcontext to start at an 8-byte aligned boundary */
31 struct compat_sigcontext uc_mcontext; member in struct:compat_ucontext
/linux-4.4.14/tools/testing/selftests/powerpc/primitives/
H A Dload_unaligned_zeropad.c69 #define UCONTEXT_NIA(UC) (UC)->uc_mcontext.gp_regs[PT_NIP]
71 #define UCONTEXT_NIA(UC) (UC)->uc_mcontext.uc_regs->gregs[PT_NIP]
/linux-4.4.14/arch/x86/kernel/
H A Dasm-offsets.c57 OFFSET(IA32_RT_SIGFRAME_sigcontext, rt_sigframe_ia32, uc.uc_mcontext); common()
H A Dsignal.c384 err |= setup_sigcontext(&frame->uc.uc_mcontext, fpstate, __setup_rt_frame()
443 err |= setup_sigcontext(&frame->uc.uc_mcontext, fp, regs, set->sig[0]); __setup_rt_frame()
510 err |= setup_sigcontext(&frame->uc.uc_mcontext, fpstate, x32_setup_rt_frame()
582 if (restore_sigcontext(regs, &frame->uc.uc_mcontext)) sys_rt_sigreturn()
776 if (restore_sigcontext(regs, &frame->uc.uc_mcontext)) sys32_x32_rt_sigreturn()
/linux-4.4.14/arch/nios2/kernel/
H A Dsignal.c42 unsigned long *gregs = uc->uc_mcontext.gregs; rt_restore_ucontext()
48 err = __get_user(temp, &uc->uc_mcontext.version); rt_restore_ucontext()
130 unsigned long *gregs = uc->uc_mcontext.gregs; rt_setup_ucontext()
133 err |= __put_user(MCONTEXT_VERSION, &uc->uc_mcontext.version); rt_setup_ucontext()
/linux-4.4.14/arch/sparc/kernel/
H A Dsignal_64.c60 grp = &ucp->uc_mcontext.mc_gregs; sparc64_set_context()
105 err |= __get_user(fp, &(ucp->uc_mcontext.mc_fp)); sparc64_set_context()
106 err |= __get_user(i7, &(ucp->uc_mcontext.mc_i7)); sparc64_set_context()
112 err |= __get_user(fenab, &(ucp->uc_mcontext.mc_fpregs.mcfpu_enab)); sparc64_set_context()
118 err |= __get_user(fprs, &(ucp->uc_mcontext.mc_fpregs.mcfpu_fprs)); sparc64_set_context()
121 &(ucp->uc_mcontext.mc_fpregs.mcfpu_fregs), sparc64_set_context()
125 ((unsigned long __user *)&(ucp->uc_mcontext.mc_fpregs.mcfpu_fregs))+16, sparc64_set_context()
128 &(ucp->uc_mcontext.mc_fpregs.mcfpu_fsr)); sparc64_set_context()
130 &(ucp->uc_mcontext.mc_fpregs.mcfpu_gsr)); sparc64_set_context()
164 mcp = &ucp->uc_mcontext; sparc64_get_context()
/linux-4.4.14/arch/arm/include/asm/
H A Ducontext.h20 struct sigcontext uc_mcontext; member in struct:ucontext
/linux-4.4.14/arch/tile/kernel/
H A Dcompat_signal.c42 struct sigcontext uc_mcontext; member in struct:compat_ucontext
142 if (restore_sigcontext(regs, &frame->uc.uc_mcontext)) compat_sys_rt_sigreturn()
216 err |= setup_sigcontext(&frame->uc.uc_mcontext, regs); compat_setup_rt_frame()
H A Dsignal.c91 if (restore_sigcontext(regs, &frame->uc.uc_mcontext)) SYSCALL_DEFINE0()
174 err |= setup_sigcontext(&frame->uc.uc_mcontext, regs); setup_rt_frame()
H A Dstack.c152 return (struct pt_regs *)&kframe->uc.uc_mcontext; valid_sigframe()
/linux-4.4.14/arch/arc/kernel/
H A Dsignal.c96 err = __copy_to_user(&(sf->uc.uc_mcontext.regs.scratch), &uregs.scratch, stash_usr_regs()
97 sizeof(sf->uc.uc_mcontext.regs.scratch)); stash_usr_regs()
114 &(sf->uc.uc_mcontext.regs.scratch), restore_usr_regs()
115 sizeof(sf->uc.uc_mcontext.regs.scratch)); restore_usr_regs()
239 * uc_mcontext/uc_sigmask) for kernel's normal user state preservation setup_rt_frame()
/linux-4.4.14/arch/m68k/kernel/
H A Dsignal.c359 uc->uc_mcontext.fpregs.f_fpcntl, 12)) rt_restore_fpu_state()
363 uc->uc_mcontext.fpregs.f_fpregs, 96)) rt_restore_fpu_state()
401 if (__copy_from_user(&fpregs, &uc->uc_mcontext.fpregs, rt_restore_fpu_state()
508 err |= copy_to_user(uc->uc_mcontext.fpregs.f_fpcntl, rt_save_fpu_state()
511 err |= copy_to_user(uc->uc_mcontext.fpregs.f_fpregs, rt_save_fpu_state()
559 err |= copy_to_user(&uc->uc_mcontext.fpregs, &fpregs, rt_save_fpu_state()
691 greg_t __user *gregs = uc->uc_mcontext.gregs; rt_restore_ucontext()
698 err = __get_user(temp, &uc->uc_mcontext.version); rt_restore_ucontext()
810 greg_t __user *gregs = uc->uc_mcontext.gregs; rt_setup_ucontext()
813 err |= __put_user(MCONTEXT_VERSION, &uc->uc_mcontext.version); rt_setup_ucontext()
/linux-4.4.14/arch/c6x/kernel/
H A Dsignal.c90 if (restore_sigcontext(regs, &frame->uc.uc_mcontext)) do_rt_sigreturn()
160 err |= __clear_user(&frame->uc, offsetof(struct ucontext, uc_mcontext)); setup_rt_frame()
162 err |= setup_sigcontext(&frame->uc.uc_mcontext, regs, set->sig[0]); setup_rt_frame()
/linux-4.4.14/arch/powerpc/perf/
H A Dcallchain.c271 uregs = sigframe->uc.uc_mcontext.gp_regs; perf_callchain_user_64()
380 uc.uc_mcontext.mc_pad)) is_rt_sigreturn_32_address()
407 return regs == (unsigned long) &sf->uc.uc_mcontext; sane_rt_signal_32_frame()
434 mctx = &rt_sf->uc.uc_mcontext; signal_frame_32_regs()
/linux-4.4.14/arch/mn10300/kernel/
H A Dasm-offsets.c87 OFFSET(RT_SIGFRAME_sigcontext, rt_sigframe, uc.uc_mcontext); foo()
H A Dsignal.c140 if (restore_sigcontext(current_frame(), &frame->uc.uc_mcontext, &d0)) sys_rt_sigreturn()
284 setup_sigcontext(&frame->uc.uc_mcontext, setup_rt_frame()
/linux-4.4.14/arch/score/kernel/
H A Dsignal.c154 sig = restore_sigcontext(regs, &frame->rs_uc.uc_mcontext); score_rt_sigreturn()
201 err |= setup_sigcontext(regs, &frame->rs_uc.uc_mcontext); setup_rt_frame()
/linux-4.4.14/arch/metag/kernel/
H A Dsignal.c88 if (restore_sigcontext(regs, &frame->uc.uc_mcontext)) sys_rt_sigreturn()
168 err |= setup_sigcontext(&frame->uc.uc_mcontext, setup_rt_frame()
/linux-4.4.14/arch/h8300/kernel/
H A Dsignal.c119 if (restore_sigcontext(&frame->uc.uc_mcontext, &er0)) sys_rt_sigreturn()
177 err |= setup_sigcontext(&frame->uc.uc_mcontext, regs, set->sig[0]); setup_rt_frame()
/linux-4.4.14/arch/hexagon/kernel/
H A Dsignal.c128 err |= setup_sigcontext(regs, &frame->uc.uc_mcontext); setup_rt_frame()
252 if (restore_sigcontext(regs, &frame->uc.uc_mcontext)) sys_rt_sigreturn()
/linux-4.4.14/arch/m32r/kernel/
H A Dsignal.c104 if (restore_sigcontext(regs, &frame->uc.uc_mcontext, &result)) sys_rt_sigreturn()
196 err |= setup_sigcontext(&frame->uc.uc_mcontext, regs, set->sig[0]); setup_rt_frame()
/linux-4.4.14/arch/avr32/kernel/
H A Dsignal.c85 if (restore_sigcontext(regs, &frame->uc.uc_mcontext)) sys_rt_sigreturn()
169 err |= setup_sigcontext(&frame->uc.uc_mcontext, regs); setup_rt_frame()
/linux-4.4.14/arch/blackfin/kernel/
H A Dsignal.c95 if (rt_restore_sigcontext(regs, &frame->uc.uc_mcontext, &r0)) sys_rt_sigreturn()
164 err |= rt_setup_sigcontext(&frame->uc.uc_mcontext, regs); setup_rt_frame()
/linux-4.4.14/arch/alpha/kernel/
H A Dsignal.c140 [offsetof(struct rt_sigframe, uc.uc_mcontext) == 176 ? 1 : -1];
249 if (restore_sigcontext(&frame->uc.uc_mcontext, regs)) do_rt_sigreturn()
400 err |= setup_sigcontext(&frame->uc.uc_mcontext, regs, setup_rt_frame()
/linux-4.4.14/arch/cris/arch-v10/kernel/
H A Dsignal.c161 if (restore_sigcontext(regs, &frame->uc.uc_mcontext)) sys_rt_sigreturn()
296 err |= __clear_user(&frame->uc, offsetof(struct ucontext, uc_mcontext)); setup_rt_frame()
298 err |= setup_sigcontext(&frame->uc.uc_mcontext, regs, set->sig[0]); setup_rt_frame()
/linux-4.4.14/arch/cris/arch-v32/kernel/
H A Dsignal.c154 if (restore_sigcontext(regs, &frame->uc.uc_mcontext)) sys_rt_sigreturn()
300 err |= __clear_user(&frame->uc, offsetof(struct ucontext, uc_mcontext)); setup_rt_frame()
301 err |= setup_sigcontext(&frame->uc.uc_mcontext, regs, set->sig[0]); setup_rt_frame()
/linux-4.4.14/arch/s390/kernel/
H A Dsignal.c84 * | _sigregs uc_mcontext with |
250 if (restore_sigregs(regs, &frame->uc.uc_mcontext)) SYSCALL_DEFINE0()
417 save_sigregs(regs, &frame->uc.uc_mcontext) || setup_rt_frame()
H A Dcompat_linux.h79 _sigregs32 uc_mcontext; member in struct:ucontext32
H A Dcompat_signal.c330 if (restore_sigregs32(regs, &frame->uc.uc_mcontext)) COMPAT_SYSCALL_DEFINE0()
509 save_sigregs32(regs, &frame->uc.uc_mcontext) || setup_rt_frame32()
/linux-4.4.14/tools/testing/selftests/powerpc/mm/
H A Dsubpage_prot.c40 struct pt_regs *regs = ctxt->uc_mcontext.regs; segv()
/linux-4.4.14/arch/x86/ia32/
H A Dia32_signal.c156 if (ia32_restore_sigcontext(regs, &frame->uc.uc_mcontext)) sys32_rt_sigreturn()
382 err |= ia32_setup_sigcontext(&frame->uc.uc_mcontext, fpstate, ia32_setup_rt_frame()
/linux-4.4.14/arch/microblaze/kernel/
H A Dsignal.c102 if (restore_sigcontext(regs, &frame->uc.uc_mcontext, &rval)) sys_rt_sigreturn()
179 err |= setup_sigcontext(&frame->uc.uc_mcontext, setup_rt_frame()
/linux-4.4.14/arch/openrisc/kernel/
H A Dsignal.c93 if (restore_sigcontext(regs, &frame->uc.uc_mcontext)) _sys_rt_sigreturn()
175 err |= setup_sigcontext(regs, &frame->uc.uc_mcontext); setup_rt_frame()
/linux-4.4.14/arch/frv/kernel/
H A Dsignal.c124 if (restore_sigcontext(&frame->uc.uc_mcontext, &gr8)) sys_rt_sigreturn()
271 if (setup_sigcontext(&frame->uc.uc_mcontext, set->sig[0])) setup_rt_frame()
/linux-4.4.14/arch/sh/kernel/
H A Dsignal_64.c307 if (restore_sigcontext(regs, &frame->uc.uc_mcontext, &ret)) sys_rt_sigreturn()
486 err |= setup_sigcontext(&frame->uc.uc_mcontext, setup_rt_frame()
532 regs->regs[REG_ARG3] = (unsigned long long)(unsigned long)(signed long)&frame->uc.uc_mcontext; setup_rt_frame()
H A Dsignal_32.c199 if (restore_sigcontext(regs, &frame->uc.uc_mcontext, &r0)) sys_rt_sigreturn()
348 err |= setup_sigcontext(&frame->uc.uc_mcontext, setup_rt_frame()
/linux-4.4.14/arch/xtensa/kernel/
H A Dsignal.c137 struct sigcontext __user *sc = &frame->uc.uc_mcontext; setup_sigcontext()
176 struct sigcontext __user *sc = &frame->uc.uc_mcontext; restore_sigcontext()
/linux-4.4.14/arch/um/os-Linux/
H A Dsignal.c144 mcontext_t *mc = &uc->uc_mcontext; hard_handler()

Completed in 519 milliseconds