diff options
author | Sami Mujawar <sami.mujawar@arm.com> | 2023-09-22 15:35:16 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-10-30 12:16:56 +0000 |
commit | a671a14e63fdaa9490e5c61cf11346416f1d1463 (patch) | |
tree | f367f44e70152b4ca60f2f11bfd117c329f3b137 /ArmPkg/Include/Chipset | |
parent | 08431081a3623bd6c44de5c859ef42c579de63d1 (diff) | |
download | edk2-a671a14e63fdaa9490e5c61cf11346416f1d1463.tar.gz edk2-a671a14e63fdaa9490e5c61cf11346416f1d1463.tar.bz2 edk2-a671a14e63fdaa9490e5c61cf11346416f1d1463.zip |
ArmPkg/ArmLib: Add ArmHasEte () helper function
Create a helper function to query whether ID_AA64MFR1_EL1 indicates
presence of the Embedded Trace Extension (ETE). This feature is only
visible in AARCH64 state.
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Leif Lindholm <quic_llindhol@quicinc.com>
Cc: Pierre Gondois <pierre.gondois@arm.com>
Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Reviewed-by: Leif Lindholm <quic_llindhol@quicinc.com>
Reviewed-by: Pierre Gondois <pierre.gondois@arm.com>
Diffstat (limited to 'ArmPkg/Include/Chipset')
-rw-r--r-- | ArmPkg/Include/Chipset/AArch64.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ArmPkg/Include/Chipset/AArch64.h b/ArmPkg/Include/Chipset/AArch64.h index d8711ad711..5390bf0a27 100644 --- a/ArmPkg/Include/Chipset/AArch64.h +++ b/ArmPkg/Include/Chipset/AArch64.h @@ -32,7 +32,8 @@ #define AARCH64_PFR0_GIC (0xF << 24)
// ID_AA64DFR0 - AArch64 Debug Feature Register 0 definitions
-#define AARCH64_DFR0_TRBE (0xFULL << 44)
+#define AARCH64_DFR0_TRACEVER (0xFULL << 4)
+#define AARCH64_DFR0_TRBE (0xFULL << 44)
// SCR - Secure Configuration Register definitions
#define SCR_NS (1 << 0)
|