Remove S3 resume condition on OsLoader TPM event logging

Since OsLoader will never be exercised on S3 resume, there
is no need to check if boot mode is S3 resume before logging
TPM events in OsLoader

Signed-off-by: Sean McGinn <sean.mcginn@intel.com>
This commit is contained in:
Sean McGinn 2023-05-01 10:15:18 -07:00 committed by Guo Dong
parent 43e8103df3
commit 39403a81e7
2 changed files with 2 additions and 3 deletions

View File

@ -28,7 +28,7 @@ LoadComponentCallback (
AddMeasurePoint (0x4080);
}
if (MEASURED_BOOT_ENABLED() && GetBootMode() != BOOT_ON_S3_RESUME) {
if (MEASURED_BOOT_ENABLED()) {
// Extend the OS component hash
ExtendStageHash (CbInfo);
}
@ -662,7 +662,7 @@ BeforeOSJump (
if (LoaderPlatformInfo == NULL) {
return ;
}
if (MEASURED_BOOT_ENABLED() && GetBootMode() != BOOT_ON_S3_RESUME) {
if (MEASURED_BOOT_ENABLED()) {
PlatformDebugEnabled = PlatformDebugStateEnabled (LoaderPlatformInfo->HwState);
if(TpmIndicateReadyToBoot (PlatformDebugEnabled) != EFI_SUCCESS) {
DEBUG ((DEBUG_ERROR, "FAILED to complete TPM ReadyToBoot actions. \n"));

View File

@ -86,7 +86,6 @@
LocalApicLib
SynchronizationLib
MpServiceLib
BootloaderCoreLib
[Guids]
gOsConfigDataGuid