1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:48:11 +00:00

Kernel/ACPI: Simplify parser initialization

Let's remove the DynamicParser class, as it really did nothing yet in
the Kernel. Instead, when we add support for AML parsing, we can figure
out how to do it properly without the need of a derived class that just
complicates everything for no good reason.
This commit is contained in:
Liav A 2021-09-10 16:45:12 +03:00 committed by Andreas Kling
parent 6348b63476
commit 026f80a95b
9 changed files with 59 additions and 178 deletions

View file

@ -137,7 +137,7 @@ UNMAP_AFTER_INIT StringView CommandLine::root_device() const
UNMAP_AFTER_INIT AcpiFeatureLevel CommandLine::acpi_feature_level() const
{
auto value = kernel_command_line().lookup("acpi"sv).value_or("on"sv);
auto value = kernel_command_line().lookup("acpi"sv).value_or("limited"sv);
if (value == "limited"sv)
return AcpiFeatureLevel::Limited;
if (value == "off"sv)