summaryrefslogtreecommitdiffstats
path: root/IntelFspWrapperPkg/FspNotifyDxe/FspNotifyDxe.c
diff options
context:
space:
mode:
Diffstat (limited to 'IntelFspWrapperPkg/FspNotifyDxe/FspNotifyDxe.c')
-rw-r--r--IntelFspWrapperPkg/FspNotifyDxe/FspNotifyDxe.c6
1 files changed, 5 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;