bcm: make sure fiq is on enabled on cpu0

This commit is contained in:
cinap_lenrek 2019-05-05 14:04:27 +02:00
parent de7190ba6b
commit 75d44bc306

View file

@ -106,7 +106,7 @@ fiq(Ureg *ureg)
m->intr++; m->intr++;
v = vfiq; v = vfiq;
if(v == nil) if(v == nil || m->machno)
panic("cpu%d: unexpected item in bagging area", m->machno); panic("cpu%d: unexpected item in bagging area", m->machno);
coherence(); coherence();
v->f(ureg, v->a); v->f(ureg, v->a);
@ -149,6 +149,7 @@ irqenable(int irq, void (*f)(Ureg*, void*), void* a)
if(irq == IRQfiq){ if(irq == IRQfiq){
assert((ip->FIQctl & Fiqenable) == 0); assert((ip->FIQctl & Fiqenable) == 0);
assert((*enable & v->mask) == 0); assert((*enable & v->mask) == 0);
assert(cpu == 0);
vfiq = v; vfiq = v;
ip->FIQctl = Fiqenable | irq; ip->FIQctl = Fiqenable | irq;
}else{ }else{