[NTOS] Follow up to r69075: Assert IRQL correctly in KeDisconnectInterrupt too (do...
authorStefan Ginsberg <stefanginsberg@gmail.com>
Sun, 11 Oct 2015 13:18:30 +0000 (13:18 +0000)
committerStefan Ginsberg <stefanginsberg@gmail.com>
Sun, 11 Oct 2015 13:18:30 +0000 (13:18 +0000)
svn path=/trunk/; revision=69496

reactos/ntoskrnl/ke/i386/irqobj.c

index ae67bcb..8fb51f7 100644 (file)
@@ -454,10 +454,8 @@ KeConnectInterrupt(IN PKINTERRUPT Interrupt)
              */
 #if defined(CONFIG_SMP)
             ASSERT(Irql <= SYNCH_LEVEL);
-#elif (NTDDI_VERSION >= NTDDI_WS03)
-            ASSERT(Irql <= (IPI_LEVEL - 2));
 #else
-            ASSERT(Irql <= (IPI_LEVEL - 1));
+            ASSERT(Irql <= (IPI_LEVEL - 2));
 #endif
 
             /* Check if this is the first chain */
@@ -526,7 +524,11 @@ KeDisconnectInterrupt(IN PKINTERRUPT Interrupt)
         if (Dispatch.Type == ChainConnect)
         {
             /* Check if the top-level interrupt is being removed */
+#if defined(CONFIG_SMP)
             ASSERT(Irql <= SYNCH_LEVEL);
+#else
+            ASSERT(Irql <= (IPI_LEVEL - 2));
+#endif
             if (Interrupt == Dispatch.Interrupt)
             {
                 /* Get the next one */