Skip to content

Commit bc9ef01

Browse files
committed
[WDF] HACK: Workaround PCI causing DPCs to be flushed when system
affinity is disabled
1 parent a7b6470 commit bc9ef01

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

sdk/lib/drivers/wdf/shared/irphandlers/pnp/interruptobject.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1505,7 +1505,18 @@ Return Value:
15051505
// synchronize against this interrupt. For KMDF this will flush DPCs and
15061506
// for UMDF this will send a message to reflector to flush queued DPCs.
15071507
//
1508+
#ifdef __REACTOS__
1509+
/*
1510+
* This causes DPCs to be flushed when SystemAffinity is already disabled.
1511+
* To be clear this isn't the fault of KMDF, but instead it's the fault
1512+
* of our current PCI.sys due to how it's architected.
1513+
*/
1514+
#ifndef FX_IS_KERNEL_MODE
15081515
FlushQueuedDpcs();
1516+
#endif
1517+
#else
1518+
FlushQueuedDpcs();
1519+
#endif
15091520

15101521
#if FX_IS_KERNEL_MODE
15111522
//

0 commit comments

Comments
 (0)