GDT Tutorial: Difference between revisions

no edit summary
[unchecked revision][unchecked revision]
m (→‎Filling the table: Capitalized "I" twice.)
No edit summary
Line 76:
=== Filling the table ===
 
You noticed that I didn't gave a real structure for <tt>GDT[]</tt>, didn't you? That's on purpose. The actual structure of descriptors is a little messy for reasonsbackwards unknowncompatibility with the 286's GDT. Base address are split on 3 different fields and you cannot encode any limit you want. Plus, here and there, you have flags that you need to set up properly if you want things to work.
 
<source lang="c">
Anonymous user