From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Tue, 17 Jul 2007 13:15:22 +0200 Subject: [U-Boot-Users] MPC8xx boards broken by commit some weeks ago In-Reply-To: <47F3F98010FF784EBEE6526EAAB078D1024F862A@tq-mailsrv.tq-net.de> References: <47F3F98010FF784EBEE6526EAAB078D1024F862A@tq-mailsrv.tq-net.de> Message-ID: <200707171315.22258.sr@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Martin, On Monday 16 July 2007, Martin Krause wrote: > support for - at least some - MPC8xx boards seems broken. To prepare some > new patches, I build a current U-Boot (top of tree) for our TQM885D board. > With this U-Boot, some time after relocation to RAM the board hangs: > I tracked the problem down (git bisect is great!) to the commit "ppc4xx: > Clean up 440 exceptions handling" from Stefan Roese on 15 Jun 2007 > (efa35cf12d914d4caba942acd5a6c45f217de302). > > More precisely to the following patch: > > --- a/include/ppc_asm.tmpl > +++ b/include/ppc_asm.tmpl > @@ -217,7 +217,7 @@ > * We assume sprg3 has the physical address of the current > * task's thread_struct. > */ > -#define EXCEPTION_PROLOG \ > +#define EXCEPTION_PROLOG(reg1, reg2) \ > mtspr SPRG0,r20; \ > mtspr SPRG1,r21; \ > mfcr r20; \ > @@ -235,8 +235,10 @@ > stw r22,_CTR(r21); \ > mfspr r20,XER; \ > stw r20,_XER(r21); \ > - mfspr r22,SRR0; \ > - mfspr r23,SRR1; \ > + mfspr r20,DEAR; \ <-- > + stw r20,_DAR(r21); \ <-- We are currently working on a fix for this. Sorry for the inconvenience. Best regards, Stefan ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office@denx.de =====================================================================