2005-04-17 05:20:36 +07:00
|
|
|
#ifndef __ASM_TRAPS_H
|
|
|
|
#define __ASM_TRAPS_H
|
|
|
|
|
|
|
|
#ifdef __KERNEL__
|
|
|
|
struct pt_regs;
|
|
|
|
|
|
|
|
/* traps.c */
|
|
|
|
void parisc_terminate(char *msg, struct pt_regs *regs,
|
2013-10-10 04:12:46 +07:00
|
|
|
int code, unsigned long offset) __noreturn __cold;
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2016-06-04 22:38:09 +07:00
|
|
|
void die_if_kernel(char *str, struct pt_regs *regs, long err);
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
/* mm/fault.c */
|
2016-10-12 01:49:42 +07:00
|
|
|
const char *trap_name(unsigned long code);
|
2005-04-17 05:20:36 +07:00
|
|
|
void do_page_fault(struct pt_regs *regs, unsigned long code,
|
|
|
|
unsigned long address);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|