summaryrefslogtreecommitdiffstats
path: root/arch/x86/gdt/GlobalObj.cpp
diff options
context:
space:
mode:
authorAlexey Gavrilov <rebovas@yahoo.com>2023-11-04 10:09:44 +0700
committerAlexey Gavrilov <rebovas@yahoo.com>2023-11-04 10:09:44 +0700
commitc18781e37e6bfe153e7c0f2bc8b04df0aecf151d (patch)
tree42bb0e00e58ccf85aa3b93c20347d4939464066e /arch/x86/gdt/GlobalObj.cpp
parenta93807ad337dd982c49f898cd5205d2b028f365d (diff)
Support for GDT has been written + add makefile debug mode
Diffstat (limited to 'arch/x86/gdt/GlobalObj.cpp')
-rw-r--r--arch/x86/gdt/GlobalObj.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/x86/gdt/GlobalObj.cpp b/arch/x86/gdt/GlobalObj.cpp
new file mode 100644
index 0000000..5832c11
--- /dev/null
+++ b/arch/x86/gdt/GlobalObj.cpp
@@ -0,0 +1,14 @@
+#include "GlobalObj.h"
+
+
+uint64 MngGdt::gdt[MngGdt::size];
+
+MngGdt mngGdt;
+
+void mngGdtInit()
+{
+ if(!mngGdt.getIsGdtLoaded())
+ {
+ mngGdt = MngGdt();
+ }
+};