OSDN Git Service

UPSTREAM: MIPS: traps: Make sure secondary cores have a sane ebase register
authorMarkos Chandras <markos.chandras@imgtec.com>
Wed, 3 Feb 2016 03:15:22 +0000 (03:15 +0000)
committerGreg Kroah-Hartman <gregkh@google.com>
Mon, 5 Feb 2018 16:58:34 +0000 (08:58 -0800)
commit518b875ac8eb7080f3db4dd45d39fd08239f589f
tree5956031e1a7b6ee2f540b5d59a54997080b8160b
parent9684a8cd1c07521cac2f57d7b834134ad864ac0d
UPSTREAM: MIPS: traps: Make sure secondary cores have a sane ebase register

We shouldn't trust that the secondary cores will have a sane ebase register
(either from the bootloader or during the hardware design phase) so use the
ebase address as calculated by the boot CPU.

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Cc: Maciej W. Rozycki <macro@linux-mips.org>
Cc: James Hogan <james.hogan@imgtec.com>
Cc: Petri Gynther <pgynther@google.com>
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/12328/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
(cherry picked from commit 04d83f948510f17f8f2ab320b2386f4b5fbd0bd4)
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
arch/mips/kernel/traps.c