mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:07:45 +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:
parent
d95362d8cd
commit
4644217094
13 changed files with 46 additions and 111 deletions
|
@ -118,7 +118,7 @@ bool HPET::test_and_initialize()
|
|||
{
|
||||
ASSERT(!HPET::initialized());
|
||||
hpet_initialized = true;
|
||||
auto hpet = ACPI::Parser::the().find_table("HPET");
|
||||
auto hpet = ACPI::Parser::the()->find_table("HPET");
|
||||
if (hpet.is_null())
|
||||
return false;
|
||||
klog() << "HPET @ " << hpet;
|
||||
|
@ -141,7 +141,7 @@ bool HPET::test_and_initialize()
|
|||
|
||||
bool HPET::check_for_exisiting_periodic_timers()
|
||||
{
|
||||
auto hpet = ACPI::Parser::the().find_table("HPET");
|
||||
auto hpet = ACPI::Parser::the()->find_table("HPET");
|
||||
if (hpet.is_null())
|
||||
return false;
|
||||
auto region = MM.allocate_kernel_region(hpet.page_base(), (PAGE_SIZE * 2), "HPET Initialization", Region::Access::Read);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue