diff options
author | Will Deacon <will.deacon@arm.com> | 2017-11-27 19:29:30 +0100 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2018-01-08 19:43:34 +0100 |
commit | 179a56f6f9fbda28f6ca07db1fc3dfad6bc7343c (patch) | |
tree | 1732f38cd45c84444e8102b3c312258bc61041ea /arch/arm64/include/asm/sysreg.h | |
parent | arm64: Kconfig: Reword UNMAP_KERNEL_AT_EL0 kconfig entry (diff) | |
download | linux-179a56f6f9fbda28f6ca07db1fc3dfad6bc7343c.tar.xz linux-179a56f6f9fbda28f6ca07db1fc3dfad6bc7343c.zip |
arm64: Take into account ID_AA64PFR0_EL1.CSV3
For non-KASLR kernels where the KPTI behaviour has not been overridden
on the command line we can use ID_AA64PFR0_EL1.CSV3 to determine whether
or not we should unmap the kernel whilst running at EL0.
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/sysreg.h')
-rw-r--r-- | arch/arm64/include/asm/sysreg.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h index ab637886a6f9..262ae18f0e05 100644 --- a/arch/arm64/include/asm/sysreg.h +++ b/arch/arm64/include/asm/sysreg.h @@ -438,6 +438,7 @@ #define ID_AA64ISAR1_DPB_SHIFT 0 /* id_aa64pfr0 */ +#define ID_AA64PFR0_CSV3_SHIFT 60 #define ID_AA64PFR0_SVE_SHIFT 32 #define ID_AA64PFR0_GIC_SHIFT 24 #define ID_AA64PFR0_ASIMD_SHIFT 20 |