audk/UefiPayloadPkg
Laszlo Ersek 04a0c3e8e1 UefiPayloadPkg/BlSupportPei: fix MMCONFIG assignment from XSDT
(This patch is unrelated to the rest of this series; its purpose is to
enable building the UefiPayloadPkg DSC files with GCC.)

When building "UefiPayloadPkg/UefiPayloadPkgIa32.dsc" with GCC48 for the
DEBUG target, the compiler reports that "Entry32" may be used
uninitialized in ParseAcpiInfo(), in the XSDT branch.

Code inspection proves the compiler right. In the XSDT branch, the code
from the RSDT branch must have been duplicated, and "Entry32" references
were replaced with "Entry64" -- except where "MmCfgHdr" is assigned.

Fix this bug by introducing a helper variable called "Signature", so that
we have to refer to "Entry32" or "Entry64" only once per loop body.

Cc: Benjamin You <benjamin.you@intel.com>
Cc: Guo Dong <guo.dong@intel.com>
Cc: Maurice Ma <maurice.ma@intel.com>
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by:  Guo Dong <guo.dong@intel.com>
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
2019-10-09 09:40:10 +02:00
..
BlSupportDxe
BlSupportPei UefiPayloadPkg/BlSupportPei: fix MMCONFIG assignment from XSDT 2019-10-09 09:40:10 +02:00
GraphicsOutputDxe
Include
Library UefiPayloadPkg/PlatformBootManagerLib: Use EDKII_SERIAL_PORT_LIB_VENDOR_GUID from MdeModulePkg 2019-06-14 21:26:46 +02:00
SecCore
BuildAndIntegrationInstructions.txt
UefiPayloadPkg.dec
UefiPayloadPkg.fdf UefiPayloadPkg: Remove legacy PIC 8259 driver 2019-06-21 08:39:26 -07:00
UefiPayloadPkgIa32.dsc UefiPayloadPkg: Remove legacy PIC 8259 driver 2019-06-21 08:39:26 -07:00
UefiPayloadPkgIa32X64.dsc UefiPayloadPkg: Remove legacy PIC 8259 driver 2019-06-21 08:39:26 -07:00