aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/cy
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1998-12-17 18:18:06 +0000
committerBruce Evans <bde@FreeBSD.org>1998-12-17 18:18:06 +0000
commit7cfc9b133eae3cf6efdd162c5b5bf7ec6b24055a (patch)
tree1dc30d64afd47a535a6b1f368d5606e9b8cf88d7 /sys/dev/cy
parent657365cdd79a74aa9022b589170466426301d395 (diff)
Notes
Diffstat (limited to 'sys/dev/cy')
-rw-r--r--sys/dev/cy/cy.c4
-rw-r--r--sys/dev/cy/cy_isa.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/cy/cy.c b/sys/dev/cy/cy.c
index 08cf5349d708..ccec8091e46b 100644
--- a/sys/dev/cy/cy.c
+++ b/sys/dev/cy/cy.c
@@ -27,7 +27,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: cy.c,v 1.76 1998/11/28 15:48:09 bde Exp $
+ * $Id: cy.c,v 1.77 1998/12/17 17:40:13 bde Exp $
*/
#include "opt_compat.h"
@@ -2018,10 +2018,12 @@ comparam(tp, t)
if (cflag & CCTS_OFLOW)
opt |= CD1400_COR2_CCTS_OFLOW;
#endif
+ disable_intr();
if (opt != com->cor[1]) {
cor_change |= CD1400_CCR_COR2;
cd_setreg(com, CD1400_COR2, com->cor[1] = opt);
}
+ enable_intr();
/*
* set channel option register 3 -
diff --git a/sys/dev/cy/cy_isa.c b/sys/dev/cy/cy_isa.c
index 08cf5349d708..ccec8091e46b 100644
--- a/sys/dev/cy/cy_isa.c
+++ b/sys/dev/cy/cy_isa.c
@@ -27,7 +27,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: cy.c,v 1.76 1998/11/28 15:48:09 bde Exp $
+ * $Id: cy.c,v 1.77 1998/12/17 17:40:13 bde Exp $
*/
#include "opt_compat.h"
@@ -2018,10 +2018,12 @@ comparam(tp, t)
if (cflag & CCTS_OFLOW)
opt |= CD1400_COR2_CCTS_OFLOW;
#endif
+ disable_intr();
if (opt != com->cor[1]) {
cor_change |= CD1400_CCR_COR2;
cd_setreg(com, CD1400_COR2, com->cor[1] = opt);
}
+ enable_intr();
/*
* set channel option register 3 -