System Descriptor Types
Posted: Wed Jul 14, 2004 3:29 pm
Hi,
Is there anybody who can explain me the purpose of each kind of Descriptor ?
- Code / Data segment descriptor
- TSS descriptor
- Call gate descriptor
- Interrupt gate descriptor
- Trap gate descriptor
- Task gate descriptor...
How does it work ?
I've understood that under PM, it was necessary do describe the different segments used. So, I think that for Code and Data segment descriptor, I've caught the idea...
Concerning the TSS descriptor, I imagine I must fill a GDT entry with this for each task running on my system ?
But I've got some troubles with Call gate, interrupt gate, trap gate and task gate descriptors... What is their aim ?
For instance, I've read that IDT can only contain Task gate, Interrupt gate or trap gate descriptor. How to choose one among them ?
I would be inclined to use Interrupt gate... But I've seen trap gate descriptors where used in IDT ! What is the difference between them ?
And what the hell a task gate descriptor comes into an IDT ?
Thanks for your help !
Silver.
Is there anybody who can explain me the purpose of each kind of Descriptor ?
- Code / Data segment descriptor
- TSS descriptor
- Call gate descriptor
- Interrupt gate descriptor
- Trap gate descriptor
- Task gate descriptor...
How does it work ?
I've understood that under PM, it was necessary do describe the different segments used. So, I think that for Code and Data segment descriptor, I've caught the idea...
Concerning the TSS descriptor, I imagine I must fill a GDT entry with this for each task running on my system ?
But I've got some troubles with Call gate, interrupt gate, trap gate and task gate descriptors... What is their aim ?
For instance, I've read that IDT can only contain Task gate, Interrupt gate or trap gate descriptor. How to choose one among them ?
I would be inclined to use Interrupt gate... But I've seen trap gate descriptors where used in IDT ! What is the difference between them ?
And what the hell a task gate descriptor comes into an IDT ?
Thanks for your help !
Silver.