From 5c7c41f81d4b89a90dadc01b3c3f4481251852a2 Mon Sep 17 00:00:00 2001 From: "Ma, Maurice" Date: Wed, 29 Apr 2015 03:50:20 +0000 Subject: 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" Reviewed-by: "Yao, Jiewen" git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17249 6f19259b-4bc3-4df7-8a09-765794883524 --- IntelFspWrapperPkg/FspNotifyDxe/FspNotifyDxe.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'IntelFspWrapperPkg/FspNotifyDxe/FspNotifyDxe.c') diff --git a/IntelFspWrapperPkg/FspNotifyDxe/FspNotifyDxe.c b/IntelFspWrapperPkg/FspNotifyDxe/FspNotifyDxe.c index 859b26728d..f8e8e826f1 100644 --- a/IntelFspWrapperPkg/FspNotifyDxe/FspNotifyDxe.c +++ b/IntelFspWrapperPkg/FspNotifyDxe/FspNotifyDxe.c @@ -120,7 +120,11 @@ FspDxeEntryPoint ( VOID *Registration; EFI_EVENT ProtocolNotifyEvent; - mFspHeader = FspFindFspHeader (PcdGet32 (PcdFlashFvFspBase)); + if (PcdGet32 (PcdFlashFvSecondFspBase) == 0) { + mFspHeader = FspFindFspHeader (PcdGet32 (PcdFlashFvFspBase)); + } else { + mFspHeader = FspFindFspHeader (PcdGet32 (PcdFlashFvSecondFspBase)); + } DEBUG ((DEBUG_INFO, "FspHeader - 0x%x\n", mFspHeader)); if (mFspHeader == NULL) { return EFI_DEVICE_ERROR; -- cgit v1.2.3