aboutsummaryrefslogtreecommitdiff
path: root/tests/libntp/(developers-only)
diff options
context:
space:
mode:
authorOlivier Certner <olce@FreeBSD.org>2025-03-11 16:56:20 +0000
committerOlivier Certner <olce@FreeBSD.org>2025-10-07 08:14:41 +0000
commitd3bfcd66409befc2d545e5449963b41c25c369a9 (patch)
tree1a148fa9f2029d97fb2e53ccd3b29a0d04047247 /tests/libntp/(developers-only)
parent488718ff42346888243496c00cbeb42ba004171e (diff)
libsa: smbios: Detect less-than-64-bit platforms via __SIZEOF_SIZE_T__HEADmain
What we really want here is to know if pointers can refer to 64-bit addresses, regardless of whether they also hold other information (such as capabilities in CHERI). __SIZEOF_SIZE_T__ is probably the closest indication to that piece of information, so let's use it. __ILP32__ wasn't wrong in practice though, as we don't support 32-bit CHERI hardware (and likely never will). Consistently with this change, test whether we can actually address the 64-bit SMBIOS's structure table by converting the end address to 'size_t' and checking whether its value is preserved. Suggested by: jhb (for the __ILP32__ => __SIZEOF_SIZE_T__ part) Reviewed by: jhb, imp MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D49318
Diffstat (limited to 'tests/libntp/(developers-only)')
0 files changed, 0 insertions, 0 deletions