Add dual FSP binaries support.
There are two FSP images at different locations in a flash (one factory version is read only and other in updatable version) TempRamInit, FspMemoryInit and TempRamExit are executed from factory version and FspSiliconInit/NotifyPhase will be executed from updatable version. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Ma, Maurice" <maurice.ma@intel.com> Reviewed-by: "Yao, Jiewen" <Jiewen.Yao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17249 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user