summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1997-05-31 15:38:46 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1997-05-31 15:38:46 +0000
commit2cc841c43433905748c010b0b21db1993c87982b (patch)
tree7db1333e3ecd49409c10582eea1068b1d6dbf5e3 /sys/arch
parentd8a0e635a534bf89ee2cfc5d7ec084da28290dcf (diff)
clean/optimize
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/i386/stand/libsa/bioskbd.S12
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/arch/i386/stand/libsa/bioskbd.S b/sys/arch/i386/stand/libsa/bioskbd.S
index e1f6f9a14ed..1cc176f0a26 100644
--- a/sys/arch/i386/stand/libsa/bioskbd.S
+++ b/sys/arch/i386/stand/libsa/bioskbd.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: bioskbd.S,v 1.6 1997/05/29 04:33:40 mickey Exp $ */
+/* $OpenBSD: bioskbd.S,v 1.7 1997/05/31 15:38:45 mickey Exp $ */
/*
* Copyright (c) 1997 Michael Shalayeff
@@ -64,6 +64,7 @@ ENTRY(kbd_probe)
ENTRY(kbd_putc)
pushl %ebx
+ xorl %eax, %eax
movb 8(%esp), %al
movb $0x0e, %ah
xorl %ebx, %ebx
@@ -78,9 +79,11 @@ ENTRY(kbd_putc)
*/
ENTRY(kbd_getc)
pushl %ebx
- movb $0, %ah
+ pushl %ecx
+ xorl %eax, %eax
BIOSINT(0x16)
movzbl %al, %eax
+ popl %ecx
popl %ebx
ret
@@ -90,10 +93,13 @@ ENTRY(kbd_getc)
*/
ENTRY(kbd_ischar)
pushl %ebx
- movb $1, %ah
+ pushl %ecx
+ xorl %eax, %eax
+ incb %ah
BIOSINT(0x16)
setnz %al
movzbl %al, %eax
+ popl %ecx
popl %ebx
ret