| /freebsd-13-stable/sys/arm64/arm64/ |
| HD | 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() 81 td1->td_pcb->pcb_tpidrro_el0 = READ_SPECIALREG(tpidrro_el0); in cpu_fork() 83 if ((td1->td_pcb->pcb_fpflags & PCB_FP_STARTED) != 0) in cpu_fork() 84 vfp_save_state(td1, td1->td_pcb); in cpu_fork() 92 bcopy(td1->td_pcb, pcb2, sizeof(*pcb2)); in cpu_fork() 98 bcopy(td1->td_frame, tf, sizeof(*tf)); in cpu_fork() 101 tf->tf_spsr = td1->td_frame->tf_spsr & (PSR_M_32 | PSR_DAIF); in cpu_fork() 111 vfp_new_thread(td2, td1, true); in cpu_fork()
|
| /freebsd-13-stable/sys/mips/mips/ |
| HD | vm_machdep.c | 89 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) in cpu_fork() argument 108 bcopy(td1->td_pcb, pcb2, sizeof(*pcb2)); in cpu_fork() 113 td2->td_md.md_flags = td1->td_md.md_flags & MDTD_FPUSED; in cpu_fork() 122 if (td1 == PCPU_GET(fpcurthread)) in cpu_fork() 123 MipsSaveCurFPState(td1); in cpu_fork() 141 td2->td_md.md_tls = td1->td_md.md_tls; in cpu_fork() 142 p2->p_md.md_tls_tcb_offset = td1->td_proc->p_md.md_tls_tcb_offset; in cpu_fork() 146 if (td1->td_md.md_flags & MDTD_COP2USED) { in cpu_fork() 147 if (td1->td_md.md_cop2owner == COP2_OWNER_USERLAND) { in cpu_fork() 148 if (td1->td_md.md_ucop2) in cpu_fork() [all …]
|
| /freebsd-13-stable/sys/powerpc/powerpc/ |
| HD | vm_machdep.c | 109 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) in cpu_fork() argument 115 KASSERT(td1 == curthread || td1 == &thread0, in cpu_fork() 118 td1, p2, flags); in cpu_fork() 128 bcopy(td1->td_pcb, pcb, sizeof(struct pcb)); in cpu_fork() 136 bcopy(td1->td_frame, tf, sizeof(*tf)); in cpu_fork()
|
| /freebsd-13-stable/cddl/contrib/opensolaris/tools/ctf/cvt/ |
| HD | 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-13-stable/sys/i386/i386/ |
| HD | vm_machdep.c | 140 copy_thread(struct thread *td1, struct thread *td2) in copy_thread() argument 148 MPASS(td1 == curthread); in copy_thread() 149 td1->td_pcb->pcb_gs = rgs(); in copy_thread() 151 if (PCPU_GET(fpcurthread) == td1) in copy_thread() 152 npxsave(td1->td_pcb->pcb_save); in copy_thread() 157 bcopy(td1->td_pcb, pcb2, sizeof(*pcb2)); in copy_thread() 171 bcopy(get_pcb_user_save_td(td1), get_pcb_user_save_pcb(pcb2), in copy_thread() 208 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) in cpu_fork() argument 214 p1 = td1->td_proc; in cpu_fork() 240 copy_thread(td1, td2); in cpu_fork() [all …]
|
| /freebsd-13-stable/sys/amd64/amd64/ |
| HD | vm_machdep.c | 140 copy_thread(struct thread *td1, struct thread *td2) in copy_thread() argument 148 MPASS(td1 == curthread); in copy_thread() 149 fpuexit(td1); in copy_thread() 150 update_pcb_bases(td1->td_pcb); in copy_thread() 154 bcopy(td1->td_pcb, pcb2, sizeof(*pcb2)); in copy_thread() 167 bcopy(get_pcb_user_save_td(td1), get_pcb_user_save_pcb(pcb2), in copy_thread() 200 if ((td1->td_proc->p_flag & P_KPROC) == 0) { in copy_thread() 201 bcopy(td1->td_frame, td2->td_frame, sizeof(struct trapframe)); in copy_thread() 220 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) in cpu_fork() argument 227 p1 = td1->td_proc; in cpu_fork() [all …]
|
| /freebsd-13-stable/sys/arm/arm/ |
| HD | vm_machdep.c | 94 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) in cpu_fork() argument 108 if (curthread == td1) { in cpu_fork() 110 vfp_store(&td1->td_pcb->pcb_vfpstate, false); in cpu_fork() 117 bcopy(td1->td_pcb, pcb2, sizeof(*pcb2)); in cpu_fork() 121 bcopy(&td1->td_proc->p_md, mdp2, sizeof(*mdp2)); in cpu_fork() 125 *td2->td_frame = *td1->td_frame; in cpu_fork()
|
| /freebsd-13-stable/lib/libc/tests/nss/ |
| HD | testutil.h | 62 #define TEST_DATA_COMPARE(ent, td1, td2, fcmp, mdata)\ argument 63 __##ent##_test_data_compare(td1, td2, fcmp, mdata); 127 __##ent##_test_data_compare(struct ent##_test_data *td1, struct ent##_test_data *td2,\ 133 ATF_REQUIRE(td1 != NULL); \ 137 e1 = STAILQ_FIRST(&td1->snapshot_data); \ 314 #define DO_2PASS_TEST(ent, td1, td2, f, mdata) \ argument 315 __##ent##_2pass_test(td1, td2, f, mdata) 319 __##ent##_2pass_test(struct ent##_test_data *td1, \ 326 rv = __##ent##_test_data_compare(td1, td2, cmp_func, cmp_mdata);\
|
| /freebsd-13-stable/sys/kern/ |
| HD | subr_turnstile.c | 314 struct thread *td1, *td2; in turnstile_adjust_thread() local 339 td1 = TAILQ_PREV(td, threadqueue, td_lockq); in turnstile_adjust_thread() 341 if ((td1 != NULL && td->td_priority < td1->td_priority) || in turnstile_adjust_thread() 351 TAILQ_FOREACH(td1, &ts->ts_blocked[queue], td_lockq) { in turnstile_adjust_thread() 352 MPASS(td1->td_proc->p_magic == P_MAGIC); in turnstile_adjust_thread() 353 if (td1->td_priority > td->td_priority) in turnstile_adjust_thread() 357 if (td1 == NULL) in turnstile_adjust_thread() 360 TAILQ_INSERT_BEFORE(td1, td, td_lockq); in turnstile_adjust_thread() 362 if (td1 == NULL) in turnstile_adjust_thread() 369 td->td_tid, td1->td_tid, ts->ts_lockobj, in turnstile_adjust_thread() [all …]
|
| HD | kern_membarrier.c | 120 struct thread *td1; in kern_membarrier() local 163 td1 = cpuid_to_pcpu[c]->pc_curthread; in kern_membarrier() 164 p1 = td1->td_proc; in kern_membarrier()
|
| HD | kern_resource.c | 303 struct thread *td1; in sys_rtprio_thread() local 314 td1 = td; in sys_rtprio_thread() 317 td1 = tdfind(uap->lwpid, -1); in sys_rtprio_thread() 318 if (td1 == NULL) in sys_rtprio_thread() 320 p = td1->td_proc; in sys_rtprio_thread() 327 pri_to_rtp(td1, &rtp); in sys_rtprio_thread() 359 error = rtp_to_pri(&rtp, td1); in sys_rtprio_thread()
|
| HD | kern_proc.c | 511 struct thread *td1; in pget() local 525 td1 = tdfind(pid, -1); in pget() 526 if (td1 != NULL) in pget() 527 p = td1->td_proc; in pget() 3170 struct thread *td1; in sysctl_kern_proc_sigfastblk() local 3195 td1 = FIRST_THREAD_IN_PROC(p); in sysctl_kern_proc_sigfastblk() 3197 FOREACH_THREAD_IN_PROC(p, td1) { in sysctl_kern_proc_sigfastblk() 3198 if (td1->td_tid == pid) in sysctl_kern_proc_sigfastblk() 3202 if (td1 == NULL) { in sysctl_kern_proc_sigfastblk() 3213 if ((td1->td_pflags & TDP_SIGFASTBLOCK) != 0) in sysctl_kern_proc_sigfastblk() [all …]
|
| HD | kern_umtx.c | 1766 struct thread *td1; in umtx_pi_adjust_thread() local 1789 td1 = uq1->uq_thread; in umtx_pi_adjust_thread() 1790 MPASS(td1->td_proc->p_magic == P_MAGIC); in umtx_pi_adjust_thread() 1791 if (UPRI(td1) > UPRI(td)) in umtx_pi_adjust_thread() 2022 struct thread *td, *td1; in umtxq_sleep_pi() local 2039 td1 = tdfind(owner, shared ? -1 : td->td_proc->p_pid); in umtxq_sleep_pi() 2041 if (td1 != NULL) { in umtxq_sleep_pi() 2043 umtx_pi_setowner(pi, td1); in umtxq_sleep_pi() 2044 PROC_UNLOCK(td1->td_proc); in umtxq_sleep_pi()
|
| /freebsd-13-stable/sys/riscv/riscv/ |
| HD | vm_machdep.c | 67 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) in cpu_fork() argument 81 bcopy(td1->td_pcb, pcb2, sizeof(*pcb2)); in cpu_fork() 84 bcopy(td1->td_frame, tf, sizeof(*tf)); in cpu_fork()
|
| /freebsd-13-stable/sys/compat/linux/ |
| HD | linux_futex.c | 363 struct thread *td1; in linux_futex_lock_pi() local 538 td1 = linux_tdfind(td, owner & FUTEX_TID_MASK, -1); in linux_futex_lock_pi() 539 if (td1 != NULL) { in linux_futex_lock_pi() 540 owner = td1->td_tid; in linux_futex_lock_pi() 541 PROC_UNLOCK(td1->td_proc); in linux_futex_lock_pi()
|