linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Question about DBCR0 initialization for 440
@ 2009-04-14 20:33 John Linn
  2009-04-15 16:24 ` Tirumala Reddy Marri
  0 siblings, 1 reply; 15+ messages in thread
From: John Linn @ 2009-04-14 20:33 UTC (permalink / raw)
  To: jwboyer, grant.likely, linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 1355 bytes --]

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.


[-- Attachment #2: Type: text/html, Size: 5751 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2009-04-17 20:57 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-14 20:33 Question about DBCR0 initialization for 440 John Linn
2009-04-15 16:24 ` Tirumala Reddy Marri
2009-04-17 15:46   ` John Linn
2009-04-17 17:22     ` Josh Boyer
2009-04-17 18:07       ` Hollis Blanchard
2009-04-17 19:04         ` Benjamin Herrenschmidt
2009-04-17 19:10           ` Grant Likely
2009-04-17 20:30             ` John Linn
2009-04-17 20:35               ` Josh Boyer
2009-04-17 20:41                 ` John Linn
2009-04-17 20:54                   ` Josh Boyer
2009-04-17 20:50               ` Hollis Blanchard
2009-04-17 20:57                 ` John Linn
2009-04-17 18:57       ` Grant Likely
2009-04-17 18:58         ` John Linn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).