Kernel: Disable interrupts when halting the aarch64 processor

This will actually halt the processor.
This commit is contained in:
Timon Kruiper 2022-05-17 10:49:37 +02:00 committed by Linus Groh
parent 846d9ae858
commit 77f24056e0
Notes: sideshowbarker 2024-07-17 10:30:58 +09:00

View file

@ -34,6 +34,7 @@ void Processor::initialize(u32 cpu)
[[noreturn]] void Processor::halt()
{
disable_interrupts();
for (;;)
asm volatile("wfi");
}