diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-09-16 16:46:28 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-09-16 16:46:28 +0200 |
commit | a31c30564ceceb6736ee68a2f3f1560d51777ca0 (patch) | |
tree | e425300dbb8c275c810c27fbc5e4808db7b6db74 | |
parent | 92d3ff842606576887a4d606995c5ac1bf763f43 (diff) | |
download | plan9front-a31c30564ceceb6736ee68a2f3f1560d51777ca0.tar.xz |
sdide: make sure bmiba is in i/o port space, not memory
-rw-r--r-- | sys/src/9/pc/sdide.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/pc/sdide.c b/sys/src/9/pc/sdide.c index 2b2918792..b9b237c57 100644 --- a/sys/src/9/pc/sdide.c +++ b/sys/src/9/pc/sdide.c @@ -2160,7 +2160,7 @@ atapnp(void) 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; |