/Linux-v5.15/arch/m68k/include/asm/ |
D | processor.h | 21 register unsigned long usp __asm__("a0"); in rdusp() 23 __asm__ __volatile__(".word 0x4e68" : "=a" (usp)); in rdusp() 24 return usp; in rdusp() 28 static inline void wrusp(unsigned long usp) in wrusp() argument 32 sw_usp = usp; in wrusp() 34 register unsigned long a0 __asm__("a0") = usp; in wrusp() 105 unsigned long usp; /* user stack pointer */ member 137 unsigned long usp) in start_thread() argument 142 wrusp(usp); in start_thread() 162 #define KSTK_ESP(tsk) ((tsk) == current ? rdusp() : (tsk)->thread.usp)
|
/Linux-v5.15/arch/parisc/kernel/ |
D | process.c | 188 copy_thread(unsigned long clone_flags, unsigned long usp, in copy_thread() argument 203 if (!usp) /* idle thread */ in copy_thread() 215 cregs->gr[27] = ((unsigned long *)usp)[3]; in copy_thread() 216 cregs->gr[26] = ((unsigned long *)usp)[2]; in copy_thread() 218 cregs->gr[26] = usp; in copy_thread() 226 if (usp) { in copy_thread() 227 usp = ALIGN(usp, 4); in copy_thread() 228 if (likely(usp)) in copy_thread() 229 cregs->gr[30] = usp; in copy_thread()
|
D | signal.c | 91 unsigned long usp = (regs->gr[30] & ~(0x01UL)); in sys_rt_sigreturn() local 104 (usp - sigframe_size); in sys_rt_sigreturn() 135 usp, &compat_frame->uc.uc_stack); in sys_rt_sigreturn() 146 usp, &frame->uc.uc_stack); in sys_rt_sigreturn() 231 unsigned long rp, usp; in setup_rt_frame() local 239 usp = (regs->gr[30] & ~(0x01UL)); in setup_rt_frame() 244 usp = (compat_uint_t)usp; in setup_rt_frame() 248 frame = get_sigframe(&ksig->ka, usp, sigframe_size); in setup_rt_frame() 514 unsigned int *usp = (unsigned int *)regs->gr[30]; in insert_restart_trampoline() local 515 unsigned long start = (unsigned long) &usp[2]; in insert_restart_trampoline() [all …]
|
/Linux-v5.15/arch/mips/lib/ |
D | uncached.c | 42 long usp; in run_uncached() local 48 usp = CKSEG1ADDR(sp); in run_uncached() 52 usp = PHYS_TO_XKPHYS(K_CALG_UNCACHED, in run_uncached() 57 usp = sp; in run_uncached() 78 : "r" (usp), "r" (ufunc) in run_uncached()
|
/Linux-v5.15/arch/csky/kernel/ |
D | process.c | 34 unsigned long usp, in copy_thread() argument 56 childstack->r9 = usp; in copy_thread() 60 if (usp) in copy_thread() 61 childregs->usp = usp; in copy_thread()
|
D | signal.c | 78 frame = (struct rt_sigframe __user *)regs->usp; in SYSCALL_DEFINE0() 118 sp = regs->usp; in get_sigframe() 151 err |= __save_altstack(&frame->uc.uc_stack, regs->usp); in setup_rt_frame() 169 regs->usp = (unsigned long)frame; in setup_rt_frame()
|
D | atomic.S | 28 mfcr a3, usp 57 mtcr a3, usp
|
/Linux-v5.15/arch/h8300/include/asm/ |
D | processor.h | 27 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)
|
/Linux-v5.15/arch/arc/kernel/ |
D | process.c | 165 int copy_thread(unsigned long clone_flags, unsigned long usp, in copy_thread() argument 198 c_callee->r14 = usp; /* function */ in copy_thread() 212 if (usp) in copy_thread() 213 c_regs->sp = usp; in copy_thread() 258 void start_thread(struct pt_regs *regs, unsigned long pc, unsigned long usp) in start_thread() argument 260 regs->sp = usp; in start_thread()
|
/Linux-v5.15/arch/microblaze/kernel/ |
D | process.c | 56 int copy_thread(unsigned long clone_flags, unsigned long usp, unsigned long arg, in copy_thread() argument 68 ti->cpu_context.r20 = (unsigned long)usp; /* fn */ in copy_thread() 77 if (usp) in copy_thread() 78 childregs->r1 = usp; in copy_thread() 122 void start_thread(struct pt_regs *regs, unsigned long pc, unsigned long usp) in start_thread() argument 125 regs->r1 = usp; in start_thread()
|
/Linux-v5.15/arch/hexagon/kernel/ |
D | process.c | 53 int copy_thread(unsigned long clone_flags, unsigned long usp, unsigned long arg, 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()
|
/Linux-v5.15/arch/h8300/kernel/ |
D | process.c | 108 int copy_thread(unsigned long clone_flags, unsigned long usp, in copy_thread() argument 119 childregs->er5 = usp; /* fn */ in copy_thread() 124 p->thread.usp = usp ?: rdusp(); in copy_thread()
|
D | signal.c | 78 unsigned int usp; in restore_sigcontext() local 97 err |= __get_user(usp, &usc->sc_usp); in restore_sigcontext() 98 regs->sp = usp; in restore_sigcontext() 107 unsigned long usp = rdusp(); in sys_rt_sigreturn() local 108 struct rt_sigframe *frame = (struct rt_sigframe *)(usp - 4); in sys_rt_sigreturn()
|
/Linux-v5.15/arch/alpha/kernel/ |
D | process.c | 236 int copy_thread(unsigned long clone_flags, unsigned long usp, in copy_thread() argument 257 childstack->r9 = usp; /* function */ in copy_thread() 260 childti->pcb.usp = 0; in copy_thread() 272 childti->pcb.usp = usp ?: rdusp(); in copy_thread() 322 dest[30] = ti == current_thread_info() ? rdusp() : ti->pcb.usp; in dump_elf_thread()
|
/Linux-v5.15/arch/openrisc/kernel/ |
D | process.c | 155 copy_thread(unsigned long clone_flags, unsigned long usp, unsigned long arg, in copy_thread() argument 177 kregs->gpr[20] = usp; /* fn, kernel thread */ in copy_thread() 182 if (usp) in copy_thread() 183 userregs->sp = usp; in copy_thread()
|
/Linux-v5.15/arch/m68k/kernel/ |
D | process.c | 141 int copy_thread(unsigned long clone_flags, unsigned long usp, unsigned long arg, in copy_thread() argument 164 frame->sw.a3 = usp; /* function */ in copy_thread() 167 p->thread.usp = 0; in copy_thread() 174 p->thread.usp = usp ?: rdusp(); in copy_thread()
|
/Linux-v5.15/arch/sh/kernel/ |
D | process_32.c | 95 int copy_thread(unsigned long clone_flags, unsigned long usp, unsigned long arg, in copy_thread() argument 121 childregs->regs[5] = usp; in copy_thread() 133 if (usp) in copy_thread() 134 childregs->regs[15] = usp; in copy_thread()
|
/Linux-v5.15/arch/riscv/kernel/ |
D | process.c | 122 int copy_thread(unsigned long clone_flags, unsigned long usp, unsigned long arg, in copy_thread() argument 136 p->thread.s[0] = usp; /* fn */ in copy_thread() 140 if (usp) /* User fork */ in copy_thread() 141 childregs->sp = usp; in copy_thread()
|
/Linux-v5.15/arch/xtensa/kernel/ |
D | process.c | 222 unsigned long usp = usp_thread_fn ? in copy_thread() local 233 childregs->areg[1] = usp; in copy_thread() 252 if (regs->areg[1] == usp && len != 0) { in copy_thread() 256 (unsigned __user*)(usp - 12)); in copy_thread()
|
/Linux-v5.15/arch/mips/include/asm/ |
D | syscall.h | 60 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()
|
/Linux-v5.15/arch/csky/kernel/probes/ |
D | simulate-insn.c | 22 *ptr = regs->usp; in csky_insn_reg_get_val() 51 regs->usp = val; in csky_insn_reg_set_val() 196 unsigned long *tmp = (unsigned long *)regs->usp; in simulate_pop16() 209 regs->usp = (unsigned long)tmp; in simulate_pop16() 217 unsigned long *tmp = (unsigned long *)regs->usp; in simulate_pop32() 240 regs->usp = (unsigned long)tmp; in simulate_pop32()
|
/Linux-v5.15/arch/nios2/kernel/ |
D | process.c | 103 int copy_thread(unsigned long clone_flags, unsigned long usp, unsigned long arg, 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()
|
D | signal.c | 168 unsigned long usp; in get_sigframe() local 171 usp = regs->sp; in get_sigframe() 174 usp = sigsp(usp, ksig); in get_sigframe() 177 return (void *)((usp - frame_size) & -8UL); in get_sigframe()
|
/Linux-v5.15/arch/csky/include/asm/ |
D | processor.h | 68 (_regs)->usp = (_usp); \ 87 #define KSTK_ESP(tsk) (task_pt_regs(tsk)->usp)
|
D | ptrace.h | 21 #define user_stack_pointer(regs) ((regs)->usp) 64 return regs->usp; in kernel_stack_pointer()
|