1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef _ASM_LIVEPATCH_H 3#define _ASM_LIVEPATCH_H 4 5#include <asm/inst.h> 6 7static inline void klp_arch_set_pc(struct pt_regs *regs, unsigned long ip) 8{ 9 regs->csr_era = ip; 10} 11#endif /* _ASM_LIVEPATCH_H */ 12