Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sh3/sh3 In intc_intr_priority() don't panic if the ...
details: https://anonhg.NetBSD.org/src/rev/26cd8e9611f3
branches: trunk
changeset: 555517:26cd8e9611f3
user: uwe <uwe%NetBSD.org@localhost>
date: Thu Nov 20 01:22:19 2003 +0000
description:
In intc_intr_priority() don't panic if the evtcode is not one of
those, that have their priority set in IPR registers, e.g. IRL
interrupts on Dreamcast. Reported by Christian Groessler.
diffstat:
sys/arch/sh3/sh3/interrupt.c | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diffs (34 lines):
diff -r 2d74c1357356 -r 26cd8e9611f3 sys/arch/sh3/sh3/interrupt.c
--- a/sys/arch/sh3/sh3/interrupt.c Thu Nov 20 00:55:51 2003 +0000
+++ b/sys/arch/sh3/sh3/interrupt.c Thu Nov 20 01:22:19 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: interrupt.c,v 1.11 2003/11/04 03:13:48 uwe Exp $ */
+/* $NetBSD: interrupt.c,v 1.12 2003/11/20 01:22:19 uwe Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: interrupt.c,v 1.11 2003/11/04 03:13:48 uwe Exp $");
+__KERNEL_RCSID(0, "$NetBSD: interrupt.c,v 1.12 2003/11/20 01:22:19 uwe Exp $");
#include <sys/param.h>
#include <sys/malloc.h>
@@ -271,10 +271,12 @@
break;
}
-#ifdef DIAGNOSTIC
+ /*
+ * XXX: This functions gets called even for interrupts which
+ * don't have their priority defined by IPR registers.
+ */
if (pos < 0)
- panic("intc_intr_priority: unknown EVTCODE %x", evtcode);
-#endif
+ return;
r = _reg_read_2(iprreg);
r = (r & ~(0xf << (pos))) | (level << (pos));
Home |
Main Index |
Thread Index |
Old Index