KernOS
gdt.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 GDT
 global descriptor table
 
 INIT
 contains all kernel initialization routines
 

Enumerations

enum  GDT::Segment : uint16_t {
  GDT::Null = 0, GDT::K_CS, GDT::K_DS, GDT::U_CS,
  GDT::U_DS
}
 Code segments. More...
 

Functions

constexpr uint8_t GDT::SEG_OFFSET (const Segment Seg)
 Translates code segment enum to code segment selector. More...
 
void INIT::gdt ()
 creates global descriptor table and loads it into CPU More...
 

Variables

const uint8_t GDT::GDT_ENTRIES = 5