summaryrefslogtreecommitdiffstats
path: root/IntelFspWrapperPkg/FspNotifyDxe
diff options
context:
space:
mode:
authorMa, Maurice <maurice.ma@intel.com>2015-04-29 05:45:44 +0000
committerhwu1225 <hwu1225@Edk2>2015-04-29 05:45:44 +0000
commit91cfbe53bf67c33b5e4b25b0c76c8d03f44b857d (patch)
tree10da1689369750c1dcfbb803e692936e7702ac99 /IntelFspWrapperPkg/FspNotifyDxe
parent44286b3bd734cb887df6bdecd6d8136f5cbf1173 (diff)
downloadedk2-91cfbe53bf67c33b5e4b25b0c76c8d03f44b857d.tar.gz
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. (Sync patch r17249 from main trunk.) 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/branches/UDK2014.SP1@17262 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFspWrapperPkg/FspNotifyDxe')
-rw-r--r--IntelFspWrapperPkg/FspNotifyDxe/FspNotifyDxe.c6
-rw-r--r--IntelFspWrapperPkg/FspNotifyDxe/FspNotifyDxe.inf1
2 files changed, 6 insertions, 1 deletions
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;
diff --git a/IntelFspWrapperPkg/FspNotifyDxe/FspNotifyDxe.inf b/IntelFspWrapperPkg/FspNotifyDxe/FspNotifyDxe.inf
index 3b819d9bb9..8175dbd324 100644
--- a/IntelFspWrapperPkg/FspNotifyDxe/FspNotifyDxe.inf
+++ b/IntelFspWrapperPkg/FspNotifyDxe/FspNotifyDxe.inf
@@ -49,6 +49,7 @@
[Pcd]
gFspWrapperTokenSpaceGuid.PcdFlashFvFspBase ## CONSUMES
+ gFspWrapperTokenSpaceGuid.PcdFlashFvSecondFspBase ## CONSUMES
gFspWrapperTokenSpaceGuid.PcdFlashFvFspSize ## CONSUMES
[Depex]