[NTOSKRNL] Stub MM shutdown

This commit is contained in:
Pierre Schweitzer 2018-08-13 07:42:57 +02:00
parent 9d26058a8e
commit d793f196df
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B
4 changed files with 43 additions and 0 deletions

View file

@ -1474,6 +1474,10 @@ NTAPI
MmSetSessionLocaleId(
_In_ LCID LocaleId);
/* shutdown.c *****************************************************************/
VOID
MmShutdownSystem(IN ULONG Phase);
/* virtual.c *****************************************************************/

37
ntoskrnl/mm/shutdown.c Normal file
View file

@ -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;
}
}

View 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

View 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 */