From: Josh Boyer <jwboyer@linux.vnet.ibm.com>
To: Kumar Gala <galak@kernel.crashing.org>
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: Try to Disable PPC Interrupt
Date: Thu, 29 Mar 2007 14:23:11 -0500 [thread overview]
Message-ID: <1175196191.7553.140.camel@zod.rchland.ibm.com> (raw)
In-Reply-To: <38067FD3-F201-4373-A067-CFED1589D6C3@kernel.crashing.org>
On Thu, 2007-03-29 at 13:41 -0500, Kumar Gala wrote:
> > It seems the 16th bit (EE) has been set to 0, but what should I do
> > to make sure whether the external interrupt is disabled or not?
> > Thank you very much.
>
> What exactly are you asking? If MSR[EE] = 0, interrupts are disabled.
Since you're on a 405, you can actually test this from within your code
still. Use the SRS bits in the UICs to generate a spurious interrupt at
the UIC level for something that is currently enabled in the ER
register. If you still get an interrupt at the CPU with MSR[EE] == 0,
then you've found a very odd bug indeed.
But as Kumar says, if MSR[EE] == 0, external interrupts are disabled.
Of course, that doesn't mean that debug, machine check, or critical
interrupts are.
(How to use the SRS bits in the UICs is an exercise left up to the
reader.)
josh
prev parent reply other threads:[~2007-03-29 19:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-29 2:39 Try to Disable PPC Interrupt Zhou Rui
2007-03-29 2:47 ` Grant Likely
2007-03-29 4:20 ` Zhou Rui
2007-03-29 18:41 ` Kumar Gala
2007-03-29 19:23 ` Josh Boyer [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=1175196191.7553.140.camel@zod.rchland.ibm.com \
--to=jwboyer@linux.vnet.ibm.com \
--cc=galak@kernel.crashing.org \
--cc=linuxppc-embedded@ozlabs.org \
/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;
as well as URLs for NNTP newsgroup(s).