/* This function raises the system's current task priority level to the task priority level of the mutual exclusion lock. Then, it places the lock in the acquired state. If Lock is NULL, then ASSERT(). If Lock is not initialized, then ASSERT(). If Lock is already in the acquired state, then ASSERT(). */
VOID EFIAPI EfiAcquireLock(IN EFI_LOCK *Lock)
/* This function raises the system's current task priority level to the task priority level of the mutual exclusion lock. Then, it places the lock in the acquired state. If Lock is NULL, then ASSERT(). If Lock is not initialized, then ASSERT(). If Lock is already in the acquired state, then ASSERT(). */
VOID EFIAPI EfiAcquireLock(IN EFI_LOCK *Lock)
{
  ASSERT (Lock != NULL);
  ASSERT (Lock->Lock == EfiLockReleased);
  Lock->OwnerTpl = gBS->RaiseTPL (Lock->Tpl);
  Lock->Lock     = EfiLockAcquired;
}