/* Retrieves the location of the System Management System Table (SMST). */
EFI_STATUS EFIAPI SmmBase2GetSmstLocation(IN CONST EFI_SMM_BASE2_PROTOCOL *This, OUT EFI_SMM_SYSTEM_TABLE2 **Smst)
/* Retrieves the location of the System Management System Table (SMST). */
EFI_STATUS EFIAPI SmmBase2GetSmstLocation(IN CONST EFI_SMM_BASE2_PROTOCOL *This, OUT EFI_SMM_SYSTEM_TABLE2 **Smst)
{
  if ((This == NULL) || (Smst == NULL)) {
    return EFI_INVALID_PARAMETER;
  }
  if (!gSmmCorePrivate->InSmm) {
    return EFI_UNSUPPORTED;
  }
  *Smst = gSmmCorePrivate->Smst;
  return EFI_SUCCESS;
}