]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
FreeBSD auxv: add new values for FreeBSD 15
authorPaul Floyd <pjfloyd@wanadoo.fr>
Wed, 17 Sep 2025 06:33:48 +0000 (08:33 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Wed, 17 Sep 2025 06:33:48 +0000 (08:33 +0200)
coregrind/m_initimg/initimg-freebsd.c
include/vki/vki-freebsd.h

index 5c167e3fb14a3d3917a7101bc55d0b64a421fc34..3e0d07544db0d4c5f5eec45890896c600c8f06d4 100644 (file)
@@ -762,6 +762,7 @@ static Addr setup_client_stack(const void*  init_sp,
 #if defined(VGP_arm64_freebsd)
       // FreeBSD 11+ also have HWCAP and HWCAP2
       // but they aren't used on amd64
+      // FreeBSD 15 adds HWCAP3 and HWCAP4
       case VKI_AT_HWCAP:
 #define ARM64_SUPPORTED_HWCAP (VKI_HWCAP_ATOMICS        \
                                | VKI_HWCAP_AES          \
index ee4748c280dd2d0994d897862e9b909356c4ad5a..bd49381a2be4a08ec372fa8dfc39f6bb70170af7 100644 (file)
@@ -2468,6 +2468,10 @@ struct vki_ps_strings {
 /* added in FreeBSD 14 */
 #define VKI_AT_USRSTACKBASE 35
 #define VKI_AT_USRSTACKLIM 36
+/* added in FreeBSD 15 */
+#define AT_CHERI_STATS 37
+#define AT_HWCAP3 38
+#define AT_HWCAP4 39
 
 /* AT_COUNT depends on the FreeBSD version, not currently used */