/* Worker function for SwitchBSP(), assigned to the AP which is intended to become BSP. */
VOID EFIAPI FutureBSPProc(IN VOID *Buffer)
/* Worker function for SwitchBSP(), assigned to the AP which is intended to become BSP. */
VOID EFIAPI FutureBSPProc(IN VOID *Buffer)
{
  CPU_MP_DATA  *DataInHob;
  DataInHob = (CPU_MP_DATA *)Buffer;
  SaveVolatileRegisters (&DataInHob->APInfo.VolatileRegisters);
  AsmExchangeRole (&DataInHob->APInfo, &DataInHob->BSPInfo);
  RestoreVolatileRegisters (&DataInHob->APInfo.VolatileRegisters, FALSE);
}