Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/usermode/usermode If the spl list is full also noti...
details: https://anonhg.NetBSD.org/src/rev/7ba03034d015
branches: trunk
changeset: 772633:7ba03034d015
user: reinoud <reinoud%NetBSD.org@localhost>
date: Mon Jan 09 22:20:53 2012 +0000
description:
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.
diffstat:
sys/arch/usermode/usermode/intr.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 76d47e4ea6c8 -r 7ba03034d015 sys/arch/usermode/usermode/intr.c
--- a/sys/arch/usermode/usermode/intr.c Mon Jan 09 22:08:12 2012 +0000
+++ b/sys/arch/usermode/usermode/intr.c Mon Jan 09 22:20:53 2012 +0000
@@ -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 <jmcneill%invisible.ca@localhost>
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index