summaryrefslogtreecommitdiff
path: root/arch/arm/lib/cache.c
diff options
context:
space:
mode:
authorAneesh V <aneesh@ti.com>2011-06-16 23:30:46 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-07-04 10:55:25 +0200
commit4c93da7c392737f2036130c240e2b4bea773d703 (patch)
tree694a4acdf0d11588b2ffa33b8a679710036c7b2d /arch/arm/lib/cache.c
parentff6b47ad23365964f7d75f8878f17388a024dc8d (diff)
downloadu-boot-imx-4c93da7c392737f2036130c240e2b4bea773d703.zip
u-boot-imx-4c93da7c392737f2036130c240e2b4bea773d703.tar.gz
u-boot-imx-4c93da7c392737f2036130c240e2b4bea773d703.tar.bz2
arm: make default implementation of cache_flush() weakly linked
make default implementation of cache_flush() weakly linked so that sub-architectures can override it Signed-off-by: Aneesh V <aneesh@ti.com>
Diffstat (limited to 'arch/arm/lib/cache.c')
-rw-r--r--arch/arm/lib/cache.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/lib/cache.c b/arch/arm/lib/cache.c
index 30686fe..27123cd 100644
--- a/arch/arm/lib/cache.c
+++ b/arch/arm/lib/cache.c
@@ -25,7 +25,7 @@
#include <common.h>
-void flush_cache (unsigned long dummy1, unsigned long dummy2)
+void __flush_cache(unsigned long start, unsigned long size)
{
#if defined(CONFIG_OMAP2420) || defined(CONFIG_ARM1136)
void arm1136_cache_flush(void);
@@ -45,3 +45,5 @@ void flush_cache (unsigned long dummy1, unsigned long dummy2)
#endif
return;
}
+void flush_cache(unsigned long start, unsigned long size)
+ __attribute__((weak, alias("__flush_cache")));