riscv: patch code by fixmap mapping
authorZong Li <zong.li@sifive.com>
Mon, 9 Mar 2020 16:55:44 +0000 (00:55 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Thu, 26 Mar 2020 16:24:55 +0000 (09:24 -0700)
commit8fdddb2eae731dd6beb89f9b812e5915d1beb744
tree698aa44a6e112eb6a8fa5a695097f798c54cd2d0
parent043cb41a85de1c0e944da61ad7a264960e22c865
riscv: patch code by fixmap mapping

On strict kernel memory permission, the ftrace have to change the
permission of text for dynamic patching the intructions. Use
riscv_patch_text_nosync() to patch code instead of probe_kernel_write.

Signed-off-by: Zong Li <zong.li@sifive.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/kernel/ftrace.c