diff options
author | Suzuki K Poulose <suzuki.poulose@arm.com> | 2016-04-18 11:28:36 +0200 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2016-04-20 13:22:42 +0200 |
commit | 042446a31e3803d81c7e618dd80928dc3dce70c5 (patch) | |
tree | b77500a46468c4d71d1aef06691eb0331f24c4cd /arch/arm64/kernel/cpufeature.c | |
parent | arm64: cpufeature: Check availability of AArch32 (diff) | |
download | linux-042446a31e3803d81c7e618dd80928dc3dce70c5.tar.xz linux-042446a31e3803d81c7e618dd80928dc3dce70c5.zip |
arm64: cpufeature: Track 32bit EL0 support
Add cpu_hwcap bit for keeping track of the support for 32bit 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 '')
-rw-r--r-- | arch/arm64/kernel/cpufeature.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c index 9097ce9244e3..40a23f24559d 100644 --- a/arch/arm64/kernel/cpufeature.c +++ b/arch/arm64/kernel/cpufeature.c @@ -737,6 +737,15 @@ static const struct arm64_cpu_capabilities arm64_features[] = { .capability = ARM64_HAS_VIRT_HOST_EXTN, .matches = runs_at_el2, }, + { + .desc = "32-bit EL0 Support", + .capability = ARM64_HAS_32BIT_EL0, + .matches = has_cpuid_feature, + .sys_reg = SYS_ID_AA64PFR0_EL1, + .sign = FTR_UNSIGNED, + .field_pos = ID_AA64PFR0_EL0_SHIFT, + .min_field_value = ID_AA64PFR0_EL0_32BIT_64BIT, + }, {}, }; |