Files
2024-06-17 20:18:01 +08:00

17 lines
316 B
C

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_LIVEPATCH_H
#define _ASM_LIVEPATCH_H
#include <asm/inst.h>
static inline int klp_check_compiler_support(void)
{
return 0;
}
static inline void klp_arch_set_pc(struct pt_regs *regs, unsigned long ip)
{
regs->csr_era = ip;
}
#endif /* _ASM_LIVEPATCH_H */