[HAL]
authorCameron Gutman <aicommander@gmail.com>
Sun, 24 Oct 2010 10:28:15 +0000 (10:28 +0000)
committerCameron Gutman <aicommander@gmail.com>
Sun, 24 Oct 2010 10:28:15 +0000 (10:28 +0000)
- HalpEnableInterruptHandler: Set the IDT_LATCHED flag if the caller requested a latched interrupt

svn path=/trunk/; revision=49255

reactos/hal/halx86/generic/usage.c

index c35df96..cfdd6c6 100644 (file)
@@ -509,6 +509,9 @@ HalpEnableInterruptHandler(IN UCHAR Flags,
                            IN PVOID Handler,
                            IN KINTERRUPT_MODE Mode)
 {
+    /* Set the IDT_LATCHED flag for latched interrupts */
+    if (Mode == Latched) Flags |= IDT_LATCHED;
+    
     /* Register the vector */
     HalpRegisterVector(Flags, BusVector, SystemVector, Irql);