Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149711513
D24300.1790762898.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
692 B
Referenced Files
None
Subscribers
None
D24300.1790762898.diff
View Options
Index: usr.sbin/bhyve/smbiostbl.c
===================================================================
--- usr.sbin/bhyve/smbiostbl.c
+++ usr.sbin/bhyve/smbiostbl.c
@@ -768,6 +768,7 @@
SMBIOS_ENTRY_EANCHORLEN);
smbios_ep->eplen = 0x1F;
assert(sizeof (struct smbios_entry_point) == smbios_ep->eplen);
+ /* bcdrev below is copied from these values */
smbios_ep->major = 2;
smbios_ep->minor = 6;
smbios_ep->revision = 0;
@@ -774,7 +775,7 @@
memcpy(smbios_ep->ianchor, SMBIOS_ENTRY_IANCHOR,
SMBIOS_ENTRY_IANCHORLEN);
smbios_ep->staddr = staddr;
- smbios_ep->bcdrev = 0x24;
+ smbios_ep->bcdrev = (smbios_ep->major & 0xf) << 4 | (smbios_ep->minor & 0xf);
}
static void
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Sep 30, 10:08 AM (9 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30035257
Default Alt Text
D24300.1790762898.diff (692 B)
Attached To
Mode
D24300: Bhyve: SMBIOS bcdrev calculated from major/minor values
Attached
Detach File
Event Timeline
Log In to Comment