summaryrefslogtreecommitdiffstats
path: root/arch/arm/probes/kprobes/test-core.h
diff options
context:
space:
mode:
authorNick Desaulniers <ndesaulniers@google.com>2021-02-16 20:16:13 +0100
committerRussell King <rmk+kernel@armlinux.org.uk>2021-03-25 10:27:40 +0000
commit7c182ebab9f338d07571c7f86d4d64c385ad1b9c (patch)
treeb19d88fc2e524b846453c726e6c4aa34aab9f828 /arch/arm/probes/kprobes/test-core.h
parente9d54be9ad5ee2eed3056d8901ac4b3b115d95a5 (diff)
downloadlinux-7c182ebab9f338d07571c7f86d4d64c385ad1b9c.tar.bz2
ARM: 9062/1: kprobes: rewrite test-arm.c in UAL
Clang's integrated assembler only accepts UAL syntax, rewrite the instructions that were changed by RVCTv2.1. The document "Assembly language changes after RVCTv2.1" was very helpful. .syntax unified directive is added, since -masm-syntax-unified is unreliable for older but supported versions of GCC. See also: commit fe09d9c641f2 ("ARM: 8852/1: uaccess: use unified assembler language syntax") Link: https://developer.arm.com/documentation/dui0473/c/writing-arm-assembly-language/assembly-language-changes-after-rvctv2-1 Link: https://github.com/ClangBuiltLinux/linux/issues/1271 Reported-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Ard Biesheuvel <ardb@kernel.org> Reviewed-by: Nathan Chancellor <nathan@kernel.org> Signed-off-by: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/probes/kprobes/test-core.h')
-rw-r--r--arch/arm/probes/kprobes/test-core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/probes/kprobes/test-core.h b/arch/arm/probes/kprobes/test-core.h
index 19a5b2add41e..f1d5583e7bbb 100644
--- a/arch/arm/probes/kprobes/test-core.h
+++ b/arch/arm/probes/kprobes/test-core.h
@@ -108,6 +108,7 @@ struct test_arg_end {
#define TESTCASE_START(title) \
__asm__ __volatile__ ( \
+ ".syntax unified \n\t" \
"bl __kprobes_test_case_start \n\t" \
".pushsection .rodata \n\t" \
"10: \n\t" \