diff options
Diffstat (limited to 'sys/dev/cy')
| -rw-r--r-- | sys/dev/cy/cy.c | 11 | ||||
| -rw-r--r-- | sys/dev/cy/cy_isa.c | 11 |
2 files changed, 16 insertions, 6 deletions
diff --git a/sys/dev/cy/cy.c b/sys/dev/cy/cy.c index 62a359806aa9..b8c7e3322bcf 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.4 1997/08/30 01:23:40 smp Exp smp $ + * $Id: cy.c,v 1.5 1997/09/01 07:37:01 smp Exp smp $ */ #include "cy.h" @@ -88,6 +88,11 @@ #include <i386/isa/cyreg.h> #include <i386/isa/ic/cd1400.h> +#ifdef SMP +#define disable_intr() COM_DISABLE_INTR() +#define enable_intr() COM_ENABLE_INTR() +#endif /* SMP */ + /* * Dictionary so that I can name everything *sio* or *com* to compare with * sio.c. There is also lots of ugly formatting and unnecessary ifdefs to @@ -988,7 +993,7 @@ siointr(unit) int baseu, cyu, cy_align; u_char status; - MPINTR_LOCK(); /* XXX could this be placed down lower in the loop? */ + COM_LOCK(); /* XXX could this be placed down lower in the loop? */ baseu = unit * CY_MAX_PORTS; cy_iobase = com_addr(baseu)->cy_iobase; @@ -1337,7 +1342,7 @@ cont: schedsofttty(); - MPINTR_UNLOCK(); + COM_UNLOCK(); } #if 0 diff --git a/sys/dev/cy/cy_isa.c b/sys/dev/cy/cy_isa.c index 62a359806aa9..b8c7e3322bcf 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.4 1997/08/30 01:23:40 smp Exp smp $ + * $Id: cy.c,v 1.5 1997/09/01 07:37:01 smp Exp smp $ */ #include "cy.h" @@ -88,6 +88,11 @@ #include <i386/isa/cyreg.h> #include <i386/isa/ic/cd1400.h> +#ifdef SMP +#define disable_intr() COM_DISABLE_INTR() +#define enable_intr() COM_ENABLE_INTR() +#endif /* SMP */ + /* * Dictionary so that I can name everything *sio* or *com* to compare with * sio.c. There is also lots of ugly formatting and unnecessary ifdefs to @@ -988,7 +993,7 @@ siointr(unit) int baseu, cyu, cy_align; u_char status; - MPINTR_LOCK(); /* XXX could this be placed down lower in the loop? */ + COM_LOCK(); /* XXX could this be placed down lower in the loop? */ baseu = unit * CY_MAX_PORTS; cy_iobase = com_addr(baseu)->cy_iobase; @@ -1337,7 +1342,7 @@ cont: schedsofttty(); - MPINTR_UNLOCK(); + COM_UNLOCK(); } #if 0 |
