diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c b/UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c index bd2c9f841b..9aa9908863 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c @@ -650,6 +650,11 @@ BSPHandler ( // SmmCpuSyncWaitForAPs (mSmmMpSyncData->SyncContext, ApCount, CpuIndex); + // + // Signal APs to Reset states/semaphore for this processor + // + ReleaseAllAPs (); + if (mSmmDebugAgentSupport) { // // Stop source level debug in BSP handler, the code below will not be @@ -658,11 +663,6 @@ BSPHandler ( InitializeDebugAgent (DEBUG_AGENT_INIT_EXIT_SMI, NULL, NULL); } - // - // Signal APs to Reset states/semaphore for this processor - // - ReleaseAllAPs (); - // // Perform pending operations for hot-plug //