[PATCH] ARM: explicitly disable BTB on ixp2350
[safe/jmp/linux-2.6] / arch / arm / mm / mm-armv.c
index 5e5d05b..f14b2d0 100644 (file)
@@ -389,6 +389,17 @@ void __init build_mem_type_table(void)
        kern_pgprot = user_pgprot = cp->pte;
 
        /*
+        * Enable CPU-specific coherency if supported.
+        * (Only available on XSC3 at the moment.)
+        */
+       if (arch_is_coherent()) {
+               if (cpu_is_xsc3()) {
+                       mem_types[MT_MEMORY].prot_sect |= PMD_SECT_S;
+                       mem_types[MT_MEMORY].prot_pte |= L_PTE_COHERENT;
+               }
+       }
+
+       /*
         * ARMv6 and above have extended page tables.
         */
        if (cpu_arch >= CPU_ARCH_ARMv6 && (cr & CR_XP)) {