Home
last modified time | relevance | path

Searched refs:curpcb (Results 1 – 22 of 22) sorted by relevance

/f-stack/freebsd/arm64/arm64/
H A Dvfp.c205 struct pcb *curpcb; in vfp_restore_state() local
211 curpcb = curthread->td_pcb; in vfp_restore_state()
212 curpcb->pcb_fpflags |= PCB_FP_STARTED; in vfp_restore_state()
221 if (PCPU_GET(fpcurthread) != curthread || cpu != curpcb->pcb_vfpcpu) { in vfp_restore_state()
224 curpcb->pcb_vfpcpu = cpu; in vfp_restore_state()
377 struct pcb *curpcb; in is_fpu_kern_thread() local
381 curpcb = curthread->td_pcb; in is_fpu_kern_thread()
382 return ((curpcb->pcb_fpflags & PCB_FP_KERN) != 0); in is_fpu_kern_thread()
H A Dfreebsd32_machdep.c123 struct pcb *curpcb; in get_fpcontext32() local
127 curpcb = curthread->td_pcb; in get_fpcontext32()
129 if ((curpcb->pcb_fpflags & PCB_FP_STARTED) != 0) { in get_fpcontext32()
134 vfp_save_state(td, curpcb); in get_fpcontext32()
136 KASSERT(curpcb->pcb_fpusaved == &curpcb->pcb_fpustate, in get_fpcontext32()
138 KASSERT((curpcb->pcb_fpflags & ~PCB_FP_USERMASK) == 0, in get_fpcontext32()
141 mcp->mcv_reg[i] = (uint64_t)curpcb->pcb_fpustate.vfp_regs[i]; in get_fpcontext32()
142 mcp->mcv_fpscr = VFP_FPSCR_FROM_SRCR(curpcb->pcb_fpustate.vfp_fpcr, in get_fpcontext32()
143 curpcb->pcb_fpustate.vfp_fpsr); in get_fpcontext32()
H A Dmachdep.c620 struct pcb *curpcb; in get_fpcontext() local
624 curpcb = curthread->td_pcb; in get_fpcontext()
626 if ((curpcb->pcb_fpflags & PCB_FP_STARTED) != 0) { in get_fpcontext()
631 vfp_save_state(td, curpcb); in get_fpcontext()
633 KASSERT(curpcb->pcb_fpusaved == &curpcb->pcb_fpustate, in get_fpcontext()
639 mcp->mc_fpregs.fp_cr = curpcb->pcb_fpustate.vfp_fpcr; in get_fpcontext()
640 mcp->mc_fpregs.fp_sr = curpcb->pcb_fpustate.vfp_fpsr; in get_fpcontext()
641 mcp->mc_fpregs.fp_flags = curpcb->pcb_fpflags; in get_fpcontext()
653 struct pcb *curpcb; in set_fpcontext() local
658 curpcb = curthread->td_pcb; in set_fpcontext()
[all …]
H A Dmp_machdep.c291 MPASS(PCPU_GET(curpcb) == NULL); in init_secondary()
H A Dpmap.c6687 PCPU_SET(curpcb, pcb); in pmap_switch()
/f-stack/freebsd/arm/arm/
H A Dvfp.c179 struct pcb *curpcb; in vfp_bounce() local
224 curpcb = curthread->td_pcb; in vfp_bounce()
226 if (curpcb->pcb_vfpcpu != cpu || curthread != PCPU_GET(fpcurthread)) { in vfp_bounce()
227 vfp_restore(&curpcb->pcb_vfpstate); in vfp_bounce()
228 curpcb->pcb_vfpcpu = cpu; in vfp_bounce()
/f-stack/freebsd/i386/i386/
H A Dtrap.c285 (curpcb->pcb_flags & PCB_VM86CALL) == 0) in trap()
298 if (TRAPF_USERMODE(frame) && (curpcb->pcb_flags & PCB_VM86CALL) == 0) { in trap()
515 if (curpcb->pcb_flags & PCB_VM86CALL) in trap()
528 curpcb->pcb_gs = 0; in trap()
585 if (curpcb->pcb_onfault != NULL) { in trap()
586 frame->tf_eip = (int)curpcb->pcb_onfault; in trap()
624 !(curpcb->pcb_flags & PCB_VM86CALL)) in trap()
869 curpcb->pcb_onfault != NULL) { in trap_pfault()
870 frame->tf_eip = (int)curpcb->pcb_onfault; in trap_pfault()
1117 (curpcb->pcb_flags & PCB_VM86CALL) == 0)) { in syscall()
H A Dnpx.c566 fpusave(curpcb->pcb_save); in npxexit()
890 KASSERT((curpcb->pcb_flags & PCB_NPXNOSAVE) == 0, in npxdna()
1437 fpusave(curpcb->pcb_save); in fpu_kern_enter()
1527 KASSERT(curpcb->pcb_save == get_pcb_user_save_pcb(curpcb), in fpu_kern_thread()
1529 KASSERT(PCB_USER_FPU(curpcb), ("recursive call")); in fpu_kern_thread()
1531 curpcb->pcb_flags |= PCB_KERNNPX | PCB_KERNNPX_THR; in fpu_kern_thread()
1541 return ((curpcb->pcb_flags & PCB_KERNNPX_THR) != 0); in is_fpu_kern_thread()
H A Dvm86.c196 if (curpcb->pcb_ext == 0) in vm86_emulate()
198 vm86 = &curpcb->pcb_ext->ext_vm86; in vm86_emulate()
670 vm86 = &curpcb->pcb_ext->ext_vm86; in vm86_prepcall()
H A Dmachdep.c1188 if (pcb == curpcb) { in exec_setregs()
2489 PCPU_SET(curpcb, thread0.td_pcb); in init386()
/f-stack/freebsd/amd64/amd64/
H A Dfpu.c510 fpusave(curpcb->pcb_save); in fpuexit()
726 pcb_save = curpcb->pcb_save; in fputrap_x87()
745 mxcsr = curpcb->pcb_save->sv_env.en_mxcsr; in fputrap_sse()
815 KASSERT((curpcb->pcb_flags & PCB_FPUNOSAVE) == 0, in fpudna()
1164 fpusave(curpcb->pcb_save); in fpu_kern_enter()
1254 KASSERT(curpcb->pcb_save == get_pcb_user_save_pcb(curpcb), in fpu_kern_thread()
1256 KASSERT(PCB_USER_FPU(curpcb), ("recursive call")); in fpu_kern_thread()
1258 set_pcb_flags(curpcb, PCB_KERNFPU | PCB_KERNFPU_THR); in fpu_kern_thread()
1268 return ((curpcb->pcb_flags & PCB_KERNFPU_THR) != 0); in is_fpu_kern_thread()
H A Dtrap.c482 if (curpcb->pcb_onfault != NULL) { in trap()
483 frame->tf_rip = (long)curpcb->pcb_onfault; in trap()
664 (curpcb->pcb_saved_ucr3 & ~CR3_PCID_MASK) == in trap_is_pti()
765 trap_is_smap(frame) || curpcb->pcb_onfault == NULL)) { in trap_pfault()
837 curpcb->pcb_onfault != NULL) { in trap_pfault()
838 frame->tf_rip = (long)curpcb->pcb_onfault; in trap_pfault()
H A Dmachdep.c631 if (pcb == curpcb) { in exec_setregs()
1577 PCPU_SET(curpcb, thread0.td_pcb); in amd64_bsp_pcpu_init2()
2695 if (curpcb == pcb && in set_pcb_flags_fsgsbase()
/f-stack/freebsd/amd64/include/
H A Dpcpu_aux.h65 #define curpcb (&curthread->td_md.md_pcb) macro
/f-stack/freebsd/i386/include/
H A Dpcpu_aux.h69 #define curpcb (__curpcb()) macro
/f-stack/freebsd/mips/include/
H A Dpcb.h135 extern struct pcb *curpcb; /* the current running pcb */
/f-stack/freebsd/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dsimd_x86.h49 if (__predict_false(curpcb->pcb_flags & PCB_FPUNOSAVE)) \
/f-stack/freebsd/mips/mips/
H A Dmachdep.c306 PCPU_SET(curpcb, thread0.td_pcb); in mips_proc0_init()
/f-stack/freebsd/amd64/vmm/intel/
H A Dvmx_msr.c356 update_pcb_bases(curpcb); in vmx_msr_guest_enter()
/f-stack/freebsd/amd64/linux/
H A Dlinux_sysvec.c491 if (pcb == curpcb) { in linux_exec_setregs()
/f-stack/freebsd/x86/x86/
H A Dmp_x86.c1094 MPASS(PCPU_GET(curpcb) == NULL); in init_secondary_tail()
/f-stack/freebsd/amd64/vmm/
H A Dvmm.c1737 pcb = PCPU_GET(curpcb); in vm_run()