mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 08:56:40 +00:00
Kernel: Don't retrieve possibly nonexistent APIC table
This commit is contained in:
parent
c3a6d96988
commit
228a32effc
|
@ -114,7 +114,10 @@ UNMAP_AFTER_INIT PhysicalAddress InterruptManagement::search_for_madt()
|
|||
auto rsdp = ACPI::StaticParsing::find_rsdp();
|
||||
if (!rsdp.has_value())
|
||||
return {};
|
||||
return ACPI::StaticParsing::find_table(rsdp.value(), "APIC").value();
|
||||
auto apic = ACPI::StaticParsing::find_table(rsdp.value(), "APIC");
|
||||
if (!apic.has_value())
|
||||
return {};
|
||||
return apic.value();
|
||||
}
|
||||
|
||||
UNMAP_AFTER_INIT InterruptManagement::InterruptManagement()
|
||||
|
|
Loading…
Reference in a new issue