]> git.itanic.dy.fi Git - linux-stable/commit
ARM: 9062/1: kprobes: rewrite test-arm.c in UAL
authorNick Desaulniers <ndesaulniers@google.com>
Tue, 16 Feb 2021 19:16:13 +0000 (20:16 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Thu, 25 Mar 2021 10:27:40 +0000 (10:27 +0000)
commit7c182ebab9f338d07571c7f86d4d64c385ad1b9c
treeb19d88fc2e524b846453c726e6c4aa34aab9f828
parente9d54be9ad5ee2eed3056d8901ac4b3b115d95a5
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>
arch/arm/probes/kprobes/test-arm.c
arch/arm/probes/kprobes/test-core.h