void tss_set_stack(uint32_t kss, uint32_t kesp)
This function is used to set the esp the kernel should be using.
Definition: tss.c:53
void tss_init(uint8_t idx, uint32_t ss0)
We don't need tss to assist task switching, but it's required to have one tss for switching back to k...
Definition: tss.c:20
Task state segment entry.
Definition: tss.h:17
uint32_t esp0
The stack pointer to load when we change to kernel mode.
Definition: tss.h:19
uint32_t ss0
The stack segment to load when we change to kernel mode.
Definition: tss.h:20
uint32_t esp1
everything below here is unusued now.
Definition: tss.h:21
uint32_t prev_tss
If we used hardware task switching this would form a linked list.
Definition: tss.h:18