]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Mon, 26 Oct 2015 08:49:48 +0000 (09:49 +0100)
commitcfb996603d7f2d94541901b51c09cfdaed8996e5
tree0dd4313a9e64b6ec3fa626ee5f4dbfc4854bd54c
parent22811adfc87f85391cb62a1fbcd469f13834154c
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