patch.h 328 字节
Newer Older
1 2 3 4 5 6 7 8
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (C) 2020 SiFive
 */

#ifndef _ASM_RISCV_PATCH_H
#define _ASM_RISCV_PATCH_H

9
int patch_text_nosync(void *addr, const void *insns, size_t len);
10
int patch_text(void *addr, u32 *insns, int ninsns);
11

12 13
extern int riscv_patch_in_stop_machine;

14
#endif /* _ASM_RISCV_PATCH_H */