Task State Segment.
More...
|
static tss_t | tss |
| the TSS, for software multitasking we only need one
|
|
Task State Segment.
The TSS stores information for switching from user to kernel space.
- See also
- http://wiki.osdev.org/TSS
-
https://en.wikipedia.org/wiki/Task_state_segment
-
http://www.lowlevel.eu/wiki/Task_State_Segment
-
http://wiki.osdev.org/Getting_to_Ring_3
-
http://www.jamesmolloy.co.uk/tutorial_html/10.-User%20Mode.html
Initializes the TSS.
- Parameters
-
Creates a TSS descriptor in the GDT.
Sets the TSS's stack segment to the kernel stack segment.
Definition at line 35 of file tss.c.
Loads the TSS into the TR register.
Loads the TR (= Task Register) with the TSS's GDT selector.
Definition at line 53 of file tss.c.
void tss_set_stack |
( |
uint32_t |
stack_pointer | ) |
|
Sets the TSS's kernel stack which is used to handle interrupts.
- Parameters
-
stack_pointer | the kernel stack pointer |
Definition at line 48 of file tss.c.