summaryrefslogtreecommitdiffstats
path: root/sys/dev/sio
diff options
context:
space:
mode:
authornate <nate@FreeBSD.org>1998-02-14 16:17:17 +0000
committernate <nate@FreeBSD.org>1998-02-14 16:17:17 +0000
commitee159ceedeb5d55374844cf9cc3e975fb301db88 (patch)
treea93bdf3f065163babf8d261f84da376700174495 /sys/dev/sio
parent71e81c1b846dded696e19c7ad2d83742e10dc5b7 (diff)
downloadFreeBSD-src-ee159ceedeb5d55374844cf9cc3e975fb301db88.zip
FreeBSD-src-ee159ceedeb5d55374844cf9cc3e975fb301db88.tar.gz
- 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.
Diffstat (limited to 'sys/dev/sio')
-rw-r--r--sys/dev/sio/sio.c4
1 files changed, 2 insertions, 2 deletions
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) */
OpenPOWER on IntegriCloud