From f5464126bb613df8c841ffda4efed10f2303280e Mon Sep 17 00:00:00 2001 From: "Matthew N. Dodd" Date: Sun, 10 Nov 2002 03:45:49 +0000 Subject: Replace {disable,enable}_intr() with critical_{enter,exit}(). --- sys/dev/scd/scd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/scd/scd.c') 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++) { -- cgit v1.3