| /f-stack/freebsd/arm64/arm64/ |
| H A D | vfp.c | 205 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 D | freebsd32_machdep.c | 123 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 D | machdep.c | 620 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 D | mp_machdep.c | 291 MPASS(PCPU_GET(curpcb) == NULL); in init_secondary()
|
| H A D | pmap.c | 6687 PCPU_SET(curpcb, pcb); in pmap_switch()
|
| /f-stack/freebsd/arm/arm/ |
| H A D | vfp.c | 179 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 D | trap.c | 285 (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 D | npx.c | 566 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 D | vm86.c | 196 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 D | machdep.c | 1188 if (pcb == curpcb) { in exec_setregs() 2489 PCPU_SET(curpcb, thread0.td_pcb); in init386()
|
| /f-stack/freebsd/amd64/amd64/ |
| H A D | fpu.c | 510 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 D | trap.c | 482 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 D | machdep.c | 631 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 D | pcpu_aux.h | 65 #define curpcb (&curthread->td_md.md_pcb) macro
|
| /f-stack/freebsd/i386/include/ |
| H A D | pcpu_aux.h | 69 #define curpcb (__curpcb()) macro
|
| /f-stack/freebsd/mips/include/ |
| H A D | pcb.h | 135 extern struct pcb *curpcb; /* the current running pcb */
|
| /f-stack/freebsd/contrib/openzfs/include/os/freebsd/spl/sys/ |
| H A D | simd_x86.h | 49 if (__predict_false(curpcb->pcb_flags & PCB_FPUNOSAVE)) \
|
| /f-stack/freebsd/mips/mips/ |
| H A D | machdep.c | 306 PCPU_SET(curpcb, thread0.td_pcb); in mips_proc0_init()
|
| /f-stack/freebsd/amd64/vmm/intel/ |
| H A D | vmx_msr.c | 356 update_pcb_bases(curpcb); in vmx_msr_guest_enter()
|
| /f-stack/freebsd/amd64/linux/ |
| H A D | linux_sysvec.c | 491 if (pcb == curpcb) { in linux_exec_setregs()
|
| /f-stack/freebsd/x86/x86/ |
| H A D | mp_x86.c | 1094 MPASS(PCPU_GET(curpcb) == NULL); in init_secondary_tail()
|
| /f-stack/freebsd/amd64/vmm/ |
| H A D | vmm.c | 1737 pcb = PCPU_GET(curpcb); in vm_run()
|