Kernel now boots on BIOS systems

This commit is contained in:
Alex
2022-11-07 11:17:06 +02:00
parent b60ec62bde
commit 6409dfdf0b
5 changed files with 21 additions and 12 deletions

View File

@ -52,11 +52,15 @@ namespace Power
CPU::Stop();
}
void Power::InitDSDT()
{
if (((ACPI::ACPI *)this->acpi)->FADT)
this->dsdt = new ACPI::DSDT((ACPI::ACPI *)acpi);
}
Power::Power()
{
this->acpi = new ACPI::ACPI(bInfo);
if (((ACPI::ACPI *)this->acpi)->FADT)
this->dsdt = new ACPI::DSDT((ACPI::ACPI *)acpi);
this->madt = new ACPI::MADT(((ACPI::ACPI *)acpi)->MADT);
trace("Power manager initialized");
}