Skip to content

Commit

Permalink
arch: Macro to access ID_AA64MMFR0_EL1.PARange on AArch64.
Browse files Browse the repository at this point in the history
Signed-off-by: TunaCici <[email protected]>
  • Loading branch information
TunaCici committed Mar 24, 2024
1 parent 43b8422 commit a5d5fef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Kernel/Arch/ARM64/Machine.h
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit a5d5fef

Please sign in to comment.