projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01422ff
)
MIPS: hugetlbfs: Fix hazard between tlb write and pagemask restoration.
author
Ralf Baechle
<ralf@linux-mips.org>
Tue, 16 Oct 2012 23:01:21 +0000
(
01:01
+0200)
committer
Ralf Baechle
<ralf@linux-mips.org>
Tue, 16 Oct 2012 23:01:21 +0000
(
01:01
+0200)
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>
arch/mips/mm/tlb-r4k.c
patch
|
blob
|
history
diff --git
a/arch/mips/mm/tlb-r4k.c
b/arch/mips/mm/tlb-r4k.c
index
87b9cfc
..
4b9b935
100644
(file)
--- a/
arch/mips/mm/tlb-r4k.c
+++ b/
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();
else
tlb_write_indexed();
+ tlbw_use_hazard();
write_c0_pagemask(PM_DEFAULT_MASK);
} else
#endif