Home
last modified time | relevance | path

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

12

/arch/openrisc/kernel/
Dsys_or32.c33 asmlinkage long _sys_clone(unsigned long clone_flags, unsigned long newsp, in _sys_clone() argument
42 if (!newsp) in _sys_clone()
43 newsp = regs->sp; in _sys_clone()
45 ret = do_fork(clone_flags, newsp, regs, 0, parent_tid, child_tid); in _sys_clone()
/arch/hexagon/kernel/
Dsyscall.c57 asmlinkage int sys_clone(unsigned long clone_flags, unsigned long newsp, in sys_clone() argument
62 if (!newsp) in sys_clone()
63 newsp = pregs->SP; in sys_clone()
64 return do_fork(clone_flags, newsp, pregs, 0, (int __user *)parent_tidp, in sys_clone()
/arch/score/kernel/
Dsys_score.c66 unsigned long newsp; in score_clone() local
70 newsp = regs->regs[5]; in score_clone()
71 if (!newsp) in score_clone()
72 newsp = regs->regs[0]; in score_clone()
76 return do_fork(clone_flags, newsp, regs, 0, in score_clone()
/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.c34 unsigned long oldsp, newsp; in get_sigframe() local
45 newsp = (oldsp - frame_size) & ~0xFUL; in get_sigframe()
48 if (!access_ok(VERIFY_WRITE, (void __user *)newsp, oldsp - newsp)) in get_sigframe()
51 return (void __user *)newsp; in get_sigframe()
Dsignal_64.c403 unsigned long newsp = 0; in handle_rt_signal64() local
444 newsp = ((unsigned long)frame) - __SIGNAL_FRAMESIZE; in handle_rt_signal64()
445 err |= put_user(regs->gpr[1], (unsigned long __user *)newsp); in handle_rt_signal64()
451 regs->gpr[1] = newsp; in handle_rt_signal64()
470 regs, frame, newsp); in handle_rt_signal64()
/arch/unicore32/kernel/
Dsys.c34 asmlinkage long __sys_clone(unsigned long clone_flags, unsigned long newsp, in __sys_clone() argument
38 if (!newsp) in __sys_clone()
39 newsp = regs->UCreg_sp; in __sys_clone()
41 return do_fork(clone_flags, newsp, regs, 0, in __sys_clone()
/arch/arm/kernel/
Dsys_arm.c47 asmlinkage int sys_clone(unsigned long clone_flags, unsigned long newsp, in sys_clone() argument
51 if (!newsp) in sys_clone()
52 newsp = regs->ARM_sp; in sys_clone()
54 return do_fork(clone_flags, newsp, regs, 0, parent_tidptr, child_tidptr); in sys_clone()
/arch/x86/um/
Dsyscalls_32.c22 long sys_clone(unsigned long clone_flags, unsigned long newsp, in sys_clone() argument
27 if (!newsp) in sys_clone()
28 newsp = UPT_SP(&current->thread.regs.regs); in sys_clone()
31 ret = do_fork(clone_flags, newsp, &current->thread.regs, 0, parent_tid, in sys_clone()
Dsyscalls_64.c82 long sys_clone(unsigned long clone_flags, unsigned long newsp, in sys_clone() argument
87 if (!newsp) in sys_clone()
88 newsp = UPT_SP(&current->thread.regs.regs); in sys_clone()
90 ret = do_fork(clone_flags, newsp, &current->thread.regs, 0, parent_tid, in sys_clone()
/arch/h8300/kernel/
Dprocess.c182 unsigned long newsp; in h8300_clone() local
186 newsp = regs->er2; in h8300_clone()
187 if (!newsp) in h8300_clone()
188 newsp = rdusp(); in h8300_clone()
189 return do_fork(clone_flags, newsp, regs, 0, NULL, NULL); in h8300_clone()
/arch/c6x/kernel/
Dprocess.c164 unsigned long newsp; in SYSCALL_DEFINE1() local
169 newsp = regs->b4; in SYSCALL_DEFINE1()
171 newsp = regs->sp; in SYSCALL_DEFINE1()
173 return do_fork(clone_flags, newsp, regs, 0, (int __user *)regs->a6, in SYSCALL_DEFINE1()
/arch/mips/kernel/
Dsyscall.c103 unsigned long newsp; in _sys_clone() local
107 newsp = regs.regs[5]; in _sys_clone()
108 if (!newsp) in _sys_clone()
109 newsp = regs.regs[29]; in _sys_clone()
126 return do_fork(clone_flags, newsp, &regs, 0, in _sys_clone()
Dlinux32.c324 unsigned long newsp; in _sys32_clone() local
328 newsp = regs.regs[5]; in _sys32_clone()
329 if (!newsp) in _sys32_clone()
330 newsp = regs.regs[29]; in _sys32_clone()
336 return do_fork(clone_flags, newsp, &regs, 0, in _sys32_clone()
/arch/m68k/kernel/
Dprocess.c207 unsigned long newsp; in m68k_clone() local
212 newsp = regs->d2; in m68k_clone()
215 if (!newsp) in m68k_clone()
216 newsp = rdusp(); in m68k_clone()
217 return do_fork(clone_flags, newsp, regs, 0, in m68k_clone()
/arch/m32r/kernel/
Dprocess.c258 asmlinkage int sys_clone(unsigned long clone_flags, unsigned long newsp, in sys_clone() argument
264 if (!newsp) in sys_clone()
265 newsp = regs.spu; in sys_clone()
267 return do_fork(clone_flags, newsp, &regs, 0, in sys_clone()
/arch/frv/kernel/
Dprocess.c162 asmlinkage int sys_clone(unsigned long clone_flags, unsigned long newsp, in sys_clone() argument
166 if (!newsp) in sys_clone()
167 newsp = user_stack(__frame); in sys_clone()
168 return do_fork(clone_flags, newsp, __frame, 0, parent_tidptr, child_tidptr); 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/sh/kernel/
Dprocess_32.c263 asmlinkage int sys_clone(unsigned long clone_flags, unsigned long newsp, in sys_clone() argument
269 if (!newsp) in sys_clone()
270 newsp = regs->regs[15]; in sys_clone()
271 return do_fork(clone_flags, newsp, regs, 0, in sys_clone()
/arch/blackfin/kernel/
Dprocess.c171 unsigned long newsp; in bfin_clone() local
180 newsp = regs->r1; in bfin_clone()
181 if (!newsp) in bfin_clone()
182 newsp = rdusp(); in bfin_clone()
184 newsp -= 12; in bfin_clone()
185 return do_fork(clone_flags, newsp, regs, 0, NULL, NULL); in bfin_clone()
/arch/s390/kernel/
Dprocess.c217 SYSCALL_DEFINE4(clone, unsigned long, newsp, unsigned long, clone_flags, in SYSCALL_DEFINE4() argument
222 if (!newsp) in SYSCALL_DEFINE4()
223 newsp = regs->gprs[15]; in SYSCALL_DEFINE4()
224 return do_fork(clone_flags, newsp, regs, 0, in SYSCALL_DEFINE4()
/arch/hexagon/include/asm/
Dsyscall.h30 asmlinkage int sys_clone(unsigned long clone_flags, unsigned long newsp,
/arch/sh/include/asm/
Dsyscalls_64.h16 asmlinkage int sys_clone(unsigned long clone_flags, unsigned long newsp,
/arch/avr32/kernel/
Dprocess.c369 asmlinkage int sys_clone(unsigned long clone_flags, unsigned long newsp, in sys_clone() argument
373 if (!newsp) in sys_clone()
374 newsp = regs->sp; in sys_clone()
375 return do_fork(clone_flags, newsp, regs, 0, parent_tidptr, in sys_clone()
/arch/tile/include/asm/
Dsyscalls.h68 long _sys_clone(unsigned long clone_flags, unsigned long newsp,

12