From ed576f177d216459c66efadd125fed244e4ddc36 Mon Sep 17 00:00:00 2001 From: John Strange Date: Thu, 4 Jul 2024 08:49:55 -0700 Subject: [PATCH] SecurityPkg: Tcg2Smm: Remove Unused Functionality Remove unused MemoryClear SMI Handler, which is no longer used due to _DSM Memory Clear no longer being used. --- SecurityPkg/Tcg/Tcg2Smm/Tcg2Smm.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SecurityPkg/Tcg/Tcg2Smm/Tcg2Smm.c b/SecurityPkg/Tcg/Tcg2Smm/Tcg2Smm.c index c47c582cc8..402dd02955 100644 --- a/SecurityPkg/Tcg/Tcg2Smm/Tcg2Smm.c +++ b/SecurityPkg/Tcg/Tcg2Smm/Tcg2Smm.c @@ -158,6 +158,8 @@ PhysicalPresenceCallback ( return EFI_SUCCESS; } +#if 0 // MU_CHANGE Begin - MemoryClear SMI handler not used + /** Software SMI callback for MemoryClear which is called from ACPI method. @@ -233,6 +235,8 @@ MemoryClearCallback ( return EFI_SUCCESS; } +#endif // MU_CHANGE Begin - MemoryClear SMI handler not used + /** Notification for SMM ReadyToLock protocol. @@ -325,6 +329,7 @@ InitializeTcgCommon ( mPpSoftwareSmi = SwContext.SwSmiInputValue; + #if 0 // MU_CHANGE Begin - MemoryClear SMI handler is not used SwContext.SwSmiInputValue = (UINTN)-1; Status = SwDispatch->Register (SwDispatch, MemoryClearCallback, &SwContext, &McSwHandle); ASSERT_EFI_ERROR (Status); @@ -334,6 +339,7 @@ InitializeTcgCommon ( } mMcSoftwareSmi = SwContext.SwSmiInputValue; + #endif // MU_CHANGE End // // Locate SmmVariableProtocol.