mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-05 20:39:19 +00:00
Added SMP support
This commit is contained in:
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user