bcm: make sure fiq is on enabled on cpu0
This commit is contained in:
parent
de7190ba6b
commit
75d44bc306
1 changed files with 2 additions and 1 deletions
|
@ -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{
|
||||||
|
|
Loading…
Reference in a new issue