changelog shortlog tags branches changeset file revisions annotate raw help

Mercurial > hg > plan9front / sys/src/9/bcm/irq.c

revision 7208: 40ad429365ef
parent 7197: babef06a3de5
child 7312: 4dbf2522f668
     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{