system_misc.h 880 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Based on arch/arm/include/asm/system_misc.h
  4. *
  5. * Copyright (C) 2012 ARM Ltd.
  6. */
  7. #ifndef __ASM_SYSTEM_MISC_H
  8. #define __ASM_SYSTEM_MISC_H
  9. #ifndef __ASSEMBLY__
  10. #include <linux/compiler.h>
  11. #include <linux/linkage.h>
  12. #include <linux/irqflags.h>
  13. #include <linux/signal.h>
  14. #include <linux/ratelimit.h>
  15. #include <linux/reboot.h>
  16. struct pt_regs;
  17. void die(const char *msg, struct pt_regs *regs, long err);
  18. struct siginfo;
  19. void arm64_notify_die(const char *str, struct pt_regs *regs,
  20. int signo, int sicode, unsigned long far,
  21. unsigned long err);
  22. void hook_debug_fault_code(int nr, int (*fn)(unsigned long, unsigned long,
  23. struct pt_regs *),
  24. int sig, int code, const char *name);
  25. struct mm_struct;
  26. extern void __show_regs(struct pt_regs *);
  27. #endif /* __ASSEMBLY__ */
  28. #endif /* __ASM_SYSTEM_MISC_H */