shithub: riscv

Download patch

ref: 581f3852fe94949ab53b876d35ce2361240d6862
parent: 0037c93433cdda1dccd35d5fc57682fe1c86eb6d
author: cinap_lenrek <[email protected]>
date: Wed Feb 18 01:30:01 EST 2015

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

--- a/sys/src/9/pc/trap.c
+++ b/sys/src/9/pc/trap.c
@@ -96,7 +96,7 @@
 		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
--- a/sys/src/9/pc64/trap.c
+++ b/sys/src/9/pc64/trap.c
@@ -96,7 +96,7 @@
 		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