| /f-stack/freebsd/arm64/arm64/ |
| H A D | vm_machdep.c | 68 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) in cpu_fork() argument 76 if (td1 == curthread) { in cpu_fork() 82 td1->td_pcb->pcb_tpidr_el0 = READ_SPECIALREG(tpidr_el0); in cpu_fork() 83 td1->td_pcb->pcb_tpidrro_el0 = READ_SPECIALREG(tpidrro_el0); in cpu_fork() 85 if ((td1->td_pcb->pcb_fpflags & PCB_FP_STARTED) != 0) in cpu_fork() 86 vfp_save_state(td1, td1->td_pcb); in cpu_fork() 94 bcopy(td1->td_pcb, pcb2, sizeof(*pcb2)); in cpu_fork() 97 bcopy(td1->td_frame, tf, sizeof(*tf)); in cpu_fork() 100 tf->tf_spsr = td1->td_frame->tf_spsr & (PSR_M_32 | PSR_DAIF); in cpu_fork() 115 td2->td_md.md_saved_daif = td1->td_md.md_saved_daif & ~DAIF_I_MASKED; in cpu_fork()
|
| /f-stack/freebsd/mips/mips/ |
| H A D | vm_machdep.c | 110 bcopy(td1->td_pcb, pcb2, sizeof(*pcb2)); in cpu_fork() 124 if (td1 == PCPU_GET(fpcurthread)) in cpu_fork() 125 MipsSaveCurFPState(td1); in cpu_fork() 143 td2->td_md.md_tls = td1->td_md.md_tls; in cpu_fork() 150 if (td1->td_md.md_ucop2) in cpu_fork() 156 if (td1->td_md.md_cop2) in cpu_fork() 157 octeon_cop2_save(td1->td_md.md_cop2); in cpu_fork() 163 if (td1->td_md.md_cop2) { in cpu_fork() 166 sizeof(*td1->td_md.md_cop2)); in cpu_fork() 168 if (td1->td_md.md_ucop2) { in cpu_fork() [all …]
|
| /f-stack/freebsd/arm/arm/ |
| H A 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()
|
| /f-stack/freebsd/i386/i386/ |
| H A D | vm_machdep.c | 142 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) in cpu_fork() argument 148 p1 = td1->td_proc; in cpu_fork() 171 if (td1 == curthread) in cpu_fork() 172 td1->td_pcb->pcb_gs = rgs(); in cpu_fork() 174 if (PCPU_GET(fpcurthread) == td1) in cpu_fork() 175 npxsave(td1->td_pcb->pcb_save); in cpu_fork() 183 bcopy(td1->td_pcb, pcb2, sizeof(*pcb2)); in cpu_fork() 187 bcopy(get_pcb_user_save_td(td1), get_pcb_user_save_pcb(pcb2), in cpu_fork() 203 bcopy(td1->td_frame, td2->td_frame, sizeof(struct trapframe)); in cpu_fork()
|
| /f-stack/freebsd/amd64/amd64/ |
| H A D | vm_machdep.c | 145 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) in cpu_fork() argument 152 p1 = td1->td_proc; in cpu_fork() 168 fpuexit(td1); in cpu_fork() 169 update_pcb_bases(td1->td_pcb); in cpu_fork() 176 bcopy(td1->td_pcb, pcb2, sizeof(*pcb2)); in cpu_fork() 180 bcopy(get_pcb_user_save_td(td1), get_pcb_user_save_pcb(pcb2), in cpu_fork() 193 bcopy(td1->td_frame, td2->td_frame, sizeof(struct trapframe)); in cpu_fork() 235 mdp1 = &td1->td_proc->p_md; in cpu_fork()
|
| /f-stack/freebsd/kern/ |
| H A D | subr_turnstile.c | 316 struct thread *td1, *td2; in turnstile_adjust_thread() local 343 if ((td1 != NULL && td->td_priority < td1->td_priority) || in turnstile_adjust_thread() 354 MPASS(td1->td_proc->p_magic == P_MAGIC); in turnstile_adjust_thread() 355 if (td1->td_priority > td->td_priority) in turnstile_adjust_thread() 359 if (td1 == NULL) in turnstile_adjust_thread() 362 TAILQ_INSERT_BEFORE(td1, td, td_lockq); in turnstile_adjust_thread() 364 if (td1 == NULL) in turnstile_adjust_thread() 743 struct thread *td, *td1; in turnstile_wait() local 784 if (td1->td_priority > td->td_priority) in turnstile_wait() 787 if (td1 != NULL) in turnstile_wait() [all …]
|
| H A D | kern_resource.c | 304 struct thread *td1; in sys_rtprio_thread() local 315 td1 = td; in sys_rtprio_thread() 318 td1 = tdfind(uap->lwpid, -1); in sys_rtprio_thread() 319 if (td1 == NULL) in sys_rtprio_thread() 321 p = td1->td_proc; in sys_rtprio_thread() 328 pri_to_rtp(td1, &rtp); in sys_rtprio_thread() 360 error = rtp_to_pri(&rtp, td1); in sys_rtprio_thread()
|
| H A D | kern_proc.c | 507 struct thread *td1; in pget() local 521 td1 = tdfind(pid, -1); in pget() 522 if (td1 != NULL) in pget() 523 p = td1->td_proc; in pget() 3048 struct thread *td1; in sysctl_kern_proc_sigfastblk() local 3073 td1 = FIRST_THREAD_IN_PROC(p); in sysctl_kern_proc_sigfastblk() 3075 FOREACH_THREAD_IN_PROC(p, td1) { in sysctl_kern_proc_sigfastblk() 3076 if (td1->td_tid == pid) in sysctl_kern_proc_sigfastblk() 3080 if (td1 == NULL) { in sysctl_kern_proc_sigfastblk() 3091 if ((td1->td_pflags & TDP_SIGFASTBLOCK) != 0) in sysctl_kern_proc_sigfastblk() [all …]
|
| H A D | kern_umtx.c | 1405 struct thread *td1; in umtx_pi_adjust_thread() local 1428 td1 = uq1->uq_thread; in umtx_pi_adjust_thread() 1429 MPASS(td1->td_proc->p_magic == P_MAGIC); in umtx_pi_adjust_thread() 1430 if (UPRI(td1) > UPRI(td)) in umtx_pi_adjust_thread() 1661 struct thread *td, *td1; in umtxq_sleep_pi() local 1678 td1 = tdfind(owner, shared ? -1 : td->td_proc->p_pid); in umtxq_sleep_pi() 1680 if (td1 != NULL) { in umtxq_sleep_pi() 1682 umtx_pi_setowner(pi, td1); in umtxq_sleep_pi() 1683 PROC_UNLOCK(td1->td_proc); in umtxq_sleep_pi()
|