mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00:00
Kernel: Don't retrieve possibly nonexistent APIC table
This commit is contained in:
parent
c3a6d96988
commit
228a32effc
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue