Initialize the IER to 0 in com_attach_subr().
This commit is contained in:
parent
6af5bbb01a
commit
1bb75c1efa
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: com.c,v 1.116 1997/10/19 14:26:16 fvdl Exp $ */
|
||||
/* $NetBSD: com.c,v 1.117 1997/10/19 20:01:08 mycroft Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1993, 1994, 1995, 1996, 1997
|
||||
|
@ -356,6 +356,10 @@ com_attach_subr(sc)
|
|||
int *hayespp;
|
||||
#endif
|
||||
|
||||
/* Disable interrupts before configuring the device. */
|
||||
sc->sc_ier = 0;
|
||||
bus_space_write_1(sc->sc_iot, sc->sc_ioh, com_ier, sc->sc_ier);
|
||||
|
||||
if (iot == comconstag && iobase == comconsaddr) {
|
||||
comconsattached = 1;
|
||||
|
||||
|
|
Loading…
Reference in New Issue