18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0+ */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * livepatch.h - s390-specific Kernel Live Patching Core 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (c) 2013-2015 SUSE 68c2ecf20Sopenharmony_ci * Authors: Jiri Kosina 78c2ecf20Sopenharmony_ci * Vojtech Pavlik 88c2ecf20Sopenharmony_ci * Jiri Slaby 98c2ecf20Sopenharmony_ci */ 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#ifndef ASM_LIVEPATCH_H 128c2ecf20Sopenharmony_ci#define ASM_LIVEPATCH_H 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci#include <asm/ptrace.h> 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_cistatic inline void klp_arch_set_pc(struct pt_regs *regs, unsigned long ip) 178c2ecf20Sopenharmony_ci{ 188c2ecf20Sopenharmony_ci regs->psw.addr = ip; 198c2ecf20Sopenharmony_ci} 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci#endif 22