xref: /openbmc/linux/arch/xtensa/include/asm/traps.h (revision d0b73b48)
1 /*
2  * arch/xtensa/include/asm/traps.h
3  *
4  * This file is subject to the terms and conditions of the GNU General Public
5  * License.  See the file "COPYING" in the main directory of this archive
6  * for more details.
7  *
8  * Copyright (C) 2012 Tensilica Inc.
9  */
10 #ifndef _XTENSA_TRAPS_H
11 #define _XTENSA_TRAPS_H
12 
13 #include <asm/ptrace.h>
14 
15 /*
16  * handler must be either of the following:
17  *  void (*)(struct pt_regs *regs);
18  *  void (*)(struct pt_regs *regs, unsigned long exccause);
19  */
20 extern void * __init trap_set_handler(int cause, void *handler);
21 extern void do_unhandled(struct pt_regs *regs, unsigned long exccause);
22 
23 #endif /* _XTENSA_TRAPS_H */
24