commit | 8fdddb2eae731dd6beb89f9b812e5915d1beb744 | [log] [tgz] |
---|---|---|
author | Zong Li <zong.li@sifive.com> | Tue Mar 10 00:55:44 2020 +0800 |
committer | Palmer Dabbelt <palmerdabbelt@google.com> | Thu Mar 26 09:24:55 2020 -0700 |
tree | 698aa44a6e112eb6a8fa5a695097f798c54cd2d0 | |
parent | 043cb41a85de1c0e944da61ad7a264960e22c865 [diff] |
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>