summaryrefslogtreecommitdiffstats
path: root/arch/mips/mm/tlb-funcs.S
diff options
context:
space:
mode:
authorJayachandran C <jchandra@broadcom.com>2013-09-25 16:28:04 +0530
committerRalf Baechle <ralf@linux-mips.org>2013-10-29 21:24:51 +0100
commitf4ae17aa0f2122b52f642985b46210a1f2eceb0a (patch)
treefe5a21b3b0acc39f886ac744f7ed1ab935569f6b /arch/mips/mm/tlb-funcs.S
parent7f177a52a13e3d3751b599ae2b46d3d4658985cd (diff)
downloadop-kernel-dev-f4ae17aa0f2122b52f642985b46210a1f2eceb0a.zip
op-kernel-dev-f4ae17aa0f2122b52f642985b46210a1f2eceb0a.tar.gz
MIPS: mm: Use scratch for PGD when !CONFIG_MIPS_PGD_C0_CONTEXT
Allow usage of scratch register for current pgd even when MIPS_PGD_C0_CONTEXT is not configured. MIPS_PGD_C0_CONTEXT is set for 64r2 platforms to indicate availability of Xcontext for saving cpuid, thus freeing Context to be used for saving PGD. This option was also tied to using a scratch register for storing PGD. This commit will allow usage of scratch register to store the current pgd if one can be allocated for the platform, even when MIPS_PGD_C0_CONTEXT is not set. The cpuid will be kept in the CP0 Context register in this case. The code to store the current pgd for the TLB miss handler is now generated in all cases. When scratch register is available, the PGD is also stored in the scratch register. Signed-off-by: Jayachandran C <jchandra@broadcom.com> Cc: linux-mips@linux-mips.org Cc: Hauke Mehrtens <hauke@hauke-m.de> Patchwork: https://patchwork.linux-mips.org/patch/5906/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/mm/tlb-funcs.S')
-rw-r--r--arch/mips/mm/tlb-funcs.S2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/mips/mm/tlb-funcs.S b/arch/mips/mm/tlb-funcs.S
index 79bca31..30a494d 100644
--- a/arch/mips/mm/tlb-funcs.S
+++ b/arch/mips/mm/tlb-funcs.S
@@ -16,12 +16,10 @@
#define FASTPATH_SIZE 128
-#ifdef CONFIG_MIPS_PGD_C0_CONTEXT
LEAF(tlbmiss_handler_setup_pgd)
.space 16 * 4
END(tlbmiss_handler_setup_pgd)
EXPORT(tlbmiss_handler_setup_pgd_end)
-#endif
LEAF(handle_tlbm)
.space FASTPATH_SIZE * 4
OpenPOWER on IntegriCloud