Author: tkreuzer
Date: Thu Feb 9 12:04:31 2012
New Revision: 55513
URL:
http://svn.reactos.org/svn/reactos?rev=55513&view=rev
Log:
[NTOSKRNL]
Use MiNonPagedSystemSize when creating the system NP memory area instead of making
assumptions about the memory layout
Finally the amd64 port boots into usermode and usetup is partly working, formats the
harddisk but freezes, when copying files.
Modified:
trunk/reactos/ntoskrnl/mm/mminit.c
Modified: trunk/reactos/ntoskrnl/mm/mminit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/mminit.c?rev=5…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/mminit.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/mminit.c [iso-8859-1] Thu Feb 9 12:04:31 2012
@@ -126,8 +126,7 @@
Status = MmCreateMemoryArea(MmGetKernelAddressSpace(),
MEMORY_AREA_OWNED_BY_ARM3 | MEMORY_AREA_STATIC,
&BaseAddress,
- (ULONG_PTR)MmNonPagedPoolEnd -
- (ULONG_PTR)MmNonPagedSystemStart,
+ MiNonPagedSystemSize,
PAGE_READWRITE,
&MArea,
TRUE,