]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Core/Dxe/Image/Image.c
MdeModulePkg/Core/Dxe: Remove extra connects for UEFI Applications
authorMichael D Kinney <michael.d.kinney@intel.com>
Tue, 7 Nov 2017 00:57:36 +0000 (16:57 -0800)
committerMichael D Kinney <michael.d.kinney@intel.com>
Mon, 13 Nov 2017 17:56:49 +0000 (09:56 -0800)
commit471048388cda4935866f829365922cdf70a6a45c
tree25bde0a6e797e0e67e0931dfcf5eccd83f61f3dd
parentffc1fffd65eb95753985467dd9a2db002ebc49e1
MdeModulePkg/Core/Dxe: Remove extra connects for UEFI Applications

https://bugzilla.tianocore.org/show_bug.cgi?id=765

The UEFI Specification Boot Services chapter, StartImage() service,
EFF 1.10 Extension requires extra calls to ConnectController()
if a UEFI Driver produces handles. The DXE Core is performing these
extra calls to ConnectController() without evaluating the ImageType.

A filter is added to not make extra calls to ConnectController()
if the ImageType is EFI_IMAGE_SUBSYSTEM_EFI_APPLICATION.

Without this filter, extra calls to ConnectController() may be
performed by UEFI Applications or a UEFI Shell Applications that
also call ConnectController().

Cc: Star Zeng <star.zeng@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
MdeModulePkg/Core/Dxe/Image/Image.c