Return-Path: Received: from WA4EHSOBE005.bigfish.com (wa4ehsobe005.messaging.microsoft.com [216.32.181.15]) by ozlabs.org (Postfix) with ESMTP id 5DEBFDDF71 for ; Sat, 18 Apr 2009 01:46:34 +1000 (EST) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C9BF73.A1F60AA8" Subject: RE: Question about DBCR0 initialization for 440 Date: Fri, 17 Apr 2009 09:46:11 -0600 In-Reply-To: References: <20090414203313.8D8F11BE8056@mail209-sin.bigfish.com> From: John Linn To: "Tirumala Reddy Marri" , , , Message-ID: <20090417154628.43F859D0055@mail178-wa4.bigfish.com> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , ------_=_NextPart_001_01C9BF73.A1F60AA8 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Josh, any thoughts on putting this into head_44x.S? = Thanks, John = ________________________________ From: linuxppc-dev-bounces+john.linn=3Dxilinx.com@ozlabs.org [mailto:linuxppc-dev-bounces+john.linn=3Dxilinx.com@ozlabs.org] On Behalf Of Tirumala Reddy Marri Sent: Wednesday, April 15, 2009 10:24 AM To: John Linn; jwboyer@linux.vnet.ibm.com; grant.likely@secretlab.ca; linuxppc-dev@ozlabs.org Subject: RE: Question about DBCR0 initialization for 440 = Some debuggers like BDI(Abatron) they setup the debug registers. If you have different debugger which doesn't support configuring debug registers I suggest you to program then in the head_44x.S file. = From: linuxppc-dev-bounces+tmarri=3Damcc.com@ozlabs.org [mailto:linuxppc-dev-bounces+tmarri=3Damcc.com@ozlabs.org] On Behalf Of John Linn Sent: Tuesday, April 14, 2009 1:33 PM To: jwboyer@linux.vnet.ibm.com; grant.likely@secretlab.ca; linuxppc-dev@ozlabs.org Subject: Question about DBCR0 initialization for 440 = 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 recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately. = 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_01C9BF73.A1F60AA8 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Josh, any thoughts on putting this int= o head_44x.S?

 

Thanks,

John

 


From: linuxppc-dev-bounces+john.linn=3Dxilinx.com@ozlabs.org [mailto:linuxppc-dev-bounces+john.linn=3Dxilinx.com@ozlabs.org] On Behalf Of Tirumala Reddy Marri
= Sent: Wednesday, April 15, 2= 009 10:24 AM
To: John Linn; jwboyer@linux.vnet.ibm.com; grant.likely@secretlab.= ca; linuxppc-dev@ozlabs.org
Subject: RE: Question about = DBCR0 initialization for 440

 

Some debuggers= like BDI(Abatron) they setup the debug registers. If you have different debugger= which doesn’t support configuring debug registers I suggest you to program then in the head_44x.S file.

 

From: linuxppc-dev-bounces+tmarri=3Damcc.com@ozlabs.org [mailto:linuxppc-dev-bounces+tmarri=3Damcc.com@ozlabs.org] On Behalf Of John Linn
Sent: Tuesday, April 14, 200= 9 1:33 PM
To: jwboyer@linux.vnet.ibm.c= om; grant.likely@secretlab.ca; linuxppc-dev@ozlabs.org
Subject: Question about DBCR= 0 initialization for 440

 

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 r= un 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 use of the named recipient(s) and contain(s) confidential information that may be proprietar= y, privileged or copyrighted under applicable law. If you are not the intended= recipient, do not read, copy, or forward this email message or any attachme= nts. Delete this email message and any attachments immediately.


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_01C9BF73.A1F60AA8--