]> err.no Git - linux-2.6/commitdiff
[XTENSA] Flush the page-address in update-mmu instead of user-address
authorChris Zankel <chris@zankel.net>
Thu, 6 Sep 2007 08:38:18 +0000 (01:38 -0700)
committerChris Zankel <chris@zankel.net>
Thu, 14 Feb 2008 00:58:51 +0000 (16:58 -0800)
The TLB entry for the user address doesn't exist at the time we
want to flush the caches, so use the page address. Note that processor
configurations with cache-aliasing issues are treated separately.

Signed-off-by: Chris Zankel <chris@zankel.net>
arch/xtensa/mm/cache.c

index 42bfb695a17012be4fc72989a0867e5473365dd7..3ba990c67676c0b40976ff60d03638ceefba94cd 100644 (file)
@@ -180,9 +180,9 @@ update_mmu_cache(struct vm_area_struct * vma, unsigned long addr, pte_t pte)
 #else
        if (!PageReserved(page) && !test_bit(PG_arch_1, &page->flags)
            && (vma->vm_flags & VM_EXEC) != 0) {
-               unsigned long vaddr = addr & PAGE_MASK;
-               __flush_dcache_page(vaddr);
-               __invalidate_icache_page(vaddr);
+               unsigned long paddr = (unsigned long) page_address(page);
+               __flush_dcache_page(paddr);
+               __invalidate_icache_page(paddr);
                set_bit(PG_arch_1, &page->flags);
        }
 #endif