Question about DBCR0 initialization for 440

Hollis Blanchard hollisb at us.ibm.com
Sat Apr 18 06:50:18 EST 2009


On Friday 17 April 2009 15:30:45 John Linn wrote:
> We think that we still need that conditional as the code is not Oring in the 
enable such that it would
> disable external debug mode for the BDI. But we need it this way for our 
Xilinx pod.
> 
> #if !defined(CONFIG_BDI_SWITCH)
>             /*
>              * The Abatron BDI JTAG debugger does not tolerate others
>              * mucking with the debug registers.
>              */
>             lis     r2,DBCR0_IDM at h
>             mtspr   SPRN_DBCR0,r2
>             isync
>             /* clear any residual debug events */
>             li      r2,-1
>             mtspr   SPRN_DBSR,r2
> #endif

So change the code to OR in your bits. What's the problem?

-- 
Hollis Blanchard
IBM Linux Technology Center



More information about the Linuxppc-dev mailing list