summaryrefslogtreecommitdiff
path: root/arch/mips/include
diff options
context:
space:
mode:
authorWeijie Gao <weijie.gao@mediatek.com>2020-04-21 10:28:25 +0300
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2020-04-27 21:29:33 +0300
commit71059736b854462a474bc329a366c3392cf92462 (patch)
treeedbc20d4ceefa85a0d269e3e52c877556a39facf /arch/mips/include
parent56ed625ba288faaca0c8b8cbd81e777548b6f7de (diff)
downloadu-boot-71059736b854462a474bc329a366c3392cf92462.tar.xz
mips: add support to restore exception vector base before booting linux
In U-Boot the exception vector base will be moved to top of memory, to be used to display register dump when exception occurs. But some old linux kernel does not honor the base set in CP0_EBASE. A modified exception vector base will cause kernel crash. This patch adds an option to enable reset exception vector base to its previous value, or a user configured value before booting linux kernel. Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
Diffstat (limited to 'arch/mips/include')
-rw-r--r--arch/mips/include/asm/u-boot-mips.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/include/asm/u-boot-mips.h b/arch/mips/include/asm/u-boot-mips.h
index 88438b9576..8b37cc4029 100644
--- a/arch/mips/include/asm/u-boot-mips.h
+++ b/arch/mips/include/asm/u-boot-mips.h
@@ -9,4 +9,6 @@ void except_vec_ejtag_debug(void);
int arch_misc_init(void);
+void trap_restore(void);
+
#endif /* _U_BOOT_MIPS_H_ */