Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/booke Add some grotty #ifdef'age to make th...



details:   https://anonhg.NetBSD.org/src/rev/dfeedc4ab832
branches:  trunk
changeset: 765050:dfeedc4ab832
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Tue May 17 17:42:46 2011 +0000

description:
Add some grotty #ifdef'age to make this compile w/o DIAGNOSTIC.

diffstat:

 sys/arch/powerpc/booke/e500_intr.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (29 lines):

diff -r bbc7a626bdf4 -r dfeedc4ab832 sys/arch/powerpc/booke/e500_intr.c
--- a/sys/arch/powerpc/booke/e500_intr.c        Tue May 17 17:34:47 2011 +0000
+++ b/sys/arch/powerpc/booke/e500_intr.c        Tue May 17 17:42:46 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: e500_intr.c,v 1.5 2011/03/21 19:55:04 matt Exp $       */
+/*     $NetBSD: e500_intr.c,v 1.6 2011/05/17 17:42:46 dyoung Exp $     */
 /*-
  * Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -504,7 +504,9 @@
        u_int ctpr = (ipl >= IPL_VM ? 15 : ipl);
        KASSERT(openpic_read(cpu, OPENPIC_CTPR) == old_ctpr);
 #else
+#ifdef DIAGNOSTIC
        u_int old_ctpr = IPL2CTPR(ci->ci_cpl);
+#endif
        u_int ctpr = IPL2CTPR(ipl);
        KASSERT(openpic_read(cpu, OPENPIC_CTPR) == old_ctpr);
 #endif
@@ -908,7 +910,9 @@
                            __func__, tf, __LINE__, old_ipl, 
                            15 - IPL_HIGH, openpic_read(cpu, OPENPIC_CTPR));
                const uint32_t iack = openpic_read(cpu, OPENPIC_IACK);
+#ifdef DIAGNOSTIC
                const int ipl = iack & 0xf;
+#endif
                const int irq = (iack >> 4) - 1;
 #if 0
                printf("%s: iack=%d ipl=%d irq=%d <%s>\n",



Home | Main Index | Thread Index | Old Index