aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/scd
diff options
context:
space:
mode:
authorMatthew N. Dodd <mdodd@FreeBSD.org>2002-11-10 03:45:49 +0000
committerMatthew N. Dodd <mdodd@FreeBSD.org>2002-11-10 03:45:49 +0000
commitf5464126bb613df8c841ffda4efed10f2303280e (patch)
treebc0ccae0c4ee3304e2b551b6ce426868c103867f /sys/dev/scd
parente7bc2035e9cbc46a78e44a2c8f30a417be476325 (diff)
Notes
Diffstat (limited to 'sys/dev/scd')
-rw-r--r--sys/dev/scd/scd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/scd/scd.c b/sys/dev/scd/scd.c
index fb91dddba842..dfa13bbc44e7 100644
--- a/sys/dev/scd/scd.c
+++ b/sys/dev/scd/scd.c
@@ -827,7 +827,7 @@ writeparam:
}
/* send the read command */
- disable_intr();
+ critical_enter();
SCD_WRITE(sc, OREG_WPARAMS, sdata[0]);
SCD_WRITE(sc, OREG_WPARAMS, sdata[1]);
SCD_WRITE(sc, OREG_WPARAMS, sdata[2]);
@@ -835,7 +835,7 @@ writeparam:
SCD_WRITE(sc, OREG_WPARAMS, 0);
SCD_WRITE(sc, OREG_WPARAMS, 1);
SCD_WRITE(sc, OREG_COMMAND, CMD_READ);
- enable_intr();
+ critical_exit();
mbx->count = RDELAY_WAITREAD;
for (i = 0; i < 50; i++) {