UnnamedOS
tss.h
Go to the documentation of this file.
1 
7 #ifndef TASKS_TSS_H
8 #define TASKS_TSS_H
9 
10 #include <stdint.h>
11 #include <mem/gdt.h>
12 
13 void tss_init(gdt_entry_t* gdt);
14 void tss_set_stack(uint32_t stack_pointer);
15 void tss_load();
16 
17 #endif
18 
void tss_set_stack(uint32_t stack_pointer)
Sets the TSS&#39;s kernel stack which is used to handle interrupts.
Definition: tss.c:48
void tss_init(gdt_entry_t *gdt)
Initializes the TSS.
Definition: tss.c:35
An entry in the GDT.
Definition: gdt.h:20
void tss_load()
Loads the TSS into the TR register.
Definition: tss.c:53
static gdt_entry_t gdt[GDT_ENTRIES]
The GDT itself. It is located inside the kernel.
Definition: gdt.c:41