Permalink
Browse files

PIC: Our IRQ delay was a little too cynical, that it caused some DOS …

…programs to fail probing the Sound Blaster IRQ
  • Loading branch information...
joncampbell123 committed Mar 4, 2018
1 parent 0968f7b commit c1d065cbca4aa632bbee92933246afa72421f242
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/hardware/pic.cpp
@@ -738,7 +738,7 @@ void PIC_Reset(Section *sec) {
/* NTS: This is a good guess. But the 8259 is static circuitry and not driven by a clock.
* But the ability to respond to interrupts is limited by the CPU, too. */
PIC_irq_delay_ns = (1000000000UL * 2UL) / (unsigned long)PIT_TICK_RATE;
PIC_irq_delay_ns = 1000000000UL / (unsigned long)PIT_TICK_RATE;
{
int x = section->Get_int("irq delay ns");
if (x >= 0) PIC_irq_delay_ns = x;

0 comments on commit c1d065c

Please sign in to comment.