HomeFreeBSD

smbios: Search for v3 (64-bit) entry point first on BIOS boot

Description

smbios: Search for v3 (64-bit) entry point first on BIOS boot

When booted from BIOS (i.e., not EFI), also search for a 64-bit version
of the SMBIOS Entry Point.

This allows us to detect and report the proper SMBIOS version with
BIOSes that only provide the v3 table, as happens on Hetzner virtual
machines.

For machines that provide both, leverage the v3 table in priority
consistently with the EFI case.

PR: 284460
Reviewed by: markj, imp (both older version)
MFC after: 2 weeks
Relnotes: yes
Event: February src bug-busting session
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D49179

(cherry picked from commit bc7f6508363c5cf4544044e00bbaf71de8f0168d)

Details

Provenance
olceAuthored on Feb 28 2025, 4:54 PM
Reviewer
markj
Differential Revision
D49179: smbios: Search for v3 (64-bit) table before v2 (32-bit) on BIOS boot
Parents
rGe69052efa1d0: smbios: style(9): sizeof(): No space before the parenthesis
Branches
Unknown
Tags
Unknown