| /freebsd-12-stable/sys/mips/mips/ |
| D | vm_machdep.c | 91 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2,int flags) in cpu_fork() argument 96 p1 = td1->td_proc; in cpu_fork() 112 bcopy(td1->td_pcb, pcb2, sizeof(*pcb2)); in cpu_fork() 117 td2->td_md.md_flags = td1->td_md.md_flags & MDTD_FPUSED; in cpu_fork() 126 if (td1 == PCPU_GET(fpcurthread)) in cpu_fork() 127 MipsSaveCurFPState(td1); in cpu_fork() 145 td2->td_md.md_tls = td1->td_md.md_tls; in cpu_fork() 146 td2->td_md.md_tls_tcb_offset = td1->td_md.md_tls_tcb_offset; in cpu_fork() 150 if (td1->td_md.md_flags & MDTD_COP2USED) { in cpu_fork() 151 if (td1->td_md.md_cop2owner == COP2_OWNER_USERLAND) { in cpu_fork() [all …]
|
| /freebsd-12-stable/sys/arm64/arm64/ |
| D | vm_machdep.c | 66 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) in cpu_fork() argument 74 if (td1 == curthread) { in cpu_fork() 80 td1->td_pcb->pcb_tpidr_el0 = READ_SPECIALREG(tpidr_el0); in cpu_fork() 82 if ((td1->td_pcb->pcb_fpflags & PCB_FP_STARTED) != 0) in cpu_fork() 83 vfp_save_state(td1, td1->td_pcb); in cpu_fork() 91 bcopy(td1->td_pcb, pcb2, sizeof(*pcb2)); in cpu_fork() 97 bcopy(td1->td_frame, tf, sizeof(*tf)); in cpu_fork() 114 td2->td_md.md_saved_daif = td1->td_md.md_saved_daif & ~DAIF_I_MASKED; in cpu_fork()
|
| /freebsd-12-stable/sys/powerpc/powerpc/ |
| D | vm_machdep.c | 110 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) in cpu_fork() argument 116 KASSERT(td1 == curthread || td1 == &thread0, in cpu_fork() 119 td1, p2, flags); in cpu_fork() 129 bcopy(td1->td_pcb, pcb, sizeof(struct pcb)); in cpu_fork() 137 bcopy(td1->td_frame, tf, sizeof(*tf)); in cpu_fork()
|
| /freebsd-12-stable/cddl/contrib/opensolaris/tools/ctf/cvt/ |
| D | tdata.c | 460 tdata_merge(tdata_t *td1, tdata_t *td2) in tdata_merge() argument 462 td1->td_curemark = MAX(td1->td_curemark, td2->td_curemark); in tdata_merge() 463 td1->td_curvgen = MAX(td1->td_curvgen, td2->td_curvgen); in tdata_merge() 464 td1->td_nextid = MAX(td1->td_nextid, td2->td_nextid); in tdata_merge() 466 hash_merge(td1->td_iihash, td2->td_iihash); in tdata_merge() 469 tdata_build_hashes_common(td1, td2->td_iihash); in tdata_merge() 471 list_concat(&td1->td_fwdlist, td2->td_fwdlist); in tdata_merge() 474 slist_merge(&td1->td_labels, td2->td_labels, in tdata_merge()
|
| /freebsd-12-stable/sys/sparc64/sparc64/ |
| D | vm_machdep.c | 237 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) in cpu_fork() argument 247 KASSERT(td1 == curthread || td1 == &thread0, in cpu_fork() 253 p2->p_md.md_sigtramp = td1->td_proc->p_md.md_sigtramp; in cpu_fork() 254 p2->p_md.md_utrap = utrap_hold(td1->td_proc->p_md.md_utrap); in cpu_fork() 257 pcb1 = td1->td_pcb; in cpu_fork() 266 if ((td1->td_frame->tf_fprs & FPRS_FEF) != 0) in cpu_fork() 284 if ((flags & RFMEM) != 0 && td1 != &thread0) { in cpu_fork() 285 sp = td1->td_frame->tf_sp; in cpu_fork() 306 bcopy(td1->td_frame, tf, sizeof(*tf)); in cpu_fork()
|
| /freebsd-12-stable/lib/libc/tests/nss/ |
| D | testutil.h | 64 #define TEST_DATA_COMPARE(ent, td1, td2, fcmp, mdata)\ argument 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) \ argument 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-12-stable/sys/arm/arm/ |
| D | vm_machdep.c | 96 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) in cpu_fork() argument 110 if (curthread == td1) { in cpu_fork() 112 vfp_store(&td1->td_pcb->pcb_vfpstate, false); in cpu_fork() 119 bcopy(td1->td_pcb, pcb2, sizeof(*pcb2)); in cpu_fork() 123 bcopy(&td1->td_proc->p_md, mdp2, sizeof(*mdp2)); in cpu_fork() 127 *td2->td_frame = *td1->td_frame; in cpu_fork()
|
| /freebsd-12-stable/sys/i386/i386/ |
| D | vm_machdep.c | 147 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) in cpu_fork() argument 153 p1 = td1->td_proc; in cpu_fork() 176 if (td1 == curthread) in cpu_fork() 177 td1->td_pcb->pcb_gs = rgs(); in cpu_fork() 179 if (PCPU_GET(fpcurthread) == td1) in cpu_fork() 180 npxsave(td1->td_pcb->pcb_save); in cpu_fork() 188 bcopy(td1->td_pcb, pcb2, sizeof(*pcb2)); in cpu_fork() 192 bcopy(get_pcb_user_save_td(td1), get_pcb_user_save_pcb(pcb2), in cpu_fork() 211 bcopy(td1->td_frame, td2->td_frame, sizeof(struct trapframe)); in cpu_fork()
|
| /freebsd-12-stable/sys/amd64/amd64/ |
| D | vm_machdep.c | 146 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) in cpu_fork() argument 153 p1 = td1->td_proc; in cpu_fork() 169 fpuexit(td1); in cpu_fork() 170 update_pcb_bases(td1->td_pcb); in cpu_fork() 177 bcopy(td1->td_pcb, pcb2, sizeof(*pcb2)); in cpu_fork() 181 bcopy(get_pcb_user_save_td(td1), get_pcb_user_save_pcb(pcb2), in cpu_fork() 198 bcopy(td1->td_frame, td2->td_frame, sizeof(struct trapframe)); in cpu_fork() 244 mdp1 = &td1->td_proc->p_md; in cpu_fork()
|
| /freebsd-12-stable/sys/kern/ |
| D | subr_turnstile.c | 293 struct thread *td1, *td2; in turnstile_adjust_thread() local 318 td1 = TAILQ_PREV(td, threadqueue, td_lockq); in turnstile_adjust_thread() 320 if ((td1 != NULL && td->td_priority < td1->td_priority) || in turnstile_adjust_thread() 331 TAILQ_FOREACH(td1, &ts->ts_blocked[queue], td_lockq) { in turnstile_adjust_thread() 332 MPASS(td1->td_proc->p_magic == P_MAGIC); in turnstile_adjust_thread() 333 if (td1->td_priority > td->td_priority) in turnstile_adjust_thread() 337 if (td1 == NULL) in turnstile_adjust_thread() 340 TAILQ_INSERT_BEFORE(td1, td, td_lockq); in turnstile_adjust_thread() 342 if (td1 == NULL) in turnstile_adjust_thread() 349 td->td_tid, td1->td_tid, ts->ts_lockobj, in turnstile_adjust_thread() [all …]
|
| D | kern_resource.c | 292 struct thread *td1; in sys_rtprio_thread() local 303 td1 = td; in sys_rtprio_thread() 306 td1 = tdfind(uap->lwpid, -1); in sys_rtprio_thread() 307 if (td1 == NULL) in sys_rtprio_thread() 309 p = td1->td_proc; in sys_rtprio_thread() 316 pri_to_rtp(td1, &rtp); in sys_rtprio_thread() 348 error = rtp_to_pri(&rtp, td1); in sys_rtprio_thread()
|
| D | kern_umtx.c | 1401 struct thread *td1; in umtx_pi_adjust_thread() local 1424 td1 = uq1->uq_thread; in umtx_pi_adjust_thread() 1425 MPASS(td1->td_proc->p_magic == P_MAGIC); in umtx_pi_adjust_thread() 1426 if (UPRI(td1) > UPRI(td)) in umtx_pi_adjust_thread() 1658 struct thread *td, *td1; in umtxq_sleep_pi() local 1675 td1 = tdfind(owner, shared ? -1 : td->td_proc->p_pid); in umtxq_sleep_pi() 1677 if (td1 != NULL) { in umtxq_sleep_pi() 1679 umtx_pi_setowner(pi, td1); in umtxq_sleep_pi() 1680 PROC_UNLOCK(td1->td_proc); in umtxq_sleep_pi()
|
| D | kern_proc.c | 412 struct thread *td1; in pget() local 427 td1 = tdfind(pid, -1); in pget() 428 if (td1 != NULL) in pget() 429 p = td1->td_proc; in pget()
|
| /freebsd-12-stable/sys/riscv/riscv/ |
| D | vm_machdep.c | 68 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) in cpu_fork() argument 82 bcopy(td1->td_pcb, pcb2, sizeof(*pcb2)); in cpu_fork() 85 bcopy(td1->td_frame, tf, sizeof(*tf)); in cpu_fork()
|