From a31c30564ceceb6736ee68a2f3f1560d51777ca0 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sun, 16 Sep 2012 16:46:28 +0200 Subject: [PATCH] sdide: make sure bmiba is in i/o port space, not memory --- sys/src/9/pc/sdide.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;