Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
1da177e4 LT |
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, | |
a60ac4b5 | 10 | int code, unsigned long offset) __noreturn __cold; |
1da177e4 | 11 | |
58f1c654 HD |
12 | void die_if_kernel(char *str, struct pt_regs *regs, long err); |
13 | ||
1da177e4 | 14 | /* mm/fault.c */ |
0a862485 | 15 | const char *trap_name(unsigned long code); |
1da177e4 LT |
16 | void do_page_fault(struct pt_regs *regs, unsigned long code, |
17 | unsigned long address); | |
18 | #endif | |
19 | ||
20 | #endif |