/* Raising to the task priority level of the mutual exclusion lock, and then acquires ownership of the lock. */
VOID CoreAcquireLock(IN EFI_LOCK *Lock)
/* Raising to the task priority level of the mutual exclusion lock, and then acquires ownership of the lock. */
VOID CoreAcquireLock(IN EFI_LOCK *Lock)
{
  ASSERT (Lock != NULL);
  ASSERT (Lock->Lock == EfiLockReleased);
  Lock->OwnerTpl = CoreRaiseTpl (Lock->Tpl);
  Lock->Lock     = EfiLockAcquired;
}