From: kettenis Date: Wed, 3 Aug 2022 13:36:51 +0000 (+0000) Subject: Clear active state when we attach. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=105a72367089d8dd037f3c9ee097d6dbf3f08e05;p=openbsd Clear active state when we attach. ok patrick@ --- diff --git a/sys/arch/arm64/dev/agintc.c b/sys/arch/arm64/dev/agintc.c index 7a8fdf08eda..ba96da80954 100644 --- a/sys/arch/arm64/dev/agintc.c +++ b/sys/arch/arm64/dev/agintc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: agintc.c,v 1.40 2022/08/01 20:48:19 kettenis Exp $ */ +/* $OpenBSD: agintc.c,v 1.41 2022/08/03 13:36:51 kettenis Exp $ */ /* * Copyright (c) 2007, 2009, 2011, 2017 Dale Rahn * Copyright (c) 2018 Mark Kettenis @@ -481,6 +481,8 @@ agintc_attach(struct device *parent, struct device *self, void *aux) /* Disable all interrupts, clear all pending */ for (i = 1; i < nintr / 32; i++) { + bus_space_write_4(sc->sc_iot, sc->sc_d_ioh, + GICD_ICACTIVER(i * 32), ~0); bus_space_write_4(sc->sc_iot, sc->sc_d_ioh, GICD_ICENABLER(i * 32), ~0); }