/* Check if the input address is in SMM ranges. */
BOOLEAN IsInSmmRanges(IN EFI_PHYSICAL_ADDRESS Address)
/* Check if the input address is in SMM ranges. */
BOOLEAN IsInSmmRanges(IN EFI_PHYSICAL_ADDRESS Address)
{
  UINTN  Index;
  if ((Address >= mCpuHotPlugData.SmrrBase) && (Address < mCpuHotPlugData.SmrrBase + mCpuHotPlugData.SmrrSize)) {
    return TRUE;
  }
  for (Index = 0; Index < mSmmCpuSmramRangeCount; Index++) {
    if ((Address >= mSmmCpuSmramRanges[Index].CpuStart) &&
        (Address < mSmmCpuSmramRanges[Index].CpuStart + mSmmCpuSmramRanges[Index].PhysicalSize))
    {
      return TRUE;
    }
  }
  return FALSE;
}