changelog shortlog tags branches changeset file revisions annotate raw help

Mercurial > hg > plan9front / sys/src/9/pc/pci.c

revision 4410: 1d44e3322df1
parent 4409: c2b9c15c753e
child 4413: 7ec63d7bcad7
     1.1--- a/sys/src/9/pc/pci.c
     1.2+++ b/sys/src/9/pc/pci.c
     1.3@@ -441,10 +441,10 @@ pcilscan(int bno, Pcidev** list, Pcidev 
     1.4 				if((hdt & 0x7F) != 0)
     1.5 					break;
     1.6 				rno = PciBAR0;
     1.7-				for(i = 0; i < nelem(p->mem); i++) {
     1.8+				for(i = 0; i <= 5; i++) {
     1.9 					p->mem[i].bar = pcicfgr32(p, rno);
    1.10 					p->mem[i].size = pcibarsize(p, rno);
    1.11-					if((p->mem[i].bar & 7) == 4){
    1.12+					if((p->mem[i].bar & 7) == 4 && i < 5){
    1.13 						ulong hi;
    1.14 
    1.15 						rno += 4;