Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd89436e authored by Peter Griffin's avatar Peter Griffin Committed by Paul Mundt
Browse files

sh: Add UBC trap vector for SH2A

parent ba0d4740
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -34,6 +34,7 @@
# define TRAP_ILLEGAL_SLOT_INST	6
# define TRAP_ILLEGAL_SLOT_INST	6
# define TRAP_ADDRESS_ERROR	9
# define TRAP_ADDRESS_ERROR	9
# ifdef CONFIG_CPU_SH2A
# ifdef CONFIG_CPU_SH2A
#  define TRAP_UBC		12
#  define TRAP_FPU_ERROR	13
#  define TRAP_FPU_ERROR	13
#  define TRAP_DIVZERO_ERROR	17
#  define TRAP_DIVZERO_ERROR	17
#  define TRAP_DIVOVF_ERROR	18
#  define TRAP_DIVOVF_ERROR	18
@@ -849,6 +850,10 @@ void __init trap_init(void)
#endif
#endif
#endif
#endif


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

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