Home
last modified time | relevance | path

Searched refs:usp (Results 1 – 25 of 66) sorted by relevance

123

/arch/c6x/kernel/
Dprocess.c86 void start_thread(struct pt_regs *regs, unsigned int pc, unsigned long usp) in start_thread() argument
96 usp -= 8; in start_thread()
99 regs->sp = usp; in start_thread()
101 current->thread.usp = usp; in start_thread()
107 int copy_thread(unsigned long clone_flags, unsigned long usp, in copy_thread() argument
120 childregs->a0 = usp; /* function */ in copy_thread()
125 if (usp) in copy_thread()
126 childregs->sp = usp; in copy_thread()
131 p->thread.usp = childregs->sp; in copy_thread()
141 if (usp == -1) in copy_thread()
/arch/m68k/include/asm/
Dprocessor.h22 register unsigned long usp __asm__("a0"); in rdusp()
24 __asm__ __volatile__(".word 0x4e68" : "=a" (usp)); in rdusp()
25 return usp; in rdusp()
29 static inline void wrusp(unsigned long usp) in wrusp() argument
33 sw_usp = usp; in wrusp()
35 register unsigned long a0 __asm__("a0") = usp; in wrusp()
80 unsigned long usp; /* user stack pointer */ member
112 unsigned long usp) in start_thread() argument
117 wrusp(usp); in start_thread()
137 #define KSTK_ESP(tsk) ((tsk) == current ? rdusp() : (tsk)->thread.usp)
/arch/parisc/kernel/
Dprocess.c211 copy_thread_tls(unsigned long clone_flags, unsigned long usp, in copy_thread_tls() argument
226 if (!usp) /* idle thread */ in copy_thread_tls()
238 cregs->gr[27] = ((unsigned long *)usp)[3]; in copy_thread_tls()
239 cregs->gr[26] = ((unsigned long *)usp)[2]; in copy_thread_tls()
241 cregs->gr[26] = usp; in copy_thread_tls()
249 if (usp) { in copy_thread_tls()
250 usp = ALIGN(usp, 4); in copy_thread_tls()
251 if (likely(usp)) in copy_thread_tls()
252 cregs->gr[30] = usp; in copy_thread_tls()
Dsignal.c92 unsigned long usp = (regs->gr[30] & ~(0x01UL)); in sys_rt_sigreturn() local
105 (usp - sigframe_size); in sys_rt_sigreturn()
136 usp, &compat_frame->uc.uc_stack); in sys_rt_sigreturn()
147 usp, &frame->uc.uc_stack); in sys_rt_sigreturn()
232 unsigned long rp, usp; in setup_rt_frame() local
240 usp = (regs->gr[30] & ~(0x01UL)); in setup_rt_frame()
242 frame = get_sigframe(&ksig->ka, usp, sizeof(*frame)); in setup_rt_frame()
522 unsigned int *usp = (unsigned int *)regs->gr[30]; in insert_restart_trampoline() local
523 unsigned long start = (unsigned long) &usp[2]; in insert_restart_trampoline()
524 unsigned long end = (unsigned long) &usp[5]; in insert_restart_trampoline()
[all …]
/arch/mips/lib/
Duncached.c43 long usp; in run_uncached() local
46 usp = CKSEG1ADDR(sp); in run_uncached()
50 usp = PHYS_TO_XKPHYS(K_CALG_UNCACHED, in run_uncached()
55 usp = sp; in run_uncached()
76 : "r" (usp), "r" (ufunc) in run_uncached()
/arch/h8300/include/asm/
Dprocessor.h27 static inline void wrusp(unsigned long usp) in wrusp() argument
31 _sw_usp = usp; in wrusp()
53 unsigned long usp; /* user stack pointer */ member
64 .usp = 0, \
118 #define KSTK_ESP(tsk) ((tsk) == current ? rdusp() : (tsk)->thread.usp)
/arch/sparc/include/asm/
Dcompat.h149 unsigned long usp = regs->u_regs[UREG_I6]; in arch_compat_alloc_user_space() local
151 if (test_thread_64bit_stack(usp)) in arch_compat_alloc_user_space()
152 usp += STACK_BIAS; in arch_compat_alloc_user_space()
155 usp &= 0xffffffffUL; in arch_compat_alloc_user_space()
157 usp -= len; in arch_compat_alloc_user_space()
158 usp &= ~0x7UL; in arch_compat_alloc_user_space()
160 return (void __user *) usp; in arch_compat_alloc_user_space()
/arch/csky/kernel/
Dprocess.c38 unsigned long usp, in copy_thread() argument
59 childstack->r9 = usp; in copy_thread()
63 if (usp) in copy_thread()
64 childregs->usp = usp; in copy_thread()
Dsignal.c74 frame = (struct rt_sigframe __user *)regs->usp; in SYSCALL_DEFINE0()
114 sp = regs->usp; in get_sigframe()
148 err |= __save_altstack(&frame->uc.uc_stack, regs->usp); in setup_rt_frame()
165 regs->usp = (unsigned long)frame; in setup_rt_frame()
/arch/arc/kernel/
Dprocess.c175 unsigned long usp, unsigned long kthread_arg, in copy_thread() argument
207 c_callee->r14 = usp; /* function */ in copy_thread()
221 if (usp) in copy_thread()
222 c_regs->sp = usp; in copy_thread()
267 void start_thread(struct pt_regs * regs, unsigned long pc, unsigned long usp) in start_thread() argument
269 regs->sp = usp; in start_thread()
/arch/microblaze/kernel/
Dprocess.c57 int copy_thread(unsigned long clone_flags, unsigned long usp, in copy_thread() argument
69 ti->cpu_context.r20 = (unsigned long)usp; /* fn */ in copy_thread()
80 if (usp) in copy_thread()
81 childregs->r1 = usp; in copy_thread()
129 void start_thread(struct pt_regs *regs, unsigned long pc, unsigned long usp) in start_thread() argument
132 regs->r1 = usp; in start_thread()
/arch/h8300/kernel/
Dprocess.c110 unsigned long usp, unsigned long topstk, in copy_thread() argument
121 childregs->er5 = usp; /* fn */ in copy_thread()
126 p->thread.usp = usp ?: rdusp(); in copy_thread()
Dsignal.c79 unsigned int usp; in restore_sigcontext() local
98 err |= __get_user(usp, &usc->sc_usp); in restore_sigcontext()
99 regs->sp = usp; in restore_sigcontext()
108 unsigned long usp = rdusp(); in sys_rt_sigreturn() local
109 struct rt_sigframe *frame = (struct rt_sigframe *)(usp - 4); in sys_rt_sigreturn()
/arch/hexagon/kernel/
Dprocess.c53 int copy_thread(unsigned long clone_flags, unsigned long usp, in copy_thread() argument
79 ss->r24 = usp; in copy_thread()
87 if (usp) in copy_thread()
88 pt_set_rte_sp(childregs, usp); in copy_thread()
/arch/c6x/include/asm/
Dprocessor.h48 unsigned long usp; /* user stack pointer */ member
55 .usp = 0, \
74 unsigned long usp);
/arch/openrisc/kernel/
Dprocess.c151 copy_thread(unsigned long clone_flags, unsigned long usp, in copy_thread() argument
173 kregs->gpr[20] = usp; /* fn, kernel thread */ in copy_thread()
178 if (usp) in copy_thread()
179 userregs->sp = usp; in copy_thread()
/arch/m68k/kernel/
Dprocess.c122 int copy_thread(unsigned long clone_flags, unsigned long usp, in copy_thread() argument
145 frame->sw.a3 = usp; /* function */ in copy_thread()
148 p->thread.usp = 0; in copy_thread()
155 p->thread.usp = usp ?: rdusp(); in copy_thread()
/arch/riscv/kernel/
Dprocess.c102 int copy_thread_tls(unsigned long clone_flags, unsigned long usp, in copy_thread_tls() argument
116 p->thread.s[0] = usp; /* fn */ in copy_thread_tls()
120 if (usp) /* User fork */ in copy_thread_tls()
121 childregs->sp = usp; in copy_thread_tls()
/arch/alpha/kernel/
Dprocess.c238 copy_thread(unsigned long clone_flags, unsigned long usp, in copy_thread() argument
259 childstack->r9 = usp; /* function */ in copy_thread()
262 childti->pcb.usp = 0; in copy_thread()
274 childti->pcb.usp = usp ?: rdusp(); in copy_thread()
324 dest[30] = ti == current_thread_info() ? rdusp() : ti->pcb.usp; in dump_elf_thread()
/arch/mips/include/asm/
Dsyscall.h60 unsigned long usp __maybe_unused = regs->regs[29]; in mips_get_syscall_arg()
70 get_user(*arg, (int *)usp + n); in mips_get_syscall_arg()
78 get_user(*arg, (int *)usp + n); in mips_get_syscall_arg()
/arch/xtensa/kernel/
Dprocess.c223 unsigned long usp = usp_thread_fn ? in copy_thread_tls() local
234 childregs->areg[1] = usp; in copy_thread_tls()
253 if (regs->areg[1] == usp && len != 0) { in copy_thread_tls()
257 (unsigned __user*)(usp - 12)); in copy_thread_tls()
/arch/sh/kernel/
Dprocess_32.c118 int copy_thread(unsigned long clone_flags, unsigned long usp, in copy_thread() argument
144 childregs->regs[5] = usp; in copy_thread()
156 if (usp) in copy_thread()
157 childregs->regs[15] = usp; in copy_thread()
/arch/csky/include/asm/
Dprocessor.h70 (_regs)->usp = (_usp); \
95 #define KSTK_ESP(tsk) (task_pt_regs(tsk)->usp)
/arch/powerpc/include/asm/
Dcompat.h119 unsigned long usp = regs->gpr[1]; in arch_compat_alloc_user_space() local
127 usp -= USER_REDZONE_SIZE; in arch_compat_alloc_user_space()
129 return (void __user *) (usp - len); in arch_compat_alloc_user_space()
/arch/nios2/kernel/
Dprocess.c104 unsigned long usp, unsigned long arg, struct task_struct *p) in copy_thread() argument
116 childstack->r16 = usp; /* fn */ in copy_thread()
138 if (usp) in copy_thread()
139 childregs->sp = usp; in copy_thread()

123