diff options
| author | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2015-07-28 14:19:00 +0400 |
|---|---|---|
| committer | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2015-07-28 14:19:00 +0400 |
| commit | e0c565f7ff7620dca9dfc6c607f4798f5291c7bf (patch) | |
| tree | c18099687db0202e32ae47f4c991b895191f030e /kernel/GDT/gdt.hpp | |
| parent | aac010a9e30e479968e277ebdaf41ad366a77098 (diff) | |
Diffstat (limited to 'kernel/GDT/gdt.hpp')
| -rw-r--r-- | kernel/GDT/gdt.hpp | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/kernel/GDT/gdt.hpp b/kernel/GDT/gdt.hpp deleted file mode 100644 index f6caa3d..0000000 --- a/kernel/GDT/gdt.hpp +++ /dev/null @@ -1,55 +0,0 @@ -#ifndef __GDT__ -#define __GDT__ - -#include "../Helpers/types.hpp" - -//Define GDT pointer -struct gdtPointerStruct{ - u16 size; - u32 segment; -} __attribute__ ((packed)); - -//Define GDT descriptor -struct gdtDescriptorStruct{ - u16 limit1; - u16 base1; - u8 base2; - u8 access; - u8 limit2 : 4; - u8 flags : 4; - u8 base3; -} __attribute__ ((packed)); - -//Typedef : -typedef struct gdtPointerStruct gdtPointerStruct; -typedef struct gdtDescriptorStruct gdtDescriptorStruct; - - -//Gdt class -class Gdt{ - - private: - - //Data members - gdtDescriptorStruct m_Descriptors[4]; - gdtPointerStruct m_Pointer; - - //Methods - void initGdtDesc(u32 base, u32 limit, u8 access, u8 flags, gdtDescriptorStruct *Descriptor); - - - public: - - //Constructor - Gdt(); - - //Destructor - ~Gdt(); - - //Methods - void loadGdt(); - -}; - - -#endif |
