Skip to content
Commit cd8a5673 authored by Paul Mackerras's avatar Paul Mackerras
Browse files

powerpc: Fix might-sleep warning in program check exception handler



On 32-bit, the exception prolog for the program check exception doesn't
enable interrupts early on.  If it is an illegal instruction exception,
we read the instruction in order to emulate certain instructions, and
the get_user of the instruction triggers a WARN_ON since interrupts
are still disabled.  This adds a local_irq_enable() to enable
interrupts before reading the instruction.

Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent c499ec24
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment