mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Allocate the section segments from non paged pool because the storage for fast mutex must be in non paged memory.
svn path=/trunk/; revision=15815
This commit is contained in:
parent
be1ac79fa0
commit
f97e4e54cd
1 changed files with 3 additions and 3 deletions
|
@ -2183,7 +2183,7 @@ MmCreatePageFileSection(PSECTION_OBJECT *SectionObject,
|
|||
KeInitializeSpinLock(&Section->ViewListLock);
|
||||
Section->FileObject = NULL;
|
||||
Section->MaximumSize = MaximumSize;
|
||||
Segment = ExAllocatePoolWithTag(PagedPool, sizeof(MM_SECTION_SEGMENT),
|
||||
Segment = ExAllocatePoolWithTag(NonPagedPool, sizeof(MM_SECTION_SEGMENT),
|
||||
TAG_MM_SECTION_SEGMENT);
|
||||
if (Segment == NULL)
|
||||
{
|
||||
|
@ -2387,7 +2387,7 @@ MmCreateDataFileSection(PSECTION_OBJECT *SectionObject,
|
|||
*/
|
||||
if (FileObject->SectionObjectPointer->DataSectionObject == NULL)
|
||||
{
|
||||
Segment = ExAllocatePoolWithTag(PagedPool, sizeof(MM_SECTION_SEGMENT),
|
||||
Segment = ExAllocatePoolWithTag(NonPagedPool, sizeof(MM_SECTION_SEGMENT),
|
||||
TAG_MM_SECTION_SEGMENT);
|
||||
if (Segment == NULL)
|
||||
{
|
||||
|
@ -2499,7 +2499,7 @@ ExeFmtpAllocateSegments(IN ULONG NrSegments)
|
|||
/* TODO: check for integer overflow */
|
||||
SizeOfSegments = sizeof(MM_SECTION_SEGMENT) * NrSegments;
|
||||
|
||||
Segments = ExAllocatePoolWithTag(PagedPool,
|
||||
Segments = ExAllocatePoolWithTag(NonPagedPool,
|
||||
SizeOfSegments,
|
||||
TAG_MM_SECTION_SEGMENT);
|
||||
|
||||
|
|
Loading…
Reference in a new issue