[ros-diffs] [sir_richard] 48197: [NTOS]: Antique leftover, initialize the shared user data page with MI_MAKE_HARDWARE_PTE_KERNEL

sir_richard at svn.reactos.org sir_richard at svn.reactos.org
Thu Jul 22 20:46:20 UTC 2010


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=48197&r1=48196&r2=48197&view=diff
==============================================================================
--- 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 */




More information about the Ros-diffs mailing list