Lines Matching refs:p
141 int copy_thread(struct task_struct *p, const struct kernel_clone_args *args) in copy_thread() argument
151 frame = (struct fork_frame *) (task_stack_page(p) + THREAD_SIZE) - 1; in copy_thread()
153 p->thread.ksp = (unsigned long)frame; in copy_thread()
154 p->thread.esp0 = (unsigned long)&frame->regs; in copy_thread()
160 p->thread.fc = USER_DATA; in copy_thread()
169 p->thread.usp = 0; in copy_thread()
176 p->thread.usp = usp ?: rdusp(); in copy_thread()
179 task_thread_info(p)->tp_value = tls; in copy_thread()
184 asm volatile ("fsave %0" : : "m" (p->thread.fpstate[0]) : "memory"); in copy_thread()
186 if (!CPU_IS_060 ? p->thread.fpstate[0] : p->thread.fpstate[2]) { in copy_thread()
193 : "m" (p->thread.fp[0]), in copy_thread()
194 "m" (p->thread.fpcntl[0]), in copy_thread()
195 "m" (p->thread.fpcntl[1]), in copy_thread()
196 "m" (p->thread.fpcntl[2]) in copy_thread()
202 : "m" (p->thread.fp[0]), in copy_thread()
203 "m" (p->thread.fpcntl[0]) in copy_thread()
209 asm volatile ("frestore %0" : : "m" (p->thread.fpstate[0])); in copy_thread()
267 unsigned long __get_wchan(struct task_struct *p) in __get_wchan() argument
273 stack_page = (unsigned long)task_stack_page(p); in __get_wchan()
274 fp = ((struct switch_stack *)p->thread.ksp)->a6; in __get_wchan()