summaryrefslogtreecommitdiffstats
path: root/arch/arm64/include/asm/hwcap.h
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2022-02-16 17:32:23 +0000
committerWill Deacon <will@kernel.org>2022-02-25 14:41:05 +0000
commitd082a0255fcb8fcb4bd8257df111f2caa67086bc (patch)
treed258cb9a841b10c882bf18bb34bc02bc2f6c297c /arch/arm64/include/asm/hwcap.h
parentcb627397e02bc65e44912daebfe0bbe6b0ecd384 (diff)
downloadlinux-d082a0255fcb8fcb4bd8257df111f2caa67086bc.tar.bz2
arm64/mte: Add hwcap for asymmetric mode
Allow userspace to detect support for asymmetric mode by providing a hwcap for it, using the official feature name FEAT_MTE3. Signed-off-by: Mark Brown <broonie@kernel.org> Reviewed-by: Catalin Marinas <catalin.marinas@arm.com> Reviewed-by: Vincenzo Frascino <Vincenzo.Frascino@arm.com> Tested-by: Branislav Rankov <branislav.rankov@arm.com> Link: https://lore.kernel.org/r/20220216173224.2342152-4-broonie@kernel.org Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/include/asm/hwcap.h')
-rw-r--r--arch/arm64/include/asm/hwcap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/hwcap.h b/arch/arm64/include/asm/hwcap.h
index f68fbb207473..8db5ec0089db 100644
--- a/arch/arm64/include/asm/hwcap.h
+++ b/arch/arm64/include/asm/hwcap.h
@@ -108,6 +108,7 @@
#define KERNEL_HWCAP_ECV __khwcap2_feature(ECV)
#define KERNEL_HWCAP_AFP __khwcap2_feature(AFP)
#define KERNEL_HWCAP_RPRES __khwcap2_feature(RPRES)
+#define KERNEL_HWCAP_MTE3 __khwcap2_feature(MTE3)
/*
* This yields a mask that user programs can use to figure out what