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
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user