From a5d5fefcc1075b20c03aeca4050c0840a360f516 Mon Sep 17 00:00:00 2001 From: TunaCici <36923239+TunaCici@users.noreply.github.com> Date: Sun, 24 Mar 2024 20:53:56 +0300 Subject: [PATCH] arch: Macro to access ID_AA64MMFR0_EL1.PARange on AArch64. Signed-off-by: TunaCici <36923239+TunaCici@users.noreply.github.com> --- Kernel/Arch/ARM64/Machine.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Kernel/Arch/ARM64/Machine.h b/Kernel/Arch/ARM64/Machine.h index b60b7ca..3809d59 100644 --- a/Kernel/Arch/ARM64/Machine.h +++ b/Kernel/Arch/ARM64/Machine.h @@ -8,6 +8,8 @@ #pragma once +#define GET_PARange(ID_AA64MMFR0_EL1) (((ID_AA64MMFR0_EL1) >> 0) & 0b1111) + static inline void wfi(void) { asm volatile("wfi" ::: "memory");