Skip to content

Commit

Permalink
MIPS: tlbex: Fix typo in r3000 tlb store handler
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Jayachandran C. <[email protected]>
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/5600/
Signed-off-by: Ralf Baechle <[email protected]>
  • Loading branch information
tung7970 authored and ralfbaechle committed Jul 19, 2013
1 parent 976f39b commit afc813a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/mm/tlbex.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit afc813a

Please sign in to comment.