]>
Commit | Line | Data |
---|---|---|
caab277b | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
10b663ae CM |
2 | /* |
3 | * Based on arch/arm/include/asm/system_misc.h | |
4 | * | |
5 | * Copyright (C) 2012 ARM Ltd. | |
10b663ae CM |
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> | |
86dca36e VM |
15 | #include <linux/signal.h> |
16 | #include <linux/ratelimit.h> | |
ff701306 | 17 | #include <linux/reboot.h> |
10b663ae CM |
18 | |
19 | struct pt_regs; | |
20 | ||
21 | void die(const char *msg, struct pt_regs *regs, int err); | |
22 | ||
23 | struct siginfo; | |
24 | void arm64_notify_die(const char *str, struct pt_regs *regs, | |
6fa998e8 EB |
25 | int signo, int sicode, void __user *addr, |
26 | int err); | |
10b663ae CM |
27 | |
28 | void 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 | ||
32 | struct mm_struct; | |
10b663ae CM |
33 | extern void __show_regs(struct pt_regs *); |
34 | ||
ff701306 | 35 | extern void (*arm_pm_restart)(enum reboot_mode reboot_mode, const char *cmd); |
10b663ae | 36 | |
10b663ae CM |
37 | #endif /* __ASSEMBLY__ */ |
38 | ||
39 | #endif /* __ASM_SYSTEM_MISC_H */ |