diff options
Diffstat (limited to 'i386/i386/ldt.h')
-rw-r--r-- | i386/i386/ldt.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/i386/i386/ldt.h b/i386/i386/ldt.h index 81c49782..1f0d7014 100644 --- a/i386/i386/ldt.h +++ b/i386/i386/ldt.h @@ -56,12 +56,12 @@ extern struct real_descriptor ldt[LDTSZ]; -/* Fill a segment descriptor in the LDT. */ +/* Fill a 32bit segment descriptor in the LDT. */ #define fill_ldt_descriptor(selector, base, limit, access, sizebits) \ - fill_descriptor(&ldt[selector/8], base, limit, access, sizebits) + fill_descriptor(&ldt[sel_idx(selector)], base, limit, access, sizebits) #define fill_ldt_gate(selector, offset, dest_selector, access, word_count) \ - fill_gate((struct real_gate*)&ldt[selector/8], \ + fill_gate((struct real_gate*)&ldt[sel_idx(selector)], \ offset, dest_selector, access, word_count) void ldt_init(void); |