Merge tag 'devicetree-for-5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/robh...
[linux-2.6-block.git] / arch / x86 / include / asm / livepatch.h
CommitLineData
1ccea77e 1/* SPDX-License-Identifier: GPL-2.0-or-later */
b700e7f0
SJ
2/*
3 * livepatch.h - x86-specific Kernel Live Patching Core
4 *
5 * Copyright (C) 2014 Seth Jennings <sjenning@redhat.com>
6 * Copyright (C) 2014 SUSE
b700e7f0
SJ
7 */
8
9#ifndef _ASM_X86_LIVEPATCH_H
10#define _ASM_X86_LIVEPATCH_H
11
5d4351ba 12#include <asm/setup.h>
b5bfc517 13#include <linux/ftrace.h>
b700e7f0 14
b5bfc517
LB
15static inline void klp_arch_set_pc(struct pt_regs *regs, unsigned long ip)
16{
17 regs->ip = ip;
18}
b700e7f0
SJ
19
20#endif /* _ASM_X86_LIVEPATCH_H */