diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-08-22 00:25:59 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-08-22 00:25:59 +0000 |
commit | 330a1f9688a2a6b5d934fcfe220c6d0412ef4e4d (patch) | |
tree | f91a3a466d9c57d789495ff056e61808f7996b00 | |
parent | 032714a5673c35e3fe6a725388178fd5e779d037 (diff) |
byte returns
-rw-r--r-- | sys/arch/i386/stand/libsa/bioscons.c | 6 |
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 |