1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 10:38:13 +00:00

Kernel/SMP: Don't process SMP messages in exit_trap() in non-SMP mode

This commit is contained in:
Andreas Kling 2021-08-09 13:23:05 +02:00
parent f27e7bbbf4
commit 57a7dfbd28

View file

@ -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) {