- Do not *silently* hardcode USER_SHARED_DATA to physical page 2! It's purely FreeLdr's decision to place PCR on the page 1. Instead, rely on an assumption that shared data always follows PCR's page. NT relies on the same assumption.

svn path=/trunk/; revision=32471
This commit is contained in:
Aleksey Bragin 2008-02-24 18:03:17 +00:00
parent ef3cc678bc
commit a4cad73564

View 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;
/*
*