summaryrefslogtreecommitdiff
path: root/Kernel/Arch/x86
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-08-09 13:23:05 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-09 13:23:42 +0200
commit57a7dfbd28d58f8f71f68fe087382be13addfb62 (patch)
tree25b51ec78bb7f9a16c74231fe35ff35396fa7c86 /Kernel/Arch/x86
parentf27e7bbbf431fc061bcb102c4533a58bb7101163 (diff)
downloadserenity-57a7dfbd28d58f8f71f68fe087382be13addfb62.zip
Kernel/SMP: Don't process SMP messages in exit_trap() in non-SMP mode
Diffstat (limited to 'Kernel/Arch/x86')
-rw-r--r--Kernel/Arch/x86/common/Processor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Kernel/Arch/x86/common/Processor.cpp b/Kernel/Arch/x86/common/Processor.cpp
index b437e891cb..e4c94735de 100644
--- a/Kernel/Arch/x86/common/Processor.cpp
+++ b/Kernel/Arch/x86/common/Processor.cpp
@@ -613,7 +613,8 @@ void Processor::exit_trap(TrapFrame& trap)
VERIFY(m_in_irq >= trap.prev_irq_level);
m_in_irq = trap.prev_irq_level;
- smp_process_pending_messages();
+ if (s_smp_enabled)
+ smp_process_pending_messages();
auto* current_thread = Processor::current_thread();
if (current_thread) {