Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102676103
D36413.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
817 B
Referenced Files
None
Subscribers
None
D36413.diff
View Options
diff --git a/stand/libsa/smbios.c b/stand/libsa/smbios.c
--- a/stand/libsa/smbios.c
+++ b/stand/libsa/smbios.c
@@ -298,6 +298,8 @@
{
caddr_t cp;
int proc, size, osize, type;
+ uint8_t bios_minor, bios_major;
+ char buf[16];
type = SMBIOS_GET8(addr, 0); /* 3.1.2 Structure Header Format */
switch(type) {
@@ -305,6 +307,13 @@
smbios_setenv("smbios.bios.vendor", addr, 0x04);
smbios_setenv("smbios.bios.version", addr, 0x05);
smbios_setenv("smbios.bios.reldate", addr, 0x08);
+ bios_major = SMBIOS_GET8(addr, 0x14);
+ bios_minor = SMBIOS_GET8(addr, 0x15);
+ if (bios_minor != 0xFF && bios_major != 0xFF) {
+ snprintf(buf, sizeof(buf), "%u.%u",
+ bios_major, bios_minor);
+ setenv("smbios.bios.revision", buf, 1);
+ }
break;
case 1: /* 3.3.2 System Information (Type 1) */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 16, 5:32 PM (22 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14662093
Default Alt Text
D36413.diff (817 B)
Attached To
Mode
D36413: stand: Parse BIOS revision from SMBIOS
Attached
Detach File
Event Timeline
Log In to Comment