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>
This commit is contained in:
committed by
Daniel Schwierzeck
parent
56ed625ba2
commit
71059736b8
@@ -9,4 +9,6 @@ void except_vec_ejtag_debug(void);
|
||||
|
||||
int arch_misc_init(void);
|
||||
|
||||
void trap_restore(void);
|
||||
|
||||
#endif /* _U_BOOT_MIPS_H_ */
|
||||
|
||||
Reference in New Issue
Block a user