From: Josh Boyer <jwboyer@linux.vnet.ibm.com>
To: Scott Wood <scottwood@freescale.com>
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: disable interrput under ppc?
Date: Tue, 4 Sep 2007 13:37:43 -0500 [thread overview]
Message-ID: <20070904133743.67a7a651@weaponx.rchland.ibm.com> (raw)
In-Reply-To: <20070904182433.GD18280@ld0162-tx32.am.freescale.net>
On Tue, 4 Sep 2007 13:24:33 -0500
Scott Wood <scottwood@freescale.com> wrote:
> On Tue, Sep 04, 2007 at 10:44:14AM +0800, Wang, Baojun wrote:
> > hi, list
> >
> > How can I disable interrput like `cli' in x86?
>
> local_irq_disable().
>
> > I want the following code freeze the box but it doesn't, $MSR is
> > altered however the box is still alive, how can I freeze the box like
> > `cli' in x86? Thanks very much!
>
> Disabling interrupts doesn't freeze the machine by itself -- it depends
> on what you do afterwards, which you didn't show.
If you're using a BOOKE variant, there is a way to use the DBCR0
register to set debug wait enable or something to basically hang the
CPU until something external clears that bit. But why you would want
to do that, I have no idea.
josh
next prev parent reply other threads:[~2007-09-04 18:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200709041044.16525.wangbj@lzu.edu.cn>
2007-09-04 2:44 ` disable interrput under ppc? Wang, Baojun
2007-09-04 18:24 ` Scott Wood
2007-09-04 18:37 ` Josh Boyer [this message]
[not found] ` <388931546.05165@lzu.edu.cn>
[not found] ` <200709051000.46281.wangbj@lzu.edu.cn>
2007-09-05 2:00 ` Wang, Baojun
2007-09-05 16:31 ` 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=20070904133743.67a7a651@weaponx.rchland.ibm.com \
--to=jwboyer@linux.vnet.ibm.com \
--cc=linuxppc-embedded@ozlabs.org \
--cc=scottwood@freescale.com \
/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).