mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +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
Notes:
sideshowbarker
2024-07-17 10:30:58 +09:00
Author: https://github.com/FireFox317 Commit: https://github.com/SerenityOS/serenity/commit/77f24056e0 Pull-request: https://github.com/SerenityOS/serenity/pull/14146 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/BertalanD Reviewed-by: https://github.com/Hendiadyoin1 Reviewed-by: https://github.com/nico ✅
1 changed files with 1 additions and 0 deletions
|
@ -34,6 +34,7 @@ void Processor::initialize(u32 cpu)
|
|||
|
||||
[[noreturn]] void Processor::halt()
|
||||
{
|
||||
disable_interrupts();
|
||||
for (;;)
|
||||
asm volatile("wfi");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue