X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=arch%2Farm%2Flib%2Fcache.c;h=8105e251104b0fff893a397e37009c2998331308;hb=8ec346e17b5bf6897f038b8ecc3ecd073e097a22;hp=6cc136aa3c1e6baeddded6fd8c670e62aac23243;hpb=a78dac79ede7fbb4c9e816abc879655540c3f076;p=karo-tx-uboot.git diff --git a/arch/arm/lib/cache.c b/arch/arm/lib/cache.c index 6cc136aa3c..8105e25110 100644 --- a/arch/arm/lib/cache.c +++ b/arch/arm/lib/cache.c @@ -17,10 +17,12 @@ void __flush_cache(unsigned long start, unsigned long size) arm1136_cache_flush(); #endif #ifdef CONFIG_ARM926EJS - /* test and clean, page 2-23 of arm926ejs manual */ - asm("0: mrc p15, 0, r15, c7, c10, 3\n\t" "bne 0b\n" : : : "memory"); - /* disable write buffer as well (page 2-22) */ - asm("mcr p15, 0, %0, c7, c10, 4" : : "r" (0)); + asm( + /* test and clean, page 2-23 of arm926ejs manual */ + "0: mrc p15, 0, r15, c7, c10, 3\n\t" "bne 0b\n" + /* flush write buffer as well (page 2-22) */ + "mcr p15, 0, %0, c7, c10, 4" : : "r"(0) : "memory" + ); #endif return; }