1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 2deae26bfSKyle McMartin #ifndef __ASM_TRAPS_H 3deae26bfSKyle McMartin #define __ASM_TRAPS_H 4deae26bfSKyle McMartin 5*5b00ca0bSHelge Deller #define PARISC_ITLB_TRAP 6 /* defined by architecture. Do not change. */ 6*5b00ca0bSHelge Deller 7*5b00ca0bSHelge 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 */ 170a862485SHelge Deller const char *trap_name(unsigned long code); 18deae26bfSKyle McMartin void do_page_fault(struct pt_regs *regs, unsigned long code, 19deae26bfSKyle McMartin unsigned long address); 20deae26bfSKyle McMartin #endif 21deae26bfSKyle McMartin 22deae26bfSKyle McMartin #endif 23