mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-11 23:50:25 +00:00
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: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
01422ff491
commit
fb944c9ba3
@ -320,6 +320,7 @@ void __update_tlb(struct vm_area_struct * vma, unsigned long address, pte_t pte)
|
|||||||
tlb_write_random();
|
tlb_write_random();
|
||||||
else
|
else
|
||||||
tlb_write_indexed();
|
tlb_write_indexed();
|
||||||
|
tlbw_use_hazard();
|
||||||
write_c0_pagemask(PM_DEFAULT_MASK);
|
write_c0_pagemask(PM_DEFAULT_MASK);
|
||||||
} else
|
} else
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user