![]() |
Max OS 0.3
|
Sets up the GDT in the CPU. More...
#include <gdt.h>
Public Member Functions | |
| GlobalDescriptorTable () | |
| Construct a new Global Descriptor Table object and set up the GDT entries and load it into the CPU, reloading segment registers. | |
| void | load () |
| Loads the GDT into the CPU. | |
Public Attributes | |
| uint64_t | table [7] |
| The GDT entries. | |
| gdtr_t | gdtr = { } |
| The GDTR structure. | |
| GlobalDescriptorTable::GlobalDescriptorTable | ( | ) |
Construct a new Global Descriptor Table object and set up the GDT entries and load it into the CPU, reloading segment registers.
Definition at line 18 of file gdt.cpp.
References MaxOS::Logger::DEBUG(), load(), and table.
| void GlobalDescriptorTable::load | ( | ) |
Loads the GDT into the CPU.
Definition at line 77 of file gdt.cpp.
References MaxOS::Logger::DEBUG(), gdtr, and table.
Referenced by GlobalDescriptorTable().
| gdtr_t MaxOS::system::GlobalDescriptorTable::gdtr = { } |
| uint64_t MaxOS::system::GlobalDescriptorTable::table[7] |
The GDT entries.
Definition at line 59 of file gdt.h.
Referenced by GlobalDescriptorTable(), and load().