Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Based on arch/arm/include/asm/system_misc.h
0004  *
0005  * Copyright (C) 2012 ARM Ltd.
0006  */
0007 #ifndef __ASM_SYSTEM_MISC_H
0008 #define __ASM_SYSTEM_MISC_H
0009 
0010 #ifndef __ASSEMBLY__
0011 
0012 #include <linux/compiler.h>
0013 #include <linux/linkage.h>
0014 #include <linux/irqflags.h>
0015 #include <linux/signal.h>
0016 #include <linux/ratelimit.h>
0017 #include <linux/reboot.h>
0018 
0019 struct pt_regs;
0020 
0021 void die(const char *msg, struct pt_regs *regs, int err);
0022 
0023 struct siginfo;
0024 void arm64_notify_die(const char *str, struct pt_regs *regs,
0025               int signo, int sicode, unsigned long far,
0026               unsigned long err);
0027 
0028 void hook_debug_fault_code(int nr, int (*fn)(unsigned long, unsigned long,
0029                          struct pt_regs *),
0030                int sig, int code, const char *name);
0031 
0032 struct mm_struct;
0033 extern void __show_regs(struct pt_regs *);
0034 
0035 #endif  /* __ASSEMBLY__ */
0036 
0037 #endif  /* __ASM_SYSTEM_MISC_H */