[ros-diffs] [hbirr] 15818: Allocate the section object from non paged pool because the storage for a spin lock must be in non paged memory.

hbirr at svn.reactos.com hbirr at svn.reactos.com
Mon Jun 6 01:07:54 CEST 2005


Allocate the section object from non paged pool because the storage for
a spin lock must be in non paged memory.
Modified: trunk/reactos/ntoskrnl/mm/section.c
  _____  

Modified: trunk/reactos/ntoskrnl/mm/section.c
--- trunk/reactos/ntoskrnl/mm/section.c	2005-06-05 21:30:41 UTC (rev
15817)
+++ trunk/reactos/ntoskrnl/mm/section.c	2005-06-05 23:07:51 UTC (rev
15818)
@@ -2123,8 +2123,8 @@

    RtlZeroMemory(&ObjectTypeInitializer,
sizeof(ObjectTypeInitializer));
    RtlInitUnicodeString(&Name, L"Section");
    ObjectTypeInitializer.Length = sizeof(ObjectTypeInitializer);
-   ObjectTypeInitializer.DefaultPagedPoolCharge =
sizeof(SECTION_OBJECT);
-   ObjectTypeInitializer.PoolType = PagedPool;
+   ObjectTypeInitializer.DefaultNonPagedPoolCharge =
sizeof(SECTION_OBJECT);
+   ObjectTypeInitializer.PoolType = NonPagedPool;
    ObjectTypeInitializer.UseDefaultObject = TRUE;
    ObjectTypeInitializer.GenericMapping = MmpSectionMapping;
    ObjectTypeInitializer.DeleteProcedure = MmpDeleteSection;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050606/03187c93/attachment.html


More information about the Ros-diffs mailing list