]> Pileus Git - ~andy/linux/blobdiff - arch/ppc/kernel/misc.S
[PATCH] ppc32: Add support for Freescale e200 (Book-E) core
[~andy/linux] / arch / ppc / kernel / misc.S
index 7329ef177a18c36c4f068d2a09dad48d34fce92e..a3132f8e799c09a201077c3c9aa99279d7cbae38 100644 (file)
@@ -593,6 +593,14 @@ _GLOBAL(flush_instruction_cache)
        iccci   0,r3
 #endif
 #elif CONFIG_FSL_BOOKE
+BEGIN_FTR_SECTION
+       mfspr   r3,SPRN_L1CSR0
+       ori     r3,r3,L1CSR0_CFI|L1CSR0_CLFC
+       /* msync; isync recommended here */
+       mtspr   SPRN_L1CSR0,r3
+       isync
+       blr
+END_FTR_SECTION_IFCLR(CPU_FTR_SPLIT_ID_CACHE)
        mfspr   r3,SPRN_L1CSR1
        ori     r3,r3,L1CSR1_ICFI|L1CSR1_ICLFR
        mtspr   SPRN_L1CSR1,r3