From df7cbe9dd7aecd77f9abb71672dc084b8c6f22e0 Mon Sep 17 00:00:00 2001 From: kettenis Date: Fri, 5 Aug 2016 13:31:29 +0000 Subject: [PATCH] Unmask the timer output signal for real. ok patrick@, jsg@ --- sys/arch/arm/cortex/agtimer.c | 6 +++--- 1 file 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 * Copyright (c) 2013 Patrick Wildt @@ -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); -- 2.20.1