/* This function is a wrapper of InitializeSeparateExceptionStacks. It's mainly for the sake of AP's init because of EFI_AP_PROCEDURE API requirement. */
VOID EFIAPI InitializeExceptionStackSwitchHandlersPerAp(IN OUT VOID *Buffer)
/* This function is a wrapper of InitializeSeparateExceptionStacks. It's mainly for the sake of AP's init because of EFI_AP_PROCEDURE API requirement. */
VOID EFIAPI InitializeExceptionStackSwitchHandlersPerAp(IN OUT VOID *Buffer)
{
  EXCEPTION_STACK_SWITCH_CONTEXT  *CpuSwitchStackData;
  CpuSwitchStackData = (EXCEPTION_STACK_SWITCH_CONTEXT *)Buffer;
  if ((CpuSwitchStackData->Status == EFI_NOT_STARTED) || (CpuSwitchStackData->Status == EFI_BUFFER_TOO_SMALL)) {
    CpuSwitchStackData->Status = InitializeSeparateExceptionStacks (CpuSwitchStackData->Buffer, &CpuSwitchStackData->BufferSize);
  }
}