From 57a7dfbd28d58f8f71f68fe087382be13addfb62 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 9 Aug 2021 13:23:05 +0200 Subject: Kernel/SMP: Don't process SMP messages in exit_trap() in non-SMP mode --- Kernel/Arch/x86/common/Processor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Kernel/Arch/x86/common/Processor.cpp') 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) { -- cgit v1.2.3