xref: /linux/arch/parisc/include/asm/traps.h (revision 0a862485f42af7df530b0b5f0e5ba8ffbb3a4a12)
1deae26bfSKyle McMartin #ifndef __ASM_TRAPS_H
2deae26bfSKyle McMartin #define __ASM_TRAPS_H
3deae26bfSKyle McMartin 
4deae26bfSKyle McMartin #ifdef __KERNEL__
5deae26bfSKyle McMartin struct pt_regs;
6deae26bfSKyle McMartin 
7deae26bfSKyle McMartin /* traps.c */
8deae26bfSKyle McMartin void parisc_terminate(char *msg, struct pt_regs *regs,
9a60ac4b5SHelge Deller 		int code, unsigned long offset) __noreturn __cold;
10deae26bfSKyle McMartin 
1158f1c654SHelge Deller void die_if_kernel(char *str, struct pt_regs *regs, long err);
1258f1c654SHelge Deller 
13deae26bfSKyle McMartin /* mm/fault.c */
14*0a862485SHelge Deller const char *trap_name(unsigned long code);
15deae26bfSKyle McMartin void do_page_fault(struct pt_regs *regs, unsigned long code,
16deae26bfSKyle McMartin 		unsigned long address);
17deae26bfSKyle McMartin #endif
18deae26bfSKyle McMartin 
19deae26bfSKyle McMartin #endif
20