livepatch.h 461 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  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. #ifndef ASM_LIVEPATCH_H
  11. #define ASM_LIVEPATCH_H
  12. #include <asm/ptrace.h>
  13. static inline int klp_check_compiler_support(void)
  14. {
  15. return 0;
  16. }
  17. static inline void klp_arch_set_pc(struct pt_regs *regs, unsigned long ip)
  18. {
  19. regs->psw.addr = ip;
  20. }
  21. #endif