Commit in reactos/ntoskrnl/ex on ros-branch-0_2_2
power.c+31.22 -> 1.22.2.1
Disable thread switching during shutdown, workaround to avoid BSODs

reactos/ntoskrnl/ex
power.c 1.22 -> 1.22.2.1
diff -u -r1.22 -r1.22.2.1
--- power.c	9 Mar 2004 21:49:53 -0000	1.22
+++ power.c	21 Apr 2004 10:28:31 -0000	1.22.2.1
@@ -35,6 +35,8 @@
 NTSTATUS STDCALL 
 NtShutdownSystem(IN SHUTDOWN_ACTION Action)
 {
+   KIRQL OldIrql;
+
    if (Action > ShutdownPowerOff)
      return STATUS_INVALID_PARAMETER;
 
@@ -42,6 +44,7 @@
    CmShutdownRegistry();
    IoShutdownRegisteredFileSystems();
 
+   KeRaiseIrql(DISPATCH_LEVEL, &OldIrql);
    PiShutdownProcessManager();
    MiShutdownMemoryManager();
    
CVSspam 0.2.8