summaryrefslogtreecommitdiff
path: root/Kernel/Arch/aarch64
diff options
context:
space:
mode:
authorTimon Kruiper <timonkruiper@gmail.com>2022-05-17 10:49:37 +0200
committerLinus Groh <mail@linusgroh.de>2022-06-02 13:14:12 +0100
commit77f24056e0fe8bf2dbca020d0d22941d621115cc (patch)
treed1be123f09332fa5bb2505c64951badc615f5bb4 /Kernel/Arch/aarch64
parent846d9ae8587c16d85f758f4daf399909b09d8643 (diff)
downloadserenity-77f24056e0fe8bf2dbca020d0d22941d621115cc.zip
Kernel: Disable interrupts when halting the aarch64 processor
This will actually halt the processor.
Diffstat (limited to 'Kernel/Arch/aarch64')
-rw-r--r--Kernel/Arch/aarch64/Processor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/Arch/aarch64/Processor.cpp b/Kernel/Arch/aarch64/Processor.cpp
index e4252782a8..54f582d754 100644
--- a/Kernel/Arch/aarch64/Processor.cpp
+++ b/Kernel/Arch/aarch64/Processor.cpp
@@ -34,6 +34,7 @@ void Processor::initialize(u32 cpu)
[[noreturn]] void Processor::halt()
{
+ disable_interrupts();
for (;;)
asm volatile("wfi");
}