diff mbox

[U-Boot,v2,01/10] arm: make default implementation of cache_flush() weakly linked

Message ID 1299589658-30896-2-git-send-email-aneesh@ti.com
State Accepted
Commit 4c93da7c392737f2036130c240e2b4bea773d703
Headers show

Commit Message

Aneesh V March 8, 2011, 1:07 p.m. UTC
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 |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
diff mbox

Patch

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")));