[PATCH/RFC] Change the program check exception from EXC_XFER_STD to EXC_XFER_EE.

Scott Wood scottwood at freescale.com
Thu Dec 7 08:50:42 EST 2006


This patch causes interrupts to be enabled in program_check_exception()
if they were enabled in the faulting context.  This is required because
do_mathemu() calls get_user(), which can sleep, and thus triggers an
assertion if called with interrupts disabled.

Signed-off-by: Scott Wood <scottwood at freescale.com>
---
Is there any reason why ProgramCheck needs to be EXC_XFER_STD?  Has
nobody ever used math emulation with CONFIG_DEBUG_SPINLOCK_SLEEP before?

 arch/powerpc/kernel/head_32.S |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/kernel/head_32.S b/arch/powerpc/kernel/head_32.S
index 99507a8..4d58552 100644
--- a/arch/powerpc/kernel/head_32.S
+++ b/arch/powerpc/kernel/head_32.S
@@ -432,7 +432,7 @@ Alignment:
 	EXC_XFER_EE(0x600, alignment_exception)
 
 /* Program check exception */
-	EXCEPTION(0x700, ProgramCheck, program_check_exception, EXC_XFER_STD)
+	EXCEPTION(0x700, ProgramCheck, program_check_exception, EXC_XFER_EE)
 
 /* Floating-point unavailable */
 	. = 0x800
-- 
1.4.2.3




More information about the Linuxppc-dev mailing list