Lines Matching refs:childregs
376 struct pt_regs *childregs; in copy_thread() local
389 childregs = (struct pt_regs *)(THREAD_SIZE + task_stack_page(p)) - 1; in copy_thread()
390 p->thread.sp = (unsigned long) childregs; in copy_thread()
393 memset(childregs, 0, sizeof(struct pt_regs)); in copy_thread()
394 childregs->regs[2] = (unsigned long)arg; in copy_thread()
395 childregs->regs[3] = (unsigned long)usp; in copy_thread()
396 childregs->sr = (1 << 30); /* not user_mode */ in copy_thread()
397 childregs->sr |= SR_FD; /* Invalidate FPU flag */ in copy_thread()
401 *childregs = *current_pt_regs(); in copy_thread()
410 childregs->regs[15] = neff_sign_extend(usp); in copy_thread()
411 p->thread.uregs = childregs; in copy_thread()
413 childregs->regs[9] = 0; /* Set return value for child */ in copy_thread()
414 childregs->sr |= SR_FD; /* Invalidate FPU flag */ in copy_thread()