/* This function handles PlatformInit task at the end of PEI */
EFI_STATUS EFIAPI PlatformInitEndOfPei(IN CONST EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_NOTIFY_DESCRIPTOR *NotifyDescriptor, IN VOID *Ppi)
/* This function handles PlatformInit task at the end of PEI */
EFI_STATUS EFIAPI PlatformInitEndOfPei(IN CONST EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_NOTIFY_DESCRIPTOR *NotifyDescriptor, IN VOID *Ppi)
{
  VOID  *TcgEventLog;
  TcgEventLog = GetFirstGuidHob (&gTcgEventEntryHobGuid);
  if (TcgEventLog == NULL) {
    TcgEventLog = GetFirstGuidHob (&gTcgEvent2EntryHobGuid);
  }
  if (TcgEventLog == NULL) {
    return EFI_SUCCESS;
  }
  ConfigureTpmPlatformHierarchy ();
  return EFI_SUCCESS;
}