diff options
author | Pu Lehui <pulehui@huawei.com> | 2023-02-15 16:52:02 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2023-02-17 23:45:30 +0300 |
commit | 5e57fb7b0bd3ea7e994ef1c0ab3562d1fe0676b2 (patch) | |
tree | 150dfe4d1f95aec03c11f35144a27cb39bf117e5 /arch/riscv/include/asm/patch.h | |
parent | 181127fb76e62d06ab17a75fd610129688612343 (diff) | |
download | linux-5e57fb7b0bd3ea7e994ef1c0ab3562d1fe0676b2.tar.xz |
riscv: Extend patch_text for multiple instructions
Extend patch_text for multiple instructions. This is the preparaiton for
multiple instructions text patching in riscv BPF trampoline, and may be
useful for other scenario.
Signed-off-by: Pu Lehui <pulehui@huawei.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Tested-by: Björn Töpel <bjorn@rivosinc.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Acked-by: Björn Töpel <bjorn@rivosinc.com>
Link: https://lore.kernel.org/bpf/20230215135205.1411105-2-pulehui@huaweicloud.com
Diffstat (limited to 'arch/riscv/include/asm/patch.h')
-rw-r--r-- | arch/riscv/include/asm/patch.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/include/asm/patch.h b/arch/riscv/include/asm/patch.h index 9a7d7346001e..f433121774c0 100644 --- a/arch/riscv/include/asm/patch.h +++ b/arch/riscv/include/asm/patch.h @@ -7,6 +7,6 @@ #define _ASM_RISCV_PATCH_H int patch_text_nosync(void *addr, const void *insns, size_t len); -int patch_text(void *addr, u32 insn); +int patch_text(void *addr, u32 *insns, int ninsns); #endif /* _ASM_RISCV_PATCH_H */ |