summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Core/Pei
diff options
context:
space:
mode:
authorStar Zeng <star.zeng@intel.com>2017-10-03 21:48:47 +0800
committerStar Zeng <star.zeng@intel.com>2017-10-10 20:54:42 +0800
commitc60370454e95be8d4a84b1dbb66c407efb729134 (patch)
tree1564c6f3a055797f48f86164c7ebcbf90c737e18 /MdeModulePkg/Core/Pei
parente4623bd5e6c269cd5fabb3a456a08d92fb508917 (diff)
downloadedk2-c60370454e95be8d4a84b1dbb66c407efb729134.tar.gz
edk2-c60370454e95be8d4a84b1dbb66c407efb729134.tar.bz2
edk2-c60370454e95be8d4a84b1dbb66c407efb729134.zip
MdeModulePkg Core: Propagate PEI-phase FV authentication status to DXE
FV3 HOB was introduced by new (>= 1.5) PI spec, it is intended to be used to propagate PEI-phase FV authentication status to DXE. This patch is to update PeiCore to build FV3 HOB with the authentication status and DxeCore to get the authentication status from FV3 HOB when producing FVB Protocol. Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'MdeModulePkg/Core/Pei')
-rw-r--r--MdeModulePkg/Core/Pei/FwVol/FwVol.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/MdeModulePkg/Core/Pei/FwVol/FwVol.c b/MdeModulePkg/Core/Pei/FwVol/FwVol.c
index c90a70b5f7..3da90f9531 100644
--- a/MdeModulePkg/Core/Pei/FwVol/FwVol.c
+++ b/MdeModulePkg/Core/Pei/FwVol/FwVol.c
@@ -1452,6 +1452,18 @@ ProcessFvFile (
&FileInfo.FileName
);
+ //
+ // Build FV3 HOB with authentication status to be propagated to DXE.
+ //
+ BuildFv3Hob (
+ (EFI_PHYSICAL_ADDRESS) (UINTN) FvHeader,
+ FvHeader->FvLength,
+ AuthenticationStatus,
+ TRUE,
+ &ParentFvImageInfo.FvName,
+ &FileInfo.FileName
+ );
+
return EFI_SUCCESS;
}