GDT Tutorial: Difference between revisions

Jump to navigation Jump to search
m
a little typo/grammar fix
[unchecked revision][unchecked revision]
(Fixed bit shifting error as pointed out on the talk page, some comments and changed SEG_TYPE to SEG_DESCTYPE to differentiate segment and descriptor types)
m (a little typo/grammar fix)
Line 76:
=== Filling the table ===
 
You noticed that I didn't gavegive a real structure for <tt>GDT[]</tt>, didn't you? That's on purpose. The actual structure of descriptors is a little messy for backwards compatibility 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">
16

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu