audk/UefiPayloadPkg/UefiPayloadEntry
Jiang, Guomin ffdde9d719 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>
2021-12-08 04:08:21 +00:00
..
Ia32 UefiPayloadPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
X64 UefiPayloadPkg/PayloadEntry: Inherit 4/5-level paging from bootloader 2021-12-08 04:08:21 +00:00
AcpiTable.c UefiPayloadPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
LoadDxeCore.c UefiPayloadPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
MemoryAllocation.c UefiPayloadPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PrintHob.c UefiPayloadPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
UefiPayloadEntry.c UefiPayloadPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
UefiPayloadEntry.h UefiPayloadPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
UefiPayloadEntry.inf UefiPayloadPkg/PayloadEntry: Inherit 4/5-level paging from bootloader 2021-12-08 04:08:21 +00:00
UniversalPayloadEntry.c UefiPayloadPkg: Skip ModuleInfo HOB in Payload 2021-12-08 04:08:21 +00:00
UniversalPayloadEntry.inf UefiPayloadPkg/PayloadEntry: Inherit 4/5-level paging from bootloader 2021-12-08 04:08:21 +00:00