summaryrefslogtreecommitdiff
path: root/sys/src/9
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@localhost>2011-04-15 07:25:45 +0000
committercinap_lenrek <cinap_lenrek@localhost>2011-04-15 07:25:45 +0000
commit856aeaf3333408c62b7627144e2bfd39fdf525d7 (patch)
treeb86c78d023cfda477bc06f949c9a3371bea9acab /sys/src/9
parent74dd2ac7cd5b91e101be062084078446a9f53898 (diff)
let the kernel set dma mode for ata by default
Diffstat (limited to 'sys/src/9')
-rw-r--r--sys/src/9/pc/sdata.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/src/9/pc/sdata.c b/sys/src/9/pc/sdata.c
index 21b289db9..acc6c2ef2 100644
--- a/sys/src/9/pc/sdata.c
+++ b/sys/src/9/pc/sdata.c
@@ -570,7 +570,8 @@ atadmamode(Drive* drive)
if(drive->dma)
drive->dma |= 'U'<<16;
}
-
+ if(!getconf("*nodma"))
+ drive->dmactl = drive->dma;
return dma;
}