About TSS Gate

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
sturmstiger

About TSS Gate

Post by sturmstiger »

Can anyone tell me what's the difference between task switching using TSS and TSS Gate? Thanks.
sturmstiger

BTW..

Post by sturmstiger »

By the way,I don't quite understand the use of RPL in selectors.Do I need to give it a value or the CPU would put CPL into it while executing? Thanks.
sturmstiger

Re:About TSS Gate

Post by sturmstiger »

Do those HD devices use DMA?
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:About TSS Gate

Post by Pype.Clicker »

a TSS gate is a pointer to a TSS. by calling/jumping it, you can do the same operation as if you were calling/jumping the TSS itself, BUT gates can be stored in IDT and LDT while TSS MUST reside in GDT ... so basically, gates are used to give a specific TSS the ability to call another one, even from user level.

The DPL field of the task gate is the required level to call that gate. I guess the DPL filed of the TSS do the same, but i wouldn't set TSS.DPL!=0 if i were you ...
Post Reply