[Bug 3607] Can not access new members added to SMBIOS_TABLE_TYPE9 structure after variable data


bugzilla-daemon@...
 

https://bugzilla.tianocore.org/show_bug.cgi?id=3607

--- Comment #4 from gaoliming@byosoft.com.cn ---
Per Smbios spec, 3.4 Slot Information BYTE Varies is 14h + 5*n. So,
SMBIOS_TABLE_TYPE9 can be updated like below.

typedef struct {
// ... stripped ....
// Add for smbios 3.2
//
UINT8 DataBusWidth;
UINT8 PeerGroupingCount;
MISC_SLOT_PEER_GROUP PeerGroups[1];
//
// Add for smbios 3.4
//
UINT8 SlotInformation;
UINT8 SlotPhysicalWidth;
UINT16 SlotPitch;
} SMBIOS_TABLE_TYPE9;

==>

typedef struct {
// ... stripped ....
// Add for smbios 3.2
//
UINT8 DataBusWidth;
UINT8 PeerGroupingCount;
MISC_SLOT_PEER_GROUP PeerGroups[1];
//
// Add for smbios 3.4
//
// UINT8 SlotInformation;
// UINT8 SlotPhysicalWidth;
// UINT16 SlotPitch;
} SMBIOS_TABLE_TYPE9;

--
You are receiving this mail because:
You are on the CC list for the bug.