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
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