summaryrefslogtreecommitdiffstats
path: root/sys/arm
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2015-10-20 15:15:30 +0000
committerian <ian@FreeBSD.org>2015-10-20 15:15:30 +0000
commit22f91ee31235981d2267cbca477c958d9e407996 (patch)
treefe7ec7d5c1d6d6fef434f2faf362e43bd6b832ad /sys/arm
parentbdf7732eb882385c63ada194e844c55aa0efb0d5 (diff)
downloadFreeBSD-src-22f91ee31235981d2267cbca477c958d9e407996.zip
FreeBSD-src-22f91ee31235981d2267cbca477c958d9e407996.tar.gz
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
Diffstat (limited to 'sys/arm')
-rw-r--r--sys/arm/arm/gic.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arm/arm/gic.c b/sys/arm/arm/gic.c
index a1ce111..5326610 100644
--- a/sys/arm/arm/gic.c
+++ b/sys/arm/arm/gic.c
@@ -554,10 +554,10 @@ dispatch_irq:
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);
OpenPOWER on IntegriCloud