/* Returns whether the processor executing this function is the BSP. */
STATIC BOOLEAN IsCurrentProcessorBSP(VOID)
/* Returns whether the processor executing this function is the BSP. */
STATIC BOOLEAN IsCurrentProcessorBSP(VOID)
{
  EFI_STATUS  Status;
  UINTN       ProcessorIndex;
  Status = WhoAmI (&mMpServicesProtocol, &ProcessorIndex);
  if (EFI_ERROR (Status)) {
    ASSERT_EFI_ERROR (Status);
    return FALSE;
  }
  return IsProcessorBSP (ProcessorIndex);
}