mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 23:07:34 +00:00
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:
parent
87582d5e63
commit
1b8cd6db7b
7 changed files with 32 additions and 19 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue