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