Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
[wrt350n-kernel.git] / include / asm-h8300 / traps.h
blob41cf6be02f681f7b264901ea0bc2f53e770e9b07
1 /*
2 * linux/include/asm-h8300/traps.h
4 * Copyright (C) 2003 Yoshinori Sato <ysato@users.sourceforge.jp>
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 */
11 #ifndef _H8300_TRAPS_H
12 #define _H8300_TRAPS_H
14 extern void system_call(void);
15 extern void interrupt_entry(void);
16 extern void trace_break(void);
18 #define JMP_OP 0x5a000000
19 #define JSR_OP 0x5e000000
20 #define VECTOR(address) ((JMP_OP)|((unsigned long)address))
21 #define REDIRECT(address) ((JSR_OP)|((unsigned long)address))
23 #define TRACE_VEC 5
25 #define TRAP0_VEC 8
26 #define TRAP1_VEC 9
27 #define TRAP2_VEC 10
28 #define TRAP3_VEC 11
30 #if defined(__H8300H__)
31 #define NR_TRAPS 12
32 #endif
33 #if defined(__H8300S__)
34 #define NR_TRAPS 16
35 #endif
37 #endif /* _H8300_TRAPS_H */