summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k/dev/bugio.c
diff options
context:
space:
mode:
authorSteve Murphree <smurph@cvs.openbsd.org>1999-09-27 18:43:27 +0000
committerSteve Murphree <smurph@cvs.openbsd.org>1999-09-27 18:43:27 +0000
commit06bf2109b5fc8857ac5edfac91ae53195b7840c6 (patch)
treec9141b0d279fdf1e075153bc69573cba69faf7b2 /sys/arch/mvme88k/dev/bugio.c
parentcf682dcac49a66c618e1a968aadfbf7f221e4546 (diff)
adding support for MVME188 and MVME197. Plus 32bit if_ie.
Diffstat (limited to 'sys/arch/mvme88k/dev/bugio.c')
-rw-r--r--sys/arch/mvme88k/dev/bugio.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/arch/mvme88k/dev/bugio.c b/sys/arch/mvme88k/dev/bugio.c
index 3a3d085dd5e..aee175f7206 100644
--- a/sys/arch/mvme88k/dev/bugio.c
+++ b/sys/arch/mvme88k/dev/bugio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bugio.c,v 1.3 1999/05/29 04:41:42 smurph Exp $ */
+/* $OpenBSD: bugio.c,v 1.4 1999/09/27 18:43:21 smurph Exp $ */
/* Copyright (c) 1998 Steve Murphree, Jr. */
#include <machine/bugio.h>
@@ -64,13 +64,15 @@ buginit()
char
buginchr(void)
{
- register int cc asm("r2");
+ register int cc;
+ int ret;
BUGCTXT();
asm volatile ("or r9,r0," INCHR);
asm volatile ("tb0 0,r0,0x1F0");
asm volatile ("or %0,r0,r2" : "=r" (cc) : );
- OSCTXT();
- return ((char)cc & 0xFF);
+ ret = cc;
+ OSCTXT();
+ return ((char)ret & 0xFF);
}
bugoutchr(unsigned char c)