MIPS: CPS: Set Status.BEV bit during early boot
authorPaul Burton <paul.burton@imgtec.com>
Tue, 22 Sep 2015 18:12:09 +0000 (11:12 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 26 Oct 2015 08:49:47 +0000 (09:49 +0100)
Set the Status.BEV bit throughout the early startup of a secondary core
such that if an exception occurs the core branches to one of the
exception vector entries from cps-vec.S, rather than branching to
whatever is set in EBase.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: Markos Chandras <markos.chandras@imgtec.com>
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/11200/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/cps-vec.S

index 209ded16806bf5a295ff202258f5b7ff42070940..b3fdb2a6405e554d2bb771fb9dcb0349cc32e242 100644 (file)
@@ -71,7 +71,7 @@ not_nmi:
        mtc0    t0, CP0_CAUSE
 
        /* Setup Status */
-       li      t0, ST0_CU1 | ST0_CU0
+       li      t0, ST0_CU1 | ST0_CU0 | ST0_BEV
        mtc0    t0, CP0_STATUS
 
        /*