Page MenuHomeFreeBSD

libsa: smbios: Favor the v3 (64-bit) entry point on non-EFI boot
ClosedPublic

Authored by olce on Mar 7 2025, 4:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 8, 12:14 AM
Unknown Object (File)
Mar 27 2025, 12:23 PM
Unknown Object (File)
Mar 22 2025, 7:19 AM
Unknown Object (File)
Mar 21 2025, 2:46 PM
Unknown Object (File)
Mar 15 2025, 1:36 AM
Unknown Object (File)
Mar 15 2025, 12:37 AM
Unknown Object (File)
Mar 14 2025, 11:03 PM
Unknown Object (File)
Mar 14 2025, 8:02 PM
Subscribers

Details

Summary

When both the 32-bit and 64-bit entry points are present, the SMBIOS
specification says that the 64-bit entry point always has at least all
the structures the 32-bit entry point refers. In other words, the
32-bit entry point is provided for compatibility, so we assume the
64-bit one has more chances to be filled with adequate values.

Doing this also increases consistency with the kernel's smbios(4)
driver.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

olce requested review of this revision.Mar 7 2025, 4:57 PM

How does this work on BIOS boot where be always have a 32bit binary so all the V3 stuff is ifdef'd out?

This revision is now accepted and ready to land.Mar 7 2025, 5:07 PM