From 672c617e8cb30bdb05a53a982570315d2101577d Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Thu, 9 Feb 2012 12:04:31 +0000 Subject: [PATCH] [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. svn path=/trunk/; revision=55513 --- reactos/ntoskrnl/mm/mminit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/mm/mminit.c b/reactos/ntoskrnl/mm/mminit.c index 9d603aa9d63..c0ff60fa53e 100644 --- a/reactos/ntoskrnl/mm/mminit.c +++ b/reactos/ntoskrnl/mm/mminit.c @@ -126,8 +126,7 @@ MiInitSystemMemoryAreas() Status = MmCreateMemoryArea(MmGetKernelAddressSpace(), MEMORY_AREA_OWNED_BY_ARM3 | MEMORY_AREA_STATIC, &BaseAddress, - (ULONG_PTR)MmNonPagedPoolEnd - - (ULONG_PTR)MmNonPagedSystemStart, + MiNonPagedSystemSize, PAGE_READWRITE, &MArea, TRUE,