Skip to content

Commit a46cec1

Browse files
committed
arm64: Reserve HWCAP2_MTE as (1 << 18)
While MTE is not supported in the upstream kernel yet, add a comment that HWCAP2_MTE as (1 << 18) is reserved. Glibc makes use of it for the resolving (ifunc) of the MTE-safe string routines. Signed-off-by: Catalin Marinas <[email protected]>
1 parent 0ae3b13 commit a46cec1

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

arch/arm64/include/asm/hwcap.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@
9595
#define KERNEL_HWCAP_DGH __khwcap2_feature(DGH)
9696
#define KERNEL_HWCAP_RNG __khwcap2_feature(RNG)
9797
#define KERNEL_HWCAP_BTI __khwcap2_feature(BTI)
98+
/* reserved for KERNEL_HWCAP_MTE __khwcap2_feature(MTE) */
9899

99100
/*
100101
* This yields a mask that user programs can use to figure out what

arch/arm64/include/uapi/asm/hwcap.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,6 @@
7474
#define HWCAP2_DGH (1 << 15)
7575
#define HWCAP2_RNG (1 << 16)
7676
#define HWCAP2_BTI (1 << 17)
77+
/* reserved for HWCAP2_MTE (1 << 18) */
7778

7879
#endif /* _UAPI__ASM_HWCAP_H */

arch/arm64/kernel/cpuinfo.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ static const char *const hwcap_str[] = {
9393
"dgh",
9494
"rng",
9595
"bti",
96+
/* reserved for "mte" */
9697
NULL
9798
};
9899

0 commit comments

Comments
 (0)