mirror of
https://github.com/reactos/reactos.git
synced 2025-06-25 17:09:43 +00:00
[NTOSKRNL]
ExInitializePushLock takes a PEX_PUSH_LOCK as parameter, do it the same in the inline version instead of casting to PULONG_PTR everywhere svn path=/trunk/; revision=51278
This commit is contained in:
parent
a3690ead55
commit
b63bf768a6
9 changed files with 22 additions and 22 deletions
|
@ -596,7 +596,7 @@ CcRosCreateCacheSegment(PBCB Bcb,
|
||||||
current->DirtySegmentListEntry.Flink = NULL;
|
current->DirtySegmentListEntry.Flink = NULL;
|
||||||
current->DirtySegmentListEntry.Blink = NULL;
|
current->DirtySegmentListEntry.Blink = NULL;
|
||||||
current->ReferenceCount = 1;
|
current->ReferenceCount = 1;
|
||||||
ExInitializePushLock((PULONG_PTR)¤t->Lock);
|
ExInitializePushLock(¤t->Lock);
|
||||||
ExAcquirePushLockExclusive(¤t->Lock);
|
ExAcquirePushLockExclusive(¤t->Lock);
|
||||||
KeAcquireGuardedMutex(&ViewLock);
|
KeAcquireGuardedMutex(&ViewLock);
|
||||||
|
|
||||||
|
|
|
@ -137,11 +137,11 @@ CmpInitializeHive(OUT PCMHIVE *RegistryHive,
|
||||||
ExInitializeResourceLite(Hive->FlusherLock);
|
ExInitializeResourceLite(Hive->FlusherLock);
|
||||||
|
|
||||||
/* Setup hive locks */
|
/* Setup hive locks */
|
||||||
ExInitializePushLock((PULONG_PTR)&Hive->HiveLock);
|
ExInitializePushLock(&Hive->HiveLock);
|
||||||
Hive->HiveLockOwner = NULL;
|
Hive->HiveLockOwner = NULL;
|
||||||
ExInitializePushLock((PULONG_PTR)&Hive->WriterLock);
|
ExInitializePushLock(&Hive->WriterLock);
|
||||||
Hive->WriterLockOwner = NULL;
|
Hive->WriterLockOwner = NULL;
|
||||||
ExInitializePushLock((PULONG_PTR)&Hive->SecurityLock);
|
ExInitializePushLock(&Hive->SecurityLock);
|
||||||
Hive->HiveSecurityLockOwner = NULL;
|
Hive->HiveSecurityLockOwner = NULL;
|
||||||
|
|
||||||
/* Clear file names */
|
/* Clear file names */
|
||||||
|
|
|
@ -45,7 +45,7 @@ CmpInitializeCache(VOID)
|
||||||
for (i = 0;i < CmpHashTableSize; i++)
|
for (i = 0;i < CmpHashTableSize; i++)
|
||||||
{
|
{
|
||||||
/* Setup the pushlock */
|
/* Setup the pushlock */
|
||||||
ExInitializePushLock((PULONG_PTR)&CmpCacheTable[i].Lock);
|
ExInitializePushLock(&CmpCacheTable[i].Lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Calculate length for the name cache */
|
/* Calculate length for the name cache */
|
||||||
|
@ -66,7 +66,7 @@ CmpInitializeCache(VOID)
|
||||||
for (i = 0;i < CmpHashTableSize; i++)
|
for (i = 0;i < CmpHashTableSize; i++)
|
||||||
{
|
{
|
||||||
/* Setup the pushlock */
|
/* Setup the pushlock */
|
||||||
ExInitializePushLock((PULONG_PTR)&CmpNameCacheTable[i].Lock);
|
ExInitializePushLock(&CmpNameCacheTable[i].Lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Setup the delayed close table */
|
/* Setup the delayed close table */
|
||||||
|
@ -1184,7 +1184,7 @@ CmpFlushNotifiesOnKeyBodyList(IN PCM_KEY_CONTROL_BLOCK Kcb,
|
||||||
ASSERT(KeyBody->NotifyBlock == NULL);
|
ASSERT(KeyBody->NotifyBlock == NULL);
|
||||||
|
|
||||||
/* Release the reference we took */
|
/* Release the reference we took */
|
||||||
ObDereferenceObjectDeferDelete(KeyBody);
|
ObDereferenceObjectDeferDelete(KeyBody);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1393,8 +1393,8 @@ CmInitSystem1(VOID)
|
||||||
|
|
||||||
/* Initialize the hive list and lock */
|
/* Initialize the hive list and lock */
|
||||||
InitializeListHead(&CmpHiveListHead);
|
InitializeListHead(&CmpHiveListHead);
|
||||||
ExInitializePushLock((PVOID)&CmpHiveListHeadLock);
|
ExInitializePushLock(&CmpHiveListHeadLock);
|
||||||
ExInitializePushLock((PVOID)&CmpLoadHiveLock);
|
ExInitializePushLock(&CmpLoadHiveLock);
|
||||||
|
|
||||||
/* Initialize registry lock */
|
/* Initialize registry lock */
|
||||||
ExInitializeResourceLite(&CmpRegistryLock);
|
ExInitializeResourceLite(&CmpRegistryLock);
|
||||||
|
|
|
@ -28,7 +28,7 @@ ExpInitializeHandleTables(VOID)
|
||||||
{
|
{
|
||||||
/* Initialize the list of handle tables and the lock */
|
/* Initialize the list of handle tables and the lock */
|
||||||
InitializeListHead(&HandleTableListHead);
|
InitializeListHead(&HandleTableListHead);
|
||||||
ExInitializePushLock((PULONG_PTR)&HandleTableListLock);
|
ExInitializePushLock(&HandleTableListLock);
|
||||||
}
|
}
|
||||||
|
|
||||||
PHANDLE_TABLE_ENTRY
|
PHANDLE_TABLE_ENTRY
|
||||||
|
@ -409,11 +409,11 @@ ExpAllocateHandleTable(IN PEPROCESS Process OPTIONAL,
|
||||||
for (i = 0; i < 4; i++)
|
for (i = 0; i < 4; i++)
|
||||||
{
|
{
|
||||||
/* Initialize the handle table lock */
|
/* Initialize the handle table lock */
|
||||||
ExInitializePushLock((PULONG_PTR)&HandleTable->HandleTableLock[i]);
|
ExInitializePushLock(&HandleTable->HandleTableLock[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Initialize the contention event lock and return the lock */
|
/* Initialize the contention event lock and return the lock */
|
||||||
ExInitializePushLock((PULONG_PTR)&HandleTable->HandleContentionEvent);
|
ExInitializePushLock(&HandleTable->HandleContentionEvent);
|
||||||
return HandleTable;
|
return HandleTable;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -887,10 +887,10 @@ ExWaitForUnblockPushLock(
|
||||||
*--*/
|
*--*/
|
||||||
FORCEINLINE
|
FORCEINLINE
|
||||||
VOID
|
VOID
|
||||||
_ExInitializePushLock(IN PULONG_PTR PushLock)
|
_ExInitializePushLock(OUT PEX_PUSH_LOCK PushLock)
|
||||||
{
|
{
|
||||||
/* Set the value to 0 */
|
/* Set the value to 0 */
|
||||||
*PushLock = 0;
|
PushLock->Ptr = 0;
|
||||||
}
|
}
|
||||||
#define ExInitializePushLock _ExInitializePushLock
|
#define ExInitializePushLock _ExInitializePushLock
|
||||||
|
|
||||||
|
|
|
@ -1993,7 +1993,7 @@ MmArmInitSystem(IN ULONG Phase,
|
||||||
MmNumberOfSystemPtes, MmNumberOfSystemPtes * PAGE_SIZE);
|
MmNumberOfSystemPtes, MmNumberOfSystemPtes * PAGE_SIZE);
|
||||||
|
|
||||||
/* Initialize the working set lock */
|
/* Initialize the working set lock */
|
||||||
ExInitializePushLock((PULONG_PTR)&MmSystemCacheWs.WorkingSetMutex);
|
ExInitializePushLock(&MmSystemCacheWs.WorkingSetMutex);
|
||||||
|
|
||||||
/* Set commit limit */
|
/* Set commit limit */
|
||||||
MmTotalCommitLimit = 2 * _1GB;
|
MmTotalCommitLimit = 2 * _1GB;
|
||||||
|
|
|
@ -768,7 +768,7 @@ NtCreateDirectoryObject(OUT PHANDLE DirectoryHandle,
|
||||||
|
|
||||||
/* Setup the object */
|
/* Setup the object */
|
||||||
RtlZeroMemory(Directory, sizeof(OBJECT_DIRECTORY));
|
RtlZeroMemory(Directory, sizeof(OBJECT_DIRECTORY));
|
||||||
ExInitializePushLock((PULONG_PTR)&Directory->Lock);
|
ExInitializePushLock(&Directory->Lock);
|
||||||
Directory->SessionId = -1;
|
Directory->SessionId = -1;
|
||||||
|
|
||||||
/* Insert it into the handle table */
|
/* Insert it into the handle table */
|
||||||
|
|
|
@ -67,7 +67,7 @@ ObpInitSdCache(VOID)
|
||||||
{
|
{
|
||||||
/* Initialize the lock and the list */
|
/* Initialize the lock and the list */
|
||||||
InitializeListHead(&ObsSecurityDescriptorCache[i].Head);
|
InitializeListHead(&ObsSecurityDescriptorCache[i].Head);
|
||||||
ExInitializePushLock((PULONG_PTR)&ObsSecurityDescriptorCache[i].PushLock);
|
ExInitializePushLock(&ObsSecurityDescriptorCache[i].PushLock);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Return success */
|
/* Return success */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue