[NTOSKRNL] Stub MM shutdown
authorPierre Schweitzer <pierre@reactos.org>
Mon, 13 Aug 2018 05:42:57 +0000 (07:42 +0200)
committerPierre Schweitzer <pierre@reactos.org>
Mon, 13 Aug 2018 06:30:17 +0000 (08:30 +0200)
ntoskrnl/include/internal/mm.h
ntoskrnl/mm/shutdown.c [new file with mode: 0644]
ntoskrnl/ntos.cmake
ntoskrnl/po/poshtdwn.c

index 8d0234b..f7b08a2 100644 (file)
@@ -1474,6 +1474,10 @@ NTAPI
 MmSetSessionLocaleId(
     _In_ LCID LocaleId);
 
+/* shutdown.c *****************************************************************/
+
+VOID
+MmShutdownSystem(IN ULONG Phase);
 
 /* virtual.c *****************************************************************/
 
diff --git a/ntoskrnl/mm/shutdown.c b/ntoskrnl/mm/shutdown.c
new file mode 100644 (file)
index 0000000..6854998
--- /dev/null
@@ -0,0 +1,37 @@
+/*
+ * PROJECT:         ReactOS Kernel
+ * LICENSE:         GPL - See COPYING in the top level directory
+ * FILE:            ntoskrnl/mm/shutdown.c
+ * PURPOSE:         Memory Manager Shutdown
+ * PROGRAMMERS:
+ */
+
+/* INCLUDES ******************************************************************/
+
+#include <ntoskrnl.h>
+#define NDEBUG
+#include <debug.h>
+
+#define MODULE_INVOLVED_IN_ARM3
+#include "ARM3/miarm.h"
+
+/* PRIVATE FUNCTIONS *********************************************************/
+
+VOID
+MiShutdownSystem(VOID)
+{
+    UNIMPLEMENTED;
+}
+
+VOID
+MmShutdownSystem(IN ULONG Phase)
+{
+    if (Phase == 0)
+    {
+        MiShutdownSystem();
+    }
+    else
+    {
+        UNIMPLEMENTED;
+    }
+}
index 94e0dc8..147691b 100644 (file)
@@ -226,6 +226,7 @@ list(APPEND SOURCE
     ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/region.c
     ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/rmap.c
     ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/section.c
+    ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/shutdown.c
     ${REACTOS_SOURCE_DIR}/ntoskrnl/ob/devicemap.c
     ${REACTOS_SOURCE_DIR}/ntoskrnl/ob/obdir.c
     ${REACTOS_SOURCE_DIR}/ntoskrnl/ob/obhandle.c
index 719f8b8..070cf67 100644 (file)
@@ -283,6 +283,7 @@ PopGracefulShutdown(IN PVOID Context)
     ExShutdownSystem();
 
     /* Note that modified pages should be written here (MiShutdownSystem) */
+    MmShutdownSystem(0);
 
     /* Flush all user files before we start shutting down IO */
     /* This is where modified pages are written back by the IO manager */