#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | gdt_entry_t |
An entry in the GDT. More... | |
Macros | |
#define | GDT_ENTRIES 6 |
number of entries in the GDT More... | |
#define | GDT_RING0_CODE_SEG 1 |
kernel code segment index | |
#define | GDT_RING0_DATA_SEG 2 |
kernel data segment index | |
#define | GDT_RING3_CODE_SEG 3 |
user code segment index | |
#define | GDT_RING3_DATA_SEG 4 |
user data segment index | |
#define | GDT_TASK_STATE_SEG 5 |
task state segment index | |
Functions | |
void | gdt_init_entry (size_t entry, uint32_t base, uint32_t limit) |
Sets basic parameters of a GDT entry. More... | |
void | gdt_init () |
Initializes the GDT. More... | |
uint16_t | gdt_get_selector (size_t entry) |
Returns a selector ready to be loaded in a segment register. More... | |