/* Configuration of the TPM's Platform Hierarchy Authorization Value (platformAuth) and Platform Hierarchy Authorization Policy (platformPolicy) can be defined through this function. */
VOID EFIAPI SmmReadyToLockEventCallBack(IN EFI_EVENT Event, IN VOID *Context)
/* Configuration of the TPM's Platform Hierarchy Authorization Value (platformAuth) and Platform Hierarchy Authorization Policy (platformPolicy) can be defined through this function. */
VOID EFIAPI SmmReadyToLockEventCallBack(IN EFI_EVENT Event, IN VOID *Context)
{
  EFI_STATUS  Status;
  VOID        *Interface;
  Status = gBS->LocateProtocol (
                  &gEfiDxeSmmReadyToLockProtocolGuid,
                  NULL,
                  &Interface
                  );
  if (EFI_ERROR (Status)) {
    return;
  }
  ConfigureTpmPlatformHierarchy ();
  gBS->CloseEvent (Event);
}