Ard Biesheuvel dd12e97f3c ARM: kprobes: treat R7 as the frame pointer register in Thumb2 builds
Thumb2 code uses R7 as the frame pointer rather than R11, because the
opcodes to access it are generally shorter.

This means that there are cases where we cannot simply add it to the
clobber list of an asm() block, but need to preserve/restore it
explicitly, or the compiler may complain in some cases (e.g., Clang
builds with ftrace enabled).

Since R11 is not special in that case, clobber it instead, and use it to
preserve/restore the value of R7.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org>
2022-02-09 09:13:59 +01:00
..
2021-11-13 10:01:10 -08:00
2021-11-10 11:22:03 -08:00
2021-11-08 09:15:45 -08:00
2021-11-10 11:22:03 -08:00
2021-11-11 14:22:05 -08:00
2021-11-14 11:11:51 -08:00
2021-11-10 11:22:03 -08:00
2021-11-14 11:37:49 -08:00
2021-11-01 20:05:19 -07:00