xref: /openbmc/linux/arch/riscv/include/asm/patch.h (revision 2a8db5ec)
1043cb41aSZong Li /* SPDX-License-Identifier: GPL-2.0-only */
2043cb41aSZong Li /*
3043cb41aSZong Li  * Copyright (C) 2020 SiFive
4043cb41aSZong Li  */
5043cb41aSZong Li 
6043cb41aSZong Li #ifndef _ASM_RISCV_PATCH_H
7043cb41aSZong Li #define _ASM_RISCV_PATCH_H
8043cb41aSZong Li 
9b80b3d58SZong Li int patch_text_nosync(void *addr, const void *insns, size_t len);
105e57fb7bSPu Lehui int patch_text(void *addr, u32 *insns, int ninsns);
11043cb41aSZong Li 
12*2a8db5ecSConor Dooley extern int riscv_patch_in_stop_machine;
13*2a8db5ecSConor Dooley 
14043cb41aSZong Li #endif /* _ASM_RISCV_PATCH_H */
15