blob: 818612b784cda2a77960461d1eb0c720c29f925d [file] [log] [blame]
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * livepatch.h - s390-specific Kernel Live Patching Core
4 *
5 * Copyright (c) 2013-2015 SUSE
6 * Authors: Jiri Kosina
7 * Vojtech Pavlik
8 * Jiri Slaby
9 */
10
11#ifndef ASM_LIVEPATCH_H
12#define ASM_LIVEPATCH_H
13
14#include <asm/ptrace.h>
15
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000016static inline void klp_arch_set_pc(struct pt_regs *regs, unsigned long ip)
17{
18 regs->psw.addr = ip;
19}
20
21#endif