1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef __ASM_TRAPS_H 3 #define __ASM_TRAPS_H 4 5 #ifdef __KERNEL__ 6 struct pt_regs; 7 8 /* traps.c */ 9 void parisc_terminate(char *msg, struct pt_regs *regs, 10 int code, unsigned long offset) __noreturn __cold; 11 12 void die_if_kernel(char *str, struct pt_regs *regs, long err); 13 14 /* mm/fault.c */ 15 const char *trap_name(unsigned long code); 16 void do_page_fault(struct pt_regs *regs, unsigned long code, 17 unsigned long address); 18 #endif 19 20 #endif 21