/* This initialization function contains common functionality shared betwen all library instance constructors.  */
VOID CpuFeaturesLibInitialization(VOID)
/* This initialization function contains common functionality shared betwen all library instance constructors.  */
VOID CpuFeaturesLibInitialization(VOID)
{
  UINT32  LMAValue;
  LMAValue                 = (UINT32)AsmReadMsr64 (EFER_ADDRESS) & LMA;
  mSmmSaveStateRegisterLma = EFI_SMM_SAVE_STATE_REGISTER_LMA_32BIT;
  if (LMAValue) {
    mSmmSaveStateRegisterLma = EFI_SMM_SAVE_STATE_REGISTER_LMA_64BIT;
  }
}