Author: sir_richard
Date: Thu Jul 22 20:46:19 2010
New Revision: 48197
URL:
http://svn.reactos.org/svn/reactos?rev=48197&view=rev
Log:
[NTOS]: Antique leftover, initialize the shared user data page with
MI_MAKE_HARDWARE_PTE_KERNEL
Modified:
trunk/reactos/ntoskrnl/mm/mminit.c
Modified: trunk/reactos/ntoskrnl/mm/mminit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/mminit.c?rev=4…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/mminit.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/mminit.c [iso-8859-1] Thu Jul 22 20:46:19 2010
@@ -413,11 +413,11 @@
ASSERT(PointerPte->u.Hard.Valid == 1);
PageFrameNumber = PFN_FROM_PTE(PointerPte);
- //
- // Now write a copy of it
- //
- MI_MAKE_OWNER_PAGE(&TempPte);
- TempPte.u.Hard.PageFrameNumber = PageFrameNumber;
+ /* Build the PTE and write it */
+ MI_MAKE_HARDWARE_PTE_KERNEL(&TempPte,
+ PointerPte,
+ MM_READONLY,
+ PageFrameNumber);
*MmSharedUserDataPte = TempPte;
/* Setup the memory threshold events */