2015-07-20 16:34:46 +04:00
|
|
|
#include "gdt.hpp"
|
|
|
|
#include "../Types/types.hpp"
|
|
|
|
|
|
|
|
|
2015-07-20 16:58:34 +04:00
|
|
|
Gdt::Gdt(){
|
|
|
|
//Init desc 1 (0 conventional)
|
|
|
|
//Init desc 2 (code segment)
|
|
|
|
//Init desc 3 (data segment)
|
|
|
|
//Init desc 4 (stack segment)
|
|
|
|
|
|
|
|
|
2015-07-20 16:34:46 +04:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2015-07-20 16:58:34 +04:00
|
|
|
Gdt::~Gdt(){
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void Gdt::initGdtDesc(u32 base, u32 limit, u8 type, u8 param, gdtDescriptorStruct *Descriptor){
|
|
|
|
//Load parameter into "Descriptor"
|
|
|
|
}
|
2015-07-20 16:34:46 +04:00
|
|
|
|
2015-07-20 16:58:34 +04:00
|
|
|
void Gdt::loadGdt(){
|
|
|
|
//Copy Gdt into memory
|
2015-07-20 16:34:46 +04:00
|
|
|
}
|
2015-07-20 16:58:34 +04:00
|
|
|
|
|
|
|
|