SEL_UPL
ASSYM(KUCSEL, GSEL(GUCODE_SEL, SEL_UPL));
ASSYM(KUDSEL, GSEL(GUDATA_SEL, SEL_UPL));
ASSYM(KUC32SEL, GSEL(GUCODE32_SEL, SEL_UPL));
ASSYM(KUF32SEL, GSEL(GUFS32_SEL, SEL_UPL));
ASSYM(KUG32SEL, GSEL(GUGS32_SEL, SEL_UPL));
((u_int64_t)GSEL(GUCODE32_SEL, SEL_UPL) << 48);
SEL_UPL, 0);
SEL_UPL, 0);
&IDTVEC(dtrace_ret), SDT_SYSIGT, SEL_UPL, 0);
_ucodesel = GSEL(GUCODE_SEL, SEL_UPL);
_udatasel = GSEL(GUDATA_SEL, SEL_UPL);
_ucode32sel = GSEL(GUCODE32_SEL, SEL_UPL);
_ufssel = GSEL(GUFS32_SEL, SEL_UPL);
_ugssel = GSEL(GUGS32_SEL, SEL_UPL);
.ssd_dpl = SEL_UPL,
.ssd_dpl = SEL_UPL,
.ssd_dpl = SEL_UPL,
.ssd_dpl = SEL_UPL,
.ssd_dpl = SEL_UPL,
if ((dp->sd_p != 0) && (dp->sd_dpl != SEL_UPL))
&IDTVEC(int0x80_syscall), SDT_SYSIGT, SEL_UPL, 0);
desc.sd_dpl = SEL_UPL;
(ISPL((framep)->tf_cs) == SEL_UPL)
#define CS_SECURE(cs) (ISPL(cs) == SEL_UPL)
return (val != 0 && ISPL(val) != SEL_UPL);
td->td_frame->tf_gs = GSEL(GUGS32_SEL, SEL_UPL);
desc.sd.sd_dpl = SEL_UPL;
setidt(IDT_BP, &IDTVEC(bpt), SDT_SYS386IGT, SEL_UPL,
setidt(IDT_OF, &IDTVEC(ofl), SDT_SYS386IGT, SEL_UPL,
SDT_SYS386IGT, SEL_UPL, GSEL(GCODE_SEL, SEL_KPL));
SDT_SYS386IGT, SEL_UPL, GSEL(GCODE_SEL, SEL_KPL));
_ucodesel = GSEL(GUCODE_SEL, SEL_UPL);
_udatasel = GSEL(GUDATA_SEL, SEL_UPL);
desc.sd_dpl = SEL_UPL;
.ssd_dpl = SEL_UPL,
.ssd_dpl = SEL_UPL,
.ssd_dpl = SEL_UPL,
.ssd_dpl = SEL_UPL,
.ssd_dpl = SEL_UPL,
.ssd_dpl = SEL_UPL,
.ssd_dpl = SEL_UPL,
td->td_frame->tf_fs = GSEL(GUFS_SEL, SEL_UPL);
td->td_pcb->pcb_gs = GSEL(GUGS_SEL, SEL_UPL);
td->td_frame->tf_fs = GSEL(GUFS_SEL, SEL_UPL);
td->td_pcb->pcb_gs = GSEL(GUGS_SEL, SEL_UPL);
td->td_frame->tf_fs = GSEL(GUFS_SEL, SEL_UPL);
load_gs(GSEL(GUGS_SEL, SEL_UPL));
if (dp->sd.sd_p != 0 && dp->sd.sd_dpl != SEL_UPL)
sdp->sd_dpl = SEL_UPL;
ISPL(frame->tf_cs) == SEL_UPL ? "user" : "kernel");
sd.sd_dpl = SEL_UPL;
load_gs(GSEL(GUGS_SEL, SEL_UPL));
((ISPL((framep)->tf_cs) == SEL_UPL) || ((framep)->tf_eflags & PSL_VM))
#define CS_SECURE(cs) (ISPL(cs) == SEL_UPL)
td->td_pcb->pcb_gs = GSEL(GUGS_SEL, SEL_UPL);
load_gs(GSEL(GUGS_SEL, SEL_UPL));
#define CS_SECURE(cs) (ISPL(cs) == SEL_UPL)
#define CS_SECURE(cs) (ISPL(cs) == SEL_UPL)