Searched refs:curpcb (Results 1 - 25 of 26) sorted by relevance

12

/freebsd-12-stable/sys/amd64/include/
H A Dpcpu_aux.h60 #define curpcb (&curthread->td_md.md_pcb) macro
/freebsd-12-stable/sys/i386/include/
H A Dpcpu_aux.h69 #define curpcb (__curpcb()) macro
/freebsd-12-stable/sys/powerpc/include/
H A Dpcb.h99 #ifndef curpcb
100 extern struct pcb *curpcb;
/freebsd-12-stable/sys/arm64/arm64/
H A Dvfp.c204 struct pcb *curpcb; local
210 curpcb = curthread->td_pcb;
211 curpcb->pcb_fpflags |= PCB_FP_STARTED;
220 if (PCPU_GET(fpcurthread) != curthread || cpu != curpcb->pcb_vfpcpu) {
224 curpcb->pcb_vfpcpu = cpu;
374 struct pcb *curpcb; local
378 curpcb = curthread->td_pcb;
379 return ((curpcb->pcb_fpflags & PCB_FP_KERN) != 0);
H A Dmachdep.c446 struct pcb *curpcb; local
450 curpcb = curthread->td_pcb;
452 if ((curpcb->pcb_fpflags & PCB_FP_STARTED) != 0) {
457 vfp_save_state(td, curpcb);
459 KASSERT(curpcb->pcb_fpusaved == &curpcb->pcb_fpustate,
461 KASSERT((curpcb->pcb_fpflags & ~PCB_FP_USERMASK) == 0,
463 memcpy(mcp->mc_fpregs.fp_q, curpcb->pcb_fpustate.vfp_regs,
465 mcp->mc_fpregs.fp_cr = curpcb->pcb_fpustate.vfp_fpcr;
466 mcp->mc_fpregs.fp_sr = curpcb
479 struct pcb *curpcb; local
[all...]
H A Dmp_machdep.c327 MPASS(PCPU_GET(curpcb) == NULL);
/freebsd-12-stable/sys/arm/arm/
H A Dvfp.c181 struct pcb *curpcb; local
226 curpcb = curthread->td_pcb;
228 if (curpcb->pcb_vfpcpu != cpu || curthread != PCPU_GET(fpcurthread)) {
229 vfp_restore(&curpcb->pcb_vfpstate);
230 curpcb->pcb_vfpcpu = cpu;
H A Dpmap-v4.c2135 struct pcb *curpcb = PCPU_GET(curpcb); local
2155 curpcb->pcb_pl1vec = pcb->pcb_pl1vec;
2156 curpcb->pcb_l1vec = pcb->pcb_l1vec;
2157 curpcb->pcb_dacr = pcb->pcb_dacr;
2158 curpcb->pcb_pagedir = pcb->pcb_pagedir;
/freebsd-12-stable/sys/sparc64/include/
H A Dpcpu.h76 register struct pcb *curpcb __asm__(__XSTRING(PCB_REG));
/freebsd-12-stable/sys/riscv/riscv/
H A Dmachdep.c399 struct pcb *curpcb; local
403 curpcb = curthread->td_pcb;
405 KASSERT(td->td_pcb == curpcb, ("Invalid fpe pcb"));
407 if ((curpcb->pcb_fpflags & PCB_FP_STARTED) != 0) {
414 KASSERT((curpcb->pcb_fpflags & ~PCB_FP_USERMASK) == 0,
416 memcpy(mcp->mc_fpregs.fp_x, curpcb->pcb_x,
418 mcp->mc_fpregs.fp_fcsr = curpcb->pcb_fcsr;
419 mcp->mc_fpregs.fp_flags = curpcb->pcb_fpflags;
431 struct pcb *curpcb; local
441 curpcb
[all...]
H A Dmp_machdep.c290 MPASS(PCPU_GET(curpcb) == NULL);
/freebsd-12-stable/sys/i386/i386/
H A Dtrap.c291 (curpcb->pcb_flags & PCB_VM86CALL) == 0)
304 if (TRAPF_USERMODE(frame) && (curpcb->pcb_flags & PCB_VM86CALL) == 0) {
521 if (curpcb->pcb_flags & PCB_VM86CALL)
534 curpcb->pcb_gs = 0;
591 if (curpcb->pcb_onfault != NULL) {
592 frame->tf_eip = (int)curpcb->pcb_onfault;
630 !(curpcb->pcb_flags & PCB_VM86CALL))
877 curpcb->pcb_onfault != NULL) {
878 frame->tf_eip = (int)curpcb->pcb_onfault;
1130 (curpcb
[all...]
H A Dnpx.c564 fpusave(curpcb->pcb_save);
1482 KASSERT(curpcb->pcb_save == get_pcb_user_save_pcb(curpcb),
1484 KASSERT(PCB_USER_FPU(curpcb), ("recursive call"));
1486 curpcb->pcb_flags |= PCB_KERNNPX | PCB_KERNNPX_THR;
1496 return ((curpcb->pcb_flags & PCB_KERNNPX_THR) != 0);
H A Dvm86.c196 if (curpcb->pcb_ext == 0)
198 vm86 = &curpcb->pcb_ext->ext_vm86;
588 vm86 = &curpcb->pcb_ext->ext_vm86;
H A Dmachdep.c1154 if (pcb == curpcb) {
2506 PCPU_SET(curpcb, thread0.td_pcb);
/freebsd-12-stable/sys/amd64/amd64/
H A Dfpu.c512 fpusave(curpcb->pcb_save);
728 pcb_save = curpcb->pcb_save;
747 mxcsr = curpcb->pcb_save->sv_env.en_mxcsr;
817 KASSERT((curpcb->pcb_flags & PCB_FPUNOSAVE) == 0,
1153 fpusave(curpcb->pcb_save);
1243 KASSERT(curpcb->pcb_save == get_pcb_user_save_pcb(curpcb),
1245 KASSERT(PCB_USER_FPU(curpcb), ("recursive call"));
1247 set_pcb_flags(curpcb, PCB_KERNFPU | PCB_KERNFPU_THR);
1257 return ((curpcb
[all...]
H A Dtrap.c489 if (curpcb->pcb_onfault != NULL) {
490 frame->tf_rip = (long)curpcb->pcb_onfault;
671 (curpcb->pcb_saved_ucr3 & ~CR3_PCID_MASK) ==
772 trap_is_smap(frame) || curpcb->pcb_onfault == NULL)) {
844 curpcb->pcb_onfault != NULL) {
845 frame->tf_rip = (long)curpcb->pcb_onfault;
H A Dmachdep.c608 if (pcb == curpcb) {
1593 PCPU_SET(curpcb, thread0.td_pcb);
2680 if (curpcb == pcb &&
/freebsd-12-stable/sys/mips/include/
H A Dpcb.h135 extern struct pcb *curpcb; /* the current running pcb */
/freebsd-12-stable/sys/powerpc/powerpc/
H A Dmp_machdep.c318 savectx(PCPU_GET(curpcb));
/freebsd-12-stable/sys/mips/mips/
H A Dmachdep.c305 PCPU_SET(curpcb, thread0.td_pcb);
/freebsd-12-stable/sys/amd64/vmm/intel/
H A Dvmx_msr.c356 update_pcb_bases(curpcb);
/freebsd-12-stable/sys/powerpc/aim/
H A Daim_machdep.c699 PCPU_SET(curpcb, curthread->td_pcb);
/freebsd-12-stable/sys/x86/x86/
H A Dmp_x86.c1082 MPASS(PCPU_GET(curpcb) == NULL);
/freebsd-12-stable/sys/amd64/vmm/
H A Dvmm.c1710 pcb = PCPU_GET(curpcb);

Completed in 297 milliseconds

12