linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH/RFC] Change the program check exception from EXC_XFER_STD to EXC_XFER_EE.
@ 2006-12-06 21:50 Scott Wood
  2006-12-06 21:59 ` Kumar Gala
  2006-12-06 22:09 ` Paul Mackerras
  0 siblings, 2 replies; 8+ messages in thread
From: Scott Wood @ 2006-12-06 21:50 UTC (permalink / raw)
  To: linuxppc-dev

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

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-01-26 19:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-06 21:50 [PATCH/RFC] Change the program check exception from EXC_XFER_STD to EXC_XFER_EE Scott Wood
2006-12-06 21:59 ` Kumar Gala
2006-12-06 22:09 ` Paul Mackerras
2006-12-06 22:15   ` Kumar Gala
2006-12-08  4:26     ` Paul Mackerras
2006-12-08  8:07       ` Kumar Gala
2007-01-26  6:48         ` Kumar Gala
2007-01-26 19:49         ` Kumar Gala

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).