summaryrefslogtreecommitdiff
path: root/kernel/GDT/gdt.hpp
diff options
context:
space:
mode:
authormanzerbredes <loic.guegan_secondary@yahoo.fr>2015-07-20 19:12:26 +0400
committermanzerbredes <loic.guegan_secondary@yahoo.fr>2015-07-20 19:12:26 +0400
commit54463cc2520dcaa73c8248b8e8eb195558d31589 (patch)
tree0e973a965099504733393162126e1bc4e951a6cd /kernel/GDT/gdt.hpp
parent55a449dc65a44d307f10a3dc4a2c19d66e2a65c3 (diff)
Implement initGdtDesc in Gdt class
Diffstat (limited to 'kernel/GDT/gdt.hpp')
-rw-r--r--kernel/GDT/gdt.hpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/kernel/GDT/gdt.hpp b/kernel/GDT/gdt.hpp
index 607cc72..a7966d6 100644
--- a/kernel/GDT/gdt.hpp
+++ b/kernel/GDT/gdt.hpp
@@ -14,10 +14,9 @@ struct gdtDescriptorStruct{
u16 limit1;
u16 base1;
u8 base2;
- u8 type : 4;
- u8 param1 : 4;
+ u8 access : 4;
u8 limit2 : 4;
- u8 param2 : 4;
+ u8 flags : 4;
u8 base3;
} __attribute__ ((packed));
@@ -36,7 +35,7 @@ class Gdt{
gdtPointerStruct m_Pointer;
//Methods
- void initGdtDesc(u32 base, u32 limit, u8 type, u8 param, gdtDescriptorStruct *Descriptor);
+ void initGdtDesc(u32 base, u32 limit, u8 access, u8 flags, gdtDescriptorStruct *Descriptor);
public: