Add support for legacy Multiboot aka Multiboot1

This commit is contained in:
Alex
2023-09-06 22:43:33 +03:00
parent 6db0df6afe
commit a452b9acd1
37 changed files with 988 additions and 1169 deletions

View File

@@ -97,8 +97,20 @@ namespace SMP
void Initialize(void *_madt)
{
if (!_madt)
{
error("MADT is NULL");
return;
}
ACPI::MADT *madt = (ACPI::MADT *)_madt;
if (madt->lapic.size() < 1)
{
error("No CPUs found!");
return;
}
int Cores = madt->CPUCores + 1;
if (Config.Cores > madt->CPUCores + 1)