SELTOIDX
uint16_t idx = SELTOIDX(rp->r_cs);
ndx = SELTOIDX(sel);
USEGD_GETBASE(&ldt[SELTOIDX(rp->r_ss)]);
seli = SELTOIDX(ssd->sel);