mirror of
https://github.com/torvalds/linux.git
synced 2024-11-13 23:51:39 +00:00
c36ef4b176
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>
16 lines
413 B
ArmAsm
16 lines
413 B
ArmAsm
/*
|
|
* linux/arch/arm/lib/testsetbit.S
|
|
*
|
|
* Copyright (C) 1995-1996 Russell King
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
#include <linux/linkage.h>
|
|
#include <asm/assembler.h>
|
|
#include "bitops.h"
|
|
.text
|
|
|
|
testop _test_and_set_bit, orreq, streq
|