diff options
author | Liav A <liavalb@gmail.com> | 2020-04-09 20:48:57 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-09 19:59:53 +0200 |
commit | fec8763c210031f65005e1a2455fe707790ef26b (patch) | |
tree | 4ee598b1c377aac92b54cf93fae0c8b0f7e6de2c /Kernel/ACPI | |
parent | a7c5a1fe69633ce5cb4f2bc76cf9ea2563f1a539 (diff) | |
download | serenity-fec8763c210031f65005e1a2455fe707790ef26b.zip |
Interrupts: Make the MultiProcessorParser functional again
Diffstat (limited to 'Kernel/ACPI')
-rw-r--r-- | Kernel/ACPI/MultiProcessorParser.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/ACPI/MultiProcessorParser.cpp b/Kernel/ACPI/MultiProcessorParser.cpp index 05157a77df..7da9b65c33 100644 --- a/Kernel/ACPI/MultiProcessorParser.cpp +++ b/Kernel/ACPI/MultiProcessorParser.cpp @@ -40,8 +40,8 @@ bool MultiProcessorParser::is_initialized() void MultiProcessorParser::initialize() { - if (!MultiProcessorParser::is_initialized()) - s_parser = new MultiProcessorParser; + ASSERT(!is_initialized()); + s_parser = new MultiProcessorParser; } MultiProcessorParser::MultiProcessorParser() @@ -181,7 +181,7 @@ Vector<unsigned> MultiProcessorParser::get_pci_bus_ids() MultiProcessorParser& MultiProcessorParser::the() { - ASSERT(!MultiProcessorParser::is_initialized()); + ASSERT(is_initialized()); return *s_parser; } |