Brooklyn/arch/s390/include/asm/livepatch.h

25 lines
474 B
C
Raw Normal View History

2021-05-26 19:09:36 +00:00
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* livepatch.h - s390-specific Kernel Live Patching Core
*
* Copyright (c) 2013-2015 SUSE
* Authors: Jiri Kosina
* Vojtech Pavlik
* Jiri Slaby
*/
#ifndef ASM_LIVEPATCH_H
#define ASM_LIVEPATCH_H
2021-10-02 16:09:28 +00:00
#include <linux/ftrace.h>
2021-05-26 19:09:36 +00:00
#include <asm/ptrace.h>
2021-10-02 16:09:28 +00:00
static inline void klp_arch_set_pc(struct ftrace_regs *fregs, unsigned long ip)
2021-05-26 19:09:36 +00:00
{
2021-10-02 16:09:28 +00:00
struct pt_regs *regs = ftrace_get_regs(fregs);
2021-05-26 19:09:36 +00:00
regs->psw.addr = ip;
}
#endif