Home
last modified time | relevance | path

Searched refs:newsp (Results 1 – 25 of 31) sorted by relevance

12

/arch/powerpc/kernel/
Dstacktrace.c27 unsigned long newsp, ip; in save_context_stack() local
32 newsp = stack[0]; in save_context_stack()
45 sp = newsp; in save_context_stack()
Dsignal.c31 unsigned long oldsp, newsp; in get_sigframe() local
42 newsp = (oldsp - frame_size) & ~0xFUL; in get_sigframe()
45 if (!access_ok(VERIFY_WRITE, (void __user *)newsp, oldsp - newsp)) in get_sigframe()
48 return (void __user *)newsp; in get_sigframe()
Dsignal_64.c402 unsigned long newsp = 0; in handle_rt_signal64() local
443 newsp = ((unsigned long)frame) - __SIGNAL_FRAMESIZE; in handle_rt_signal64()
444 err |= put_user(regs->gpr[1], (unsigned long __user *)newsp); in handle_rt_signal64()
450 regs->gpr[1] = newsp; in handle_rt_signal64()
469 regs, frame, newsp); in handle_rt_signal64()
Dsignal_32.c835 unsigned long newsp = 0; in handle_rt_signal32() local
873 newsp = ((unsigned long)rt_sf) - (__SIGNAL_FRAMESIZE + 16); in handle_rt_signal32()
875 if (put_user(regs->gpr[1], (u32 __user *)newsp)) in handle_rt_signal32()
879 regs->gpr[1] = newsp; in handle_rt_signal32()
893 regs, frame, newsp); in handle_rt_signal32()
1182 unsigned long newsp = 0; in handle_signal32() local
1217 newsp = ((unsigned long)frame) - __SIGNAL_FRAMESIZE; in handle_signal32()
1218 if (put_user(regs->gpr[1], (u32 __user *)newsp)) in handle_signal32()
1221 regs->gpr[1] = newsp; in handle_signal32()
1234 regs, frame, newsp); in handle_signal32()
/arch/um/sys-x86_64/
Dsyscalls.c96 long sys_clone(unsigned long clone_flags, unsigned long newsp, in sys_clone() argument
101 if (!newsp) in sys_clone()
102 newsp = UPT_SP(&current->thread.regs.regs); in sys_clone()
104 ret = do_fork(clone_flags, newsp, &current->thread.regs, 0, parent_tid, in sys_clone()
/arch/h8300/kernel/
Dprocess.c183 unsigned long newsp; in h8300_clone() local
187 newsp = regs->er2; in h8300_clone()
188 if (!newsp) in h8300_clone()
189 newsp = rdusp(); in h8300_clone()
190 return do_fork(clone_flags, newsp, regs, 0, NULL, NULL); in h8300_clone()
/arch/blackfin/kernel/
Dprocess.c176 unsigned long newsp; in bfin_clone() local
187 newsp = regs->r1; in bfin_clone()
188 if (!newsp) in bfin_clone()
189 newsp = rdusp(); in bfin_clone()
191 newsp -= 12; in bfin_clone()
192 return do_fork(clone_flags, newsp, regs, 0, NULL, NULL); in bfin_clone()
/arch/m68k/kernel/
Dprocess.c222 unsigned long newsp; in m68k_clone() local
227 newsp = regs->d2; in m68k_clone()
230 if (!newsp) in m68k_clone()
231 newsp = rdusp(); in m68k_clone()
232 return do_fork(clone_flags, newsp, regs, 0, in m68k_clone()
/arch/s390/kernel/
Dprocess.c239 unsigned long newsp; in SYSCALL_DEFINE0() local
243 newsp = regs->orig_gpr2; in SYSCALL_DEFINE0()
246 if (!newsp) in SYSCALL_DEFINE0()
247 newsp = regs->gprs[15]; in SYSCALL_DEFINE0()
248 return do_fork(clone_flags, newsp, regs, 0, in SYSCALL_DEFINE0()
/arch/um/sys-i386/
Dsyscalls.c73 long sys_clone(unsigned long clone_flags, unsigned long newsp, in sys_clone() argument
78 if (!newsp) in sys_clone()
79 newsp = UPT_SP(&current->thread.regs.regs); in sys_clone()
82 ret = do_fork(clone_flags, newsp, &current->thread.regs, 0, parent_tid, in sys_clone()
/arch/m32r/kernel/
Dprocess.c257 asmlinkage int sys_clone(unsigned long clone_flags, unsigned long newsp, in sys_clone() argument
263 if (!newsp) in sys_clone()
264 newsp = regs.spu; in sys_clone()
266 return do_fork(clone_flags, newsp, &regs, 0, in sys_clone()
/arch/xtensa/kernel/
Dprocess.c306 long xtensa_clone(unsigned long clone_flags, unsigned long newsp, in xtensa_clone() argument
311 if (!newsp) in xtensa_clone()
312 newsp = regs->areg[1]; in xtensa_clone()
313 return do_fork(clone_flags, newsp, regs, 0, parent_tid, child_tid); in xtensa_clone()
/arch/m68knommu/kernel/
Dprocess.c192 unsigned long newsp; in m68k_clone() local
196 newsp = regs->d2; in m68k_clone()
197 if (!newsp) in m68k_clone()
198 newsp = rdusp(); in m68k_clone()
199 return do_fork(clone_flags, newsp, regs, 0, NULL, NULL); in m68k_clone()
/arch/frv/kernel/
Dprocess.c184 asmlinkage int sys_clone(unsigned long clone_flags, unsigned long newsp, in sys_clone() argument
188 if (!newsp) in sys_clone()
189 newsp = user_stack(__frame); in sys_clone()
190 return do_fork(clone_flags, newsp, __frame, 0, parent_tidptr, child_tidptr); in sys_clone()
Dkernel_thread.S41 sethi.p #0xe4e4,gr9 ; second syscall arg [newsp]
/arch/arm/kernel/
Dsys_arm.c230 asmlinkage int sys_clone(unsigned long clone_flags, unsigned long newsp, in sys_clone() argument
234 if (!newsp) in sys_clone()
235 newsp = regs->ARM_sp; in sys_clone()
237 return do_fork(clone_flags, newsp, regs, 0, parent_tidptr, child_tidptr); in sys_clone()
/arch/mips/kernel/
Dsyscall.c193 unsigned long newsp; in _sys_clone() local
197 newsp = regs.regs[5]; in _sys_clone()
198 if (!newsp) in _sys_clone()
199 newsp = regs.regs[29]; in _sys_clone()
216 return do_fork(clone_flags, newsp, &regs, 0, in _sys_clone()
Dlinux32.c451 unsigned long newsp; in _sys32_clone() local
455 newsp = regs.regs[5]; in _sys32_clone()
456 if (!newsp) in _sys32_clone()
457 newsp = regs.regs[29]; in _sys32_clone()
463 return do_fork(clone_flags, newsp, &regs, 0, in _sys32_clone()
/arch/sh/kernel/
Dprocess_32.c308 asmlinkage int sys_clone(unsigned long clone_flags, unsigned long newsp, in sys_clone() argument
314 if (!newsp) in sys_clone()
315 newsp = regs->regs[15]; in sys_clone()
316 return do_fork(clone_flags, newsp, regs, 0, in sys_clone()
Dprocess_64.c484 asmlinkage int sys_clone(unsigned long clone_flags, unsigned long newsp, in sys_clone() argument
489 if (!newsp) in sys_clone()
490 newsp = pregs->regs[15]; in sys_clone()
491 return do_fork(clone_flags, newsp, pregs, 0, 0, 0); in sys_clone()
/arch/avr32/kernel/
Dprocess.c368 asmlinkage int sys_clone(unsigned long clone_flags, unsigned long newsp, in sys_clone() argument
372 if (!newsp) in sys_clone()
373 newsp = regs->sp; in sys_clone()
374 return do_fork(clone_flags, newsp, regs, 0, in sys_clone()
/arch/sh/include/asm/
Dsyscalls_64.h16 asmlinkage int sys_clone(unsigned long clone_flags, unsigned long newsp,
Dsyscalls_32.h15 asmlinkage int sys_clone(unsigned long clone_flags, unsigned long newsp,
/arch/x86/kernel/
Dprocess_32.c604 unsigned long newsp; in sys_clone() local
608 newsp = regs.cx; in sys_clone()
611 if (!newsp) in sys_clone()
612 newsp = regs.sp; in sys_clone()
613 return do_fork(clone_flags, newsp, &regs, 0, parent_tidptr, child_tidptr); in sys_clone()
/arch/mn10300/kernel/
Dprocess.c252 asmlinkage long sys_clone(unsigned long clone_flags, unsigned long newsp, in sys_clone() argument
256 return do_fork(clone_flags, newsp ?: __frame->sp, __frame, 0, in sys_clone()

12