diff options
author | Leif Lindholm <quic_llindhol@quicinc.com> | 2023-09-20 13:17:59 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-09-20 14:52:07 +0000 |
commit | 89dad77cfbffda0303383a11026d854008c1b731 (patch) | |
tree | 79a672f089c2c7a4cbe85cb56c833709c6637bcf /ArmPkg/Include/Chipset/AArch64.h | |
parent | 4317b4824bc881fe6079d04b7ee5b0f6bddf62ca (diff) | |
download | edk2-89dad77cfbffda0303383a11026d854008c1b731.tar.gz edk2-89dad77cfbffda0303383a11026d854008c1b731.tar.bz2 edk2-89dad77cfbffda0303383a11026d854008c1b731.zip |
ArmPkg/ArmLib: Add ArmHasVhe () helper function
Create a helper function to query whether ID_AA64MFR1_EL1 indicates
presence of the Virtualization Host Extensions. This feature is only
visible in AARCH64 state.
Signed-off-by: Leif Lindholm <quic_llindhol@quicinc.com>
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Sami Mujawar <sami.mujawar@arm.com>
Cc: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
Tested-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Diffstat (limited to 'ArmPkg/Include/Chipset/AArch64.h')
-rw-r--r-- | ArmPkg/Include/Chipset/AArch64.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ArmPkg/Include/Chipset/AArch64.h b/ArmPkg/Include/Chipset/AArch64.h index 690433f68e..2e87917049 100644 --- a/ArmPkg/Include/Chipset/AArch64.h +++ b/ArmPkg/Include/Chipset/AArch64.h @@ -24,6 +24,9 @@ // Coprocessor Trap Register (CPTR)
#define AARCH64_CPTR_TFP (1 << 10)
+// ID_AA64MMFR1 - AArch64 Memory Model Feature Register 0 definitions
+#define AARCH64_MMFR1_VH (0xF << 8)
+
// ID_AA64PFR0 - AArch64 Processor Feature Register 0 definitions
#define AARCH64_PFR0_FP (0xF << 16)
#define AARCH64_PFR0_GIC (0xF << 24)
|