From fec8763c210031f65005e1a2455fe707790ef26b Mon Sep 17 00:00:00 2001 From: Liav A Date: Thu, 9 Apr 2020 20:48:57 +0300 Subject: Interrupts: Make the MultiProcessorParser functional again --- Kernel/ACPI/MultiProcessorParser.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Kernel/ACPI') 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 MultiProcessorParser::get_pci_bus_ids() MultiProcessorParser& MultiProcessorParser::the() { - ASSERT(!MultiProcessorParser::is_initialized()); + ASSERT(is_initialized()); return *s_parser; } -- cgit v1.2.3