mips: add support to restore exception vector base before booting linux
[oweals/u-boot.git] / arch / mips / lib / bootm.c
index 8c0d7672f24ceab122c70e54236748f366b4eb25..f1db6d23b84e091fa098baada15e5f12ac3228a6 100644 (file)
@@ -294,6 +294,9 @@ static void boot_jump_linux(bootm_headers_t *images)
        bootstage_report();
 #endif
 
+       if (CONFIG_IS_ENABLED(RESTORE_EXCEPTION_VECTOR_BASE))
+               trap_restore();
+
        if (images->ft_len)
                kernel(-2, (ulong)images->ft_addr, 0, 0);
        else