Explorar o código

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>
Ralf Baechle %!s(int64=13) %!d(string=hai) anos
pai
achega
fb944c9ba3
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      arch/mips/mm/tlb-r4k.c

+ 1 - 0
arch/mips/mm/tlb-r4k.c

@@ -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