summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1996-09-14 04:27:46 +0000
committerbde <bde@FreeBSD.org>1996-09-14 04:27:46 +0000
commitc51d5ab188ee1b1b6a52b4aa8baaf269ce01451b (patch)
treeb3213d6fc0cfefdd1d4313c9f142b7d0eaae3b30 /sys/amd64
parent1abf7809ff779cc419e502cc2ef28cbdc13ff57f (diff)
downloadFreeBSD-src-c51d5ab188ee1b1b6a52b4aa8baaf269ce01451b.zip
FreeBSD-src-c51d5ab188ee1b1b6a52b4aa8baaf269ce01451b.tar.gz
Changed cncheckc() interface so that it is 8-bit clean - return -1
instead of 0 if there is no input. syscons.c: Added missing spl locking in sccncheckc(). Return the same value as sccngetc() would. It is wrong for sccngetc() to return non-ASCII, but stripping the non-ASCII bits doesn't help.
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/tsc.c4
-rw-r--r--sys/amd64/isa/clock.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/amd64/amd64/tsc.c b/sys/amd64/amd64/tsc.c
index ab7c3b6..3413dca 100644
--- a/sys/amd64/amd64/tsc.c
+++ b/sys/amd64/amd64/tsc.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91
- * $Id: clock.c,v 1.66 1996/07/30 19:26:47 bde Exp $
+ * $Id: clock.c,v 1.67 1996/08/02 21:16:26 bde Exp $
*/
/*
@@ -605,7 +605,7 @@ startrtclock()
if (bootverbose) {
printf(
"Press a key on the console to abort clock calibration\n");
- while (!cncheckc())
+ while (cncheckc() == -1)
calibrate_clocks();
}
#endif
diff --git a/sys/amd64/isa/clock.c b/sys/amd64/isa/clock.c
index ab7c3b6..3413dca 100644
--- a/sys/amd64/isa/clock.c
+++ b/sys/amd64/isa/clock.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91
- * $Id: clock.c,v 1.66 1996/07/30 19:26:47 bde Exp $
+ * $Id: clock.c,v 1.67 1996/08/02 21:16:26 bde Exp $
*/
/*
@@ -605,7 +605,7 @@ startrtclock()
if (bootverbose) {
printf(
"Press a key on the console to abort clock calibration\n");
- while (!cncheckc())
+ while (cncheckc() == -1)
calibrate_clocks();
}
#endif
OpenPOWER on IntegriCloud