diff options
| author | Amlal <amlal.elmahrouss@icloud.com> | 2025-02-17 08:15:51 +0100 |
|---|---|---|
| committer | Amlal <amlal.elmahrouss@icloud.com> | 2025-02-17 08:19:53 +0100 |
| commit | 5e6b090e8caafe81d58b92198579fd006fb7b6a3 (patch) | |
| tree | f51f2fbf7a7e2994e589eb8359dcecd75181e3b3 | |
| parent | 2a2c3d58388579d19a7310684521dc57299969d2 (diff) | |
ADD: add hal_wfi for ARM64
Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
| -rw-r--r-- | dev/Kernel/HALKit/ARM64/Processor.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dev/Kernel/HALKit/ARM64/Processor.h b/dev/Kernel/HALKit/ARM64/Processor.h index 911ddf29..41e96c19 100644 --- a/dev/Kernel/HALKit/ARM64/Processor.h +++ b/dev/Kernel/HALKit/ARM64/Processor.h @@ -76,6 +76,11 @@ namespace Kernel::HAL { return *reinterpret_cast<volatile DataKind*>(address); } + + inline Void hal_wfi(Void) + { + asm volatile ("wfi"); + } } // namespace Kernel::HAL inline Kernel::VoidPtr kKernelBitMpStart = nullptr; |
