]> git.sur5r.net Git - u-boot/commitdiff
arm: make default implementation of cache_flush() weakly linked
authorAneesh V <aneesh@ti.com>
Thu, 16 Jun 2011 23:30:46 +0000 (23:30 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Mon, 4 Jul 2011 08:55:25 +0000 (10:55 +0200)
make default implementation of cache_flush() weakly linked so that
sub-architectures can override it

Signed-off-by: Aneesh V <aneesh@ti.com>
arch/arm/lib/cache.c

index 30686fe69b739af3c04b9902ba01c5ba3fa87e01..27123cd121f03c57a03aa4e73e92682dbd7c408c 100644 (file)
@@ -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")));