Re: disable interrput under ppc?

2 messages, 2 authors, 2007-09-04 · open the first message on its own page

Re: disable interrput under ppc?

From: Scott Wood <hidden>
Date: 2007-09-04 18:24:44

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.

-Scott

Re: disable interrput under ppc?

From: Josh Boyer <hidden>
Date: 2007-09-04 18:37:54

On Tue, 4 Sep 2007 13:24:33 -0500
Scott Wood [off-list ref] wrote:
On Tue, Sep 04, 2007 at 10:44:14AM +0800, Wang, Baojun wrote:
quoted
hi, list

  How can I disable interrput like `cli' in x86?
local_irq_disable().
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help