From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <17663.20973.922238.823386@cargo.ozlabs.ibm.com> Date: Thu, 7 Sep 2006 08:55:41 +1000 From: Paul Mackerras To: Josh Boyer Subject: Re: [PATCH] PPC 4xx: Enable XMON on PPC 4xx boards In-Reply-To: <1157569083.6098.29.camel@zod.rchland.ibm.com> References: <1157569083.6098.29.camel@zod.rchland.ibm.com> Cc: linuxppc-dev@ozlabs.org, mporter@embeddedalley.com List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Josh Boyer writes: > - excp->msr |= 0x400; > + excp->msr |= MSR_SSTEP_ENABLE; > +#ifdef CONFIG_4xx > + mtspr(SPRN_DBCR0, mfspr(SPRN_DBCR0) | DBCR0_IC | DBCR0_IDM); > +#endif > } else if (at_breakpoint(excp->nip)) { > xmon_trace[smp_processor_id()] = BRSTEP; > - excp->msr |= 0x400; > + excp->msr |= MSR_SSTEP_ENABLE; > +#ifdef CONFIG_4xx > + mtspr(SPRN_DBCR0, mfspr(SPRN_DBCR0) | DBCR0_IC | DBCR0_IDM); > +#endif This would be neater with a little inline xmon_enable_sstep(excp) function... Other than that, looks fine. Paul.