mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:18:12 +00:00
Kernel: Simplify ACPI initialization a bit
Construct the parser, no matter which kind, in ACPI::initialize().
This commit is contained in:
parent
85c0557839
commit
e983c745f7
7 changed files with 30 additions and 59 deletions
|
@ -51,13 +51,13 @@ void initialize()
|
|||
{
|
||||
switch (determine_feature_level()) {
|
||||
case FeatureLevel::Enabled:
|
||||
ACPI::DynamicParser::initialize_without_rsdp();
|
||||
Parser::initialize<DynamicParser>();
|
||||
break;
|
||||
case FeatureLevel::Limited:
|
||||
ACPI::StaticParser::initialize_without_rsdp();
|
||||
Parser::initialize<StaticParser>();
|
||||
break;
|
||||
case FeatureLevel::Disabled:
|
||||
ACPI::Parser::initialize_limited();
|
||||
Parser::initialize<Parser>();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue