git: e421a6615dc2 - main - smbios: On attach, print the entry point version and revision
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 07 Mar 2025 16:44:37 UTC
The branch main has been updated by olce:
URL: https://cgit.FreeBSD.org/src/commit/?id=e421a6615dc257b71ac5255336dddf5c99cd12aa
commit e421a6615dc257b71ac5255336dddf5c99cd12aa
Author: Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2025-03-04 21:10:23 +0000
Commit: Olivier Certner <olce@FreeBSD.org>
CommitDate: 2025-03-07 16:42:45 +0000
smbios: On attach, print the entry point version and revision
Additionally, on verbose boot, print the entry point revision as
a diagnostic/debugging help.
PR: 284460
Reviewed by: markj, imp (both older version)
MFC after: 2 weeks
Event: February src bug-busting session
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D49179
---
sys/dev/smbios/smbios.c | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/sys/dev/smbios/smbios.c b/sys/dev/smbios/smbios.c
index f4a6453fd043..e960cb951f5a 100644
--- a/sys/dev/smbios/smbios.c
+++ b/sys/dev/smbios/smbios.c
@@ -211,18 +211,26 @@ smbios_attach (device_t dev)
if (sc->is_eps3) {
sc->eps3 = va;
- device_printf(dev, "Version: %u.%u",
+ device_printf(dev, "Entry point: v3 (64-bit), Version: %u.%u\n",
sc->eps3->major_version, sc->eps3->minor_version);
+ if (bootverbose)
+ device_printf(dev,
+ "Docrev: %u, Entry Point Revision: %u\n",
+ sc->eps3->docrev, sc->eps3->entry_point_revision);
} else {
sc->eps = va;
- device_printf(dev, "Version: %u.%u",
+ device_printf(dev, "Entry point: v2.1 (32-bit), Version: %u.%u",
sc->eps->major_version, sc->eps->minor_version);
if (bcd2bin(sc->eps->BCD_revision))
- printf(", BCD Revision: %u.%u",
+ printf(", BCD Revision: %u.%u\n",
bcd2bin(sc->eps->BCD_revision >> 4),
bcd2bin(sc->eps->BCD_revision & 0x0f));
+ else
+ printf("\n");
+ if (bootverbose)
+ device_printf(dev, "Entry Point Revision: %u\n",
+ sc->eps->entry_point_revision);
}
- printf("\n");
return (0);
}