Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb944c9b authored by Ralf Baechle's avatar Ralf Baechle
Browse files

MIPS: hugetlbfs: Fix hazard between tlb write and pagemask restoration.



On some CPU the write to pagemask might complete before the TLB write
instruction reads from the pagemask register.

Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 01422ff4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -320,6 +320,7 @@ void __update_tlb(struct vm_area_struct * vma, unsigned long address, pte_t pte)
			tlb_write_random();
		else
			tlb_write_indexed();
		tlbw_use_hazard();
		write_c0_pagemask(PM_DEFAULT_MASK);
	} else
#endif