diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-05-29 04:33:41 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-05-29 04:33:41 +0000 |
commit | b1ea123a7ee4a54648cd09b824288a671d39ccb5 (patch) | |
tree | 7b7f45cf28428fd40451ed3c5b3de9b36aeaa4d7 /sys | |
parent | 2d9512810dc82fda793e15b0602fb387557fb8e4 (diff) |
safety
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/i386/stand/libsa/bioskbd.S | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/i386/stand/libsa/bioskbd.S b/sys/arch/i386/stand/libsa/bioskbd.S index 4a3dda4746b..e1f6f9a14ed 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.5 1997/04/21 19:47:32 mickey Exp $ */ +/* $OpenBSD: bioskbd.S,v 1.6 1997/05/29 04:33:40 mickey Exp $ */ /* * Copyright (c) 1997 Michael Shalayeff @@ -77,9 +77,11 @@ ENTRY(kbd_putc) * read character from keyboard */ ENTRY(kbd_getc) + pushl %ebx movb $0, %ah BIOSINT(0x16) movzbl %al, %eax + popl %ebx ret /* @@ -87,9 +89,11 @@ ENTRY(kbd_getc) * check if there is character available from keyboard */ ENTRY(kbd_ischar) + pushl %ebx movb $1, %ah BIOSINT(0x16) setnz %al movzbl %al, %eax + popl %ebx ret |