changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: bcm: make sure fiq is on enabled on cpu0

changeset 7208: 40ad429365ef
parent 7207: 19de954d8073
child 7209: 1209e04a3af9
author: cinap_lenrek@felloff.net
date: Sun, 05 May 2019 14:04:27 +0200
files: sys/src/9/bcm/irq.c
description: bcm: make sure fiq is on enabled on cpu0
     1.1--- a/sys/src/9/bcm/irq.c
     1.2+++ b/sys/src/9/bcm/irq.c
     1.3@@ -106,7 +106,7 @@ fiq(Ureg *ureg)
     1.4 
     1.5 	m->intr++;
     1.6 	v = vfiq;
     1.7-	if(v == nil)
     1.8+	if(v == nil || m->machno)
     1.9 		panic("cpu%d: unexpected item in bagging area", m->machno);
    1.10 	coherence();
    1.11 	v->f(ureg, v->a);
    1.12@@ -149,6 +149,7 @@ irqenable(int irq, void (*f)(Ureg*, void
    1.13 	if(irq == IRQfiq){
    1.14 		assert((ip->FIQctl & Fiqenable) == 0);
    1.15 		assert((*enable & v->mask) == 0);
    1.16+		assert(cpu == 0);
    1.17 		vfiq = v;
    1.18 		ip->FIQctl = Fiqenable | irq;
    1.19 	}else{