summaryrefslogtreecommitdiffstats
path: root/arch/x86/gdt/Gdt.h
diff options
context:
space:
mode:
authorAlexey Gavrilov <rebovas@yahoo.com>2024-02-22 14:18:39 +0700
committerAlexey Gavrilov <rebovas@yahoo.com>2024-02-22 14:18:39 +0700
commitcbcbf6e7d614ecf94dd7e1b9033f8d599f48662e (patch)
tree59872849d347794cc58c8ad3aa201a14e0db526f /arch/x86/gdt/Gdt.h
parentc18781e37e6bfe153e7c0f2bc8b04df0aecf151d (diff)
Implement support of cpuid instruction + include folder + some updates
Diffstat (limited to 'arch/x86/gdt/Gdt.h')
-rwxr-xr-xarch/x86/gdt/Gdt.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86/gdt/Gdt.h b/arch/x86/gdt/Gdt.h
index e3d48a3..a8d7dc2 100755
--- a/arch/x86/gdt/Gdt.h
+++ b/arch/x86/gdt/Gdt.h
@@ -1,7 +1,7 @@
#ifndef GDT_H
#define GDT_H
-#include "../inc/types.h"
+#include <types.h>
// Define access options
@@ -54,7 +54,7 @@ class DescSeg32 // Segment descriptor
static uint64 flatDataKernel();
static uint64 flatCodeUser();
static uint64 flatDataUser();
-} __attribute__((packed));
+};
#ifdef __cplusplus
extern "C" {
@@ -74,6 +74,7 @@ class MngGdt
public:
MngGdt();
+ void operator=(const MngGdt& src);
bool addDescriptor(uint64 desc); // 0 - not set descriptor, 1 - set
bool loadGdt(); // 0 - if GDT is not loaded, 1 - loaded
bool getIsGdtLoaded();