]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
MIPS: tlbex: Fix typo in r3000 tlb store handler
authorTony Wu <tung7970@gmail.com>
Thu, 18 Jul 2013 09:45:47 +0000 (09:45 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 19 Jul 2013 08:18:07 +0000 (10:18 +0200)
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>
arch/mips/mm/tlbex.c

index 9ab0f907a52c60b2efc61a59e7340aa1f1543d89..605b6fc13697da507429d3410c3a566e21f2fdda 100644 (file)
@@ -1803,7 +1803,7 @@ static void __cpuinit build_r3000_tlb_store_handler(void)
        uasm_i_j(&p, (unsigned long)tlb_do_page_fault_1 & 0x0fffffff);
        uasm_i_nop(&p);
 
-       if (p >= handle_tlbs)
+       if (p >= handle_tlbs_end)
                panic("TLB store handler fastpath space exceeded");
 
        uasm_resolve_relocs(relocs, labels);