/freebsd-11-stable/sys/powerpc/powerpc/ |
H A D | vm_machdep.c | 108 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) argument 114 KASSERT(td1 == curthread || td1 == &thread0, 116 CTR3(KTR_PROC, "cpu_fork: called td1=%p p2=%p flags=%x", 117 td1, p2, flags); 127 bcopy(td1->td_pcb, pcb, sizeof(struct pcb)); 135 bcopy(td1->td_frame, tf, sizeof(*tf));
|
/freebsd-11-stable/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-11-stable/sys/arm64/arm64/ |
H A D | vm_machdep.c | 67 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) argument 75 if (td1 == curthread) { 81 td1->td_pcb->pcb_tpidr_el0 = READ_SPECIALREG(tpidr_el0); 83 if ((td1->td_pcb->pcb_fpflags & PCB_FP_STARTED) != 0) 84 vfp_save_state(td1, td1->td_pcb); 92 bcopy(td1->td_pcb, pcb2, sizeof(*pcb2)); 98 bcopy(td1->td_frame, tf, sizeof(*tf));
|
/freebsd-11-stable/sys/mips/mips/ |
H A D | vm_machdep.c | 98 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2,int flags) argument 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 [all...] |
/freebsd-11-stable/lib/libc/tests/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 ATF_REQUIRE(td1 != NULL); \ 139 e1 = STAILQ_FIRST(&td1->snapshot_data); \ 316 #define DO_2PASS_TEST(ent, td1, td2, f, mdata) \ 317 __##ent##_2pass_test(td1, td2, f, mdata) 321 __##ent##_2pass_test(struct ent##_test_data *td1, \ 328 rv = __##ent##_test_data_compare(td1, td2, cmp_func, cmp_mdata); \
|
/freebsd-11-stable/sys/arm/arm/ |
H A D | vm_machdep.c | 96 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) argument 115 if (curthread == td1) { 117 vfp_store(&td1->td_pcb->pcb_vfpstate, false); 123 /* Clone td1's pcb */ 124 bcopy(td1->td_pcb, pcb2, sizeof(*pcb2)); 126 /* Point to mdproc and then copy over td1's contents */ 128 bcopy(&td1->td_proc->p_md, mdp2, sizeof(*mdp2)); 130 /* Point the frame to the stack in front of pcb and copy td1's frame */ 132 *td2->td_frame = *td1->td_frame;
|
/freebsd-11-stable/sys/sparc64/sparc64/ |
H A D | vm_machdep.c | 235 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) argument 245 KASSERT(td1 == curthread || td1 == &thread0, 251 p2->p_md.md_sigtramp = td1->td_proc->p_md.md_sigtramp; 252 p2->p_md.md_utrap = utrap_hold(td1->td_proc->p_md.md_utrap); 255 pcb1 = td1->td_pcb; 264 if ((td1->td_frame->tf_fprs & FPRS_FEF) != 0) 282 if ((flags & RFMEM) != 0 && td1 != &thread0) { 283 sp = td1->td_frame->tf_sp; 304 bcopy(td1 [all...] |
/freebsd-11-stable/sys/i386/i386/ |
H A D | vm_machdep.c | 154 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) argument 160 p1 = td1->td_proc; 182 /* Ensure that td1's pcb is up to date. */ 183 if (td1 == curthread) 184 td1->td_pcb->pcb_gs = rgs(); 186 if (PCPU_GET(fpcurthread) == td1) 187 npxsave(td1->td_pcb->pcb_save); 194 /* Copy td1's pcb */ 195 bcopy(td1->td_pcb, pcb2, sizeof(*pcb2)); 199 bcopy(get_pcb_user_save_td(td1), get_pcb_user_save_pc [all...] |
/freebsd-11-stable/sys/riscv/riscv/ |
H A D | vm_machdep.c | 63 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) argument 75 bcopy(td1->td_pcb, pcb2, sizeof(*pcb2)); 81 bcopy(td1->td_frame, tf, sizeof(*tf));
|
/freebsd-11-stable/sys/amd64/amd64/ |
H A D | vm_machdep.c | 142 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) argument 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 [all...] |
/freebsd-11-stable/sys/kern/ |
H A D | subr_turnstile.c | 291 struct thread *td1, *td2; local 316 td1 = TAILQ_PREV(td, threadqueue, td_lockq); 318 if ((td1 != NULL && td->td_priority < td1->td_priority) || 329 TAILQ_FOREACH(td1, &ts->ts_blocked[queue], td_lockq) { 330 MPASS(td1->td_proc->p_magic == P_MAGIC); 331 if (td1->td_priority > td->td_priority) 335 if (td1 == NULL) 338 TAILQ_INSERT_BEFORE(td1, td, td_lockq); 340 if (td1 677 struct thread *td, *td1; local [all...] |
H A D | kern_resource.c | 292 struct thread *td1; local 303 td1 = td; 307 td1 = tdfind(uap->lwpid, curproc->p_pid); 308 if (td1 == NULL) 310 p = td1->td_proc; 317 pri_to_rtp(td1, &rtp); 349 error = rtp_to_pri(&rtp, td1);
|
H A D | kern_umtx.c | 1405 struct thread *td1; local 1428 td1 = uq1->uq_thread; 1429 MPASS(td1->td_proc->p_magic == P_MAGIC); 1430 if (UPRI(td1) > UPRI(td)) 1663 struct thread *td, *td1; local 1677 td1 = tdfind(owner, shared ? -1 : td->td_proc->p_pid); 1679 if (td1 != NULL) { 1681 umtx_pi_setowner(pi, td1); 1682 PROC_UNLOCK(td1->td_proc);
|