Changeset View
Changeset View
Standalone View
Standalone View
sys/i386/i386/machdep.c
Show First 20 Lines • Show All 1,501 Lines • ▼ Show 20 Lines | static struct soft_segment_descriptor ldt_segs[] = { | ||||
.ssd_type = SDT_MEMRWA, | .ssd_type = SDT_MEMRWA, | ||||
.ssd_dpl = SEL_UPL, | .ssd_dpl = SEL_UPL, | ||||
.ssd_p = 1, | .ssd_p = 1, | ||||
.ssd_xx = 0, .ssd_xx1 = 0, | .ssd_xx = 0, .ssd_xx1 = 0, | ||||
.ssd_def32 = 1, | .ssd_def32 = 1, | ||||
.ssd_gran = 1 }, | .ssd_gran = 1 }, | ||||
}; | }; | ||||
uintptr_t setidt_disp; | size_t setidt_disp; | ||||
void | void | ||||
setidt(int idx, inthand_t *func, int typ, int dpl, int selec) | setidt(int idx, inthand_t *func, int typ, int dpl, int selec) | ||||
{ | { | ||||
uintptr_t off; | uintptr_t off; | ||||
off = func != NULL ? (uintptr_t)func + setidt_disp : 0; | off = func != NULL ? (uintptr_t)func + setidt_disp : 0; | ||||
setidt_nodisp(idx, off, typ, dpl, selec); | setidt_nodisp(idx, off, typ, dpl, selec); | ||||
▲ Show 20 Lines • Show All 1,742 Lines • Show Last 20 Lines |