]> git.baikalelectronics.ru Git - kernel.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>
Wed, 11 Nov 2015 07:35:01 +0000 (08:35 +0100)
commit692a2a91eb80d0bf7402d8c9757af5ebcdb149f0
treebe830ccdf2381d5840a3bda6bcee57e3658ef854
parent2a7e9e664ac1886a0b6de578e418639f06bc5e5a
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