mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
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:
parent
56ed625ba2
commit
71059736b8
4 changed files with 54 additions and 0 deletions
|
@ -9,4 +9,6 @@ void except_vec_ejtag_debug(void);
|
|||
|
||||
int arch_misc_init(void);
|
||||
|
||||
void trap_restore(void);
|
||||
|
||||
#endif /* _U_BOOT_MIPS_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue