/freebsd-10.0-release/sys/ia64/ia64/ |
H A D | highfp.c | 90 struct thread *td1; local 103 td1 = PCPU_GET(fpcurthread); 104 if (td1 != NULL && td1 != td) { 105 KASSERT(td1->td_pcb->pcb_fpcpu == pcpup, 106 ("td1->td_pcb->pcb_fpcpu != pcpup")); 107 save_high_fp(&td1->td_pcb->pcb_high_fp); 108 td1->td_frame->tf_special.psr |= IA64_PSR_DFH; 109 td1->td_pcb->pcb_fpcpu = NULL; 111 td1 [all...] |
H A D | vm_machdep.c | 262 cpu_fork(struct thread *td1, struct proc *p2 __unused, struct thread *td2, argument 268 KASSERT(td1 == curthread || td1 == &thread0, 269 ("cpu_fork: td1 not curthread and not thread0")); 276 * PCB if we're the parent (ie td1 == curthread) so that we have 281 if (td1 == curthread) { 282 if (savectx(td1->td_pcb) != 0) 284 ia64_highfp_save(td1); 296 bcopy(td1->td_pcb, td2->td_pcb, sizeof(struct pcb)); 300 bcopy(td1 [all...] |
/freebsd-10.0-release/cddl/contrib/opensolaris/tools/ctf/cvt/ |
H A D | tdata.c | 458 /* Merge td2 into td1. td2 is destroyed by the merge */ 460 tdata_merge(tdata_t *td1, tdata_t *td2) argument 462 td1->td_curemark = MAX(td1->td_curemark, td2->td_curemark); 463 td1->td_curvgen = MAX(td1->td_curvgen, td2->td_curvgen); 464 td1->td_nextid = MAX(td1->td_nextid, td2->td_nextid); 466 hash_merge(td1->td_iihash, td2->td_iihash); 469 tdata_build_hashes_common(td1, td [all...] |
/freebsd-10.0-release/sys/mips/mips/ |
H A D | vm_machdep.c | 133 cpu_fork(register struct thread *td1,register struct proc *p2, argument 139 p1 = td1->td_proc; 155 bcopy(td1->td_pcb, pcb2, sizeof(*pcb2)); 157 /* Point mdproc and then copy over td1's contents 160 td2->td_md.md_flags = td1->td_md.md_flags & MDTD_FPUSED; 169 if (td1 == PCPU_GET(fpcurthread)) 170 MipsSaveCurFPState(td1); 188 td2->td_md.md_tls = td1->td_md.md_tls; 192 if (td1->td_md.md_flags & MDTD_COP2USED) { 193 if (td1 [all...] |
/freebsd-10.0-release/sys/powerpc/booke/ |
H A D | vm_machdep.c | 176 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) argument 183 KASSERT(td1 == curthread || td1 == &thread0, 185 CTR3(KTR_PROC, "cpu_fork: called td1=%08x p2=%08x flags=%x", (u_int)td1, 191 p1 = td1->td_proc; 198 bcopy(td1->td_pcb, pcb, sizeof(struct pcb)); 206 bcopy(td1->td_frame, tf, sizeof(*tf));
|
/freebsd-10.0-release/tools/regression/lib/libc/nss/ |
H A D | testutil.h | 64 #define TEST_DATA_COMPARE(ent, td1, td2, fcmp, mdata)\ 65 __##ent##_test_data_compare(td1, td2, fcmp, mdata); 129 __##ent##_test_data_compare(struct ent##_test_data *td1, struct ent##_test_data *td2,\ 135 assert(td1 != NULL); \ 139 e1 = STAILQ_FIRST(&td1->snapshot_data); \ 319 #define DO_2PASS_TEST(ent, td1, td2, f, mdata) \ 320 __##ent##_2pass_test(td1, td2, f, mdata) 324 __##ent##_2pass_test(struct ent##_test_data *td1, \ 331 rv = __##ent##_test_data_compare(td1, td2, cmp_func, cmp_mdata); \
|
/freebsd-10.0-release/sys/powerpc/aim/ |
H A D | vm_machdep.c | 155 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) argument 161 KASSERT(td1 == curthread || td1 == &thread0, 163 CTR3(KTR_PROC, "cpu_fork: called td1=%p p2=%p flags=%x", 164 td1, p2, flags); 174 bcopy(td1->td_pcb, pcb, sizeof(struct pcb)); 182 bcopy(td1->td_frame, tf, sizeof(*tf));
|
/freebsd-10.0-release/sys/sparc64/sparc64/ |
H A D | vm_machdep.c | 270 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) argument 280 KASSERT(td1 == curthread || td1 == &thread0, 286 p2->p_md.md_sigtramp = td1->td_proc->p_md.md_sigtramp; 287 p2->p_md.md_utrap = utrap_hold(td1->td_proc->p_md.md_utrap); 290 pcb1 = td1->td_pcb; 299 if ((td1->td_frame->tf_fprs & FPRS_FEF) != 0) 317 if ((flags & RFMEM) != 0 && td1 != &thread0) { 318 sp = td1->td_frame->tf_sp; 339 bcopy(td1 [all...] |
/freebsd-10.0-release/sys/amd64/amd64/ |
H A D | vm_machdep.c | 148 cpu_fork(td1, p2, td2, flags) 149 register struct thread *td1; 160 p1 = td1->td_proc; 175 /* Ensure that td1's pcb is up to date. */ 176 fpuexit(td1); 182 /* Copy td1's pcb */ 183 bcopy(td1->td_pcb, pcb2, sizeof(*pcb2)); 187 bcopy(get_pcb_user_save_td(td1), get_pcb_user_save_pcb(pcb2), 190 /* Point mdproc and then copy over td1's contents */ 200 bcopy(td1 [all...] |
/freebsd-10.0-release/sys/kern/ |
H A D | subr_turnstile.c | 292 struct thread *td1, *td2; local 317 td1 = TAILQ_PREV(td, threadqueue, td_lockq); 319 if ((td1 != NULL && td->td_priority < td1->td_priority) || 330 TAILQ_FOREACH(td1, &ts->ts_blocked[queue], td_lockq) { 331 MPASS(td1->td_proc->p_magic == P_MAGIC); 332 if (td1->td_priority > td->td_priority) 336 if (td1 == NULL) 339 TAILQ_INSERT_BEFORE(td1, td, td_lockq); 341 if (td1 678 struct thread *td, *td1; local [all...] |
H A D | kern_resource.c | 296 struct thread *td1; local 307 td1 = td; 311 td1 = tdfind(uap->lwpid, curproc->p_pid); 312 if (td1 == NULL) 314 p = td1->td_proc; 321 pri_to_rtp(td1, &rtp); 353 error = rtp_to_pri(&rtp, td1);
|
H A D | kern_umtx.c | 1598 struct thread *td1; local 1621 td1 = uq1->uq_thread; 1622 MPASS(td1->td_proc->p_magic == P_MAGIC); 1623 if (UPRI(td1) > UPRI(td)) 1801 struct thread *td, *td1; local 1816 td1 = tdfind(owner, curproc->p_pid); 1818 if (td1 != NULL) { 1820 umtx_pi_setowner(pi, td1); 1821 PROC_UNLOCK(td1->td_proc);
|
/freebsd-10.0-release/sys/i386/i386/ |
H A D | vm_machdep.c | 161 cpu_fork(td1, p2, td2, flags) 162 register struct thread *td1; 171 p1 = td1->td_proc; 193 /* Ensure that td1's pcb is up to date. */ 194 if (td1 == curthread) 195 td1->td_pcb->pcb_gs = rgs(); 198 if (PCPU_GET(fpcurthread) == td1) 199 npxsave(td1->td_pcb->pcb_save); 208 /* Copy td1's pcb */ 209 bcopy(td1 [all...] |
/freebsd-10.0-release/contrib/atf/atf-run/ |
H A D | fs_test.cpp | 76 temp_dir td1(tmpl); 78 t1 = td1.get_path();
|
/freebsd-10.0-release/sys/arm/arm/ |
H A D | vm_machdep.c | 129 cpu_fork(register struct thread *td1, register struct proc *p2, argument 146 bcopy(td1->td_pcb, pcb2, sizeof(*pcb2)); 148 bcopy(&td1->td_proc->p_md, mdp2, sizeof(*mdp2)); 155 *tf = *td1->td_frame;
|