aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorTony Wu <tung7970@gmail.com>2013-07-18 05:45:47 -0400
committerRalf Baechle <ralf@linux-mips.org>2013-07-19 04:18:07 -0400
commitafc813ae6d01eb4bb03fe67ed74c76608e3db089 (patch)
tree4964a674f51b6ed79e73be5bfff1aebb60bb61e4 /arch
parent976f39b139cdd06a88a5aadd8202b0c30cac9cda (diff)
MIPS: tlbex: Fix typo in r3000 tlb store handler
commit 6ba045f (MIPS: Move generated code to .text for microMIPS) causes a panic at boot. The handler builder should test against handle_tlbs_end, not handle_tlbs. Signed-off-by: Tony Wu <tung7970@gmail.com> Acked-by: Jayachandran C. <jchandra@broadcom.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/5600/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/mm/tlbex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/mm/tlbex.c b/arch/mips/mm/tlbex.c
index 9ab0f907a52c..605b6fc13697 100644
--- a/arch/mips/mm/tlbex.c
+++ b/arch/mips/mm/tlbex.c
@@ -1803,7 +1803,7 @@ static void __cpuinit build_r3000_tlb_store_handler(void)
1803 uasm_i_j(&p, (unsigned long)tlb_do_page_fault_1 & 0x0fffffff); 1803 uasm_i_j(&p, (unsigned long)tlb_do_page_fault_1 & 0x0fffffff);
1804 uasm_i_nop(&p); 1804 uasm_i_nop(&p);
1805 1805
1806 if (p >= handle_tlbs) 1806 if (p >= handle_tlbs_end)
1807 panic("TLB store handler fastpath space exceeded"); 1807 panic("TLB store handler fastpath space exceeded");
1808 1808
1809 uasm_resolve_relocs(relocs, labels); 1809 uasm_resolve_relocs(relocs, labels);