From 67d66e218ed52f5018e4769990bd5f02fe19fc7e Mon Sep 17 00:00:00 2001 From: Jeff Fan Date: Tue, 18 Apr 2017 10:14:08 +0800 Subject: UefiCpuPkg/PiSmmCpuDxeSmm: Lock should be acquired SMM BSP's *busy* state should be acquired. We could use AcquireSpinLock() instead of AcquireSpinLockOrFail(). Cc: Hao Wu Cc: Feng Tian Cc: Michael Kinney Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Hao Wu (cherry picked from commit 170a3c1e0fff7de43501ef851b4ad5cbe355e220) --- Core/UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Core/UefiCpuPkg') diff --git a/Core/UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c b/Core/UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c index a1d16b4570..e03f1e02c0 100644 --- a/Core/UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c +++ b/Core/UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c @@ -407,7 +407,7 @@ BSPHandler ( // // The BUSY lock is initialized to Acquired state // - AcquireSpinLockOrFail (mSmmMpSyncData->CpuData[CpuIndex].Busy); + AcquireSpinLock (mSmmMpSyncData->CpuData[CpuIndex].Busy); // // Perform the pre tasks -- cgit v1.2.3