diff options
author | Markos Chandras <[email protected]> | 2014-07-21 14:35:56 +0100 |
---|---|---|
committer | Ralf Baechle <[email protected]> | 2014-08-26 02:18:57 +0200 |
commit | 56d2960958f81db9cfd488e530d2206edede5f8f (patch) | |
tree | 886b9175cd0f1cf5e6038594efec7973317b0aa1 | |
parent | 43faaa5c97aa222f7f820f7c1e5200a4c44f6e0f (diff) |
MIPS: CPS: Initialize EVA before bringing up VPEs from secondary cores
The CPS code is doing several memory loads when configuring the VPEs
from secondary cores, so the segmentation control registers must be
initialized in time otherwise the kernel will crash with strange
TLB exceptions.
Reviewed-by: Paul Burton <[email protected]>
Signed-off-by: Markos Chandras <[email protected]>
Patchwork: http://patchwork.linux-mips.org/patch/7424/
Signed-off-by: James Hogan <[email protected]>
-rw-r--r-- | arch/mips/kernel/cps-vec.S | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/mips/kernel/cps-vec.S b/arch/mips/kernel/cps-vec.S index 6f4f739dad96..e6e97d2a5c9e 100644 --- a/arch/mips/kernel/cps-vec.S +++ b/arch/mips/kernel/cps-vec.S @@ -13,6 +13,7 @@ #include <asm/asm-offsets.h> #include <asm/asmmacro.h> #include <asm/cacheops.h> +#include <asm/eva.h> #include <asm/mipsregs.h> #include <asm/mipsmtregs.h> #include <asm/pm.h> @@ -166,6 +167,9 @@ dcache_done: 1: jal mips_cps_core_init nop + /* Do any EVA initialization if necessary */ + eva_init + /* * Boot any other VPEs within this core that should be online, and * deactivate this VPE if it should be offline. |