xref: /openbmc/linux/arch/parisc/include/asm/traps.h (revision e983940270f10fe8551baf0098be76ea478294a3)
1 #ifndef __ASM_TRAPS_H
2 #define __ASM_TRAPS_H
3 
4 #ifdef __KERNEL__
5 struct pt_regs;
6 
7 /* traps.c */
8 void parisc_terminate(char *msg, struct pt_regs *regs,
9 		int code, unsigned long offset) __noreturn __cold;
10 
11 void die_if_kernel(char *str, struct pt_regs *regs, long err);
12 
13 /* mm/fault.c */
14 const char *trap_name(unsigned long code);
15 void do_page_fault(struct pt_regs *regs, unsigned long code,
16 		unsigned long address);
17 #endif
18 
19 #endif
20