APIC implementation (not working as expected)

This commit is contained in:
Alex
2022-10-17 04:05:44 +03:00
parent c5b4666b50
commit c944f57a3b
15 changed files with 272 additions and 153 deletions

View File

@ -30,7 +30,7 @@ namespace ACPI
}
}
// warn("%s not found!", Signature);
return 0;
return nullptr;
}
void ACPI::SearchTables(ACPIHeader *Header)
@ -116,9 +116,12 @@ namespace ACPI
this->SearchTables(XSDT);
outb(FADT->SMI_CommandPort, FADT->AcpiEnable);
while (!(inw(FADT->PM1aControlBlock) & 1))
;
if (FADT)
{
outb(FADT->SMI_CommandPort, FADT->AcpiEnable);
while (!(inw(FADT->PM1aControlBlock) & 1))
;
}
}
ACPI::~ACPI()