Skip to content

Commit

Permalink
[ARM] call undefined instruction exception handler with irqs enabled
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Russell King authored and Russell King committed Jan 28, 2009
1 parent 9ce8bb5 commit ecbab71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/kernel/entry-armv.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ecbab71

Please sign in to comment.