From c17fcd93fb6f8f8d469123440199878baa16d328 Mon Sep 17 00:00:00 2001 From: kettenis Date: Fri, 23 Feb 2018 21:47:08 +0000 Subject: [PATCH] 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. --- sys/arch/arm64/dev/bcm2836_intr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.20.1