xref: /linux/arch/parisc/include/asm/traps.h (revision b7019ac550eb3916f34d79db583e9b7ea2524afa)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ASM_TRAPS_H
3 #define __ASM_TRAPS_H
4 
5 #define PARISC_ITLB_TRAP	6 /* defined by architecture. Do not change. */
6 
7 #if !defined(__ASSEMBLY__)
8 struct pt_regs;
9 
10 /* traps.c */
11 void parisc_terminate(char *msg, struct pt_regs *regs,
12 		int code, unsigned long offset) __noreturn __cold;
13 
14 void die_if_kernel(char *str, struct pt_regs *regs, long err);
15 
16 /* mm/fault.c */
17 const char *trap_name(unsigned long code);
18 void do_page_fault(struct pt_regs *regs, unsigned long code,
19 		unsigned long address);
20 #endif
21 
22 #endif
23