Home
last modified time | relevance | path

Searched refs:mMsrSpinLocks (Results 1 – 1 of 1) sorted by relevance

/device/linaro/bootloader/edk2/UefiCpuPkg/PiSmmCpuDxeSmm/
DCpuS3.c64 MP_MSR_LOCK *mMsrSpinLocks = NULL; variable
104 if (MsrIndex == mMsrSpinLocks[Index].MsrIndex) { in GetMsrSpinLockByIndex()
105 return mMsrSpinLocks[Index].SpinLock; in GetMsrSpinLockByIndex()
127 if (mMsrSpinLocks == NULL) { in InitMsrSpinLockByIndex()
129 mMsrSpinLocks = (MP_MSR_LOCK *) AllocatePool (sizeof (MP_MSR_LOCK) * MsrSpinLockCount); in InitMsrSpinLockByIndex()
130 ASSERT (mMsrSpinLocks != NULL); in InitMsrSpinLockByIndex()
132 mMsrSpinLocks[Index].SpinLock = in InitMsrSpinLockByIndex()
134 mMsrSpinLocks[Index].MsrIndex = (UINT32)-1; in InitMsrSpinLockByIndex()
143 mMsrSpinLocks[mMsrCount].MsrIndex = MsrIndex; in InitMsrSpinLockByIndex()
144 InitializeSpinLock (mMsrSpinLocks[mMsrCount].SpinLock); in InitMsrSpinLockByIndex()
[all …]