]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/ftrace: Fix ABIv2 issues with __ftrace_make_call
authorAnton Blanchard <anton@samba.org>
Fri, 4 Apr 2014 05:54:04 +0000 (16:54 +1100)
committerAnton Blanchard <anton@samba.org>
Wed, 23 Apr 2014 00:05:35 +0000 (10:05 +1000)
commitddc9f5981ad091e9a81f52320de481212c92ae40
tree22adf64f47105e2bf6141b2d6edc5a5f53d4f41e
parent0f2f802204697bc2c036e24c6dc13bb2e95f67dc
powerpc/ftrace: Fix ABIv2 issues with __ftrace_make_call

__ftrace_make_call assumed ABIv1 TOC stack offsets, so it
broke on ABIv2.

While we are here, we can simplify the instruction modification
code. Since we always update one instruction there is no need to
probe_kernel_write and flush_icache_range, just use patch_branch.

Signed-off-by: Anton Blanchard <anton@samba.org>
arch/powerpc/kernel/ftrace.c