- Do not *silently* hardcode USER_SHARED_DATA to physical page 2! It's purely FreeLdr...
authorAleksey Bragin <aleksey@reactos.org>
Sun, 24 Feb 2008 18:03:17 +0000 (18:03 +0000)
committerAleksey Bragin <aleksey@reactos.org>
Sun, 24 Feb 2008 18:03:17 +0000 (18:03 +0000)
svn path=/trunk/; revision=32471

reactos/ntoskrnl/mm/mminit.c

index 7578d0d..42f829f 100644 (file)
@@ -182,7 +182,10 @@ MmInitVirtualMemory()
                       TRUE,
                       0,
                       BoundaryAddressMultiple);
-   MmSharedDataPagePhysicalAddress.QuadPart = 2 << PAGE_SHIFT;
+
+   /* Shared data are always located the next page after PCR */
+   MmSharedDataPagePhysicalAddress = MmGetPhysicalAddress((PVOID)PCR);
+   MmSharedDataPagePhysicalAddress.QuadPart += PAGE_SIZE;
 
    /*
     *