1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:38:11 +00:00

Kernel: Lock needs to call Processor::wait_check while looping

We need to process SMP messages while looping.
This commit is contained in:
Tom 2020-10-26 16:48:51 -06:00 committed by Andreas Kling
parent 72d019f4a4
commit a14884dd33

View file

@ -80,6 +80,9 @@ void Lock::lock(Mode mode)
// Note, we may now be on a different CPU!
Processor::current().restore_critical(prev_crit, prev_flags);
} else {
// We need to process e.g. smp messages
Processor::wait_check();
}
}
}