From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [RFC:PATCH 02/03] powerpc: Add definitions for Debug Registers on BookE Platforms Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii From: Kumar Gala In-Reply-To: <20091211032815.GD8852@yookeroo> Date: Fri, 11 Dec 2009 08:35:35 -0600 Message-Id: <509EFABE-E123-48EA-9416-6FC22A00A6F5@kernel.crashing.org> References: <20091210155709.6697.4635.sendpatchset@norville.austin.ibm.com> <20091210155721.6697.40863.sendpatchset@norville.austin.ibm.com> <1134F495-6623-437F-AF1F-64D0A87BA112@kernel.crashing.org> <20091211032815.GD8852@yookeroo> To: David Gibson Cc: linuxppc-dev list , Sergio Durigan Junior , Dave Kleikamp , Thiago Jung Bauermann , Torez Smith List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Dec 10, 2009, at 9:28 PM, David Gibson wrote: > On Thu, Dec 10, 2009 at 08:41:53PM -0600, Kumar Gala wrote: > [snip] >>> +#define DBCR1_USER_DEBUG (DBCR1_IAC12M | DBCR1_IAC34M) >>> +#define DBCR1_BASE_REG_VALUE (DBCR1_IAC1US | DBCR1_IAC1ER_10 = | \ >>> + DBCR1_IAC2US | DBCR1_IAC2ER_10 | \ >>> + DBCR1_IAC3US | DBCR1_IAC3ER_10 | \ >>> + DBCR1_IAC4US | DBCR1_IAC4ER_10) >>=20 >> We are we using MSR[IS] IS=3D0, why not just any Eff address? In the >> future we might have user as IS =3D 1, and kernel as IS =3D 0. >=20 > Since the user can't control that directly, we can update this when > and if we change our use of address spaces. That's such a subtle issue (easy to forgot about and miss in the = future). Why do we need this now? - k=