From: kettenis Date: Fri, 23 Feb 2018 21:47:08 +0000 (+0000) Subject: Disable mailbox interrupts on all cores upon attach instead of enabling the X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c17fcd93fb6f8f8d469123440199878baa16d328;p=openbsd Disable mailbox interrupts on all cores upon attach instead of enabling the mailbox 0 interrupt on all cores. Seems to make GENERIC.MP work on the rpi3. --- diff --git a/sys/arch/arm64/dev/bcm2836_intr.c b/sys/arch/arm64/dev/bcm2836_intr.c index c2275960f4c..27e45923fae 100644 --- a/sys/arch/arm64/dev/bcm2836_intr.c +++ b/sys/arch/arm64/dev/bcm2836_intr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bcm2836_intr.c,v 1.6 2018/02/01 07:41:33 deraadt Exp $ */ +/* $OpenBSD: bcm2836_intr.c,v 1.7 2018/02/23 21:47:08 kettenis Exp $ */ /* * Copyright (c) 2007,2009 Dale Rahn * Copyright (c) 2015 Patrick Wildt @@ -201,7 +201,7 @@ bcm_intc_attach(struct device *parent, struct device *self, void *aux) ARM_LOCAL_INT_TIMER(i), 0); for (i = 0; i < 4; i++) bus_space_write_4(sc->sc_iot, sc->sc_lioh, - ARM_LOCAL_INT_MAILBOX(i), 1); + ARM_LOCAL_INT_MAILBOX(i), 0); for (i = 0; i < INTC_NIRQ; i++) { TAILQ_INIT(&sc->sc_bcm_intc_handler[i].is_list);