Replace the static struct initialization with a call to ZeroMem to avoid
generating a call to memset in certain build configurations.
Signed-off-by: Rebecca Cran <rebecca@bsdio.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Oliver Smith-Denny <osd@smith-denny.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
{\r
UINT32 RegEax, RegEbx, RegEcx, RegEdx, Max;\r
UINT8 PhysBits;\r
- CHAR8 Signature[13] = { 0 };\r
+ CHAR8 Signature[13];\r
BOOLEAN Valid = FALSE;\r
BOOLEAN Page1GSupport = FALSE;\r
\r
+ ZeroMem (Signature, sizeof (Signature));\r
+\r
AsmCpuid (0x80000000, &RegEax, &RegEbx, &RegEcx, &RegEdx);\r
*(UINT32 *)(Signature + 0) = RegEbx;\r
*(UINT32 *)(Signature + 4) = RegEdx;\r