livepatch.h 683 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * livepatch.h - s390-specific Kernel Live Patching Core
  3. *
  4. * Copyright (c) 2013-2015 SUSE
  5. * Authors: Jiri Kosina
  6. * Vojtech Pavlik
  7. * Jiri Slaby
  8. */
  9. /*
  10. * This program is free software; you can redistribute it and/or modify it
  11. * under the terms of the GNU General Public License as published by the Free
  12. * Software Foundation; either version 2 of the License, or (at your option)
  13. * any later version.
  14. */
  15. #ifndef ASM_LIVEPATCH_H
  16. #define ASM_LIVEPATCH_H
  17. #include <linux/module.h>
  18. static inline int klp_check_compiler_support(void)
  19. {
  20. return 0;
  21. }
  22. static inline void klp_arch_set_pc(struct pt_regs *regs, unsigned long ip)
  23. {
  24. regs->psw.addr = ip;
  25. }
  26. #endif