Lines Matching refs:cregs
191 struct pt_regs *cregs = &(p->thread.regs); in copy_thread() local
202 memset(cregs, 0, sizeof(struct pt_regs)); in copy_thread()
208 cregs->ksp = (unsigned long)stack + THREAD_SZ_ALGN + FRAME_SIZE; in copy_thread()
209 cregs->kpc = (unsigned long) &ret_from_kernel_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()
220 cregs->gr[25] = kthread_arg; in copy_thread()
229 cregs->gr[30] = usp; in copy_thread()
231 cregs->ksp = (unsigned long)stack + THREAD_SZ_ALGN + FRAME_SIZE; in copy_thread()
232 cregs->kpc = (unsigned long) &child_return; in copy_thread()
236 cregs->cr27 = cregs->gr[23]; in copy_thread()