u-boot/arch/mips/include/asm/u-boot-mips.h
Weijie Gao 71059736b8 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>
2020-04-27 20:29:33 +02:00

14 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_ */