mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[NTOS] Follow up to r69075: Assert IRQL correctly in KeDisconnectInterrupt too (do not assume debug build means MP build).
svn path=/trunk/; revision=69496
This commit is contained in:
parent
8fc986080b
commit
9d6572fbd3
1 changed files with 5 additions and 3 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue