[NTOS:MM] Use MiResolveDemandZeroFault instead of MiDispatchFault
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Wed, 27 Dec 2017 14:20:52 +0000 (15:20 +0100)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Wed, 3 Jan 2018 22:07:19 +0000 (23:07 +0100)
ntoskrnl/mm/ARM3/pagfault.c

index 69d70cc..3176a6b 100644 (file)
@@ -2121,18 +2121,12 @@ UserFault:
             return Status;
         }
 
-        /* Write a demand-zero PDE */
-        MI_WRITE_INVALID_PDE(PointerPde, DemandZeroPde);
-
-        /* Dispatch the fault */
-        Status = MiDispatchFault(TRUE,
-                                 PointerPte,
+        /* Resolve a demand zero fault */
+        MiResolveDemandZeroFault(PointerPte,
                                  PointerPde,
-                                 NULL,
-                                 FALSE,
-                                 PsGetCurrentProcess(),
-                                 TrapInformation,
-                                 NULL);
+                                 MM_READWRITE,
+                                 CurrentProcess,
+                                 MM_NOIRQL);
 #if MI_TRACE_PFNS
         UserPdeFault = FALSE;
 #endif