]> git.proxmox.com Git - mirror_edk2.git/commit
UefiPayloadPkg: Skip ModuleInfo HOB in Payload
authorJiang, Guomin <Guomin.Jiang@intel.com>
Fri, 3 Dec 2021 05:17:26 +0000 (13:17 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 8 Dec 2021 04:08:21 +0000 (04:08 +0000)
commitffdde9d7198982b880a9e333b2f2f48c2bbe958d
tree319df391ecd24da4bf34408036f64702160592ad
parent2527723de9a35c8d73ba09ae4dd1db3db81f22f2
UefiPayloadPkg: Skip ModuleInfo HOB in Payload

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

1. DxeCore will use ModuleInfo to install LoadedImage protocol for DxeCore.
2. DxeIpl will create the ModuleInfo of UniversalPayload. and
   UniversalPayload will create the ModuleInfo of DxeCore.
3. UniversalPayload should skip the ModuleInfo from the DxeIpl to avoid
   the mismatched ModuleInfo for DxeCore.

Changes:
1. Use function IsHobNeed to check if the HOB should be added
2. Add the ModuleInfo check logic in IsHobNeed function

Signed-off-by: Guomin Jiang <guomin.jiang@intel.com>
Cc: Guo Dong <guo.dong@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Cc: Maurice Ma <maurice.ma@intel.com>
Cc: Benjamin You <benjamin.you@intel.com>
UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.c