git: 2337cd86dc46 - stable/14 - libsa: smbios: Export the used entry point type to the kernel
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 08 Apr 2025 13:41:03 UTC
The branch stable/14 has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=2337cd86dc469ee3e263666e94621816141dc15d commit 2337cd86dc469ee3e263666e94621816141dc15d Author: Olivier Certner <olce@FreeBSD.org> AuthorDate: 2025-03-03 16:44:38 +0000 Commit: Olivier Certner <olce@FreeBSD.org> CommitDate: 2025-04-08 13:38:26 +0000 libsa: smbios: Export the used entry point type to the kernel Via the kenv 'smbios.entry_point_type'. Reviewed by: imp, markj MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D49283 (cherry picked from commit 3b2303ba3dba4e33ee0866953b4390c5481cac83) --- stand/libsa/smbios.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stand/libsa/smbios.c b/stand/libsa/smbios.c index a334e39e9eff..c864dc9cdc5b 100644 --- a/stand/libsa/smbios.c +++ b/stand/libsa/smbios.c @@ -629,6 +629,11 @@ smbios_detect(const caddr_t addr) dmi < smbios.addr + smbios.length && i < smbios.count; i++) dmi = smbios_parse_table(dmi); + setenv("smbios.entry_point_type", +#ifdef SMBIOS_64BIT_EP + smbios.is_64bit_ep ? "v3 (64-bit)" : +#endif + "v2.1 (32-bit)", 1); sprintf(buf, "%d.%d", smbios.major, smbios.minor); setenv("smbios.version", buf, 1); if (smbios.enabled_memory > 0 || smbios.old_enabled_memory > 0) {