From 75d44bc306ffcbaadaa18c161bf54071304510b0 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sun, 5 May 2019 14:04:27 +0200 Subject: [PATCH] bcm: make sure fiq is on enabled on cpu0 --- sys/src/9/bcm/irq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/src/9/bcm/irq.c b/sys/src/9/bcm/irq.c index 33c1d820b..dc8320e21 100644 --- a/sys/src/9/bcm/irq.c +++ b/sys/src/9/bcm/irq.c @@ -106,7 +106,7 @@ fiq(Ureg *ureg) m->intr++; v = vfiq; - if(v == nil) + if(v == nil || m->machno) panic("cpu%d: unexpected item in bagging area", m->machno); coherence(); v->f(ureg, v->a); @@ -149,6 +149,7 @@ irqenable(int irq, void (*f)(Ureg*, void*), void* a) if(irq == IRQfiq){ assert((ip->FIQctl & Fiqenable) == 0); assert((*enable & v->mask) == 0); + assert(cpu == 0); vfiq = v; ip->FIQctl = Fiqenable | irq; }else{