Understanding the Global Descriptor Table
Posted: Mon May 02, 2005 11:30 pm
In my previous posts I have asked for methods on setting up my GDT and gotten great responses (thanks). Now to further aid my descision, I want to know what the Global Descriptor Table does exactly. Heres how I think of it
It provides a set of rules for the offset (ring0, ring3, limit, etc..)
So say you have your code segment with 0x08 being the selector
0x08:(anything between 0 and 4GB) will have the rules applied to it, correct?
Same would apply to other entries in the GDT only with a different selector.
I thought this out a lot and would like to know if this is how it actually works so I can begin to think of how it might be useful in my kernel thus deciding how I'm going to implement the GDT.
Regards,
Warrior
It provides a set of rules for the offset (ring0, ring3, limit, etc..)
So say you have your code segment with 0x08 being the selector
0x08:(anything between 0 and 4GB) will have the rules applied to it, correct?
Same would apply to other entries in the GDT only with a different selector.
I thought this out a lot and would like to know if this is how it actually works so I can begin to think of how it might be useful in my kernel thus deciding how I'm going to implement the GDT.
Regards,
Warrior