From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Wed, 21 Mar 2012 11:34:11 -0500 Subject: [U-Boot] [PATCH 3/4][v2] powerpc/85xx:Make debug exception vector accessible In-Reply-To: <1332304982-10835-1-git-send-email-prabhakar@freescale.com> References: <1332304982-10835-1-git-send-email-prabhakar@freescale.com> Message-ID: <4F6A0303.7080703@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 03/20/2012 11:43 PM, Prabhakar Kushwaha wrote: > diff --git a/arch/powerpc/cpu/mpc85xx/cpu_init_early.c b/arch/powerpc/cpu/mpc85xx/cpu_init_early.c > index 091af7c..d0b15a4 100644 > --- a/arch/powerpc/cpu/mpc85xx/cpu_init_early.c > +++ b/arch/powerpc/cpu/mpc85xx/cpu_init_early.c > @@ -1,5 +1,5 @@ > /* > - * Copyright 2009-2011 Freescale Semiconductor, Inc > + * Copyright 2009-2012 Freescale Semiconductor, Inc > * > * This program is free software; you can redistribute it and/or > * modify it under the terms of the GNU General Public License as > @@ -53,6 +53,36 @@ void setup_ifc(void) > > asm volatile("isync;msync;tlbwe;isync"); > > +#if defined(CONFIG_E500) && defined(CONFIG_SYS_PPC_E500_DEBUG_TLB) There is no need to check for CONFIG_E500 anywhere in arch/powerpc/cpu/mpc85xx. mpc85xx implies CONFIG_E500. I don't see anywhere in this patchset where you set CONFIG_SYS_PPC_E500_DEBUG_TLB on any actual board. It should be set for all e500v1/v2, not just so that debug works but so that this code remains tested. -Scott