public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Timur Tabi <timur@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 16:21:02 -0500	[thread overview]
Message-ID: <4D7FD83E.404@freescale.com> (raw)
In-Reply-To: <3B470DFF-2345-45CE-A682-82D13A9E45C2@pobox.com>

Jimi Xenidis wrote:
> That is true for "server" and "classic" because they do not necessarily stop at 0.
> for embedded you can just:
> 	/* u-boot leaves decrementer enabled */
> 	mtspr(SPRN_DECAR, 0); /* paranoia */
> 	mtspr(SPRN_DEC, 0);
> 	mtspr(SPRN_TCR, 0);
> 	mtspr(SPRN_TSR, 0);

I think you mean

	mtspr(SPRN_TSR, 0xFFFFFFFF);

since it's write-1-to-clear.  Other than that, this is exactly what I was
talking about.  I just think it makes sense for the boot loader to try to
disable as many interrupt sources as possible, and force the OS to enable the
ones it wants.

On the other hand, Scott's points are completely valid.

-- 
Timur Tabi
Linux kernel developer at Freescale

  reply	other threads:[~2011-03-15 21:21 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 [this message]
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

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=4D7FD83E.404@freescale.com \
    --to=timur@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