diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-06-06 16:10:04 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-06-06 16:10:04 +0200 |
commit | dd2d6c9430fe86b6cb7a27e59c54210840640c6a (patch) | |
tree | b95ade19019366c7e1dc31d12d38e14ec38939d3 | |
parent | a3626a6efacc99bdfbe733758d508ed38ed8148c (diff) |
usbuhci: make sure pci membar type is i/o
-rw-r--r-- | sys/src/9/pc/usbuhci.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/src/9/pc/usbuhci.c b/sys/src/9/pc/usbuhci.c index 09448b13d..1666be00d 100644 --- a/sys/src/9/pc/usbuhci.c +++ b/sys/src/9/pc/usbuhci.c @@ -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; |