Files
freebsd-src/stand
Olivier Certner d3bfcd6640 libsa: smbios: Detect less-than-64-bit platforms via __SIZEOF_SIZE_T__
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
2025-10-07 10:14:41 +02:00
..
2025-09-09 20:19:24 +03:00
2025-09-13 20:24:19 -06:00
2025-07-23 00:32:40 -06:00
2025-05-07 23:06:22 -05:00
2025-06-11 17:39:02 +01:00
2025-08-20 15:49:53 -07:00
2023-11-07 09:57:32 -05:00
2023-08-16 11:55:03 -06:00
2023-08-16 11:55:03 -06:00
2024-11-12 22:01:24 -07:00