aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/lib/testsetbit.S
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2011-11-23 11:28:25 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-11-26 21:58:53 +0000
commitc36ef4b1762302a493c6cb754073bded084700e2 (patch)
tree2ea1bf8bb2ee7d972c09e0b29cc178c4c930ab4a /arch/arm/lib/testsetbit.S
parentc89cefed35c8c5f53f36757f8a6768e390394ee3 (diff)
downloadlinux-linaro-stable-c36ef4b1762302a493c6cb754073bded084700e2.tar.gz
ARM: 7171/1: unwind: add unwind directives to bitops assembly macros
The bitops functions (e.g. _test_and_set_bit) on ARM do not have unwind annotations and therefore the kernel cannot backtrace out of them on a fatal error (for example, NULL pointer dereference). This patch annotates the bitops assembly macros with UNWIND annotations so that we can produce a meaningful backtrace on error. Callers of the macros are modified to pass their function name as a macro parameter, enforcing that the macros are used as standalone function implementations. Acked-by: Dave Martin <dave.martin@linaro.org> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/lib/testsetbit.S')
-rw-r--r--arch/arm/lib/testsetbit.S4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm/lib/testsetbit.S b/arch/arm/lib/testsetbit.S
index 1c98cc2185bb..8d1b2fe9e487 100644
--- a/arch/arm/lib/testsetbit.S
+++ b/arch/arm/lib/testsetbit.S
@@ -12,6 +12,4 @@
#include "bitops.h"
.text
-ENTRY(_test_and_set_bit)
- testop orreq, streq
-ENDPROC(_test_and_set_bit)
+testop _test_and_set_bit, orreq, streq