- Fix the ASSERT in VdmSwapContext now that we are always setting up the trap frame...
[reactos.git] / reactos / ntoskrnl / ke / i386 / irqobj.c
index 6a18fe1..ac05c74 100644 (file)
@@ -447,8 +447,16 @@ KeConnectInterrupt(IN PKINTERRUPT Interrupt)
             /* The vector is shared and the interrupts are compatible */
             Interrupt->Connected = Connected = TRUE;
 
-            /* FIXME */
-            // ASSERT(Irql <= SYNCH_LEVEL);
+            /*
+             * Verify the IRQL for chained connect,
+             */
+#if defined(CONFIG_SMP)
+            ASSERT(Irql <= SYNCH_LEVEL);
+#elif (NTDDI_VERSION >= NTDDI_WS03)
+            ASSERT(Irql <= (IPI_LEVEL - 2));
+#else
+            ASSERT(Irql <= (IPI_LEVEL - 1));
+#endif
 
             /* Check if this is the first chain */
             if (Dispatch.Type != ChainConnect)