Kernel: Call ACPI reboot method first if possible

Now we call ACPI reboot method first if possible, and if ACPI reboot is
not available, we attempt to reboot via the keyboard controller.
This commit is contained in:
Liav A 2020-03-03 19:28:37 +02:00 committed by Andreas Kling
commit 1b8cd6db7b
Notes: sideshowbarker 2024-07-19 08:53:27 +09:00
7 changed files with 32 additions and 19 deletions

View file

@ -64,16 +64,14 @@ namespace ACPI {
return {};
}
void Parser::do_acpi_reboot()
void Parser::try_acpi_reboot()
{
klog() << "ACPI: Cannot invoke reboot!";
ASSERT_NOT_REACHED();
}
void Parser::do_acpi_shutdown()
void Parser::try_acpi_shutdown()
{
klog() << "ACPI: Cannot invoke shutdown!";
ASSERT_NOT_REACHED();
}
void Parser::enable_aml_interpretation()