Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / arch / arm64 / include / asm / text-patching.h
blob587bdb91ab7a6432ac162ff535bb6daf0462a47f
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 #ifndef __ASM_PATCHING_H
3 #define __ASM_PATCHING_H
5 #include <linux/types.h>
7 int aarch64_insn_read(void *addr, u32 *insnp);
8 int aarch64_insn_write(void *addr, u32 insn);
10 int aarch64_insn_write_literal_u64(void *addr, u64 val);
11 void *aarch64_insn_set(void *dst, u32 insn, size_t len);
12 void *aarch64_insn_copy(void *dst, void *src, size_t len);
14 int aarch64_insn_patch_text_nosync(void *addr, u32 insn);
15 int aarch64_insn_patch_text(void *addrs[], u32 insns[], int cnt);
17 #endif /* __ASM_PATCHING_H */