Lines Matching refs:pcb
448 struct pcb *pcb = &lwp->lwp_pcb; in getgregs() local
466 grp[REG_FSBASE] = pcb->pcb_fsbase; in getgregs()
467 grp[REG_GSBASE] = pcb->pcb_gsbase; in getgregs()
470 if (pcb->pcb_rupdate == 1) { in getgregs()
471 grp[REG_DS] = pcb->pcb_ds; in getgregs()
472 grp[REG_ES] = pcb->pcb_es; in getgregs()
473 grp[REG_FS] = pcb->pcb_fs; in getgregs()
474 grp[REG_GS] = pcb->pcb_gs; in getgregs()
501 struct pcb *pcb = &lwp->lwp_pcb; in getgregs32() local
506 if (pcb->pcb_rupdate == 1) { in getgregs32()
507 grp[GS] = (uint16_t)pcb->pcb_gs; in getgregs32()
508 grp[FS] = (uint16_t)pcb->pcb_fs; in getgregs32()
509 grp[DS] = (uint16_t)pcb->pcb_ds; in getgregs32()
510 grp[ES] = (uint16_t)pcb->pcb_es; in getgregs32()
704 struct pcb *pcb = &lwp->lwp_pcb; in setgregs() local
741 pcb->pcb_ds = UDS_SEL; in setgregs()
742 pcb->pcb_es = UDS_SEL; in setgregs()
751 pcb->pcb_fsbase = grp[REG_FSBASE]; in setgregs()
752 pcb->pcb_gsbase = grp[REG_GSBASE]; in setgregs()
753 pcb->pcb_fs = fix_segreg(grp[REG_FS], IS_NOT_CS, datamodel); in setgregs()
754 pcb->pcb_gs = fix_segreg(grp[REG_GS], IS_NOT_CS, datamodel); in setgregs()
759 pcb->pcb_rupdate = 1; in setgregs()
784 pcb->pcb_ds = fix_segreg(grp[REG_DS], IS_NOT_CS, datamodel); in setgregs()
785 pcb->pcb_es = fix_segreg(grp[REG_ES], IS_NOT_CS, datamodel); in setgregs()
790 pcb->pcb_fs = fix_segreg(grp[REG_FS], IS_NOT_CS, datamodel); in setgregs()
791 pcb->pcb_gs = fix_segreg(grp[REG_GS], IS_NOT_CS, datamodel); in setgregs()
796 pcb->pcb_rupdate = 1; in setgregs()