]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] call undefined instruction exception handler with irqs enabled
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Tue, 27 Jan 2009 23:20:00 +0000 (23:20 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 28 Jan 2009 10:19:53 +0000 (10:19 +0000)
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>
arch/arm/kernel/entry-armv.S

index 77b047475539b9683ef9671caf738adf8ad22a9a..85040cfeb5e515d303afaa7e6025b16e604cda84 100644 (file)
@@ -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