Added SMP support

This commit is contained in:
Alex
2022-10-12 03:55:58 +03:00
parent 703de2c284
commit 127476ac64
7 changed files with 159 additions and 8 deletions

View File

@ -1,6 +1,7 @@
#include "gdt.hpp"
#include <memory.hpp>
#include <smp.hpp>
#include <cpu.hpp>
#include <debug.h>
@ -16,7 +17,7 @@ namespace GlobalDescriptorTable
GlobalDescriptorTableDescriptor gdt = {.Length = sizeof(GlobalDescriptorTableEntries) - 1, .Entries = &GDTEntries};
TaskStateSegment tss[256] = {
TaskStateSegment tss[MAX_CPU] = {
0,
{0, 0, 0},
0,
@ -70,4 +71,4 @@ namespace GlobalDescriptorTable
trace("GDT_TSS: %#lx", GDT_TSS);
trace("Global Descriptor Table initialized");
}
}
}