Based off b80915eb99
and compacted into a single commit so that it will fit on the uni git server
13 lines
273 B
C
13 lines
273 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (C) 2020 SiFive
|
|
*/
|
|
|
|
#ifndef _ASM_RISCV_PATCH_H
|
|
#define _ASM_RISCV_PATCH_H
|
|
|
|
int patch_text_nosync(void *addr, const void *insns, size_t len);
|
|
int patch_text(void *addr, u32 insn);
|
|
|
|
#endif /* _ASM_RISCV_PATCH_H */
|