From: Jayachandran C Date: Tue, 11 Jun 2013 14:41:35 +0000 (+0000) Subject: MIPS: Allow platform specific scratch registers X-Git-Tag: v3.11-rc1~14^2~51 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7777b9395b77664cb736b941f95fb8f656edd111;p=pandora-kernel.git 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 Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/5445/ Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed