Lines Matching refs:td1
142 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags)
149 p1 = td1->td_proc;
164 /* Ensure that td1's pcb is up to date. */
165 fpuexit(td1);
166 update_pcb_bases(td1->td_pcb);
172 /* Copy td1's pcb */
173 bcopy(td1->td_pcb, pcb2, sizeof(*pcb2));
177 bcopy(get_pcb_user_save_td(td1), get_pcb_user_save_pcb(pcb2),
180 /* Point mdproc and then copy over td1's contents */
190 bcopy(td1->td_frame, td2->td_frame, sizeof(struct trapframe));
236 mdp1 = &td1->td_proc->p_md;