1
2
3
4
5
6
7#ifndef __ASM_SYSTEM_MISC_H
8#define __ASM_SYSTEM_MISC_H
9
10#ifndef __ASSEMBLY__
11
12#include <linux/compiler.h>
13#include <linux/linkage.h>
14#include <linux/irqflags.h>
15#include <linux/signal.h>
16#include <linux/ratelimit.h>
17#include <linux/reboot.h>
18
19struct pt_regs;
20
21void die(const char *msg, struct pt_regs *regs, int err);
22
23struct siginfo;
24void arm64_notify_die(const char *str, struct pt_regs *regs,
25 int signo, int sicode, unsigned long far,
26 int err);
27
28void hook_debug_fault_code(int nr, int (*fn)(unsigned long, unsigned int,
29 struct pt_regs *),
30 int sig, int code, const char *name);
31
32struct mm_struct;
33extern void __show_regs(struct pt_regs *);
34
35extern void (*arm_pm_restart)(enum reboot_mode reboot_mode, const char *cmd);
36
37#endif
38
39#endif
40