aboutsummaryrefslogtreecommitdiff
path: root/core/drivers/gic.c
diff options
context:
space:
mode:
authorJens Wiklander <jens.wiklander@linaro.org>2014-09-26 11:36:18 +0200
committerJens Wiklander <jens.wiklander@linaro.org>2014-10-09 11:11:38 +0200
commitff97306f318a9e6ce231dbddea4c6ca0e0303056 (patch)
treec5ccc081165b538b559b4248f71f66eea69af690 /core/drivers/gic.c
parent79f008d371760fae8b645fed8e780289a04d870c (diff)
fvp: enable uart1 fiq
Configures UART1/GIC to generate a FIQ when there's input on UART1.
Diffstat (limited to 'core/drivers/gic.c')
-rw-r--r--core/drivers/gic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/drivers/gic.c b/core/drivers/gic.c
index e6734662..b3cd6f96 100644
--- a/core/drivers/gic.c
+++ b/core/drivers/gic.c
@@ -262,7 +262,7 @@ void gic_dump_state(void)
DMSG("GICC_CTLR: 0x%x", read32(gic.gicc_base + GICC_CTLR));
DMSG("GICD_CTLR: 0x%x", read32(gic.gicd_base + GICD_CTLR));
- for (i = 0; i < NUM_PPI; i++) {
+ for (i = 0; i < (int)gic.max_it; i++) {
if (gic_it_is_enabled(i)) {
DMSG("irq%d: enabled, group:%d, target:%x", i,
gic_it_get_group(i), gic_it_get_target(i));