mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-21 01:51:18 +00:00
arm64: cpufeature: add Permission Indirection Extension cpucap
This indicates if the system supports PIE. This is a CPUCAP_BOOT_CPU_FEATURE as the boot CPU will enable PIE if it has it, so secondary CPUs must also have this feature. Signed-off-by: Joey Gouly <joey.gouly@arm.com> Cc: Will Deacon <will@kernel.org> Reviewed-by: Catalin Marinas <catalin.marinas@arm.com> Reviewed-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20230606145859.697944-8-joey.gouly@arm.com Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
This commit is contained in:
parent
2b760046a2
commit
e43454c442
2 changed files with 8 additions and 0 deletions
|
@ -2680,6 +2680,13 @@ static const struct arm64_cpu_capabilities arm64_features[] = {
|
||||||
.matches = has_cpuid_feature,
|
.matches = has_cpuid_feature,
|
||||||
ARM64_CPUID_FIELDS(ID_AA64MMFR3_EL1, TCRX, IMP)
|
ARM64_CPUID_FIELDS(ID_AA64MMFR3_EL1, TCRX, IMP)
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
.desc = "Stage-1 Permission Indirection Extension (S1PIE)",
|
||||||
|
.capability = ARM64_HAS_S1PIE,
|
||||||
|
.type = ARM64_CPUCAP_BOOT_CPU_FEATURE,
|
||||||
|
.matches = has_cpuid_feature,
|
||||||
|
ARM64_CPUID_FIELDS(ID_AA64MMFR3_EL1, S1PIE, IMP)
|
||||||
|
},
|
||||||
{},
|
{},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -40,6 +40,7 @@ HAS_NESTED_VIRT
|
||||||
HAS_NO_FPSIMD
|
HAS_NO_FPSIMD
|
||||||
HAS_NO_HW_PREFETCH
|
HAS_NO_HW_PREFETCH
|
||||||
HAS_PAN
|
HAS_PAN
|
||||||
|
HAS_S1PIE
|
||||||
HAS_RAS_EXTN
|
HAS_RAS_EXTN
|
||||||
HAS_RNG
|
HAS_RNG
|
||||||
HAS_SB
|
HAS_SB
|
||||||
|
|
Loading…
Reference in a new issue