audk/UefiPayloadPkg
Laszlo Ersek 976d0353a6 UefiPayloadPkg/BlSupportDxe: fix ReserveResourceInGcd() calls
The last parameter of ReserveResourceInGcd() is "ImageHandle", forwarded
in turn to gDS->AllocateMemorySpace() or gDS->AllocateIoSpace() as "owner"
image handle.

But BlDxeEntryPoint() passes "SystemTable" as "ImageHandle".

Compilers have not flagged it because EFI_HANDLE (the type of
"ImageHandle") is unfortunately specified as (VOID*), and
(EFI_SYSTEM_TABLE*) converts to (VOID*) silently.

Hand the entry point function's "ImageHandle" parameter to
ReserveResourceInGcd(). This fixes an actual bug.

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 UefiPayloadPkg/BlSupportDxe: fix ReserveResourceInGcd() calls 2019-10-09 09:40:10 +02:00
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