mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 20:51:44 +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();
|
||||
else
|
||||
tlb_write_indexed();
|
||||
tlbw_use_hazard();
|
||||
write_c0_pagemask(PM_DEFAULT_MASK);
|
||||
} else
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user