Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sgimips/hpc Do not report unexpected interrupts whe...
details: https://anonhg.NetBSD.org/src/rev/e02cb7d2e80f
branches: trunk
changeset: 572371:e02cb7d2e80f
user: rumble <rumble%NetBSD.org@localhost>
date: Fri Dec 31 22:32:34 2004 +0000
description:
Do not report unexpected interrupts when not debugging. These
seem to occur fairly often under normal operation with HPC1.5.
Also, do not return if the interrupt is unexpected, but see if
there is anything to handle regardless, which appears to always
be the case with HPC1.5.
diffstat:
sys/arch/sgimips/hpc/if_sq.c | 15 +++++++--------
1 files changed, 7 insertions(+), 8 deletions(-)
diffs (36 lines):
diff -r 635b0af30999 -r e02cb7d2e80f sys/arch/sgimips/hpc/if_sq.c
--- a/sys/arch/sgimips/hpc/if_sq.c Fri Dec 31 18:06:16 2004 +0000
+++ b/sys/arch/sgimips/hpc/if_sq.c Fri Dec 31 22:32:34 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_sq.c,v 1.26 2004/12/30 23:18:09 rumble Exp $ */
+/* $NetBSD: if_sq.c,v 1.27 2004/12/31 22:32:34 rumble Exp $ */
/*
* Copyright (c) 2001 Rafal K. Boni
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_sq.c,v 1.26 2004/12/30 23:18:09 rumble Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_sq.c,v 1.27 2004/12/31 22:32:34 rumble Exp $");
#include "bpfilter.h"
@@ -852,12 +852,11 @@
stat = sq_hpc_read(sc, sc->hpc_regs->enetr_reset);
- if ((stat & 2) == 0) {
- printf("%s: Unexpected interrupt!\n", sc->sc_dev.dv_xname);
- return 0;
- }
-
- sq_hpc_write(sc, sc->hpc_regs->enetr_reset, (stat | 2));
+ if ((stat & 2) == 0)
+ SQ_DPRINTF(("%s: Unexpected interrupt!\n",
+ sc->sc_dev.dv_xname));
+ else
+ sq_hpc_write(sc, sc->hpc_regs->enetr_reset, (stat | 2));
/*
* If the interface isn't running, the interrupt couldn't
Home |
Main Index |
Thread Index |
Old Index