diff options
author | Marvin Häuser <Marvin.Haeuser@outlook.com> | 2016-03-22 14:53:08 +0000 |
---|---|---|
committer | Star Zeng <star.zeng@intel.com> | 2016-03-24 10:30:43 +0800 |
commit | bb7051eba96f87bbb6544cad9cd7390207b4dcc0 (patch) | |
tree | ea3465f2839da6c105af535adf40f9a475b3b9aa /ShellPkg | |
parent | ee60bd2b6aa473fdff6af3bfc62203ed8ca5c52a (diff) | |
download | edk2-bb7051eba96f87bbb6544cad9cd7390207b4dcc0.tar.gz edk2-bb7051eba96f87bbb6544cad9cd7390207b4dcc0.tar.bz2 edk2-bb7051eba96f87bbb6544cad9cd7390207b4dcc0.zip |
MdePkg: Move SMBIOS data into the IndustryStandard header.
As the SMBIOS table types belong to the SMBIOS standard, they were
moved from the SMBIOS Protocol header into the SMBIOS
IndustryStandard header without the EFI_-prefix. Defines with the
EFI_-prefix have been kept in the Protocol header for
backwards-compatibility, resolving to the IndustryStandard defines.
The same has been done with the C types.
The SMBIOS table header structure had been duplicated -
SMBIOS_STRUCTURE in the IndustryStandard header and
EFI_SMBIOS_TABLE_HEADER in the Protocol file - and thus the
Protocol type was replaced with a typedef to the InudstryStandard's.
This doesn't only make it easier to maintain, but it also prevents
potential future issues as the Protocol type has been aligned, while
the standard and the IndustryStandard header declare it as
byte-packed.
This has worked well till now only because the members of the
structure do not require alignment yet.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Marvin Haeuser <Marvin.Haeuser@outlook.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Diffstat (limited to 'ShellPkg')
0 files changed, 0 insertions, 0 deletions