Uncomment some rather important code that was commented out for benchmarking.

Normally this routine is supposed to loop until the PIC returns a "no more
interrupts pending" indication.  I had commented that out to do just one
interrupt per invokation to do some timing tests.

Spotted by:   	Svata Kraus
Pointy Hat:	ian
This commit is contained in:
Ian Lepore 2015-10-20 15:15:30 +00:00
parent ba27fc087c
commit d891769473
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=289631

View File

@ -554,10 +554,10 @@ arm_gic_intr(void *arg)
arm_irq_dispatch(isrc, tf);
next_irq:
// arm_irq_memory_barrier(irq); /* XXX */
// irq_active_reg = gic_c_read_4(sc, GICC_IAR);
// irq = irq_active_reg & 0x3FF;
if (0 && irq < sc->nirqs)
arm_irq_memory_barrier(irq);
irq_active_reg = gic_c_read_4(sc, GICC_IAR);
irq = irq_active_reg & 0x3FF;
if (irq < sc->nirqs)
goto dispatch_irq;
return (FILTER_HANDLED);