xref: /linux/arch/parisc/include/asm/traps.h (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
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 unsigned long parisc_acctyp(unsigned long code, unsigned int inst);
18 const char *trap_name(unsigned long code);
19 void do_page_fault(struct pt_regs *regs, unsigned long code,
20 		unsigned long address);
21 int handle_nadtlb_fault(struct pt_regs *regs);
22 #endif
23 
24 #endif
25