From d53fd54d9f5002225ea3aae7d64af23ca08acdd2 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Wed, 20 May 1998 06:46:58 +0000 Subject: LoadSoftModem() routine at sio.c does not trap general serial I/Os. It fauls to probe eather DSI Modem or others. PR: 4657 Reviewed by: phk Submitted by: Kenji Saito --- sys/dev/sio/sio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index 97659e1a7d8b..aa8641aa34eb 100644 --- a/sys/dev/sio/sio.c +++ b/sys/dev/sio/sio.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)com.c 7.5 (Berkeley) 5/16/91 - * $Id: sio.c,v 1.200 1998/05/04 10:35:13 phk Exp $ + * $Id: sio.c,v 1.201 1998/05/13 07:26:55 phk Exp $ */ #include "opt_comconsole.h" @@ -2836,7 +2836,7 @@ LoadSoftModem(int unit, int base_io, u_long size, u_char *ptr) /* * First see if it is a DSI SoftModem */ - if(!((inb(base_io+7) ^ inb(base_io+7) & 0x80))) + if(!((inb(base_io+7) ^ inb(base_io+7)) & 0x80)) return ENODEV; data_0188 = inb(base_io+4); -- cgit v1.3