From: Peter Mamonov <pmamonov@xxxxxxxxx> Signed-off-by: Peter Mamonov <pmamonov@xxxxxxxxx> Signed-off-by: Antony Pavlov <antonynpavlov@xxxxxxxxx> --- arch/mips/boot/main_entry.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/mips/boot/main_entry.c b/arch/mips/boot/main_entry.c index 2c18bc81c3..41350aad18 100644 --- a/arch/mips/boot/main_entry.c +++ b/arch/mips/boot/main_entry.c @@ -34,7 +34,11 @@ static void trap_init(void) unsigned long ebase; +#ifdef CONFIG_MMU + ebase = CKSEG0; +#else ebase = CKSEG1; +#endif /* * Copy the generic exception handlers to their final destination. @@ -56,6 +60,7 @@ static void trap_init(void) /* FIXME: handle tlb */ memcpy((void *)(ebase), &except_vec3_generic, 0x80); + write_c0_ebase(ebase); /* unset BOOT EXCEPTION VECTOR bit */ write_c0_status(read_c0_status() & ~ST0_BEV); } -- 2.24.0 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox