mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-29 05:18:51 +09:00
![Weijie Gao](/assets/img/avatar_default.png)
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>
15 lines
264 B
C
15 lines
264 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
|
|
#ifndef _U_BOOT_MIPS_H_
|
|
#define _U_BOOT_MIPS_H_
|
|
|
|
void exc_handler(void);
|
|
void except_vec3_generic(void);
|
|
void except_vec_ejtag_debug(void);
|
|
|
|
int arch_misc_init(void);
|
|
|
|
void trap_restore(void);
|
|
|
|
#endif /* _U_BOOT_MIPS_H_ */
|