Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / sh / include / asm / traps_64.h
blobef5eff9194498fa96288ba168357cde40181ebe6
1 /*
2 * Copyright (C) 2000, 2001 Paolo Alberelli
3 * Copyright (C) 2003 Paul Mundt
4 * Copyright (C) 2004 Richard Curnow
6 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file "COPYING" in the main directory of this archive
8 * for more details.
9 */
10 #ifndef __ASM_SH_TRAPS_64_H
11 #define __ASM_SH_TRAPS_64_H
13 #include <cpu/registers.h>
15 extern void phys_stext(void);
17 #define lookup_exception_vector() \
18 ({ \
19 unsigned long _vec; \
21 __asm__ __volatile__ ( \
22 "getcon " __EXPEVT ", %0\n\t" \
23 : "=r" (_vec) \
24 ); \
26 _vec; \
29 static inline void trigger_address_error(void)
31 phys_stext();
34 #define BUILD_TRAP_HANDLER(name) \
35 asmlinkage void name##_trap_handler(unsigned int vec, struct pt_regs *regs)
36 #define TRAP_HANDLER_DECL
38 #endif /* __ASM_SH_TRAPS_64_H */