diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-08-13 15:17:05 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-08-13 15:17:05 +0000 |
commit | d90b913be01b39da6ce1ef549cd56f7007251258 (patch) | |
tree | 525e189b2d026e5685c4b581b4388919e3474aed /sys/arch | |
parent | d3a188da66877f24cf438d9749c84f8fe542bdbc (diff) |
better rv types
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/i386/stand/libsa/bioscons.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/i386/stand/libsa/bioscons.c b/sys/arch/i386/stand/libsa/bioscons.c index 3dd6473b082..ab3ba7f8503 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.3 1997/08/13 14:24:01 niklas Exp $ */ +/* $OpenBSD: bioscons.c,v 1.4 1997/08/13 15:17:04 mickey Exp $ */ /* * Copyright (c) 1997 Michael Shalayeff @@ -72,7 +72,7 @@ int pc_getc(dev) dev_t dev; { - u_int8_t rv; + register int rv; if (dev & 0x80) { __asm __volatile(DOINT(0x16) "; setnz %%al" : "=a" (rv) : @@ -117,7 +117,7 @@ void com_init(cn) struct consdev *cn; { - int unit = minor(cn->cn_dev); + register int unit = minor(cn->cn_dev); /* 9600-N-1 */ __asm __volatile(DOINT(0x14) : : "a" (0xe3), "d" (unit) : @@ -138,7 +138,7 @@ com_getc(dev) } do - __asm __volatile(DOINT(0x14) "\n\t" : "=a" (rv) : + __asm __volatile(DOINT(0x14) : "=a" (rv) : "a" (0x200), "d" (minor(dev)) : "%ecx", "cc" ); while (rv & 0x8000); @@ -150,8 +150,8 @@ com_putc(dev, c) dev_t dev; int c; { - int rv; + register int rv; - __asm __volatile(DOINT(0x14) "\n\t" : "=a" (rv) : + __asm __volatile(DOINT(0x14) : "=a" (rv) : "d" (minor(dev)), "a" (c | 0x100) : "%ecx", "cc" ); } |