From 2cf4f4b9b661e8f210c3087955092556ea6ce84b Mon Sep 17 00:00:00 2001 From: uch Date: Sun, 7 Nov 1999 14:07:50 +0000 Subject: [PATCH] Clear interrupt status before dispatch handler. --- sys/arch/hpcmips/vr/vrgiu.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sys/arch/hpcmips/vr/vrgiu.c b/sys/arch/hpcmips/vr/vrgiu.c index bba92b7e792e..202f12f4a5c0 100644 --- a/sys/arch/hpcmips/vr/vrgiu.c +++ b/sys/arch/hpcmips/vr/vrgiu.c @@ -1,4 +1,4 @@ -/* $NetBSD: vrgiu.c,v 1.1.1.1 1999/09/16 12:23:32 takemura Exp $ */ +/* $NetBSD: vrgiu.c,v 1.2 1999/11/07 14:07:50 uch Exp $ */ /*- * Copyright (c) 1999 @@ -509,6 +509,9 @@ vrgiu_intr(arg) printf ("\n"); } #endif + /* Clear interrupt */ + vrgiu_regwrite_4(sc, GIUINTSTAT_REG, vrgiu_regread_4(sc, GIUINTSTAT_REG)); + /* Dispatch handler */ for (i = 0; i < MAX_GPIO_INOUT; i++) { if (reg & (1 << i)) { @@ -518,7 +521,6 @@ vrgiu_intr(arg) } } } - /* Clear interrupt */ - vrgiu_regwrite_4(sc, GIUINTSTAT_REG, vrgiu_regread_4(sc, GIUINTSTAT_REG)); + return 0; }