Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Tony Wu and committed by
Ralf Baechle
afc813ae 976f39b1

+1 -1
+1 -1
arch/mips/mm/tlbex.c
··· 1803 1803 uasm_i_j(&p, (unsigned long)tlb_do_page_fault_1 & 0x0fffffff); 1804 1804 uasm_i_nop(&p); 1805 1805 1806 - if (p >= handle_tlbs) 1806 + if (p >= handle_tlbs_end) 1807 1807 panic("TLB store handler fastpath space exceeded"); 1808 1808 1809 1809 uasm_resolve_relocs(relocs, labels);