mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-03 22:35:32 +00:00
Kernel: Remove "non-operational" ACPI parser state
If we don't support ACPI, just don't instantiate an ACPI parser. This is way less confusing than having a special parser class whose only purpose is to do nothing. We now search for the RSDP in ACPI::initialize() instead of letting the parser constructor do it. This allows us to defer the decision to create a parser until we're sure we can make a useful one.
This commit is contained in:
@@ -3993,7 +3993,8 @@ int Process::sys$reboot()
|
||||
dbg() << "syncing mounted filesystems...";
|
||||
FS::sync();
|
||||
dbg() << "attempting reboot via ACPI";
|
||||
ACPI::Parser::the().try_acpi_reboot();
|
||||
if (ACPI::is_enabled())
|
||||
ACPI::Parser::the()->try_acpi_reboot();
|
||||
dbg() << "attempting reboot via KB Controller...";
|
||||
IO::out8(0x64, 0xFE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user