/* Detects if IA32_MCG_CTL feature supported on current processor. */
BOOLEAN EFIAPI McgCtlSupport(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL)
/* Detects if IA32_MCG_CTL feature supported on current processor. */
BOOLEAN EFIAPI McgCtlSupport(IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL)
{
  MSR_IA32_MCG_CAP_REGISTER  McgCap;
  if (!McaSupport (ProcessorNumber, CpuInfo, ConfigData)) {
    return FALSE;
  }
  McgCap.Uint64 = AsmReadMsr64 (MSR_IA32_MCG_CAP);
  return (McgCap.Bits.MCG_CTL_P == 1);
}