public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Scott Wood <scottwood@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] p4080ds starts OS with MSR[EE]=1 and DEC armed?
Date: Tue, 15 Mar 2011 11:11:32 -0500	[thread overview]
Message-ID: <20110315111132.6538117d@schlenkerla> (raw)
In-Reply-To: <977C59AE-9AB2-4B92-B508-C057CB172F0C@kernel.crashing.org>

On Tue, 15 Mar 2011 00:39:17 -0500
Kumar Gala <galak@kernel.crashing.org> wrote:

> diff --git a/cpu/mpc85xx/cpu_init.c b/cpu/mpc85xx/cpu_init.c
> index 48a82ed..a6d1e99 100644
> --- a/cpu/mpc85xx/cpu_init.c
> +++ b/cpu/mpc85xx/cpu_init.c
> @@ -364,5 +364,16 @@ extern void setup_ivors(void);
>  
>  void arch_preboot_os(void)
>  {
> +       u32 msr;
> +
> +       /*
> +        * We are changing interrupt offsets and are about to boot the OS so
> +        * we need to make sure we disable all async interrupts. EE is already
> +        * disabled by the time we get called.
> +        */
> +       msr = mfmsr();
> +       msr &= ~(MSR_ME|MSR_CE|MSR_DE);
> +       mtmsr(msr);
> +
>         setup_ivors();
>  }
> 
> -----
> 
> :)

Ah, thanks.  Not sure why my previous grep found the other one but not
this. :-)

-Scott

      reply	other threads:[~2011-03-15 16:11 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-03 14:59 [U-Boot] p4080ds starts OS with MSR[EE]=1 and DEC armed? Jimi Xenidis
2011-03-12 22:56 ` Kumar Gala
2011-03-13 15:46   ` Jimi Xenidis
2011-03-15 19:21     ` Timur Tabi
2011-03-15 20:24       ` Scott Wood
2011-03-15 21:16         ` Jimi Xenidis
2011-03-15 21:21           ` Timur Tabi
2011-03-15 21:22             ` Jimi Xenidis
2011-03-15 21:22           ` Scott Wood
2011-03-15 21:24             ` Scott Wood
2011-03-14 18:09   ` Scott Wood
2011-03-14 19:39     ` Jimi Xenidis
2011-03-15  5:46       ` Kumar Gala
2011-03-14 21:25     ` Kumar Gala
2011-03-14 21:37       ` Scott Wood
2011-03-15  5:39         ` Kumar Gala
2011-03-15 16:11           ` Scott Wood [this message]

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=20110315111132.6538117d@schlenkerla \
    --to=scottwood@freescale.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox