diff options
author | nate <nate@FreeBSD.org> | 1998-02-14 16:17:17 +0000 |
---|---|---|
committer | nate <nate@FreeBSD.org> | 1998-02-14 16:17:17 +0000 |
commit | ee159ceedeb5d55374844cf9cc3e975fb301db88 (patch) | |
tree | a93bdf3f065163babf8d261f84da376700174495 | |
parent | 71e81c1b846dded696e19c7ad2d83742e10dc5b7 (diff) | |
download | FreeBSD-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.
-rw-r--r-- | sys/dev/sio/sio.c | 4 | ||||
-rw-r--r-- | sys/i386/isa/sio.c | 4 | ||||
-rw-r--r-- | sys/isa/sio.c | 4 |
3 files changed, 6 insertions, 6 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) */ diff --git a/sys/i386/isa/sio.c b/sys/i386/isa/sio.c index a1da0ff..5374b32 100644 --- a/sys/i386/isa/sio.c +++ b/sys/i386/isa/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) */ diff --git a/sys/isa/sio.c b/sys/isa/sio.c index a1da0ff..5374b32 100644 --- a/sys/isa/sio.c +++ b/sys/isa/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) */ |