summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>1998-10-28 19:24:15 +0000
committermsmith <msmith@FreeBSD.org>1998-10-28 19:24:15 +0000
commit45c6ebc96d5f8b870255823e68e008985d394f31 (patch)
tree7ef8e3ca3f9e46e2208f549b3e3e5225dbd1ad8b /sys
parent8ba00ec7afb5aa96dbf822e4810acd9fe79b3b12 (diff)
downloadFreeBSD-src-45c6ebc96d5f8b870255823e68e008985d394f31.zip
FreeBSD-src-45c6ebc96d5f8b870255823e68e008985d394f31.tar.gz
Simplify the "is a character ready" test, so that we don't return a false
negative for keypresses with zero ascii values. This is in line with the comconsole test, rather than being more ambitious. Submitted by: rnordier
Diffstat (limited to 'sys')
-rw-r--r--sys/boot/i386/libi386/vidconsole.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/boot/i386/libi386/vidconsole.c b/sys/boot/i386/libi386/vidconsole.c
index c67cd72..4b8c764 100644
--- a/sys/boot/i386/libi386/vidconsole.c
+++ b/sys/boot/i386/libi386/vidconsole.c
@@ -26,7 +26,7 @@
*
* From Id: probe_keyboard.c,v 1.13 1997/06/09 05:10:55 bde Exp
*
- * $Id: vidconsole.c,v 1.5 1998/10/07 07:34:31 msmith Exp $
+ * $Id: vidconsole.c,v 1.6 1998/10/11 10:07:52 peter Exp $
*/
#include <stand.h>
@@ -120,9 +120,7 @@ vidc_ischar(void)
v86.addr = 0x16;
v86.eax = 0x100;
v86int();
- if (!(v86.efl & PSL_Z))
- return(v86.eax & 0xff);
- return(0);
+ return(!(v86.efl & PSL_Z));
}
#if KEYBOARD_PROBE
OpenPOWER on IntegriCloud