]> err.no Git - linux-2.6/commitdiff
sh: Don't set reserved _PAGE_WT bit on SH-3.
authorPaul Mundt <lethal@linux-sh.org>
Thu, 28 Dec 2006 01:54:01 +0000 (10:54 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 13 Feb 2007 01:54:44 +0000 (10:54 +0900)
Only SH-4 needs to set _PAGE_WT when using write-through caching,
don't attempt to set it on SH-3 where it ends up being a reserved
bit.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/mm/tlb-flush.c

index 9347534aa894ac692500d4e8ef4b161dd44bab6f..ef3e4d477864f3d2060f884a3df3e461b0c347c0 100644 (file)
@@ -175,7 +175,7 @@ void update_mmu_cache(struct vm_area_struct *vma,
 
        /* Set PTEL register */
        pteval &= _PAGE_FLAGS_HARDWARE_MASK; /* drop software flags */
-#ifdef CONFIG_SH_WRITETHROUGH
+#if defined(CONFIG_SH_WRITETHROUGH) && defined(CONFIG_CPU_SH4)
        pteval |= _PAGE_WT;
 #endif
        /* conveniently, we want all the software flags to be 0 anyway */