usbuhci: make sure pci membar type is i/o

This commit is contained in:
cinap_lenrek 2020-06-06 16:10:04 +02:00
parent a3626a6efa
commit dd2d6c9430

View file

@ -2129,7 +2129,9 @@ scanpci(void)
continue;
switch(p->ccrp){
case 0:
io = p->mem[4].bar & ~0x0F;
if((p->mem[4].bar & 1) == 0)
continue;
io = (int)p->mem[4].bar & ~0xF;
break;
default:
continue;