Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/powerpc Add an extra assert to verify we ar...
details: https://anonhg.NetBSD.org/src/rev/1f21d34c3000
branches: trunk
changeset: 766355:1f21d34c3000
user: matt <matt%NetBSD.org@localhost>
date: Tue Jun 21 04:22:25 2011 +0000
description:
Add an extra assert to verify we aren't trying to process softints while
interrupts are being serviced.
diffstat:
sys/arch/powerpc/powerpc/softint_machdep.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r 68140e6e361f -r 1f21d34c3000 sys/arch/powerpc/powerpc/softint_machdep.c
--- a/sys/arch/powerpc/powerpc/softint_machdep.c Tue Jun 21 04:21:44 2011 +0000
+++ b/sys/arch/powerpc/powerpc/softint_machdep.c Tue Jun 21 04:22:25 2011 +0000
@@ -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) {
Home |
Main Index |
Thread Index |
Old Index