MIPS: CPS: Read CM GCR base from cop0
authorPaul Burton <paul.burton@imgtec.com>
Tue, 22 Sep 2015 18:12:12 +0000 (11:12 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 11 Nov 2015 07:35:01 +0000 (08:35 +0100)
commit946db17349f6922a9c8a959c34ad9fb3aa238952
treebe830ccdf2381d5840a3bda6bcee57e3658ef854
parent609cf6f2291a69d09aa5c02d74cd4488b19aa9a6
MIPS: CPS: Read CM GCR base from cop0

Rather than patching the start of mips_cps_core_entry to provide the
base address of the CM GCRs, simply read that base address from the cop0
CMGCRBase register, converting from the physical address to an uncached
virtual address.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Andrew Bresticker <abrestic@chromium.org>
Cc: linux-kernel@vger.kernel.org
Cc: Niklas Cassel <niklas.cassel@axis.com>
Cc: Ezequiel Garcia <ezequiel.garcia@imgtec.com>
Cc: Markos Chandras <markos.chandras@imgtec.com>
Patchwork: https://patchwork.linux-mips.org/patch/11203/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/cps-vec.S
arch/mips/kernel/smp-cps.c