Home
last modified time | relevance | path

Searched refs:__put_user (Results 1 – 25 of 67) sorted by relevance

123

/arch/alpha/kernel/
Dsignal.c81 __put_user(old_ka.sa.sa_handler, &oact->sa_handler) || in SYSCALL_DEFINE3()
82 __put_user(old_ka.sa.sa_flags, &oact->sa_flags) || in SYSCALL_DEFINE3()
83 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask)) in SYSCALL_DEFINE3()
278 err |= __put_user(on_sig_stack((unsigned long)sc), &sc->sc_onstack); in setup_sigcontext()
279 err |= __put_user(mask, &sc->sc_mask); in setup_sigcontext()
280 err |= __put_user(regs->pc, &sc->sc_pc); in setup_sigcontext()
281 err |= __put_user(8, &sc->sc_ps); in setup_sigcontext()
283 err |= __put_user(regs->r0 , sc->sc_regs+0); in setup_sigcontext()
284 err |= __put_user(regs->r1 , sc->sc_regs+1); in setup_sigcontext()
285 err |= __put_user(regs->r2 , sc->sc_regs+2); in setup_sigcontext()
[all …]
/arch/nios2/kernel/
Dsignal.c134 err |= __put_user(MCONTEXT_VERSION, &uc->uc_mcontext.version); in rt_setup_ucontext()
135 err |= __put_user(regs->r1, &gregs[0]); in rt_setup_ucontext()
136 err |= __put_user(regs->r2, &gregs[1]); in rt_setup_ucontext()
137 err |= __put_user(regs->r3, &gregs[2]); in rt_setup_ucontext()
138 err |= __put_user(regs->r4, &gregs[3]); in rt_setup_ucontext()
139 err |= __put_user(regs->r5, &gregs[4]); in rt_setup_ucontext()
140 err |= __put_user(regs->r6, &gregs[5]); in rt_setup_ucontext()
141 err |= __put_user(regs->r7, &gregs[6]); in rt_setup_ucontext()
142 err |= __put_user(regs->r8, &gregs[7]); in rt_setup_ucontext()
143 err |= __put_user(regs->r9, &gregs[8]); in rt_setup_ucontext()
[all …]
Dmisaligned.c111 fault |= __put_user(d0, (u8 *)(addr+0)); in handle_unaligned_c()
112 fault |= __put_user(d1, (u8 *)(addr+1)); in handle_unaligned_c()
133 fault |= __put_user(d0, (u8 *)(addr+0)); in handle_unaligned_c()
134 fault |= __put_user(d1, (u8 *)(addr+1)); in handle_unaligned_c()
135 fault |= __put_user(d2, (u8 *)(addr+2)); in handle_unaligned_c()
136 fault |= __put_user(d3, (u8 *)(addr+3)); in handle_unaligned_c()
/arch/parisc/kernel/
Dsignal32.c135 err |= __put_user(compat_reg, &sc->sc_iaoq[0]); in setup_sigcontext32()
141 err |= __put_user(compat_reg, &rf->rf_iaoq[0]); in setup_sigcontext32()
146 err |= __put_user(compat_reg, &sc->sc_iaoq[1]); in setup_sigcontext32()
151 err |= __put_user(compat_reg, &rf->rf_iaoq[1]); in setup_sigcontext32()
156 err |= __put_user(compat_reg, &sc->sc_iasq[0]); in setup_sigcontext32()
157 err |= __put_user(compat_reg, &sc->sc_iasq[1]); in setup_sigcontext32()
161 err |= __put_user(compat_reg, &rf->rf_iasq[0]); in setup_sigcontext32()
162 err |= __put_user(compat_reg, &rf->rf_iasq[1]); in setup_sigcontext32()
172 err |= __put_user(compat_reg, &sc->sc_iaoq[0]); in setup_sigcontext32()
177 err |= __put_user(compat_reg, &rf->rf_iaoq[0]); in setup_sigcontext32()
[all …]
/arch/hexagon/kernel/
Dsignal.c43 err |= __put_user(regs->sa0, &sc->sc_regs.sa0); in setup_sigcontext()
44 err |= __put_user(regs->lc0, &sc->sc_regs.lc0); in setup_sigcontext()
45 err |= __put_user(regs->sa1, &sc->sc_regs.sa1); in setup_sigcontext()
46 err |= __put_user(regs->lc1, &sc->sc_regs.lc1); in setup_sigcontext()
47 err |= __put_user(regs->m0, &sc->sc_regs.m0); in setup_sigcontext()
48 err |= __put_user(regs->m1, &sc->sc_regs.m1); in setup_sigcontext()
49 err |= __put_user(regs->usr, &sc->sc_regs.usr); in setup_sigcontext()
50 err |= __put_user(regs->preds, &sc->sc_regs.p3_0); in setup_sigcontext()
51 err |= __put_user(regs->gp, &sc->sc_regs.gp); in setup_sigcontext()
52 err |= __put_user(regs->ugp, &sc->sc_regs.ugp); in setup_sigcontext()
[all …]
/arch/sparc/kernel/
Dsignal_64.c104 err |= __put_user(fp, in sparc64_set_context()
106 err |= __put_user(i7, in sparc64_set_context()
174 err |= __put_user(current->blocked.sig[0], in sparc64_get_context()
180 err |= __put_user(regs->tstate, &((*grp)[MC_TSTATE])); in sparc64_get_context()
181 err |= __put_user(regs->tpc, &((*grp)[MC_PC])); in sparc64_get_context()
182 err |= __put_user(regs->tnpc, &((*grp)[MC_NPC])); in sparc64_get_context()
183 err |= __put_user(regs->y, &((*grp)[MC_Y])); in sparc64_get_context()
184 err |= __put_user(regs->u_regs[UREG_G1], &((*grp)[MC_G1])); in sparc64_get_context()
185 err |= __put_user(regs->u_regs[UREG_G2], &((*grp)[MC_G2])); in sparc64_get_context()
186 err |= __put_user(regs->u_regs[UREG_G3], &((*grp)[MC_G3])); in sparc64_get_context()
[all …]
Dsignal32.c394 err |= __put_user(regs->tnpc, &sf->info.si_regs.npc); in setup_frame32()
395 err |= __put_user(regs->y, &sf->info.si_regs.y); in setup_frame32()
399 err |= __put_user(psr, &sf->info.si_regs.psr); in setup_frame32()
401 err |= __put_user(regs->u_regs[i], &sf->info.si_regs.u_regs[i]); in setup_frame32()
402 err |= __put_user(sizeof(siginfo_extra_v8plus_t), &sf->extra_size); in setup_frame32()
403 err |= __put_user(SIGINFO_EXTRA_V8PLUS_MAGIC, &sf->v8plus.g_upper[0]); in setup_frame32()
405 err |= __put_user(((u32 *)regs->u_regs)[2*i], in setup_frame32()
407 err |= __put_user((regs->tstate & TSTATE_ASI) >> 24UL, in setup_frame32()
414 err |= __put_user((u64)fp, &sf->fpu_save); in setup_frame32()
416 err |= __put_user(0, &sf->fpu_save); in setup_frame32()
[all …]
Dsignal_32.c256 err |= __put_user(0, &sf->extra_size); in setup_frame()
262 err |= __put_user(fp, &sf->fpu_save); in setup_frame()
264 err |= __put_user(0, &sf->fpu_save); in setup_frame()
270 err |= __put_user(rwp, &sf->rwin_save); in setup_frame()
272 err |= __put_user(0, &sf->rwin_save); in setup_frame()
275 err |= __put_user(oldset->sig[0], &sf->info.si_mask); in setup_frame()
307 err |= __put_user(0x821020d8, &sf->insns[0]); in setup_frame()
310 err |= __put_user(0x91d02010, &sf->insns[1]); in setup_frame()
344 err = __put_user(regs->pc, &sf->regs.pc); in setup_rt_frame()
345 err |= __put_user(regs->npc, &sf->regs.npc); in setup_rt_frame()
[all …]
Dsigutil_64.c28 err |= __put_user(current_thread_info()->xfsr[0], &fpu->si_fsr); in save_fpu_state()
29 err |= __put_user(current_thread_info()->gsr[0], &fpu->si_gsr); in save_fpu_state()
30 err |= __put_user(fprs, &fpu->si_fprs); in save_fpu_state()
61 int i, err = __put_user(wsaved, &rwin->wsaved); in save_rwin_state()
69 err |= __put_user(fp, &rwin->rwbuf_stkptrs[i]); in save_rwin_state()
Dsigutil_32.c38 err |= __put_user(current->thread.fsr, &fpu->si_fsr); in save_fpu_state()
39 err |= __put_user(current->thread.fpqdepth, &fpu->si_fpqdepth); in save_fpu_state()
85 int i, err = __put_user(wsaved, &rwin->wsaved); in save_rwin_state()
95 err |= __put_user(fp, &rwin->rwbuf_stkptrs[i]); in save_rwin_state()
/arch/ia64/kernel/
Dsignal.c38 # define PUT_SIGSET(k,u) __put_user((k)->sig[0], &(u)->sig[0])
186 err |= __put_user(flags, &sc->sc_flags); in setup_sigcontext()
187 err |= __put_user(nat, &sc->sc_nat); in setup_sigcontext()
189 err |= __put_user(cfm, &sc->sc_cfm); in setup_sigcontext()
190 err |= __put_user(scr->pt.cr_ipsr & IA64_PSR_UM, &sc->sc_um); in setup_sigcontext()
191 err |= __put_user(scr->pt.ar_rsc, &sc->sc_ar_rsc); in setup_sigcontext()
192 err |= __put_user(scr->pt.ar_unat, &sc->sc_ar_unat); /* ar.unat */ in setup_sigcontext()
193 err |= __put_user(scr->pt.ar_fpsr, &sc->sc_ar_fpsr); /* ar.fpsr */ in setup_sigcontext()
194 err |= __put_user(scr->pt.ar_pfs, &sc->sc_ar_pfs); in setup_sigcontext()
195 err |= __put_user(scr->pt.pr, &sc->sc_pr); /* predicates */ in setup_sigcontext()
[all …]
/arch/mips/kernel/
Dsignal.c81 __put_user(get_fpr64(&current->thread.fpu.fpr[i], 0), in copy_fp_to_sigcontext()
84 err |= __put_user(current->thread.fpu.fcr31, csr); in copy_fp_to_sigcontext()
187 err = __put_user(read_msa_csr(), &msa->csr); in save_msa_extcontext()
194 err = __put_user(current->thread.fpu.msacsr, &msa->csr); in save_msa_extcontext()
198 err |= __put_user(val, &msa->wr[i]); in save_msa_extcontext()
202 err |= __put_user(MSA_EXTCONTEXT_MAGIC, &msa->ext.magic); in save_msa_extcontext()
203 err |= __put_user(sizeof(*msa), &msa->ext.size); in save_msa_extcontext()
279 if (__put_user(END_EXTCONTEXT_MAGIC, (u32 *)buf)) in save_extcontext()
361 err = __put_user(0, &fpregs[0]) | in protected_save_fp_context()
362 __put_user(0, &fpregs[31]) | in protected_save_fp_context()
[all …]
Dsignal32.c66 err |= __put_user(old_ka.sa.sa_flags, &oact->sa_flags);
67 err |= __put_user((u32)(u64)old_ka.sa.sa_handler,
69 err |= __put_user(old_ka.sa.sa_mask.sig[0], oact->sa_mask.sig);
70 err |= __put_user(0, &oact->sa_mask.sig[1]);
71 err |= __put_user(0, &oact->sa_mask.sig[2]);
72 err |= __put_user(0, &oact->sa_mask.sig[3]);
Dsignal_o32.c58 err |= __put_user(regs->cp0_epc, &sc->sc_pc); in setup_sigcontext32()
60 err |= __put_user(0, &sc->sc_regs[0]); in setup_sigcontext32()
62 err |= __put_user(regs->regs[i], &sc->sc_regs[i]); in setup_sigcontext32()
64 err |= __put_user(regs->hi, &sc->sc_mdhi); in setup_sigcontext32()
65 err |= __put_user(regs->lo, &sc->sc_mdlo); in setup_sigcontext32()
67 err |= __put_user(rddsp(DSP_MASK), &sc->sc_dsp); in setup_sigcontext32()
68 err |= __put_user(mfhi1(), &sc->sc_hi1); in setup_sigcontext32()
69 err |= __put_user(mflo1(), &sc->sc_lo1); in setup_sigcontext32()
70 err |= __put_user(mfhi2(), &sc->sc_hi2); in setup_sigcontext32()
71 err |= __put_user(mflo2(), &sc->sc_lo2); in setup_sigcontext32()
[all …]
Dptrace.c85 __put_user((long)regs->regs[i], (__s64 __user *)&data->regs[i]); in ptrace_getregs()
86 __put_user((long)regs->lo, (__s64 __user *)&data->lo); in ptrace_getregs()
87 __put_user((long)regs->hi, (__s64 __user *)&data->hi); in ptrace_getregs()
88 __put_user((long)regs->cp0_epc, (__s64 __user *)&data->cp0_epc); in ptrace_getregs()
89 __put_user((long)regs->cp0_badvaddr, (__s64 __user *)&data->cp0_badvaddr); in ptrace_getregs()
90 __put_user((long)regs->cp0_status, (__s64 __user *)&data->cp0_status); in ptrace_getregs()
91 __put_user((long)regs->cp0_cause, (__s64 __user *)&data->cp0_cause); in ptrace_getregs()
144 __put_user(style, &addr->style); in ptrace_get_watch_regs()
145 __put_user(boot_cpu_data.watch_reg_use_cnt, in ptrace_get_watch_regs()
148 __put_user(child->thread.watch.mips3264.watchlo[i], in ptrace_get_watch_regs()
[all …]
/arch/loongarch/kernel/
Dsignal.c113 __put_user(get_fpr64(&current->thread.fpu.fpr[i], 0), in copy_fpu_to_sigcontext()
116 err |= __put_user(current->thread.fpu.fcc, fcc); in copy_fpu_to_sigcontext()
117 err |= __put_user(current->thread.fpu.fcsr, fcsr); in copy_fpu_to_sigcontext()
150 err |= __put_user(get_fpr64(&current->thread.fpu.fpr[i], 0), in copy_lsx_to_sigcontext()
152 err |= __put_user(get_fpr64(&current->thread.fpu.fpr[i], 1), in copy_lsx_to_sigcontext()
155 err |= __put_user(current->thread.fpu.fcc, fcc); in copy_lsx_to_sigcontext()
156 err |= __put_user(current->thread.fpu.fcsr, fcsr); in copy_lsx_to_sigcontext()
191 err |= __put_user(get_fpr64(&current->thread.fpu.fpr[i], 0), in copy_lasx_to_sigcontext()
193 err |= __put_user(get_fpr64(&current->thread.fpu.fpr[i], 1), in copy_lasx_to_sigcontext()
195 err |= __put_user(get_fpr64(&current->thread.fpu.fpr[i], 2), in copy_lasx_to_sigcontext()
[all …]
/arch/m68k/kernel/
Dsignal.c507 err |= __put_user(*(long *)fpstate, (long __user *)&uc->uc_fpstate); in rt_save_fpu_state()
836 err |= __put_user(MCONTEXT_VERSION, &uc->uc_mcontext.version); in rt_setup_ucontext()
837 err |= __put_user(regs->d0, &gregs[0]); in rt_setup_ucontext()
838 err |= __put_user(regs->d1, &gregs[1]); in rt_setup_ucontext()
839 err |= __put_user(regs->d2, &gregs[2]); in rt_setup_ucontext()
840 err |= __put_user(regs->d3, &gregs[3]); in rt_setup_ucontext()
841 err |= __put_user(regs->d4, &gregs[4]); in rt_setup_ucontext()
842 err |= __put_user(regs->d5, &gregs[5]); in rt_setup_ucontext()
843 err |= __put_user(sw->d6, &gregs[6]); in rt_setup_ucontext()
844 err |= __put_user(sw->d7, &gregs[7]); in rt_setup_ucontext()
[all …]
/arch/sh/kernel/
Dsignal_32.c98 return __put_user(0, &sc->sc_ownedfp); in save_sigcontext_fpu()
100 if (__put_user(1, &sc->sc_ownedfp)) in save_sigcontext_fpu()
226 #define COPY(x) err |= __put_user(regs->x, &sc->sc_##x) in setup_sigcontext()
245 err |= __put_user(mask, &sc->oldmask); in setup_sigcontext()
296 err |= __put_user(MOVW(7), &frame->retcode[0]); in setup_frame()
297 err |= __put_user(TRAP_NOARG, &frame->retcode[1]); in setup_frame()
298 err |= __put_user(OR_R0_R0, &frame->retcode[2]); in setup_frame()
299 err |= __put_user(OR_R0_R0, &frame->retcode[3]); in setup_frame()
300 err |= __put_user(OR_R0_R0, &frame->retcode[4]); in setup_frame()
301 err |= __put_user(OR_R0_R0, &frame->retcode[5]); in setup_frame()
[all …]
/arch/xtensa/kernel/
Dsignal.c150 #define COPY(x) err |= __put_user(regs->x, &sc->sc_##x) in setup_sigcontext()
161 err |= __put_user(0, &sc->sc_xtregs); in setup_sigcontext()
176 err |= __put_user(err ? NULL : &frame->xtregs, &sc->sc_xtregs); in setup_sigcontext()
310 err |= __put_user(0x22, &codemem[0]); in gen_return_code()
311 err |= __put_user(0x0a, &codemem[1]); in gen_return_code()
312 err |= __put_user(__NR_rt_sigreturn, &codemem[2]); in gen_return_code()
314 err |= __put_user(0x00, &codemem[3]); in gen_return_code()
315 err |= __put_user(0x05, &codemem[4]); in gen_return_code()
316 err |= __put_user(0x00, &codemem[5]); in gen_return_code()
320 err |= __put_user(0x22, &codemem[0]); in gen_return_code()
[all …]
/arch/x86/um/
Dsignal.c108 if (__put_user(*f, t) || in convert_fxsr_to_user()
109 __put_user(*(f + 1), t + 1) || in convert_fxsr_to_user()
110 __put_user(from->exponent, &to->exponent)) in convert_fxsr_to_user()
308 err |= __put_user(fpx.swd, &to_fp->fpstate.status); in copy_sc_to_user()
309 err |= __put_user(X86_FXSR_MAGIC, &to_fp->fpstate.magic); in copy_sc_to_user()
378 err |= __put_user(restorer, &frame->pretcode); in setup_signal_stack_sc()
379 err |= __put_user(sig, &frame->sig); in setup_signal_stack_sc()
392 err |= __put_user(0xb858, (short __user *)(frame->retcode+0)); in setup_signal_stack_sc()
393 err |= __put_user(__NR_sigreturn, (int __user *)(frame->retcode+2)); in setup_signal_stack_sc()
394 err |= __put_user(0x80cd, (short __user *)(frame->retcode+6)); in setup_signal_stack_sc()
[all …]
/arch/powerpc/kernel/
Dsignal_64.c240 err |= __put_user(v_regs, &sc->v_regs); in setup_tm_sigcontexts()
241 err |= __put_user(tm_v_regs, &tm_sc->v_regs); in setup_tm_sigcontexts()
270 err |= __put_user(tsk->thread.ckvrsave, (u32 __user *)&v_regs[33]); in setup_tm_sigcontexts()
272 err |= __put_user(tsk->thread.vrsave, in setup_tm_sigcontexts()
275 err |= __put_user(tsk->thread.ckvrsave, in setup_tm_sigcontexts()
279 err |= __put_user(0, &sc->v_regs); in setup_tm_sigcontexts()
280 err |= __put_user(0, &tm_sc->v_regs); in setup_tm_sigcontexts()
314 err |= __put_user(&sc->gp_regs, &sc->regs); in setup_tm_sigcontexts()
315 err |= __put_user(&tm_sc->gp_regs, &tm_sc->regs); in setup_tm_sigcontexts()
319 err |= __put_user(msr, &tm_sc->gp_regs[PT_MSR]); in setup_tm_sigcontexts()
[all …]
/arch/openrisc/kernel/
Dsignal.c173 err |= __put_user(0, &frame->uc.uc_flags); in setup_rt_frame()
174 err |= __put_user(NULL, &frame->uc.uc_link); in setup_rt_frame()
189 err |= __put_user(0xa960, (short __user *)(frame->retcode + 0)); in setup_rt_frame()
190 err |= __put_user(__NR_rt_sigreturn, (short __user *)(frame->retcode + 2)); in setup_rt_frame()
191 err |= __put_user(0x20000001, (unsigned long __user *)(frame->retcode + 4)); in setup_rt_frame()
192 err |= __put_user(0x15000000, (unsigned long __user *)(frame->retcode + 8)); in setup_rt_frame()
/arch/riscv/kernel/
Dsignal.c97 err |= __put_user(datap, &state->v_state.datap); in save_v_state()
101 err |= __put_user(RISCV_V_MAGIC, &hdr->magic); in save_v_state()
102 err |= __put_user(riscv_v_sc_size, &hdr->size); in save_v_state()
289 err |= __put_user(0, &sc->sc_extdesc.reserved); in setup_sigcontext()
291 err |= __put_user(END_MAGIC, &sc_ext_ptr->magic); in setup_sigcontext()
292 err |= __put_user(END_HDR_SIZE, &sc_ext_ptr->size); in setup_sigcontext()
335 err |= __put_user(0, &frame->uc.uc_flags); in setup_rt_frame()
336 err |= __put_user(NULL, &frame->uc.uc_link); in setup_rt_frame()
/arch/microblaze/kernel/
Dsignal.c123 #define COPY(x) {err |= __put_user(regs->x, &sc->regs.x); } in setup_sigcontext()
137 err |= __put_user(mask, &sc->oldmask); in setup_sigcontext()
172 err |= __put_user(0, &frame->uc.uc_flags); in setup_rt_frame()
173 err |= __put_user(NULL, &frame->uc.uc_link); in setup_rt_frame()
183 err |= __put_user(0x31800000 | __NR_rt_sigreturn , in setup_rt_frame()
186 err |= __put_user(0xb9cc0008, frame->tramp + 1); in setup_rt_frame()
/arch/arm/kernel/
Dsignal.c295 err |= __put_user(0, &aux->end_magic); in setup_sigframe()
389 if (__put_user(sigreturn_codes[idx], rc ) || in setup_return()
390 __put_user(sigreturn_codes[idx+1], rc+1) || in setup_return()
391 __put_user(sigreturn_codes[idx+2], rc+2) || in setup_return()
392 __put_user(retcode, rc+3)) in setup_return()
405 if (__put_user(sigreturn_codes[idx], rc) || in setup_return()
406 __put_user(sigreturn_codes[idx+1], rc+1)) in setup_return()
458 err = __put_user(0x5ac3c35a, &frame->uc.uc_flags); in setup_frame()
478 err |= __put_user(0, &frame->sig.uc.uc_flags); in setup_rt_frame()
479 err |= __put_user(NULL, &frame->sig.uc.uc_link); in setup_rt_frame()

123