diff options
| author | Alexey Gavrilov <90127298+rebovas@users.noreply.github.com> | 2024-03-07 15:18:51 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-07 15:18:51 +0700 |
| commit | 05673a8a51a9f00fa367ec2898ffce493e7ecdc9 (patch) | |
| tree | 4999e8c789a036511a1b6bbaec594b712bb1f64a /arch/x86/gdt/Gdt.cpp | |
| parent | 976575c12b5da66996a3204ec711e4937a3ef240 (diff) | |
| parent | 244a9154e42a49470bd28e3a95ebe9f4a5fe5ff7 (diff) | |
Merge pull request #1 from rebovas/init_proc
Mechanism of initialization
Diffstat (limited to 'arch/x86/gdt/Gdt.cpp')
| -rwxr-xr-x | arch/x86/gdt/Gdt.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/gdt/Gdt.cpp b/arch/x86/gdt/Gdt.cpp index 88c7bbd..21941b4 100755 --- a/arch/x86/gdt/Gdt.cpp +++ b/arch/x86/gdt/Gdt.cpp @@ -1,6 +1,8 @@ #include "Gdt.h" +uint64 MngGdt::gdt[MngGdt::size]; + DescSeg32::DescSeg32(uint32 base, uint32 limit, uint8 access, uint8 flags) { this->baseLow = base & 0x0000FFFF; @@ -88,7 +90,7 @@ bool MngGdt::loadGdt() pointer <<= 16; pointer |= size; - GOTOGDTMEMSEG(pointer); + SWITCHTOGDT(pointer); isGdtLoaded = 1; return true; |
