pc, pc64: fix intrdisable() MaxIrqLAPIC -> MaxVectorAPIC (thanks mischief)

This commit is contained in:
cinap_lenrek 2015-02-18 06:30:01 +01:00
parent 0037c93433
commit 581f3852fe
2 changed files with 2 additions and 2 deletions

View file

@ -96,7 +96,7 @@ intrdisable(int irq, void (*f)(Ureg *, void *), void *a, int tbdf, char *name)
vno = arch->intrvecno(irq);
}
ilock(&vctllock);
for(; vno <= MaxIrqLAPIC; vno++){
for(; vno <= MaxVectorAPIC; vno++){
for(pv = &vctl[vno]; (v = *pv) != nil; pv = &v->next){
if(v->isintr && (v->irq == irq || irq == -1)
&& v->tbdf == tbdf && v->f == f && v->a == a

View file

@ -96,7 +96,7 @@ intrdisable(int irq, void (*f)(Ureg *, void *), void *a, int tbdf, char *name)
vno = arch->intrvecno(irq);
}
ilock(&vctllock);
for(; vno <= MaxIrqLAPIC; vno++){
for(; vno <= MaxVectorAPIC; vno++){
for(pv = &vctl[vno]; (v = *pv) != nil; pv = &v->next){
if(v->isintr && (v->irq == irq || irq == -1)
&& v->tbdf == tbdf && v->f == f && v->a == a