summaryrefslogtreecommitdiff
path: root/sys/arch/i386/stand
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1997-08-22 00:25:59 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1997-08-22 00:25:59 +0000
commit330a1f9688a2a6b5d934fcfe220c6d0412ef4e4d (patch)
treef91a3a466d9c57d789495ff056e61808f7996b00 /sys/arch/i386/stand
parent032714a5673c35e3fe6a725388178fd5e779d037 (diff)
byte returns
Diffstat (limited to 'sys/arch/i386/stand')
-rw-r--r--sys/arch/i386/stand/libsa/bioscons.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/i386/stand/libsa/bioscons.c b/sys/arch/i386/stand/libsa/bioscons.c
index 249c3612c9e..16a1fae1cb5 100644
--- a/sys/arch/i386/stand/libsa/bioscons.c
+++ b/sys/arch/i386/stand/libsa/bioscons.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bioscons.c,v 1.5 1997/08/21 21:52:12 mickey Exp $ */
+/* $OpenBSD: bioscons.c,v 1.6 1997/08/22 00:25:58 mickey Exp $ */
/*
* Copyright (c) 1997 Michael Shalayeff
@@ -77,12 +77,12 @@ pc_getc(dev)
if (dev & 0x80) {
__asm __volatile(DOINT(0x16) "; setnz %%al" : "=a" (rv) :
"a" (0x100) : "%ecx", "%edx", "cc" );
- return (rv);
+ return (rv & 0xff);
}
__asm __volatile(DOINT(0x16) : "=a" (rv) : "a" (0) :
"%ecx", "edx", "cc" );
- return (rv);
+ return (rv &0xff);
}
void