UnnamedOS
tss.c File Reference
#include <common.h>
#include <tasks/tss.h>
+ Include dependency graph for tss.c:

Go to the source code of this file.

Data Structures

struct  tss_t
 the task state segment More...
 

Functions

void tss_init (gdt_entry_t *gdt)
 Initializes the TSS. More...
 
void tss_set_stack (uint32_t stack_pointer)
 Sets the TSS's kernel stack which is used to handle interrupts. More...
 
void tss_load ()
 Loads the TSS into the TR register. More...
 

Variables

static tss_t tss
 the TSS, for software multitasking we only need one