aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-04-25 22:15:32 -0400
committerMike Frysinger <vapier@gentoo.org>2024-01-01 18:23:25 -0500
commitb295d144aeeeb50843beb850536dcd6d7ae0a312 (patch)
tree637f3fc4ef87d9d43b721cf4520aca7c9cd32bc9
parent00c4a7f8d136bce908b6d8a812acdd0e68899e9a (diff)
downloadgdb-b295d144aeeeb50843beb850536dcd6d7ae0a312.zip
gdb-b295d144aeeeb50843beb850536dcd6d7ae0a312.tar.gz
gdb-b295d144aeeeb50843beb850536dcd6d7ae0a312.tar.bz2
sim: bfin: make the core timer output port an edge
The output port of the core timer is currently always high and never goes low, so make sure we lower the level after sending it out. This way the other side (the CEC) knows when to delatch things. Signed-off-by: Mike Frysinger <vapier@gentoo.org> 2011-04-26 Mike Frysinger <vapier@gentoo.org> * dv-bfin_ctimer.c (bfin_ctimer_expire): Call hw_port_event a 2nd time with a level of 0.
-rw-r--r--sim/bfin/dv-bfin_ctimer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sim/bfin/dv-bfin_ctimer.c b/sim/bfin/dv-bfin_ctimer.c
index 349f7c2..cba7373 100644
--- a/sim/bfin/dv-bfin_ctimer.c
+++ b/sim/bfin/dv-bfin_ctimer.c
@@ -77,7 +77,9 @@ bfin_ctimer_expire (struct hw *me, void *data)
ctimer->handler = NULL;
}
+ /* This is an edge interrupt. */
hw_port_event (me, IVG_IVTMR, 1);
+ hw_port_event (me, IVG_IVTMR, 0);
}
static void