xref: /openbmc/linux/arch/parisc/include/asm/traps.h (revision c4a11bf4)
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 #endif
22 
23 #endif
24