mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-16 08:06:44 +07:00
56e33afd77
The only purpose of klp_check_compiler_support() is to make sure that we are not using ftrace on x86 via mcount (because that's executed only after prologue has already happened, and that's too late for livepatching purposes). Now that mcount is not supported by ftrace any more, there is no need for klp_check_compiler_support() either. Link: http://lkml.kernel.org/r/nycvar.YFH.7.76.1905102346100.17054@cbobk.fhfr.pm Reported-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
22 lines
394 B
C
22 lines
394 B
C
/* 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
|
|
|
|
#include <asm/ptrace.h>
|
|
|
|
static inline void klp_arch_set_pc(struct pt_regs *regs, unsigned long ip)
|
|
{
|
|
regs->psw.addr = ip;
|
|
}
|
|
|
|
#endif
|