Return-Path: Received: from e3.ny.us.ibm.com (e3.ny.us.ibm.com [32.97.182.143]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "e3.ny.us.ibm.com", Issuer "Equifax" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 4F800DE088 for ; Sat, 18 Apr 2009 06:50:25 +1000 (EST) Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by e3.ny.us.ibm.com (8.13.1/8.13.1) with ESMTP id n3HKkiot012157 for ; Fri, 17 Apr 2009 16:46:44 -0400 Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by d01relay04.pok.ibm.com (8.13.8/8.13.8/NCO v9.2) with ESMTP id n3HKoLF1154016 for ; Fri, 17 Apr 2009 16:50:21 -0400 Received: from d01av02.pok.ibm.com (loopback [127.0.0.1]) by d01av02.pok.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n3HKmbXV003103 for ; Fri, 17 Apr 2009 16:48:37 -0400 From: Hollis Blanchard To: John Linn Subject: Re: Question about DBCR0 initialization for 440 Date: Fri, 17 Apr 2009 15:50:18 -0500 References: <20090414203313.8D8F11BE8056@mail209-sin.bigfish.com> <20090417203053.1D692F88052@mail119-dub.bigfish.com> In-Reply-To: <20090417203053.1D692F88052@mail119-dub.bigfish.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Message-Id: <200904171550.19625.hollisb@us.ibm.com> Cc: Tirumala Reddy Marri , linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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@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