HomeFreeBSD

libsa: smbios: Allow to run smbios_probe() multiple times

Description

libsa: smbios: Allow to run smbios_probe() multiple times

This is in preparation for modifying the EFI loader to favor a v3 table
if present.

As an impact, caller smbios_match() has been changed so that it only
calls smbios_probe() with NULL (non-EFI discovery) once.

While here, expand the original XXXRP comment in smbios_match().

Reviewed by: imp, markj
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D49289

(cherry picked from commit c340797e08d8c20983ea57de88992f988fe7bb9b)

Details

Provenance
olceAuthored on Mar 5 2025, 10:24 AM
Reviewer
imp
Differential Revision
D49289: libsa: smbios: Allow to run smbios_probe() multiple times
Parents
rG7b0350b376c0: libsa: smbios: Use 64-bit entry point if table below 4GB on non-EFI boot
Branches
Unknown
Tags
Unknown