diff options
author | Andreas Kling <kling@serenityos.org> | 2021-02-14 09:30:31 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-02-14 09:36:58 +0100 |
commit | b712345c922cfd32e7ec971f817af97ca7ee7ab4 (patch) | |
tree | c8cbfe3b0e281b603cfae05f5b0abb87b53e3776 /Kernel/Interrupts/APIC.cpp | |
parent | c598a95b1c3b66cf1029eac2bcd88288c1fdb05f (diff) | |
download | serenity-b712345c922cfd32e7ec971f817af97ca7ee7ab4.zip |
Kernel: Use PANIC() in a bunch of places :^)
Diffstat (limited to 'Kernel/Interrupts/APIC.cpp')
-rw-r--r-- | Kernel/Interrupts/APIC.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Interrupts/APIC.cpp b/Kernel/Interrupts/APIC.cpp index f5de71a18c..a698e8535f 100644 --- a/Kernel/Interrupts/APIC.cpp +++ b/Kernel/Interrupts/APIC.cpp @@ -36,6 +36,7 @@ #include <Kernel/IO.h> #include <Kernel/Interrupts/APIC.h> #include <Kernel/Interrupts/SpuriousInterruptHandler.h> +#include <Kernel/Panic.h> #include <Kernel/Thread.h> #include <Kernel/Time/APICTimer.h> #include <Kernel/VM/MemoryManager.h> @@ -424,8 +425,7 @@ void APIC::enable(u32 cpu) { if (cpu >= 8) { // TODO: x2apic support? - klog() << "SMP support is currently limited to 8 CPUs!"; - Processor::halt(); + PANIC("SMP support is currently limited to 8 CPUs!"); } // Use the CPU# as logical apic id |