diff options
Diffstat (limited to 'usr/src/uts/intel/ia32/os/sundep.c')
-rw-r--r-- | usr/src/uts/intel/ia32/os/sundep.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/usr/src/uts/intel/ia32/os/sundep.c b/usr/src/uts/intel/ia32/os/sundep.c index 8b4455576d..0f16acc954 100644 --- a/usr/src/uts/intel/ia32/os/sundep.c +++ b/usr/src/uts/intel/ia32/os/sundep.c @@ -375,12 +375,12 @@ lwp_forkregs(klwp_t *lwp, klwp_t *clwp) struct pcb *pcb = &clwp->lwp_pcb; struct regs *rp = lwptoregs(lwp); - if ((pcb->pcb_flags & RUPDATE_PENDING) == 0) { + if (pcb->pcb_rupdate == 0) { pcb->pcb_ds = rp->r_ds; pcb->pcb_es = rp->r_es; pcb->pcb_fs = rp->r_fs; pcb->pcb_gs = rp->r_gs; - pcb->pcb_flags |= RUPDATE_PENDING; + pcb->pcb_rupdate = 1; lwptot(clwp)->t_post_sys = 1; } ASSERT(lwptot(clwp)->t_post_sys); @@ -416,7 +416,7 @@ lwp_pcb_exit(void) * as a segment-not-present trap. * * Here we save the current values from the lwp regs into the pcb - * and set the RUPDATE_PENDING bit to tell the rest of the kernel + * and set pcb->pcb_rupdate to 1 to tell the rest of the kernel * that the pcb copy of the segment registers is the current one. * This ensures the lwp's next trip to user land via update_sregs. * Finally we set t_post_sys to ensure that no system call fast-path's @@ -447,7 +447,7 @@ lwp_segregs_save(klwp_t *lwp) ASSERT(VALID_LWP_DESC(&pcb->pcb_fsdesc)); ASSERT(VALID_LWP_DESC(&pcb->pcb_gsdesc)); - if ((pcb->pcb_flags & RUPDATE_PENDING) == 0) { + if (pcb->pcb_rupdate == 0) { rp = lwptoregs(lwp); /* @@ -461,7 +461,7 @@ lwp_segregs_save(klwp_t *lwp) pcb->pcb_es = rp->r_es; pcb->pcb_fs = rp->r_fs; pcb->pcb_gs = rp->r_gs; - pcb->pcb_flags |= RUPDATE_PENDING; + pcb->pcb_rupdate = 1; lwp->lwp_thread->t_post_sys = 1; } #endif /* __amd64 */ @@ -696,7 +696,7 @@ lwp_installctx(klwp_t *lwp) * On the amd64 kernel, the context handlers are responsible for * virtualizing %ds, %es, %fs, and %gs to the lwp. The register * values are only ever changed via sys_rtt when the - * RUPDATE_PENDING bit is set. Only sys_rtt gets to clear the bit. + * pcb->pcb_rupdate == 1. Only sys_rtt gets to clear the bit. * * On the i386 kernel, the context handlers are responsible for * virtualizing %gs/%fs to the lwp by updating the per-cpu GDTs @@ -827,7 +827,7 @@ setregs(uarg_t *args) pcb->pcb_ds = rp->r_ds; pcb->pcb_es = rp->r_es; - pcb->pcb_flags |= RUPDATE_PENDING; + pcb->pcb_rupdate = 1; #elif defined(__i386) |