mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
There is no point in saving the address of the address space lock in the address space structure anymore, since this lock is always the address creation lock of the owner process,
and there's always an owner process now. svn path=/trunk/; revision=34878
This commit is contained in:
@@ -253,7 +253,6 @@ typedef struct _MEMORY_AREA
|
||||
typedef struct _MADDRESS_SPACE
|
||||
{
|
||||
PMEMORY_AREA MemoryAreaRoot;
|
||||
PEX_PUSH_LOCK Lock;
|
||||
} MADDRESS_SPACE, *PMADDRESS_SPACE;
|
||||
|
||||
typedef struct
|
||||
@@ -1576,14 +1575,14 @@ VOID
|
||||
MmLockAddressSpace(PMADDRESS_SPACE AddressSpace)
|
||||
{
|
||||
KeEnterCriticalRegion();
|
||||
ExAcquirePushLockExclusive(AddressSpace->Lock);
|
||||
ExAcquirePushLockExclusive((PEX_PUSH_LOCK)&CONTAINING_RECORD(AddressSpace, EPROCESS, VadRoot)->AddressCreationLock);
|
||||
}
|
||||
|
||||
FORCEINLINE
|
||||
VOID
|
||||
MmUnlockAddressSpace(PMADDRESS_SPACE AddressSpace)
|
||||
{
|
||||
ExReleasePushLock(AddressSpace->Lock);
|
||||
ExReleasePushLock((PEX_PUSH_LOCK)&CONTAINING_RECORD(AddressSpace, EPROCESS, VadRoot)->AddressCreationLock);
|
||||
KeLeaveCriticalRegion();
|
||||
}
|
||||
|
||||
|
||||
@@ -32,8 +32,6 @@ MmInitializeAddressSpace(PEPROCESS Process,
|
||||
PMADDRESS_SPACE AddressSpace)
|
||||
{
|
||||
AddressSpace->MemoryAreaRoot = NULL;
|
||||
AddressSpace->Lock = (PEX_PUSH_LOCK)&Process->AddressCreationLock;
|
||||
ExInitializePushLock((PULONG_PTR)AddressSpace->Lock);
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user