mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-08 05:49:17 +00:00
APIC implementation (not working as expected)
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user