Skip to content
Snippets Groups Projects
Commit c6201553 authored by Marek Vasut's avatar Marek Vasut Committed by Albert ARIBAUD
Browse files

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: default avatarMarek Vasut <marex@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Acked-by: default avatarMike Frysinger <vapier@gentoo.org>
Acked-by: default avatarStefano Babic <sbabic@denx.de>
parent 2f002ece
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment