mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-28 16:14:04 +02:00
Remove TPM selftest on S3 boot path to save time
Signed-off-by : Chao Zhang <chao.b.zhang@intel.com> Reviewed-by : Dong Guo <guo.dong@intel.com> Reviewed-by : Yao Jiewen <jieweng.yao@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13873 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
fc78c48e20
commit
6f6c7857c2
@ -707,10 +707,17 @@ PeimEntryMA (
|
|||||||
if (EFI_ERROR (Status) ) {
|
if (EFI_ERROR (Status) ) {
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
Status = TpmCommContinueSelfTest ((EFI_PEI_SERVICES**)PeiServices, TpmHandle);
|
|
||||||
if (EFI_ERROR (Status)) {
|
//
|
||||||
return Status;
|
// TpmSelfTest is optional on S3 path, skip it to save S3 time
|
||||||
|
//
|
||||||
|
if (BootMode != BOOT_ON_S3_RESUME) {
|
||||||
|
Status = TpmCommContinueSelfTest ((EFI_PEI_SERVICES**)PeiServices, TpmHandle);
|
||||||
|
if (EFI_ERROR (Status)) {
|
||||||
|
return Status;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Status = PeiServicesInstallPpi (&mTpmInitializedPpiList);
|
Status = PeiServicesInstallPpi (&mTpmInitializedPpiList);
|
||||||
ASSERT_EFI_ERROR (Status);
|
ASSERT_EFI_ERROR (Status);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user