/* Note: This function is blocking mode, and it will return only after the AP released by calling  */
VOID EFIAPI SmmCpuSyncWaitForBsp(IN OUT SMM_CPU_SYNC_CONTEXT *Context, IN UINTN CpuIndex, IN UINTN BspIndex)
/* Note: This function is blocking mode, and it will return only after the AP released by calling  */
VOID EFIAPI SmmCpuSyncWaitForBsp(IN OUT SMM_CPU_SYNC_CONTEXT *Context, IN UINTN CpuIndex, IN UINTN BspIndex)
{
  ASSERT (Context != NULL);
  ASSERT (BspIndex != CpuIndex);
  ASSERT (CpuIndex < Context->NumberOfCpus);
  ASSERT (BspIndex < Context->NumberOfCpus);
  InternalWaitForSemaphore (Context->CpuSem[CpuIndex].Run);
}