Lines Matching refs:sp
150 unsigned long sp = (unsigned long)task_stack_page(p) + THREAD_SIZE; in copy_thread() local
153 top_of_kernel_stack = sp; in copy_thread()
158 sp -= STACK_FRAME_OVERHEAD; /* redzone */ in copy_thread()
159 sp -= sizeof(struct pt_regs); in copy_thread()
160 userregs = (struct pt_regs *) sp; in copy_thread()
163 sp -= STACK_FRAME_OVERHEAD; /* redzone */ in copy_thread()
164 sp -= sizeof(struct pt_regs); in copy_thread()
165 kregs = (struct pt_regs *)sp; in copy_thread()
175 userregs->sp = usp; in copy_thread()
185 kregs->sp = top_of_kernel_stack; in copy_thread()
196 void start_thread(struct pt_regs *regs, unsigned long pc, unsigned long sp) in start_thread() argument
204 regs->sp = sp; in start_thread()