Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 3624
b: refs/heads/master
c: bb16574
h: refs/heads/master
v: v3
  • Loading branch information
Marcelo Tosatti authored and Linus Torvalds committed Jun 27, 2005
1 parent 90ad4f9 commit e520dd8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d4b3a80e399c989028acd5185c792fab82eda035
refs/heads/master: bb1657468152c5e5232c7bf35cf0e9c41b5d9910
14 changes: 12 additions & 2 deletions trunk/arch/ppc/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -606,9 +606,19 @@ void update_mmu_cache(struct vm_area_struct *vma, unsigned long address,
struct page *page = pfn_to_page(pfn);
if (!PageReserved(page)
&& !test_bit(PG_arch_1, &page->flags)) {
if (vma->vm_mm == current->active_mm)
if (vma->vm_mm == current->active_mm) {
#ifdef CONFIG_8xx
/* On 8xx, cache control instructions (particularly
* "dcbst" from flush_dcache_icache) fault as write
* operation if there is an unpopulated TLB entry
* for the address in question. To workaround that,
* we invalidate the TLB here, thus avoiding dcbst
* misbehaviour.
*/
_tlbie(address);
#endif
__flush_dcache_icache((void *) address);
else
} else
flush_dcache_icache_page(page);
set_bit(PG_arch_1, &page->flags);
}
Expand Down

0 comments on commit e520dd8

Please sign in to comment.