]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix might-sleep warning in program check exception handler
authorPaul Mackerras <paulus@samba.org>
Fri, 3 Mar 2006 06:11:40 +0000 (17:11 +1100)
committerPaul Mackerras <paulus@samba.org>
Fri, 3 Mar 2006 06:11:40 +0000 (17:11 +1100)
commit94593be183f59a784151b2211d802359d7d45dc6
treef8bc6f147866659a2fc6ba820df16e4738922971
parent80aa0e85f32cfece45dc153867548152a1a8074f
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: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/traps.c