Skip to content

Commit

Permalink
sh: Add UBC trap vector for SH2A
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Griffin <pgriffin@mpc-data.co.uk>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Peter Griffin authored and Paul Mundt committed May 8, 2009
1 parent ba0d474 commit cd89436
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/sh/kernel/traps_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
# define TRAP_ILLEGAL_SLOT_INST 6
# define TRAP_ADDRESS_ERROR 9
# ifdef CONFIG_CPU_SH2A
# define TRAP_UBC 12
# define TRAP_FPU_ERROR 13
# define TRAP_DIVZERO_ERROR 17
# define TRAP_DIVOVF_ERROR 18
Expand Down Expand Up @@ -849,6 +850,10 @@ void __init trap_init(void)
#endif
#endif

#ifdef TRAP_UBC
set_exception_table_vec(TRAP_UBC, break_point_trap);
#endif

/* Setup VBR for boot cpu */
per_cpu_trap_init();
}
Expand Down

0 comments on commit cd89436

Please sign in to comment.