]> git.baikalelectronics.ru Git - uboot.git/commit
mips: add support to restore exception vector base before booting linux
authorWeijie Gao <weijie.gao@mediatek.com>
Tue, 21 Apr 2020 07:28:25 +0000 (09:28 +0200)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Mon, 27 Apr 2020 18:29:33 +0000 (20:29 +0200)
commit945590f76c527d517eabd87930f89f4ca95e02a6
treeedbc20d4ceefa85a0d269e3e52c877556a39facf
parenta29812b10ae9a4222abcf8f5b5d589fb00c26b6a
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>
arch/mips/Kconfig
arch/mips/include/asm/u-boot-mips.h
arch/mips/lib/bootm.c
arch/mips/lib/traps.c