Module Name: src Committed By: christos Date: Thu Jun 17 14:41:50 UTC 2010
Modified Files: src/sys/arch/i386/isa: npx.c Log Message: Only clear the interrupt latch if we are using interrupts! To generate a diff of this commit: cvs rdiff -u -r1.136 -r1.137 src/sys/arch/i386/isa/npx.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/i386/isa/npx.c diff -u src/sys/arch/i386/isa/npx.c:1.136 src/sys/arch/i386/isa/npx.c:1.137 --- src/sys/arch/i386/isa/npx.c:1.136 Sun Apr 18 19:47:51 2010 +++ src/sys/arch/i386/isa/npx.c Thu Jun 17 10:41:50 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: npx.c,v 1.136 2010/04/18 23:47:51 jym Exp $ */ +/* $NetBSD: npx.c,v 1.137 2010/06/17 14:41:50 christos Exp $ */ /*- * Copyright (c) 2008 The NetBSD Foundation, Inc. @@ -96,7 +96,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: npx.c,v 1.136 2010/04/18 23:47:51 jym Exp $"); +__KERNEL_RCSID(0, "$NetBSD: npx.c,v 1.137 2010/06/17 14:41:50 christos Exp $"); #if 0 #define IPRINTF(x) printf x @@ -396,7 +396,8 @@ /* * Clear the interrupt latch. */ - bus_space_write_1(sc->sc_iot, sc->sc_ioh, 0, 0); + if (sc->sc_type == NPX_INTERRUPT) + bus_space_write_1(sc->sc_iot, sc->sc_ioh, 0, 0); #endif /*