X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=IntelFspWrapperPkg%2FFspInitPei%2FFspInitPeiV2.c;h=35a994e9608cc1b52cae9a03103f997405b2821b;hp=f11015e993f6c2a7a67647f8ba6f88d6c978eaee;hb=5c7c41f81d4b89a90dadc01b3c3f4481251852a2;hpb=3b17b2458726bf7e2cf640d29ebe14f8af587905 diff --git a/IntelFspWrapperPkg/FspInitPei/FspInitPeiV2.c b/IntelFspWrapperPkg/FspInitPei/FspInitPeiV2.c index f11015e993..35a994e960 100644 --- a/IntelFspWrapperPkg/FspInitPei/FspInitPeiV2.c +++ b/IntelFspWrapperPkg/FspInitPei/FspInitPeiV2.c @@ -261,7 +261,11 @@ PeiMemoryDiscoveredNotify ( VOID *FspHobList; EFI_HOB_GUID_TYPE *GuidHob; - FspHeader = FspFindFspHeader (PcdGet32 (PcdFlashFvFspBase)); + if (PcdGet32 (PcdFlashFvSecondFspBase) == 0) { + FspHeader = FspFindFspHeader (PcdGet32 (PcdFlashFvFspBase)); + } else { + FspHeader = FspFindFspHeader (PcdGet32 (PcdFlashFvSecondFspBase)); + } if (FspHeader == NULL) { return EFI_DEVICE_ERROR; }