projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef3cc67
)
- Do not *silently* hardcode USER_SHARED_DATA to physical page 2! It's purely FreeLdr...
author
Aleksey Bragin
<aleksey@reactos.org>
Sun, 24 Feb 2008 18:03:17 +0000
(18:03 +0000)
committer
Aleksey 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
patch
|
blob
|
history
diff --git
a/reactos/ntoskrnl/mm/mminit.c
b/reactos/ntoskrnl/mm/mminit.c
index
7578d0d
..
42f829f
100644
(file)
--- a/
reactos/ntoskrnl/mm/mminit.c
+++ b/
reactos/ntoskrnl/mm/mminit.c
@@
-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;
/*
*