git: 3c89290626a7 - stable/13 - arm64: Export HWCAP_CPUID
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 19 Feb 2024 16:44:49 UTC
The branch stable/13 has been updated by andrew:
URL: https://cgit.FreeBSD.org/src/commit/?id=3c89290626a7ed6db87774535bd07783c3c64e28
commit 3c89290626a7ed6db87774535bd07783c3c64e28
Author: Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2023-09-22 16:20:17 +0000
Commit: Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2024-02-19 12:39:24 +0000
arm64: Export HWCAP_CPUID
We have export the CPUID registers since 2018 but never set the
HWCAP_CPUID flag to tell userspace it could use them. Fix this by
setting it.
Sponsored by: Arm Ltd
(cherry picked from commit d61f9bfb0e5c119c97a559f187b1e9c73077307b)
---
sys/arm64/arm64/identcpu.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sys/arm64/arm64/identcpu.c b/sys/arm64/arm64/identcpu.c
index cb7850c2aa2a..ebd1abb67dcb 100644
--- a/sys/arm64/arm64/identcpu.c
+++ b/sys/arm64/arm64/identcpu.c
@@ -2041,6 +2041,8 @@ identify_cpu_sysinit(void *dummy __unused)
/* Find the values to export to userspace as AT_HWCAP and AT_HWCAP2 */
parse_cpu_features();
+ /* We export the CPUID registers */
+ elf_hwcap |= HWCAP_CPUID;
#ifdef COMPAT_FREEBSD32
/* Set the default caps and any that need to check multiple fields */