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
This commit is contained in:
@@ -2203,6 +2203,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 */
|
||||
|
||||
Reference in New Issue
Block a user