arm64: Add a comment about HWCAP values

They must be identical to Linux. Document this requirement to allow
userspace to depend on this.

Sponsored by:	Arm Ltd
This commit is contained in:
Andrew Turner
2026-05-14 16:04:32 +01:00
parent 4f876cec30
commit 48da01ad0b
+6
View File
@@ -96,6 +96,12 @@ __ElfType(Auxinfo);
/* First __FreeBSD_version that supports Top Byte Ignore (TBI) */ /* First __FreeBSD_version that supports Top Byte Ignore (TBI) */
#define TBI_VERSION 1500058 #define TBI_VERSION 1500058
/*
* The HWCAP values must be identical to Linux. Many userspace programs
* will define missing HWCAP values to the Linux version. To keep these
* working when we add the HWCAP it must be the same.
*/
/* HWCAP */ /* HWCAP */
#define HWCAP_FP (1 << 0) #define HWCAP_FP (1 << 0)
#define HWCAP_ASIMD (1 << 1) #define HWCAP_ASIMD (1 << 1)