The branch main has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=3b2303ba3dba4e33ee0866953b4390c5481cac83
commit 3b2303ba3dba4e33ee0866953b4390c5481cac83 Author: Olivier Certner <o...@freebsd.org> AuthorDate: 2025-03-03 16:44:38 +0000 Commit: Olivier Certner <o...@freebsd.org> CommitDate: 2025-03-11 13:54:08 +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 --- 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) {