mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 12:17:35 +00:00
Kernel: Disable interrupts when halting the aarch64 processor
This will actually halt the processor.
This commit is contained in:
parent
846d9ae858
commit
77f24056e0
1 changed files with 1 additions and 0 deletions
|
@ -34,6 +34,7 @@ void Processor::initialize(u32 cpu)
|
||||||
|
|
||||||
[[noreturn]] void Processor::halt()
|
[[noreturn]] void Processor::halt()
|
||||||
{
|
{
|
||||||
|
disable_interrupts();
|
||||||
for (;;)
|
for (;;)
|
||||||
asm volatile("wfi");
|
asm volatile("wfi");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue