Module Name: src
Committed By: matt
Date: Tue Jun 21 04:22:25 UTC 2011
Modified Files:
src/sys/arch/powerpc/powerpc: softint_machdep.c
Log Message:
Add an extra assert to verify we aren't trying to process softints while
interrupts are being serviced.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/powerpc/powerpc/softint_machdep.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/powerpc/powerpc/softint_machdep.c
diff -u src/sys/arch/powerpc/powerpc/softint_machdep.c:1.1 src/sys/arch/powerpc/powerpc/softint_machdep.c:1.2
--- src/sys/arch/powerpc/powerpc/softint_machdep.c:1.1 Tue Jun 14 22:36:13 2011
+++ src/sys/arch/powerpc/powerpc/softint_machdep.c Tue Jun 21 04:22:25 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: softint_machdep.c,v 1.1 2011/06/14 22:36:13 matt Exp $ */
+/* $NetBSD: softint_machdep.c,v 1.2 2011/06/21 04:22:25 matt Exp $ */
/*-
* Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -69,6 +69,9 @@
const u_int softint_mask = (IPL_SOFTMASK << old_ipl) & IPL_SOFTMASK;
u_int softints;
+ KASSERTMSG(ci->ci_idepth == -1,
+ ("%s: cpu%u: idepth (%d) != -1", __func__,
+ cpu_index(ci), ci->ci_idepth));
KASSERT(ci->ci_mtx_count == 0);
KASSERT(ci->ci_cpl == IPL_HIGH);
while ((softints = (ci->ci_data.cpu_softints & softint_mask)) != 0) {