From: Marek Vasut Date: Fri, 6 Apr 2012 03:25:06 +0000 (+0000) Subject: ARM926EJS: Make asm routines volatile in cache ops X-Git-Tag: v2012.04-rc2~1^2~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c6201553ba73616eed0f416f66d28c39691692bd;p=oweals%2Fu-boot.git ARM926EJS: Make asm routines volatile in cache ops We certainly don't want the compiler to reorganise the code for dcache flushing. Signed-off-by: Marek Vasut Cc: Stefano Babic Cc: Albert ARIBAUD Acked-by: Mike Frysinger Acked-by: Stefano Babic --- diff --git a/arch/arm/cpu/arm926ejs/cache.c b/arch/arm/cpu/arm926ejs/cache.c index 4430578a81..07f036f18b 100644 --- a/arch/arm/cpu/arm926ejs/cache.c +++ b/arch/arm/cpu/arm926ejs/cache.c @@ -82,7 +82,7 @@ void flush_dcache_range(unsigned long start, unsigned long stop) start += CONFIG_SYS_CACHELINE_SIZE; } - asm("mcr p15, 0, %0, c7, c10, 4\n"::"r"(0)); + asm volatile("mcr p15, 0, %0, c7, c10, 4\n"::"r"(0)); } void flush_cache(unsigned long start, unsigned long size)