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: Mon, 14 Mar 2011 16:37:35 -0500	[thread overview]
Message-ID: <20110314163735.165fd1d5@schlenkerla> (raw)
In-Reply-To: <67FE1774-18F0-4EC6-B4C0-51A0A7A7FAE2@kernel.crashing.org>

On Mon, 14 Mar 2011 16:25:54 -0500
Kumar Gala <galak@kernel.crashing.org> wrote:

> 
> On Mar 14, 2011, at 1:09 PM, Scott Wood wrote:
> 
> > On Sat, 12 Mar 2011 16:56:09 -0600
> > Kumar Gala <galak@kernel.crashing.org> wrote:
> > 
> >> 
> >> On Mar 3, 2011, at 8:59 AM, Jimi Xenidis wrote:
> >> 
> >>> I was surprised to find myself at the decrement interrupt when running my new stuff.
> >>> That is against ePAPR, right?
> >>> Does u-boot at least make sure that the DEC is set to some large value before it leaps at me?
> >>> I don't mind forcing EE=0 but I'd like to make sure I make it that far into the code :)
> >>> -JX
> >> 
> >> Jimi,
> >> 
> >> Not sure how or why you are seeing this, but u-boot should disable interrupts in common/cmd_bootm.c
> >> 
> >> Look for disable_interrupts() -> this should set MSR[EE] = 0.
> > 
> > What about the rest of MSR -- ME/CE/DE?
> 
> I dont think we ever turn on CE in u-boot, DE would only get set in some weird external debugger build.

From arch/powerpc/cpu/mpc85xx/start.S:

        /* switch back to AS = 0 */
        lis     r3,(MSR_CE|MSR_ME|MSR_DE)@h
        ori     r3,r3,(MSR_CE|MSR_ME|MSR_DE)@l
        mtmsr   r3
        isync

        bl      cpu_init_f
        bl      board_init_f
        isync

-Scott

  reply	other threads:[~2011-03-14 21:37 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 [this message]
2011-03-15  5:39         ` Kumar Gala
2011-03-15 16:11           ` Scott Wood

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=20110314163735.165fd1d5@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