Module Name: src
Committed By: reinoud
Date: Mon Jan 9 22:20:53 UTC 2012
Modified Files:
src/sys/arch/usermode/usermode: intr.c
Log Message:
If the spl list is full also notify on the ttycons since it might otherwise
not allways be possible to print the panic correctdue due to the spl level.
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/usermode/usermode/intr.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/usermode/usermode/intr.c
diff -u src/sys/arch/usermode/usermode/intr.c:1.13 src/sys/arch/usermode/usermode/intr.c:1.14
--- src/sys/arch/usermode/usermode/intr.c:1.13 Sat Jan 7 18:07:57 2012
+++ src/sys/arch/usermode/usermode/intr.c Mon Jan 9 22:20:53 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: intr.c,v 1.13 2012/01/07 18:07:57 jmcneill Exp $ */
+/* $NetBSD: intr.c,v 1.14 2012/01/09 22:20:53 reinoud Exp $ */
/*-
* Copyright (c) 2011 Jared D. McNeill <[email protected]>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.13 2012/01/07 18:07:57 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.14 2012/01/09 22:20:53 reinoud Exp $");
#include <sys/types.h>
@@ -89,8 +89,10 @@ spl_intr(int x, void (*func)(void *), vo
spli->arg = arg;
spl_intr_wr[x] = (spl_intr_wr[x] + 1) % MAX_QUEUED_EVENTS;
- if (spl_intr_wr[x] == spl_intr_rd[x])
+ if (spl_intr_wr[x] == spl_intr_rd[x]) {
+ thunk_printf("%s: spl list %d full!\n", __func__, x);
panic("%s: spl list %d full!\n", __func__, x);
+ }
}
int