12 for (
int i = 0; i < 7; i++)
#define assert(expression)
void tss_ist_load(tss_t *tss, tss_ist_t ist, stack_pointer_t *stack)
Load a stack into an IST entry.
void tss_init(tss_t *tss)
Initialize a TSS structure.
tss_ist_t
Interrupt Stack Table indices.
Structure to define a stack in memory.
Task State Segment structure.
uint64_t rsp1
Stack pointer to load when switching to ring 1, unused.
uint16_t iopb
Offset to the I/O permission bitmap, we set this to the size of the TSS to disable the bitmap.
uint64_t rsp0
Stack pointer to load when switching to ring 0, unused.
uint64_t rsp2
Stack pointer to load when switching to ring 2, unused.