Fixed the mapping of MmPageArray.
authorHartmut Birr <osexpert@googlemail.com>
Sat, 5 Jan 2002 11:31:05 +0000 (11:31 +0000)
committerHartmut Birr <osexpert@googlemail.com>
Sat, 5 Jan 2002 11:31:05 +0000 (11:31 +0000)
This solves the >134MB crash.

svn path=/trunk/; revision=2490

reactos/ntoskrnl/mm/freelist.c

index 321fb2e..519f337 100644 (file)
@@ -317,7 +317,7 @@ MmInitializePageList(PVOID FirstPhysKernelAddress,
                                                    (i * PAGESIZE)),
                                            PAGE_READWRITE,
                                            (ULONG)(LastPhysKernelAddress 
-                                                   - (i * PAGESIZE)),
+                                                   - (Reserved * PAGESIZE) + (i * PAGESIZE)),
                                            FALSE);
             if (!NT_SUCCESS(Status))
               {