Lines Matching refs:td1
98 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2,int flags)
103 p1 = td1->td_proc;
119 bcopy(td1->td_pcb, pcb2, sizeof(*pcb2));
121 /* Point mdproc and then copy over td1's contents
124 td2->td_md.md_flags = td1->td_md.md_flags & MDTD_FPUSED;
133 if (td1 == PCPU_GET(fpcurthread))
134 MipsSaveCurFPState(td1);
152 td2->td_md.md_tls = td1->td_md.md_tls;
156 if (td1->td_md.md_flags & MDTD_COP2USED) {
157 if (td1->td_md.md_cop2owner == COP2_OWNER_USERLAND) {
158 if (td1->td_md.md_ucop2)
159 octeon_cop2_save(td1->td_md.md_ucop2);
164 if (td1->td_md.md_cop2)
165 octeon_cop2_save(td1->td_md.md_cop2);
171 if (td1->td_md.md_cop2) {
173 memcpy(td2->td_md.md_cop2, td1->td_md.md_cop2,
174 sizeof(*td1->td_md.md_cop2));
176 if (td1->td_md.md_ucop2) {
178 memcpy(td2->td_md.md_ucop2, td1->td_md.md_ucop2,
179 sizeof(*td1->td_md.md_ucop2));
181 td2->td_md.md_cop2owner = td1->td_md.md_cop2owner;