summaryrefslogtreecommitdiff
path: root/Source/Kernel/MemoryManager/GDT.ns.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Kernel/MemoryManager/GDT.ns.h')
-rw-r--r--Source/Kernel/MemoryManager/GDT.ns.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/Source/Kernel/MemoryManager/GDT.ns.h b/Source/Kernel/MemoryManager/GDT.ns.h
new file mode 100644
index 0000000..7a9f95f
--- /dev/null
+++ b/Source/Kernel/MemoryManager/GDT.ns.h
@@ -0,0 +1,24 @@
+#ifndef DEF_GDT_NS_H
+#define DEF_GDT_NS_H
+
+#include <Core/common.wtf.h>
+
+namespace GDT {
+ struct gdt_entry_t {
+ u16int limit_low;
+ u16int base_low;
+ u8int base_middle;
+ u8int access;
+ u8int granularity;
+ u8int base_high;
+ } __attribute__((packed));
+
+ struct gdt_ptr_t {
+ u16int limit;
+ u32int base;
+ } __attribute__((packed));
+
+ void init();
+}
+
+#endif