FORCEINLINE
BOOLEAN
-_ExiDisableInteruptsAndAcquireSpinlock(
+_ExiDisableInterruptsAndAcquireSpinlock(
IN OUT PKSPIN_LOCK Lock)
{
BOOLEAN Enabled;
FORCEINLINE
VOID
-_ExiReleaseSpinLockAndRestoreInterupts(
+_ExiReleaseSpinLockAndRestoreInterrupts(
IN OUT PKSPIN_LOCK Lock,
BOOLEAN Enable)
{
BOOLEAN Enable;
/* Disable interrupts and acquire the spinlock */
- Enable = _ExiDisableInteruptsAndAcquireSpinlock(Lock);
+ Enable = _ExiDisableInterruptsAndAcquireSpinlock(Lock);
/* Save the old value */
OldValue.QuadPart = Addend->QuadPart;
Addend->QuadPart += Increment.QuadPart;
/* Release the spinlock and restore interrupts */
- _ExiReleaseSpinLockAndRestoreInterupts(Lock, Enable);
+ _ExiReleaseSpinLockAndRestoreInterrupts(Lock, Enable);
/* Return the old value */
return OldValue;
ULONG OldValue;
/* Disable interrupts and acquire the spinlock */
- Enable = _ExiDisableInteruptsAndAcquireSpinlock(Lock);
+ Enable = _ExiDisableInterruptsAndAcquireSpinlock(Lock);
/* Save the old value */
OldValue = *Addend;
*Addend += Increment;
/* Release the spinlock and restore interrupts */
- _ExiReleaseSpinLockAndRestoreInterupts(Lock, Enable);
+ _ExiReleaseSpinLockAndRestoreInterrupts(Lock, Enable);
/* Return the old value */
return OldValue;
PLIST_ENTRY FirstEntry;
/* Disable interrupts and acquire the spinlock */
- Enable = _ExiDisableInteruptsAndAcquireSpinlock(Lock);
+ Enable = _ExiDisableInterruptsAndAcquireSpinlock(Lock);
/* Save the first entry */
FirstEntry = ListHead->Flink;
InsertHeadList(ListHead, ListEntry);
/* Release the spinlock and restore interrupts */
- _ExiReleaseSpinLockAndRestoreInterupts(Lock, Enable);
+ _ExiReleaseSpinLockAndRestoreInterrupts(Lock, Enable);
/* Return the old first entry or NULL for empty list */
return (FirstEntry == ListHead) ? NULL : FirstEntry;
PLIST_ENTRY LastEntry;
/* Disable interrupts and acquire the spinlock */
- Enable = _ExiDisableInteruptsAndAcquireSpinlock(Lock);
+ Enable = _ExiDisableInterruptsAndAcquireSpinlock(Lock);
/* Save the last entry */
LastEntry = ListHead->Blink;
InsertTailList(ListHead, ListEntry);
/* Release the spinlock and restore interrupts */
- _ExiReleaseSpinLockAndRestoreInterupts(Lock, Enable);
+ _ExiReleaseSpinLockAndRestoreInterrupts(Lock, Enable);
/* Return the old last entry or NULL for empty list */
return (LastEntry == ListHead) ? NULL : LastEntry;
PLIST_ENTRY ListEntry;
/* Disable interrupts and acquire the spinlock */
- Enable = _ExiDisableInteruptsAndAcquireSpinlock(Lock);
+ Enable = _ExiDisableInterruptsAndAcquireSpinlock(Lock);
/* Check if the list is empty */
if (IsListEmpty(ListHead))
/* Remove the first entry from the list head */
ListEntry = RemoveHeadList(ListHead);
#if DBG
- ListEntry->Flink = (PLIST_ENTRY)0xBADDD0FF;
- ListEntry->Blink = (PLIST_ENTRY)0xBADDD0FF;
+ ListEntry->Flink = (PLIST_ENTRY)(ULONG_PTR)0xBADDD0FFBADDD0FFULL;
+ ListEntry->Blink = (PLIST_ENTRY)(ULONG_PTR)0xBADDD0FFBADDD0FFULL;
#endif
}
/* Release the spinlock and restore interrupts */
- _ExiReleaseSpinLockAndRestoreInterupts(Lock, Enable);
+ _ExiReleaseSpinLockAndRestoreInterrupts(Lock, Enable);
/* Return the entry */
return ListEntry;
PSINGLE_LIST_ENTRY ListEntry;
/* Disable interrupts and acquire the spinlock */
- Enable = _ExiDisableInteruptsAndAcquireSpinlock(Lock);
+ Enable = _ExiDisableInterruptsAndAcquireSpinlock(Lock);
/* Pop the first entry from the list */
ListEntry = PopEntryList(ListHead);
#if DBG
if (ListEntry)
- ListEntry->Next = (PSINGLE_LIST_ENTRY)0xBADDD0FF;
+ ListEntry->Next = (PSINGLE_LIST_ENTRY)(ULONG_PTR)0xBADDD0FFBADDD0FFULL;
#endif
/* Release the spinlock and restore interrupts */
- _ExiReleaseSpinLockAndRestoreInterupts(Lock, Enable);
+ _ExiReleaseSpinLockAndRestoreInterrupts(Lock, Enable);
/* Return the entry */
return ListEntry;
PSINGLE_LIST_ENTRY OldListEntry;
/* Disable interrupts and acquire the spinlock */
- Enable = _ExiDisableInteruptsAndAcquireSpinlock(Lock);
+ Enable = _ExiDisableInterruptsAndAcquireSpinlock(Lock);
/* Save the old top entry */
OldListEntry = ListHead->Next;
PushEntryList(ListHead, ListEntry);
/* Release the spinlock and restore interrupts */
- _ExiReleaseSpinLockAndRestoreInterupts(Lock, Enable);
+ _ExiReleaseSpinLockAndRestoreInterrupts(Lock, Enable);
/* Return the entry */
return OldListEntry;
ULONG OldValue;
/* Disable interrupts and acquire the spinlock */
- Enable = _ExiDisableInteruptsAndAcquireSpinlock(Lock);
+ Enable = _ExiDisableInterruptsAndAcquireSpinlock(Lock);
/* Save the old value */
OldValue = *Addend;
*Addend += Increment;
/* Release the spinlock and restore interrupts */
- _ExiReleaseSpinLockAndRestoreInterupts(Lock, Enable);
+ _ExiReleaseSpinLockAndRestoreInterrupts(Lock, Enable);
/* Return the old value */
return OldValue;
PLIST_ENTRY FirstEntry;
/* Disable interrupts and acquire the spinlock */
- Enable = _ExiDisableInteruptsAndAcquireSpinlock(Lock);
+ Enable = _ExiDisableInterruptsAndAcquireSpinlock(Lock);
/* Save the first entry */
FirstEntry = ListHead->Flink;
InsertHeadList(ListHead, ListEntry);
/* Release the spinlock and restore interrupts */
- _ExiReleaseSpinLockAndRestoreInterupts(Lock, Enable);
+ _ExiReleaseSpinLockAndRestoreInterrupts(Lock, Enable);
/* Return the old first entry or NULL for empty list */
return (FirstEntry == ListHead) ? NULL : FirstEntry;
PLIST_ENTRY LastEntry;
/* Disable interrupts and acquire the spinlock */
- Enable = _ExiDisableInteruptsAndAcquireSpinlock(Lock);
+ Enable = _ExiDisableInterruptsAndAcquireSpinlock(Lock);
/* Save the last entry */
LastEntry = ListHead->Blink;
InsertTailList(ListHead, ListEntry);
/* Release the spinlock and restore interrupts */
- _ExiReleaseSpinLockAndRestoreInterupts(Lock, Enable);
+ _ExiReleaseSpinLockAndRestoreInterrupts(Lock, Enable);
/* Return the old last entry or NULL for empty list */
return (LastEntry == ListHead) ? NULL : LastEntry;
PLIST_ENTRY ListEntry;
/* Disable interrupts and acquire the spinlock */
- Enable = _ExiDisableInteruptsAndAcquireSpinlock(Lock);
+ Enable = _ExiDisableInterruptsAndAcquireSpinlock(Lock);
/* Check if the list is empty */
if (IsListEmpty(ListHead))
}
/* Release the spinlock and restore interrupts */
- _ExiReleaseSpinLockAndRestoreInterupts(Lock, Enable);
+ _ExiReleaseSpinLockAndRestoreInterrupts(Lock, Enable);
/* return the entry */
return ListEntry;
PSINGLE_LIST_ENTRY ListEntry;
/* Disable interrupts and acquire the spinlock */
- Enable = _ExiDisableInteruptsAndAcquireSpinlock(Lock);
+ Enable = _ExiDisableInterruptsAndAcquireSpinlock(Lock);
/* Pop the first entry from the list */
ListEntry = PopEntryList(ListHead);
#if DBG
if (ListEntry)
- ListEntry->Next = (PSINGLE_LIST_ENTRY)0xBADDD0FF;
+ ListEntry->Next = (PSINGLE_LIST_ENTRY)(ULONG_PTR)0xBADDD0FFBADDD0FFULL;
#endif
/* Release the spinlock and restore interrupts */
- _ExiReleaseSpinLockAndRestoreInterupts(Lock, Enable);
+ _ExiReleaseSpinLockAndRestoreInterrupts(Lock, Enable);
/* return the entry */
return ListEntry;
PSINGLE_LIST_ENTRY OldListEntry;
/* Disable interrupts and acquire the spinlock */
- Enable = _ExiDisableInteruptsAndAcquireSpinlock(Lock);
+ Enable = _ExiDisableInterruptsAndAcquireSpinlock(Lock);
/* Save the old top entry */
OldListEntry = ListHead->Next;
PushEntryList(ListHead, ListEntry);
/* Release the spinlock and restore interrupts */
- _ExiReleaseSpinLockAndRestoreInterupts(Lock, Enable);
+ _ExiReleaseSpinLockAndRestoreInterrupts(Lock, Enable);
/* return the entry */
return OldListEntry;