drm/panthor: Don't add write fences to the shared BOs
[drm/drm-misc.git] / arch / riscv / include / asm / patch.h
blob7228e266b9a1aeebd302cb6b315af13a6ba47f20
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Copyright (C) 2020 SiFive
4 */
6 #ifndef _ASM_RISCV_PATCH_H
7 #define _ASM_RISCV_PATCH_H
9 int patch_insn_write(void *addr, const void *insn, size_t len);
10 int patch_text_nosync(void *addr, const void *insns, size_t len);
11 int patch_text_set_nosync(void *addr, u8 c, size_t len);
12 int patch_text(void *addr, u32 *insns, size_t len);
14 extern int riscv_patch_in_stop_machine;
16 #endif /* _ASM_RISCV_PATCH_H */