mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +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:
parent
71f2416876
commit
34954b16a4
2 changed files with 2 additions and 5 deletions
|
@ -253,7 +253,6 @@ typedef struct _MEMORY_AREA
|
||||||
typedef struct _MADDRESS_SPACE
|
typedef struct _MADDRESS_SPACE
|
||||||
{
|
{
|
||||||
PMEMORY_AREA MemoryAreaRoot;
|
PMEMORY_AREA MemoryAreaRoot;
|
||||||
PEX_PUSH_LOCK Lock;
|
|
||||||
} MADDRESS_SPACE, *PMADDRESS_SPACE;
|
} MADDRESS_SPACE, *PMADDRESS_SPACE;
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
|
@ -1576,14 +1575,14 @@ VOID
|
||||||
MmLockAddressSpace(PMADDRESS_SPACE AddressSpace)
|
MmLockAddressSpace(PMADDRESS_SPACE AddressSpace)
|
||||||
{
|
{
|
||||||
KeEnterCriticalRegion();
|
KeEnterCriticalRegion();
|
||||||
ExAcquirePushLockExclusive(AddressSpace->Lock);
|
ExAcquirePushLockExclusive((PEX_PUSH_LOCK)&CONTAINING_RECORD(AddressSpace, EPROCESS, VadRoot)->AddressCreationLock);
|
||||||
}
|
}
|
||||||
|
|
||||||
FORCEINLINE
|
FORCEINLINE
|
||||||
VOID
|
VOID
|
||||||
MmUnlockAddressSpace(PMADDRESS_SPACE AddressSpace)
|
MmUnlockAddressSpace(PMADDRESS_SPACE AddressSpace)
|
||||||
{
|
{
|
||||||
ExReleasePushLock(AddressSpace->Lock);
|
ExReleasePushLock((PEX_PUSH_LOCK)&CONTAINING_RECORD(AddressSpace, EPROCESS, VadRoot)->AddressCreationLock);
|
||||||
KeLeaveCriticalRegion();
|
KeLeaveCriticalRegion();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,8 +32,6 @@ MmInitializeAddressSpace(PEPROCESS Process,
|
||||||
PMADDRESS_SPACE AddressSpace)
|
PMADDRESS_SPACE AddressSpace)
|
||||||
{
|
{
|
||||||
AddressSpace->MemoryAreaRoot = NULL;
|
AddressSpace->MemoryAreaRoot = NULL;
|
||||||
AddressSpace->Lock = (PEX_PUSH_LOCK)&Process->AddressCreationLock;
|
|
||||||
ExInitializePushLock((PULONG_PTR)AddressSpace->Lock);
|
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue