Lines Matching refs:pcb
91 static struct pcb lwp0pcb;
198 struct pcb *pcb = lwp_getpcb(l); in cpu_lwp_setprivate() local
201 pcb->pcb_ucp.uc_mcontext._mc_tlsbase = in cpu_lwp_setprivate()
203 pcb->pcb_ucp.uc_flags |= _UC_TLSBASE; in cpu_lwp_setprivate()
205 pcb->pcb_userret_ucp.uc_mcontext._mc_tlsbase = in cpu_lwp_setprivate()
207 pcb->pcb_userret_ucp.uc_flags |= _UC_TLSBASE; in cpu_lwp_setprivate()
216 struct pcb *oldpcb; in cpu_switchto_atomic()
217 struct pcb *newpcb; in cpu_switchto_atomic()
246 struct pcb *oldpcb = oldlwp ? lwp_getpcb(oldlwp) : NULL; in cpu_switchto()
247 struct pcb *newpcb = lwp_getpcb(newlwp); in cpu_switchto()
316 struct pcb *pcb = lwp_getpcb(l); in cpu_getmcontext() local
317 ucontext_t *ucp = &pcb->pcb_userret_ucp; in cpu_getmcontext()
348 struct pcb *pcb = lwp_getpcb(l); in cpu_setmcontext() local
349 ucontext_t *ucp = &pcb->pcb_userret_ucp; in cpu_setmcontext()
402 struct pcb *pcb = lwp_getpcb(l); in cpu_lwp_free2() local
408 if (pcb == NULL) in cpu_lwp_free2()
431 struct pcb *pcb1 = lwp_getpcb(l1); in cpu_lwp_fork()
432 struct pcb *pcb2 = lwp_getpcb(l2); in cpu_lwp_fork()
444 memcpy(pcb2, pcb1, sizeof(struct pcb)); in cpu_lwp_fork()