Kernel: Avoid possible dead lock while sending smp messages

Process own events while waiting for space on another processor. This
fixes a dead lock when processors are sending messages to each other
This commit is contained in:
2026-05-06 00:09:05 +03:00
parent 47650980f2
commit eba97c1fc7

View File

@@ -464,7 +464,7 @@ namespace Kernel
auto* storage = processor.m_smp_free.exchange(nullptr);
while (storage == nullptr)
{
__builtin_ia32_pause();
Processor::pause();
storage = processor.m_smp_free.exchange(nullptr);
}