From: Paul Floyd Date: Wed, 17 Sep 2025 06:33:48 +0000 (+0200) Subject: FreeBSD auxv: add new values for FreeBSD 15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=210e0923477e86b7654ba7740908f8deb2f0d8de;p=thirdparty%2Fvalgrind.git FreeBSD auxv: add new values for FreeBSD 15 --- diff --git a/coregrind/m_initimg/initimg-freebsd.c b/coregrind/m_initimg/initimg-freebsd.c index 5c167e3fb..3e0d07544 100644 --- a/coregrind/m_initimg/initimg-freebsd.c +++ b/coregrind/m_initimg/initimg-freebsd.c @@ -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 \ diff --git a/include/vki/vki-freebsd.h b/include/vki/vki-freebsd.h index ee4748c28..bd49381a2 100644 --- a/include/vki/vki-freebsd.h +++ b/include/vki/vki-freebsd.h @@ -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 */