]> 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)
commitf731e2768754979c6cb8fb5d5c63183a8058e6f0
treebe830ccdf2381d5840a3bda6bcee57e3658ef854
parentff44e64087768bd811a9f0c8f7c6e5fde82813e2
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