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