summaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2009-01-28 00:20:00 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2009-01-28 11:19:53 +0100
commitecbab71c521819716e204659dfe72fc39d00630a (patch)
tree82b8913f99c4a019ac9f2e0271f323b28f6bcca4 /arch/arm/kernel
parent[ARM] msm: fix build errors (diff)
downloadlinux-ecbab71c521819716e204659dfe72fc39d00630a.tar.xz
linux-ecbab71c521819716e204659dfe72fc39d00630a.zip
[ARM] call undefined instruction exception handler with irqs enabled
Aaro says: > With spinlock debugs enabled I get might_sleep() warnings when using > ptrace. tracked down to a missing enable_irq before calling do_undefinstr(). Reported-by: Aaro Koskinen <aaro.koskinen@nokia.com> Tested-by: Aaro Koskinen <aaro.koskinen@nokia.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel')
-rw-r--r--arch/arm/kernel/entry-armv.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/kernel/entry-armv.S b/arch/arm/kernel/entry-armv.S
index 77b047475539..85040cfeb5e5 100644
--- a/arch/arm/kernel/entry-armv.S
+++ b/arch/arm/kernel/entry-armv.S
@@ -650,6 +650,7 @@ ENTRY(fp_enter)
no_fp: mov pc, lr
__und_usr_unknown:
+ enable_irq
mov r0, sp
adr lr, ret_from_exception
b do_undefinstr