xref: /linux/arch/riscv/include/asm/patch.h (revision 1e0731c05c985deb68a97fa44c1adcd3305dda90)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Copyright (C) 2020 SiFive
4  */
5 
6 #ifndef _ASM_RISCV_PATCH_H
7 #define _ASM_RISCV_PATCH_H
8 
9 int patch_text_nosync(void *addr, const void *insns, size_t len);
10 int patch_text_set_nosync(void *addr, u8 c, size_t len);
11 int patch_text(void *addr, u32 *insns, int ninsns);
12 
13 extern int riscv_patch_in_stop_machine;
14 
15 #endif /* _ASM_RISCV_PATCH_H */
16