diff options
author | Olivier Certner <olce@FreeBSD.org> | 2025-03-03 16:44:38 +0000 |
---|---|---|
committer | Olivier Certner <olce@FreeBSD.org> | 2025-03-11 13:54:08 +0000 |
commit | 3b2303ba3dba4e33ee0866953b4390c5481cac83 (patch) | |
tree | 797c23191ecafcae65b66605b7983ba8a0cf4bb0 | |
parent | a39ab17c9abb74019f15b02970d8739c97d4185c (diff) |
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
-rw-r--r-- | stand/libsa/smbios.c | 5 |
1 files changed, 5 insertions, 0 deletions
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) { |