/* INCLUDES ******************************************************************/
#include <ntoskrnl.h>
+#ifdef NEWCC
+#include "../cache/newcc.h"
+#endif
#define NDEBUG
#include <debug.h>
/* Try platform driver first, then legacy */
//PopInvokeSystemStateHandler(PowerStateShutdownReset, NULL);
+ PopSetSystemPowerState(PowerSystemShutdown, SystemAction);
HalReturnToFirmware(HalRebootRoutine);
break;
//PopInvokeSystemStateHandler(PowerStateShutdownOff, NULL);
/* ReactOS Hack */
- PopSetSystemPowerState(PowerSystemShutdown);
+ PopSetSystemPowerState(PowerSystemShutdown, SystemAction);
PopShutdownHandler();
/* If that didn't work, call the HAL */
/* Get the next process */
Process = PsGetNextProcess(Process);
}
-
+
/* First, the HAL handles any "end of boot" special functionality */
DPRINT1("HAL shutting down\n");
HalEndOfBoot();
CmShutdownSystem();
/* Note that modified pages should be written here (MiShutdownSystem) */
+#ifdef NEWCC
+ /* Flush all user files before we start shutting down IO */
+ /* This is where modified pages are written back by the IO manager */
+ CcShutdownSystem();
+#endif
/* In this step, the I/O manager does last-chance shutdown notification */
DPRINT1("I/O manager shutting down in phase 1\n");