All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] MPC8xx boards broken by commit some weeks ago
Date: Tue, 17 Jul 2007 13:15:22 +0200	[thread overview]
Message-ID: <200707171315.22258.sr@denx.de> (raw)
In-Reply-To: <47F3F98010FF784EBEE6526EAAB078D1024F862A@tq-mailsrv.tq-net.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:

<snip>

> 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
=====================================================================

  reply	other threads:[~2007-07-17 11:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-16  8:31 [U-Boot-Users] MPC8xx boards broken by commit some weeks ago Martin Krause
2007-07-17 11:15 ` Stefan Roese [this message]
2007-07-17 11:32   ` Martin Krause
2007-07-17 11:36     ` Stefan Roese
2007-07-17 16:39     ` Rafal Jaworowski
2007-07-19 15:18       ` Detlev Zundel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200707171315.22258.sr@denx.de \
    --to=sr@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.