xref: /linux/arch/parisc/include/asm/traps.h (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
2deae26bfSKyle McMartin #ifndef __ASM_TRAPS_H
3deae26bfSKyle McMartin #define __ASM_TRAPS_H
4deae26bfSKyle McMartin 
55b00ca0bSHelge Deller #define PARISC_ITLB_TRAP	6 /* defined by architecture. Do not change. */
65b00ca0bSHelge Deller 
75b00ca0bSHelge Deller #if !defined(__ASSEMBLY__)
8deae26bfSKyle McMartin struct pt_regs;
9deae26bfSKyle McMartin 
10deae26bfSKyle McMartin /* traps.c */
11deae26bfSKyle McMartin void parisc_terminate(char *msg, struct pt_regs *regs,
12a60ac4b5SHelge Deller 		int code, unsigned long offset) __noreturn __cold;
13deae26bfSKyle McMartin 
1458f1c654SHelge Deller void die_if_kernel(char *str, struct pt_regs *regs, long err);
1558f1c654SHelge Deller 
16deae26bfSKyle McMartin /* mm/fault.c */
17a348eab3SHelge Deller unsigned long parisc_acctyp(unsigned long code, unsigned int inst);
180a862485SHelge Deller const char *trap_name(unsigned long code);
19deae26bfSKyle McMartin void do_page_fault(struct pt_regs *regs, unsigned long code,
20deae26bfSKyle McMartin 		unsigned long address);
21*e00b0a2aSJohn David Anglin int handle_nadtlb_fault(struct pt_regs *regs);
22deae26bfSKyle McMartin #endif
23deae26bfSKyle McMartin 
24deae26bfSKyle McMartin #endif
25