From ee159ceedeb5d55374844cf9cc3e975fb301db88 Mon Sep 17 00:00:00 2001 From: nate Date: Sat, 14 Feb 1998 16:17:17 +0000 Subject: - If a PCCARD serial device is removed from the system, let the serial driver 'break out' of the infinite loop waiting for a response from it. This is a bad thing, but no worse than having the kernel hang. --- 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 a1da0ff..5374b32 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.195 1998/01/24 02:54:25 eivind Exp $ + * $Id: sio.c,v 1.196 1998/02/13 12:45:56 phk Exp $ */ #include "opt_comconsole.h" @@ -1517,7 +1517,7 @@ siointr1(com) int_ctl = inb(com->intr_ctl_port); int_ctl_new = int_ctl; - while (TRUE) { + while (!com->gone) { line_status = inb(com->line_status_port); /* input event? (check first to help avoid overruns) */ -- cgit v1.1