]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Remove duplicate EBase configuration
authorPaul Burton <paul.burton@mips.com>
Tue, 30 Apr 2019 22:53:31 +0000 (22:53 +0000)
committerPaul Burton <paul.burton@mips.com>
Thu, 2 May 2019 18:21:08 +0000 (11:21 -0700)
commitdb76609ded4c79b15559d6a9e3ca328427a0843c
treeeb50e182e0c6b03f6aae143ed7ee6fe0fabed21f
parente71362daa797925589d615cbaed05e63f616e6fe
MIPS: Remove duplicate EBase configuration

Clean up our configuration of the EBase register by making
configure_exception_vector() write to it unconditionally on systems
implementing MIPSr2 or higher, and removing the duplicate code in
per_cpu_trap_init(). The latter would have duplicated work on systems
with vectored interrupts, and didn't set BEV for safety like the
configure_exception_vector() version of the code does.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Reviewed-by: Serge Semin <fancer.lancer@gmail.com>
Tested-by: Serge Semin <fancer.lancer@gmail.com>
Cc: linux-mips@vger.kernel.org
arch/mips/kernel/traps.c