summaryrefslogtreecommitdiffhomepage
path: root/dev
diff options
context:
space:
mode:
authorAmlal <amlal.elmahrouss@icloud.com>2025-02-17 08:15:51 +0100
committerAmlal <amlal.elmahrouss@icloud.com>2025-02-17 08:19:53 +0100
commit5e6b090e8caafe81d58b92198579fd006fb7b6a3 (patch)
treef51f2fbf7a7e2994e589eb8359dcecd75181e3b3 /dev
parent2a2c3d58388579d19a7310684521dc57299969d2 (diff)
ADD: add hal_wfi for ARM64
Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev')
-rw-r--r--dev/Kernel/HALKit/ARM64/Processor.h5
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;