Home
last modified time | relevance | path

Searched refs:retcode (Results 1 – 24 of 24) sorted by relevance

/arch/sh/kernel/
Dsignal_32.c65 u16 retcode[8]; member
72 u16 retcode[8]; member
292 err |= __put_user(MOVW(7), &frame->retcode[0]); in setup_frame()
293 err |= __put_user(TRAP_NOARG, &frame->retcode[1]); in setup_frame()
294 err |= __put_user(OR_R0_R0, &frame->retcode[2]); in setup_frame()
295 err |= __put_user(OR_R0_R0, &frame->retcode[3]); in setup_frame()
296 err |= __put_user(OR_R0_R0, &frame->retcode[4]); in setup_frame()
297 err |= __put_user(OR_R0_R0, &frame->retcode[5]); in setup_frame()
298 err |= __put_user(OR_R0_R0, &frame->retcode[6]); in setup_frame()
299 err |= __put_user((__NR_sigreturn), &frame->retcode[7]); in setup_frame()
[all …]
Dsignal_64.c132 long long retcode[2]; member
140 long long retcode[2]; member
423 frame->retcode | 0x01); in setup_frame()
425 if (__copy_to_user(frame->retcode, in setup_frame()
515 frame->retcode | 0x01); in setup_rt_frame()
517 if (__copy_to_user(frame->retcode, in setup_rt_frame()
/arch/frv/kernel/
Dsignal.c45 uint32_t retcode[2]; member
56 uint32_t retcode[2]; member
207 if (__put_user((__sigrestore_t)frame->retcode, &frame->pretcode) || in setup_frame()
208 __put_user(0x8efc0000|__NR_sigreturn, &frame->retcode[0]) || in setup_frame()
209 __put_user(0xc0700000, &frame->retcode[1])) in setup_frame()
212 flush_icache_range((unsigned long) frame->retcode, in setup_frame()
213 (unsigned long) (frame->retcode + 2)); in setup_frame()
231 __frame->lr = (unsigned long) &frame->retcode; in setup_frame()
288 if (__put_user((__sigrestore_t)frame->retcode, &frame->pretcode) || in setup_rt_frame()
289 __put_user(0x8efc0000|__NR_rt_sigreturn, &frame->retcode[0]) || in setup_rt_frame()
[all …]
/arch/mn10300/kernel/
Dsignal.c231 if (__put_user((void (*)(void))frame->retcode, in setup_frame()
235 if (__put_user(0x2c, (char *)(frame->retcode + 0)) || in setup_frame()
236 __put_user(__NR_sigreturn, (char *)(frame->retcode + 1)) || in setup_frame()
237 __put_user(0x00, (char *)(frame->retcode + 2)) || in setup_frame()
238 __put_user(0xf0, (char *)(frame->retcode + 3)) || in setup_frame()
239 __put_user(0xe0, (char *)(frame->retcode + 4))) in setup_frame()
241 flush_icache_range((unsigned long) frame->retcode, in setup_frame()
242 (unsigned long) frame->retcode + 5); in setup_frame()
296 if (__put_user((void(*)(void))frame->retcode, in setup_rt_frame()
299 __put_user(0x2c, (char *)(frame->retcode + 0)) || in setup_rt_frame()
[all …]
Dsigframe.h20 char retcode[8]; member
32 char retcode[8]; member
/arch/cris/arch-v10/kernel/
Dsignal.c51 unsigned char retcode[8]; /* trampoline code */ member
59 unsigned char retcode[8]; /* trampoline code */ member
254 return_ip = (unsigned long)&frame->retcode; in setup_frame()
256 err |= __put_user(0x9c5f, (short __user*)(frame->retcode+0)); in setup_frame()
257 err |= __put_user(__NR_sigreturn, (short __user*)(frame->retcode+2)); in setup_frame()
258 err |= __put_user(0xe93d, (short __user*)(frame->retcode+4)); in setup_frame()
313 return_ip = (unsigned long)&frame->retcode; in setup_rt_frame()
315 err |= __put_user(0x9c5f, (short __user *)(frame->retcode+0)); in setup_rt_frame()
317 (short __user *)(frame->retcode+2)); in setup_rt_frame()
318 err |= __put_user(0xe93d, (short __user *)(frame->retcode+4)); in setup_rt_frame()
/arch/c6x/kernel/
Dsignal.c34 unsigned long retcode[RETCODE_SIZE >> 2]; member
147 unsigned long __user *retcode; in setup_rt_frame() local
166 retcode = (unsigned long __user *) &frame->retcode; in setup_rt_frame()
169 #define COPY(x) (err |= __put_user(x, retcode++)) in setup_rt_frame()
187 flush_icache_range((unsigned long) &frame->retcode, in setup_rt_frame()
188 (unsigned long) &frame->retcode + RETCODE_SIZE); in setup_rt_frame()
190 retcode = (unsigned long __user *) &frame->retcode; in setup_rt_frame()
194 regs->b3 = (unsigned long) retcode; in setup_rt_frame()
/arch/openrisc/kernel/
Dsignal.c40 unsigned char retcode[16]; /* trampoline code */ member
183 return_ip = (unsigned long)&frame->retcode; in setup_rt_frame()
188 err |= __put_user(0xa960, (short *)(frame->retcode + 0)); in setup_rt_frame()
189 err |= __put_user(__NR_rt_sigreturn, (short *)(frame->retcode + 2)); in setup_rt_frame()
190 err |= __put_user(0x20000001, (unsigned long *)(frame->retcode + 4)); in setup_rt_frame()
191 err |= __put_user(0x15000000, (unsigned long *)(frame->retcode + 8)); in setup_rt_frame()
/arch/x86/include/asm/
Dsigframe.h40 char retcode[8]; member
55 char retcode[8]; member
/arch/cris/arch-v32/kernel/
Dsignal.c39 unsigned char retcode[8]; /* Trampoline code. */ member
47 unsigned char retcode[8]; /* Trampoline code. */ member
254 err |= __put_user(0x9c5f, (short __user*)(frame->retcode+0)); in setup_frame()
255 err |= __put_user(__NR_sigreturn, (short __user*)(frame->retcode+2)); in setup_frame()
256 err |= __put_user(0xe93d, (short __user*)(frame->retcode+4)); in setup_frame()
325 err |= __put_user(0x9c5f, (short __user*)(frame->retcode+0)); in setup_rt_frame()
328 (short __user*)(frame->retcode+2)); in setup_rt_frame()
330 err |= __put_user(0xe93d, (short __user*)(frame->retcode+4)); in setup_rt_frame()
/arch/sparc/math-emu/
Dmath_32.c164 int retcode = 0; /* assume all succeed */ in do_mathemu() local
182 retcode = do_one_mathemu(insn, &fpt->thread.fsr, fpt->thread.float_regs); in do_mathemu()
183 if (retcode) { in do_mathemu()
189 return retcode; in do_mathemu()
194 retcode = do_one_mathemu(fpt->thread.fpqueue[i].insn, &(fpt->thread.fsr), fpt->thread.float_regs); in do_mathemu()
195 if (!retcode) /* insn failed, no point doing any more */ in do_mathemu()
199 if (retcode) in do_mathemu()
205 return retcode; in do_mathemu()
/arch/metag/kernel/
Dsignal.c42 unsigned long retcode[2]; member
179 err |= __put_user(code, (unsigned long __user *)(&frame->retcode[0])); in setup_rt_frame()
183 err |= __put_user(code, (unsigned long __user *)(&frame->retcode[1])); in setup_rt_frame()
189 regs->REG_RTP = (unsigned long) frame->retcode; in setup_rt_frame()
203 flush_cache_sigtramp(regs->REG_RTP, sizeof(frame->retcode)); in setup_rt_frame()
/arch/alpha/kernel/
Dsignal.c126 unsigned int retcode[3]; member
133 unsigned int retcode[3]; member
356 err |= __put_user(INSN_MOV_R30_R16, frame->retcode+0); in setup_frame()
357 err |= __put_user(INSN_LDI_R0+__NR_sigreturn, frame->retcode+1); in setup_frame()
358 err |= __put_user(INSN_CALLSYS, frame->retcode+2); in setup_frame()
360 r26 = (unsigned long) frame->retcode; in setup_frame()
410 err |= __put_user(INSN_MOV_R30_R16, frame->retcode+0); in setup_rt_frame()
412 frame->retcode+1); in setup_rt_frame()
413 err |= __put_user(INSN_CALLSYS, frame->retcode+2); in setup_rt_frame()
415 r26 = (unsigned long) frame->retcode; in setup_rt_frame()
/arch/x86/um/
Dsignal.c358 char retcode[8]; member
370 char retcode[8]; member
386 restorer = frame->retcode; in setup_signal_stack_sc()
404 err |= __put_user(0xb858, (short __user *)(frame->retcode+0)); in setup_signal_stack_sc()
405 err |= __put_user(__NR_sigreturn, (int __user *)(frame->retcode+2)); in setup_signal_stack_sc()
406 err |= __put_user(0x80cd, (short __user *)(frame->retcode+6)); in setup_signal_stack_sc()
431 restorer = frame->retcode; in setup_signal_stack_si()
450 err |= __put_user(0xb8, (char __user *)(frame->retcode+0)); in setup_signal_stack_si()
451 err |= __put_user(__NR_rt_sigreturn, (int __user *)(frame->retcode+1)); in setup_signal_stack_si()
452 err |= __put_user(0x80cd, (short __user *)(frame->retcode+5)); in setup_signal_stack_si()
/arch/arm/kernel/
Dsignal.c134 unsigned long retcode[2]; member
335 unsigned long retcode; in setup_return() local
376 retcode = (unsigned long)ksig->ka.sa.sa_restorer; in setup_return()
400 retcode = mm->context.sigpage + signal_return_offset + in setup_return()
412 retcode = ((unsigned long)rc) + thumb; in setup_return()
418 regs->ARM_lr = retcode; in setup_return()
441 err = setup_return(regs, ksig, frame->retcode, frame); in setup_frame()
463 err = setup_return(regs, ksig, frame->sig.retcode, frame); in setup_rt_frame()
/arch/h8300/kernel/
Dsignal.c66 unsigned char retcode[8]; member
183 ret = frame->retcode; in setup_rt_frame()
189 (unsigned long *)(frame->retcode + 0)); in setup_rt_frame()
191 (unsigned short *)(frame->retcode + 4)); in setup_rt_frame()
/arch/m68k/kernel/
Dsignal.c248 char retcode[8]; member
259 char retcode[8]; member
880 err |= __put_user(frame->retcode, &frame->pretcode); in setup_frame()
883 (long __user *)(frame->retcode)); in setup_frame()
891 push_cache ((unsigned long) &frame->retcode); in setup_frame()
960 err |= __put_user(frame->retcode, &frame->pretcode); in setup_rt_frame()
963 err |= __put_user(0x203c0000, (long __user *)(frame->retcode + 0)); in setup_rt_frame()
965 (long __user *)(frame->retcode + 4)); in setup_rt_frame()
969 (long __user *)(frame->retcode + 0)); in setup_rt_frame()
970 err |= __put_user(0x4e40, (short __user *)(frame->retcode + 4)); in setup_rt_frame()
[all …]
/arch/avr32/kernel/
Dsignal.c28 unsigned long retcode; member
161 &frame->retcode); in setup_rt_frame()
184 regs->lr = (unsigned long) &frame->retcode; in setup_rt_frame()
/arch/arm64/kernel/
Dsignal32.c96 compat_ulong_t retcode[2]; member
465 compat_ulong_t retcode; in compat_setup_return() local
484 retcode = ptr_to_compat(ka->sa.sa_restorer); in compat_setup_return()
492 retcode = AARCH32_VECTORS_BASE + in compat_setup_return()
499 regs->compat_lr = retcode; in compat_setup_return()
570 compat_setup_return(regs, &ksig->ka, frame->sig.retcode, frame, usig); in compat_setup_rt_frame()
593 compat_setup_return(regs, &ksig->ka, frame->retcode, frame, usig); in compat_setup_frame()
/arch/unicore32/kernel/
Dsignal.c47 unsigned long retcode[2]; member
218 unsigned long retcode; in setup_return() local
230 retcode = KERN_SIGRETURN_CODE + (idx << 2); in setup_return()
234 regs->UCreg_lr = retcode; in setup_return()
257 err |= setup_return(regs, &ksig->ka, frame->retcode, frame, in setup_frame()
280 err |= setup_return(regs, &ksig->ka, frame->sig.retcode, frame, in setup_rt_frame()
/arch/xtensa/kernel/
Dsignal.c45 unsigned char retcode[6]; member
374 err |= gen_return_code(frame->retcode); in setup_frame()
379 ra = (unsigned long) frame->retcode; in setup_frame()
/arch/x86/ia32/
Dia32_signal.c299 restorer = &frame->retcode; in ia32_setup_frame()
309 put_user_ex(*((u64 *)&code), (u64 __user *)frame->retcode); in ia32_setup_frame()
383 put_user_ex(*((u64 *)&code), (u64 __user *)frame->retcode); in ia32_setup_rt_frame()
/arch/x86/kernel/
Dsignal.c258 } __attribute__((packed)) retcode = { variable
306 restorer = &frame->retcode; in __setup_frame()
320 err |= __put_user(*((u64 *)&retcode), (u64 *)frame->retcode); in __setup_frame()
380 put_user_ex(*((u64 *)&rt_retcode), (u64 *)frame->retcode); in __setup_rt_frame()
/arch/blackfin/kernel/
Dsignal.c35 char retcode[8]; member