2019-05-19 07:51:43 -06:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2014-12-16 10: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 05:25:23 -06:00
|
|
|
#include <asm/setup.h>
|
2014-12-18 23:11:17 -07:00
|
|
|
#include <linux/ftrace.h>
|
2014-12-16 10:58:19 -07:00
|
|
|
|
2014-12-18 23:11:17 -07:00
|
|
|
static inline void klp_arch_set_pc(struct pt_regs *regs, unsigned long ip)
|
|
|
|
{
|
|
|
|
regs->ip = ip;
|
|
|
|
}
|
2014-12-16 10:58:19 -07:00
|
|
|
|
|
|
|
#endif /* _ASM_X86_LIVEPATCH_H */
|