When do I first need a TSS?
Posted: Mon May 21, 2012 12:33 am
From what I'm reading on the Wiki, it looks like I don't need a TSS until I transition to user mode, and thus kernel-mode-only code, such as boot code, should be fine without one.
However, I picked this up by reading between the lines (the Wiki says I need a TSS for interrupts in user mode, but doesn't say anything about whether I need one for interrupts in kernel mode, and I'm assuming that the fact that nothing is said about kernel mode means a TSS isn't needed there), so I'm uncertain that I haven't overlooked something.
So have I interpreted things correctly, or is there something waiting to bite me in the rear if I enable interrupts without a TSS in ring 0?
However, I picked this up by reading between the lines (the Wiki says I need a TSS for interrupts in user mode, but doesn't say anything about whether I need one for interrupts in kernel mode, and I'm assuming that the fact that nothing is said about kernel mode means a TSS isn't needed there), so I'm uncertain that I haven't overlooked something.
So have I interpreted things correctly, or is there something waiting to bite me in the rear if I enable interrupts without a TSS in ring 0?