ref: a31c30564ceceb6736ee68a2f3f1560d51777ca0
parent: 92d3ff842606576887a4d606995c5ac1bf763f43
author: cinap_lenrek <[email protected]>
date: Sun Sep 16 12:46:28 EDT 2012
sdide: make sure bmiba is in i/o port space, not memory
--- a/sys/src/9/pc/sdide.c
+++ b/sys/src/9/pc/sdide.c
@@ -2160,7 +2160,7 @@
ctlr->maxdma = maxdma;
ctlr->span = span;
ctlr->irqack = irqack;
- if(pi & 0x80)
+ if((pi & 0x80) && (p->mem[4].bar & 0x01))
ctlr->bmiba = (p->mem[4].bar & ~0x01) + channel*8;
if(head != nil)
tail->next = sdev;