Return-Path: Received: from SG2EHSOBE003.bigfish.com (outbound-sin.frontbridge.com [207.46.51.80]) by ozlabs.org (Postfix) with ESMTP id 4F708DE136 for ; Wed, 15 Apr 2009 06:33:24 +1000 (EST) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C9BD40.3A999948" Subject: Question about DBCR0 initialization for 440 Date: Tue, 14 Apr 2009 14:33:10 -0600 From: John Linn To: , , Message-ID: <20090414203313.8D8F11BE8056@mail209-sin.bigfish.com> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , ------_=_NextPart_001_01C9BD40.3A999948 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable The kernel does not initialize the PPC440 DBCR0 register. This prevents (among other things) the use of software breakpoints with GDB. I realize that boot loaders probably do initialize this but we run a lot without a boot loader and so do our customers. = The file, head_fsl_booke.S, does initialize the register for the freescale specific code (as shown at the end of the message). = We are needing this also for Xilinx. What's the best method to incorporate this, is it possible to add to head_44x.S? = Thanks, John = #if !defined(CONFIG_BDI_SWITCH) /* * The Abatron BDI JTAG debugger does not tolerate others * mucking with the debug registers. */ lis r2,DBCR0_IDM@h mtspr SPRN_DBCR0,r2 isync /* clear any residual debug events */ li r2,-1 mtspr SPRN_DBSR,r2 #endif = This email and any attachments are intended for the sole use of the named r= ecipient(s) and contain(s) confidential information that may be proprietary= , privileged or copyrighted under applicable law. If you are not the intend= ed recipient, do not read, copy, or forward this email message or any attac= hments. Delete this email message and any attachments immediately. ------_=_NextPart_001_01C9BD40.3A999948 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

The kernel does not initialize the PPC440 DBCR0 register= . This prevents (among other things) the use of software breakpoints with GDB= .  I realize that boot loaders probably do initialize this but we run a lot without a boot loader and so do our customers.

=

 

The file, head_fsl_booke.S, does initialize the register= for the freescale specific code (as shown at the end of the message).

 

We are needing this also for Xilinx.  What’s = the best method to incorporate this, is it possible to add to head_44x.S?<= /o:p>

 

Thanks,

John

 

#if !defined(CONFIG_BDI_SWITCH)=

         &n= bsp;  /*

         &n= bsp;   * The Abatron BDI JTAG debugger does not tolerate others

         &n= bsp;   * mucking with the debug registers.

         &n= bsp;   */

         &n= bsp;  lis     r2,DBCR0_IDM@h

         &n= bsp;  mtspr   SPRN_DBCR0,r2

         &n= bsp;  isync

         &n= bsp;  /* clear any residual debug events */

         &n= bsp;  li      r2,-1

         &n= bsp;  mtspr   SPRN_DBSR,r2

#endif

 


This email and any attachments are intended for the sole u= se of the named recipient(s) and contain(s) confidential information that m= ay be proprietary, privileged or copyrighted under applicable law. If you a= re not the intended recipient, do not read, copy, or forward this email mes= sage or any attachments. Delete this email message and any attachments imme= diately. ------_=_NextPart_001_01C9BD40.3A999948--