Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm26/arm26 Don't panic on a stray IRQ, just log it...
details: https://anonhg.NetBSD.org/src/rev/e76e7265fa02
branches: trunk
changeset: 508616:e76e7265fa02
user: bjh21 <bjh21%NetBSD.org@localhost>
date: Sun Apr 15 11:59:43 2001 +0000
description:
Don't panic on a stray IRQ, just log it and hope it goes away. This works for
my acemidi card at least.
diffstat:
sys/arch/arm26/arm26/irq.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (38 lines):
diff -r 9a0f6a6c91a1 -r e76e7265fa02 sys/arch/arm26/arm26/irq.c
--- a/sys/arch/arm26/arm26/irq.c Sun Apr 15 11:08:51 2001 +0000
+++ b/sys/arch/arm26/arm26/irq.c Sun Apr 15 11:59:43 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: irq.c,v 1.15 2001/04/14 19:58:58 bjh21 Exp $ */
+/* $NetBSD: irq.c,v 1.16 2001/04/15 11:59:43 bjh21 Exp $ */
/*-
* Copyright (c) 2000, 2001 Ben Harris
@@ -33,12 +33,13 @@
#include <sys/param.h>
-__RCSID("$NetBSD: irq.c,v 1.15 2001/04/14 19:58:58 bjh21 Exp $");
+__RCSID("$NetBSD: irq.c,v 1.16 2001/04/15 11:59:43 bjh21 Exp $");
#include <sys/device.h>
#include <sys/kernel.h> /* for cold */
#include <sys/malloc.h>
#include <sys/queue.h>
+#include <sys/syslog.h>
#include <sys/systm.h>
#include <uvm/uvm_extern.h>
@@ -162,10 +163,9 @@
stray = 0;
}
- if (stray) {
- panic("Stray IRQ, status = 0x%x, spl = %d, mask = 0x%x",
- status, s, irqmask[s]);
- }
+ if (__predict_false(stray))
+ log(LOG_WARNING, "Stray IRQ, status = 0x%x, spl = %d, "
+ "mask = 0x%x\n", status, s, irqmask[s]);
#if 0
printf(" handled\n");
#endif
Home |
Main Index |
Thread Index |
Old Index