Skip to content

Commit

Permalink
SecurityPkg: Tcg2Smm: Remove Unused Functionality
Browse files Browse the repository at this point in the history
Remove unused MemoryClear SMI Handler, which is no longer
used due to _DSM Memory Clear no longer being used.
  • Loading branch information
johnstra authored and os-d committed Jul 4, 2024
1 parent 9da2187 commit ed576f1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions SecurityPkg/Tcg/Tcg2Smm/Tcg2Smm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -233,6 +235,8 @@ MemoryClearCallback (
return EFI_SUCCESS;
}

#endif // MU_CHANGE Begin - MemoryClear SMI handler not used

/**
Notification for SMM ReadyToLock protocol.
Expand Down Expand Up @@ -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);
Expand All @@ -334,6 +339,7 @@ InitializeTcgCommon (
}

mMcSoftwareSmi = SwContext.SwSmiInputValue;
#endif // MU_CHANGE End

//
// Locate SmmVariableProtocol.
Expand Down

0 comments on commit ed576f1

Please sign in to comment.