Author: sginsberg
Date: Sun Oct 11 13:18:30 2015
New Revision: 69496
URL: http://svn.reactos.org/svn/reactos?rev=69496&view=rev
Log:
[NTOS] Follow up to r69075: Assert IRQL correctly in KeDisconnectInterrupt too (do not assume debug build means MP build).
Modified:
trunk/reactos/ntoskrnl/ke/i386/irqobj.c
Modified: trunk/reactos/ntoskrnl/ke/i386/irqobj.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/i386/irqobj.c?…
==============================================================================
--- trunk/reactos/ntoskrnl/ke/i386/irqobj.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ke/i386/irqobj.c [iso-8859-1] Sun Oct 11 13:18:30 2015
@@ -454,10 +454,8 @@
*/
#if defined(CONFIG_SMP)
ASSERT(Irql <= SYNCH_LEVEL);
-#elif (NTDDI_VERSION >= NTDDI_WS03)
+#else
ASSERT(Irql <= (IPI_LEVEL - 2));
-#else
- ASSERT(Irql <= (IPI_LEVEL - 1));
#endif
/* Check if this is the first chain */
@@ -526,7 +524,11 @@
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 */