summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2000-11-07 11:05:20 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2000-11-07 11:05:20 +0000
commitca214d56c7d1213e2a8a4de22562376707b03ae7 (patch)
treedbf2c3cc1a83c6a891a3f4d16af47d5c8abdc570 /sys/arch/sparc/dev
parent36527e914fb62c5b288ce61b594d2891a01ef68e (diff)
Race conditions make it hard for us to know if the interrupt was for us.
Return -1 instead of 0 if we did not service the interrupt. XXX - this is a horrible kludge, but should fix the stray interrupt problem that so many people have seen.
Diffstat (limited to 'sys/arch/sparc/dev')
-rw-r--r--sys/arch/sparc/dev/zs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc/dev/zs.c b/sys/arch/sparc/dev/zs.c
index 697fdf45305..1e4ce2c2924 100644
--- a/sys/arch/sparc/dev/zs.c
+++ b/sys/arch/sparc/dev/zs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: zs.c,v 1.26 2000/07/14 20:27:37 deraadt Exp $ */
+/* $OpenBSD: zs.c,v 1.27 2000/11/07 11:05:19 art Exp $ */
/* $NetBSD: zs.c,v 1.49 1997/08/31 21:26:37 pk Exp $ */
/*
@@ -957,7 +957,7 @@ zshard(intrarg)
#endif
ienab_bis(IE_ZSSOFT);
}
- return (intflags & ZSHARD_WAS_SERVICED) ? 1 : 0 /* -1 XXX */;
+ return (intflags & ZSHARD_WAS_SERVICED) ? 1 : -1 /* XXX */;
}
static int