1
linux/arch/powerpc
Kumar Gala 04903a30a3 [POWERPC] Enable interrupts if we are doing fp math emulation
Anytime we are emulating an instruction we are going to be doing some form of
get_user() to get the instruction image to decode.  Since get_user() might
sleep we need to ensure we have interrupts enabled or we might see something
like:

Debug: sleeping function called from invalid context at arch/powerpc/kernel/traps.c:697
in_atomic():0, irqs_disabled():1
Call Trace:
[D6023EB0] [C0007F84] show_stack+0x58/0x174 (unreliable)
[D6023EE0] [C0022C34] __might_sleep+0xbc/0xd0
[D6023EF0] [C000D158] program_check_exception+0x1d8/0x4fc
[D6023F40] [C000E744] ret_from_except_full+0x0/0x4c
--- Exception: 700 at 0x102a7100
    LR = 0xdb9ef04

However, we want to ensure that interrupts are disabled when handling a trap
exception that might be used for a kernel breakpoint.  This is why ProgramCheck
is marked as EXC_XFER_STD instead of EXC_XFER_EE.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2007-02-07 01:13:32 -06:00
..
boot [POWERPC] Celleb: basic support 2007-02-07 14:03:21 +11:00
configs [POWERPC] pasemi: defconfig 2007-02-07 14:03:22 +11:00
kernel [POWERPC] Enable interrupts if we are doing fp math emulation 2007-02-07 01:13:32 -06:00
lib [POWERPC] Added kprobes support to ppc32 2007-02-06 22:55:19 -06:00
math-emu [POWERPC] ppc math-emu needs -fno-builtin-fabs for math.c and fabs.c 2006-09-26 15:24:35 +10:00
mm [POWERPC] Add "is_power_of_2" checking to log2.h. 2007-02-07 14:03:19 +11:00
oprofile [POWERPC] Oprofile cleanup 2007-02-07 14:03:19 +11:00
platforms [POWERPC] Make pSeries use the H_BULK_REMOVE hypervisor call 2007-02-07 14:03:23 +11:00
sysdev [POWERPC] Assign all PCI busses on G3 Blue & White 2007-02-07 14:03:22 +11:00
xmon [POWERPC] Generic BUG for powerpc 2006-12-11 16:35:07 +11:00
.gitignore [POWERPC] Add files build to .gitignore 2006-12-04 20:41:29 +11:00
Kconfig [POWERPC] Added kprobes support to ppc32 2007-02-06 22:55:19 -06:00
Kconfig.debug [POWERPC] pasemi: UART udbg support 2007-02-07 14:03:22 +11:00
Makefile [POWERPC] Create a "wrapper" script and use it in arch/powerpc/boot 2006-09-28 14:30:02 +10:00