diff options
| author | Alexey Gavrilov <rebovas@yahoo.com> | 2024-02-22 14:18:39 +0700 |
|---|---|---|
| committer | Alexey Gavrilov <rebovas@yahoo.com> | 2024-02-22 14:18:39 +0700 |
| commit | cbcbf6e7d614ecf94dd7e1b9033f8d599f48662e (patch) | |
| tree | 59872849d347794cc58c8ad3aa201a14e0db526f /arch/x86/gdt/Gdt.h | |
| parent | c18781e37e6bfe153e7c0f2bc8b04df0aecf151d (diff) | |
Implement support of cpuid instruction + include folder + some updates
Diffstat (limited to 'arch/x86/gdt/Gdt.h')
| -rwxr-xr-x | arch/x86/gdt/Gdt.h | 5 |
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(); |
