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