/* This function performs platform specific way of SMM BSP election. */
EFI_STATUS EFIAPI PlatformSmmBspElection(OUT BOOLEAN *IsBsp)
/* This function performs platform specific way of SMM BSP election. */
EFI_STATUS EFIAPI PlatformSmmBspElection(OUT BOOLEAN *IsBsp)
{
  MSR_IA32_APIC_BASE_REGISTER  ApicBaseMsr;
  ApicBaseMsr.Uint64 = AsmReadMsr64 (MSR_IA32_APIC_BASE);
  *IsBsp             = (BOOLEAN)(ApicBaseMsr.Bits.BSP == 1);
  return EFI_SUCCESS;
}