Greg Kroah-Hartman | 0b73214 | 2017-11-24 15:00:38 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Jiri Slaby | 21042d4 | 2015-03-26 10:10:17 +0100 | [diff] [blame] | 2 | /* |
| 3 | * livepatch.h - s390-specific Kernel Live Patching Core |
| 4 | * |
| 5 | * Copyright (c) 2013-2015 SUSE |
| 6 | * Authors: Jiri Kosina |
| 7 | * Vojtech Pavlik |
| 8 | * Jiri Slaby |
| 9 | */ |
| 10 | |
Jiri Slaby | 21042d4 | 2015-03-26 10:10:17 +0100 | [diff] [blame] | 11 | #ifndef ASM_LIVEPATCH_H |
| 12 | #define ASM_LIVEPATCH_H |
| 13 | |
Paul Gortmaker | d321796 | 2017-02-09 15:20:25 -0500 | [diff] [blame] | 14 | #include <asm/ptrace.h> |
Jiri Slaby | 21042d4 | 2015-03-26 10:10:17 +0100 | [diff] [blame] | 15 | |
Jiri Slaby | 21042d4 | 2015-03-26 10:10:17 +0100 | [diff] [blame] | 16 | static inline void klp_arch_set_pc(struct pt_regs *regs, unsigned long ip) |
| 17 | { |
| 18 | regs->psw.addr = ip; |
| 19 | } |
Jiri Slaby | 21042d4 | 2015-03-26 10:10:17 +0100 | [diff] [blame] | 20 | |
| 21 | #endif |