From ca214d56c7d1213e2a8a4de22562376707b03ae7 Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Tue, 7 Nov 2000 11:05:20 +0000 Subject: 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. --- sys/arch/sparc/dev/zs.c | 4 ++-- 1 file 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 -- cgit v1.2.3