diff options
Diffstat (limited to 'arch/sh/kernel/traps_32.c')
-rw-r--r-- | arch/sh/kernel/traps_32.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sh/kernel/traps_32.c b/arch/sh/kernel/traps_32.c index e08b3bfeb656..511a9426cec5 100644 --- a/arch/sh/kernel/traps_32.c +++ b/arch/sh/kernel/traps_32.c | |||
@@ -43,6 +43,7 @@ | |||
43 | # define TRAP_ILLEGAL_SLOT_INST 6 | 43 | # define TRAP_ILLEGAL_SLOT_INST 6 |
44 | # define TRAP_ADDRESS_ERROR 9 | 44 | # define TRAP_ADDRESS_ERROR 9 |
45 | # ifdef CONFIG_CPU_SH2A | 45 | # ifdef CONFIG_CPU_SH2A |
46 | # define TRAP_FPU_ERROR 13 | ||
46 | # define TRAP_DIVZERO_ERROR 17 | 47 | # define TRAP_DIVZERO_ERROR 17 |
47 | # define TRAP_DIVOVF_ERROR 18 | 48 | # define TRAP_DIVOVF_ERROR 18 |
48 | # endif | 49 | # endif |
@@ -851,6 +852,9 @@ void __init trap_init(void) | |||
851 | #ifdef CONFIG_CPU_SH2A | 852 | #ifdef CONFIG_CPU_SH2A |
852 | set_exception_table_vec(TRAP_DIVZERO_ERROR, do_divide_error); | 853 | set_exception_table_vec(TRAP_DIVZERO_ERROR, do_divide_error); |
853 | set_exception_table_vec(TRAP_DIVOVF_ERROR, do_divide_error); | 854 | set_exception_table_vec(TRAP_DIVOVF_ERROR, do_divide_error); |
855 | #ifdef CONFIG_SH_FPU | ||
856 | set_exception_table_vec(TRAP_FPU_ERROR, fpu_error_trap_handler); | ||
857 | #endif | ||
854 | #endif | 858 | #endif |
855 | 859 | ||
856 | /* Setup VBR for boot cpu */ | 860 | /* Setup VBR for boot cpu */ |