summaryrefslogtreecommitdiff
path: root/sys/arch/arm/cortex
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2016-08-05 13:31:30 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2016-08-05 13:31:30 +0000
commitfd090947258bd793761bbe56a183ce8951776d97 (patch)
tree0cb40ecff2ecfb76aaa38e3ac4d84d00c0934f3f /sys/arch/arm/cortex
parenteba6ade958dd25379b66e5489532e27db46a87b0 (diff)
Unmask the timer output signal for real.
ok patrick@, jsg@
Diffstat (limited to 'sys/arch/arm/cortex')
-rw-r--r--sys/arch/arm/cortex/agtimer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/arm/cortex/agtimer.c b/sys/arch/arm/cortex/agtimer.c
index 0b80250a423..38c8edaaefa 100644
--- a/sys/arch/arm/cortex/agtimer.c
+++ b/sys/arch/arm/cortex/agtimer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: agtimer.c,v 1.5 2015/12/12 19:57:00 mmcc Exp $ */
+/* $OpenBSD: agtimer.c,v 1.6 2016/08/05 13:31:29 kettenis Exp $ */
/*
* Copyright (c) 2011 Dale Rahn <drahn@openbsd.org>
* Copyright (c) 2013 Patrick Wildt <patrick@blueri.se>
@@ -315,7 +315,7 @@ agtimer_cpu_initclocks()
pc->pc_nexttickevent = pc->pc_nextstatevent = next;
reg = agtimer_get_ctrl();
- reg &= GTIMER_CNTP_CTL_IMASK;
+ reg &= ~GTIMER_CNTP_CTL_IMASK;
reg |= GTIMER_CNTP_CTL_ENABLE;
agtimer_set_tval(sc->sc_ticks_per_second);
agtimer_set_ctrl(reg);
@@ -391,7 +391,7 @@ agtimer_startclock(void)
pc->pc_nexttickevent = pc->pc_nextstatevent = nextevent;
reg = agtimer_get_ctrl();
- reg &= GTIMER_CNTP_CTL_IMASK;
+ reg &= ~GTIMER_CNTP_CTL_IMASK;
reg |= GTIMER_CNTP_CTL_ENABLE;
agtimer_set_tval(sc->sc_ticks_per_second);
agtimer_set_ctrl(reg);