git: 5e385079d3f7 - stable/14 - smbios: On attach, print the entry point version and revision
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 08 Apr 2025 13:40:49 UTC
The branch stable/14 has been updated by olce:
URL: https://cgit.FreeBSD.org/src/commit/?id=5e385079d3f76fa3271087bc9492373520c9decf
commit 5e385079d3f76fa3271087bc9492373520c9decf
Author: Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2025-03-04 21:10:23 +0000
Commit: Olivier Certner <olce@FreeBSD.org>
CommitDate: 2025-04-08 13:38:23 +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
(cherry picked from commit e421a6615dc257b71ac5255336dddf5c99cd12aa)
---
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 7886376523e1..e10ffa192e2b 100644
--- a/sys/dev/smbios/smbios.c
+++ b/sys/dev/smbios/smbios.c
@@ -212,18 +212,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);
}