/* Switch the current stack to the previous saved stack. */
UINTN EFIAPI SwapStack(IN UINTN NewStack)
/* Switch the current stack to the previous saved stack. */
UINTN EFIAPI SwapStack(IN UINTN NewStack)
{
  FSP_GLOBAL_DATA  *FspData;
  UINTN            OldStack;
  FspData            = GetFspGlobalDataPointer ();
  OldStack           = FspData->CoreStack;
  FspData->CoreStack = (UINTN)NewStack;
  return OldStack;
}