From 4c93da7c392737f2036130c240e2b4bea773d703 Mon Sep 17 00:00:00 2001 From: Aneesh V Date: Thu, 16 Jun 2011 23:30:46 +0000 Subject: [PATCH] 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 --- arch/arm/lib/cache.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"))); -- 2.25.1