]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Allow platform specific scratch registers
authorJayachandran C <jchandra@broadcom.com>
Tue, 11 Jun 2013 14:41:35 +0000 (14:41 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 13 Jun 2013 15:46:43 +0000 (17:46 +0200)
commit49cbcfcc1781ad7f88382d4c24cd6931657e4444
treeab4cf1c71a9c8bf41bca5b289e9854a91a2909b6
parentdc92adf062779eb811ccb3431fa39d27f1dcda56
MIPS: Allow platform specific scratch registers

XLR/XLP COP0 scratch is register 22, sel 0-7. Add a function
c0_kscratch() which returns the scratch register for the platform,
and use the return value while generating TLB handlers.

Setup kscratch_mask to 0xf for XLR/XLP since the config4 register
does not exist. This allows the kernel to allocate scratch registers
0-3 if needed.

Signed-off-by: Jayachandran C <jchandra@broadcom.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5445/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/cpu-probe.c
arch/mips/mm/tlbex.c