From: Aneesh V Date: Thu, 16 Jun 2011 23:30:46 +0000 (+0000) Subject: arm: make default implementation of cache_flush() weakly linked X-Git-Tag: v2011.09-rc1~299 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4c93da7c392737f2036130c240e2b4bea773d703;p=u-boot 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 --- diff --git a/arch/arm/lib/cache.c b/arch/arm/lib/cache.c index 30686fe69b..27123cd121 100644 --- a/arch/arm/lib/cache.c +++ b/arch/arm/lib/cache.c @@ -25,7 +25,7 @@ #include -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")));