audk/MdeModulePkg
Bi, Dandan 6b86f6f336 MdeModulePkg/DriverSampleDxe: Make bit fields aligned in C structure
For a structure with a series of bit fields and used as a storage
in vfr file, and if the bit fields do not add up to the size of
the defined type.In the C code use sizeof() to get size of the
structure, the results may vary form the compiler(VS,GCC...).
But the size of the storage calculated by VfrCompiler is fixed
(calculate with alignment).To avoid the issue cased by above case,
we need to make the total width of the bit fields in the structure
aligned with the size of the defined type for these bit fields.

Cc: Eric Dong <eric.dong@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
2018-02-09 17:04:15 +08:00
..
Application MdeModulePkg: Fix misuses of AllocateCopyPool 2017-11-08 17:13:03 +08:00
Bus MdeModulePkg/PciBusDxe: Fix VS2012 build failure 2018-02-08 12:46:46 +08:00
Core MdeModulePkg/PeiMain: Cleanup whitespace in Reset.c 2018-02-09 15:29:50 +08:00
Include MdeModulePkg/ResetSystemPei: Add reset notifications in PEI 2018-02-09 15:30:01 +08:00
Library MdeModulePkg: Add ResetUtility library class and BASE instance 2018-02-09 15:29:58 +08:00
Logo MdeModulePkg/LogoDxe: Return error if HII Package not present 2017-05-22 16:30:11 -07:00
Universal MdeModulePkg/DriverSampleDxe: Make bit fields aligned in C structure 2018-02-09 17:04:15 +08:00
MdeModulePkg.dec MdeModulePkg/ResetSystemPei: Add reset notifications in PEI 2018-02-09 15:30:01 +08:00
MdeModulePkg.dsc MdeModulePkg: Add ResetSystemPei PEIM 2018-02-09 15:30:00 +08:00
MdeModulePkg.uni MdeModulePkg/ResetSystemPei: Add reset notifications in PEI 2018-02-09 15:30:01 +08:00
MdeModulePkgExtra.uni