2019-05-19 20:51:43 +07:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2014-12-17 00:58:19 +07:00
|
|
|
/*
|
|
|
|
* livepatch.h - x86-specific Kernel Live Patching Core
|
|
|
|
*
|
|
|
|
* Copyright (C) 2014 Seth Jennings <sjenning@redhat.com>
|
|
|
|
* Copyright (C) 2014 SUSE
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _ASM_X86_LIVEPATCH_H
|
|
|
|
#define _ASM_X86_LIVEPATCH_H
|
|
|
|
|
2015-04-27 18:25:23 +07:00
|
|
|
#include <asm/setup.h>
|
2014-12-19 13:11:17 +07:00
|
|
|
#include <linux/ftrace.h>
|
2014-12-17 00:58:19 +07:00
|
|
|
|
2014-12-19 13:11:17 +07:00
|
|
|
static inline void klp_arch_set_pc(struct pt_regs *regs, unsigned long ip)
|
|
|
|
{
|
|
|
|
regs->ip = ip;
|
|
|
|
}
|
2014-12-17 00:58:19 +07:00
|
|
|
|
|
|
|
#endif /* _ASM_X86_LIVEPATCH_H */
|