summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Core/Pei/Image
diff options
context:
space:
mode:
authorStar Zeng <star.zeng@intel.com>2013-10-11 03:54:13 +0000
committerlzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524>2013-10-11 03:54:13 +0000
commitc79351059ee7ee24ebed312413cb5e57076c5b56 (patch)
treed93c9f8f4d87bd568aef4da644888348e2a147fc /MdeModulePkg/Core/Pei/Image
parent71fd9fae8bda10f41a9c6445f01eed82b99883da (diff)
downloadedk2-c79351059ee7ee24ebed312413cb5e57076c5b56.tar.gz
edk2-c79351059ee7ee24ebed312413cb5e57076c5b56.tar.bz2
edk2-c79351059ee7ee24ebed312413cb5e57076c5b56.zip
1. Enable use-cases in PEI using SecurityPPI co-equal to the use-cases in DXE using the Security Arch Protocol
2. Add support to find section by instance rather than only 0 at PEI phase. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14763 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Core/Pei/Image')
-rw-r--r--MdeModulePkg/Core/Pei/Image/Image.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/MdeModulePkg/Core/Pei/Image/Image.c b/MdeModulePkg/Core/Pei/Image/Image.c
index 7a1d815b2b..cab08fed91 100644
--- a/MdeModulePkg/Core/Pei/Image/Image.c
+++ b/MdeModulePkg/Core/Pei/Image/Image.c
@@ -540,23 +540,27 @@ PeiLoadImageLoadImage (
// Try to find a first exe section (if PcdPeiCoreImageLoaderSearchTeSectionFirst
// is true, TE will be searched first).
//
- Status = PeiServicesFfsFindSectionData (
+ Status = PeiServicesFfsFindSectionData3 (
SearchType1,
+ 0,
FileHandle,
- &Pe32Data
+ &Pe32Data,
+ AuthenticationState
);
//
// If we didn't find a first exe section, try to find the second exe section.
//
if (EFI_ERROR (Status)) {
- Status = PeiServicesFfsFindSectionData (
+ Status = PeiServicesFfsFindSectionData3 (
SearchType2,
+ 0,
FileHandle,
- &Pe32Data
+ &Pe32Data,
+ AuthenticationState
);
if (EFI_ERROR (Status)) {
//
- // PEI core only carry the loader function fro TE and PE32 executables
+ // PEI core only carry the loader function for TE and PE32 executables
// If this two section does not exist, just return.
//
return Status;