diff options
author | Suzuki K Poulose <suzuki.poulose@arm.com> | 2016-04-18 10:28:34 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2016-04-20 12:22:42 +0100 |
commit | c80aba803a9aa131f997f62a71ab453e456d08a8 (patch) | |
tree | f308b668d7718f4c18f5c964362b0fa571461b42 /arch/arm64/include/asm/cpufeature.h | |
parent | 752835019c15f720a51433e6bc1c5c515c01d1a2 (diff) | |
download | op-kernel-dev-c80aba803a9aa131f997f62a71ab453e456d08a8.zip op-kernel-dev-c80aba803a9aa131f997f62a71ab453e456d08a8.tar.gz |
arm64: Add helpers for detecting AArch32 support at EL0
Adds a helper to extract the support for AArch32 at EL0
Tested-by: Yury Norov <ynorov@caviumnetworks.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/cpufeature.h')
-rw-r--r-- | arch/arm64/include/asm/cpufeature.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/cpufeature.h b/arch/arm64/include/asm/cpufeature.h index b9b6494..7f64285 100644 --- a/arch/arm64/include/asm/cpufeature.h +++ b/arch/arm64/include/asm/cpufeature.h @@ -170,6 +170,13 @@ static inline bool id_aa64mmfr0_mixed_endian_el0(u64 mmfr0) cpuid_feature_extract_unsigned_field(mmfr0, ID_AA64MMFR0_BIGENDEL0_SHIFT) == 0x1; } +static inline bool id_aa64pfr0_32bit_el0(u64 pfr0) +{ + u32 val = cpuid_feature_extract_unsigned_field(pfr0, ID_AA64PFR0_EL0_SHIFT); + + return val == ID_AA64PFR0_EL0_32BIT_64BIT; +} + void __init setup_cpu_features(void); void update_cpu_capabilities(const struct arm64_cpu_capabilities *caps, |