PiegOS/kernel/GDT/gdt.cpp
2015-07-20 16:58:34 +04:00

27 lines
396 B
C++

#include "gdt.hpp"
#include "../Types/types.hpp"
Gdt::Gdt(){
//Init desc 1 (0 conventional)
//Init desc 2 (code segment)
//Init desc 3 (data segment)
//Init desc 4 (stack segment)
}
Gdt::~Gdt(){
}
void Gdt::initGdtDesc(u32 base, u32 limit, u8 type, u8 param, gdtDescriptorStruct *Descriptor){
//Load parameter into "Descriptor"
}
void Gdt::loadGdt(){
//Copy Gdt into memory
}