Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/marvell Make this compile with DEBUG defined.



details:   https://anonhg.NetBSD.org/src/rev/2ed214e15c30
branches:  trunk
changeset: 547308:2ed214e15c30
user:      scw <scw%NetBSD.org@localhost>
date:      Fri May 16 21:38:50 2003 +0000

description:
Make this compile with DEBUG defined.

diffstat:

 sys/arch/powerpc/marvell/extintr.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (43 lines):

diff -r 961bac182a55 -r 2ed214e15c30 sys/arch/powerpc/marvell/extintr.c
--- a/sys/arch/powerpc/marvell/extintr.c        Fri May 16 21:28:26 2003 +0000
+++ b/sys/arch/powerpc/marvell/extintr.c        Fri May 16 21:38:50 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: extintr.c,v 1.9 2003/04/29 15:11:45 scw Exp $  */
+/*     $NetBSD: extintr.c,v 1.10 2003/05/16 21:38:50 scw Exp $ */
 
 /*
  * Copyright (c) 2002 Allegro Networks, Inc., Wasabi Systems, Inc.
@@ -208,6 +208,7 @@
 
 #ifdef DEBUG
 struct intrframe *intrframe = 0; 
+static int intr_depth;
 #define EXTINTR_SANITY_SZ      16
 struct {
        unsigned int ipl;
@@ -218,7 +219,8 @@
        if (intr_depth < EXTINTR_SANITY_SZ) { \
                extintr_sanity[intr_depth].ipl = ci->ci_cpl; \
                imask_dup_v(&extintr_sanity[intr_depth].oimen, &imen); \
-       }
+       } \
+       intr_depth++
 #else
 #define EXTINTR_SANITY()
 #endif /* DEBUG */
@@ -656,6 +658,7 @@
 ext_intr(struct intrframe *frame)
 {
 #ifdef DEBUG
+       struct cpu_info * const ci = curcpu();
        struct intrframe *oframe;
 #endif
        EXT_INTR_STATS_DECL(tstart);
@@ -685,6 +688,7 @@
        }
 #ifdef DEBUG
        intrframe = oframe;
+       intr_depth--;
 #endif
 }
 



Home | Main Index | Thread Index | Old Index