diff options
Diffstat (limited to 'kernel/GDT/gdt.hpp')
| -rw-r--r-- | kernel/GDT/gdt.hpp | 31 |
1 files changed, 27 insertions, 4 deletions
diff --git a/kernel/GDT/gdt.hpp b/kernel/GDT/gdt.hpp index 4b16886..607cc72 100644 --- a/kernel/GDT/gdt.hpp +++ b/kernel/GDT/gdt.hpp @@ -21,13 +21,36 @@ struct gdtDescriptorStruct{ u8 base3; } __attribute__ ((packed)); - //Typedef : typedef struct gdtPointerStruct gdtPointerStruct; typedef struct gdtDescriptorStruct gdtDescriptorStruct; -//Functions : -void initGdtDesc(u32 base, u32 limit, u8 type, u8 param, gdtDescriptorStruct *descriptor); -void initGdt(); + +//Gdt class +class Gdt{ + + private: + + //Data members + gdtDescriptorStruct m_Descriptor[4]; + gdtPointerStruct m_Pointer; + + //Methods + void initGdtDesc(u32 base, u32 limit, u8 type, u8 param, gdtDescriptorStruct *Descriptor); + + + public: + + //Constructor + Gdt(); + + //Destructor + ~Gdt(); + + //Methods + void loadGdt(); + +}; + #endif |
