summaryrefslogtreecommitdiff
path: root/arch/mips
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2020-05-14 12:59:04 +0300
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2020-07-18 15:23:25 +0300
commit1d4ba15c6fe1265c5964cce3436fd501b14bae3b (patch)
tree7898f9d4ffb5082ac79d4b030829cae6330c6261 /arch/mips
parent2eed3dca229e97aa03954ee5178457c4f2f8cfdb (diff)
downloadu-boot-1d4ba15c6fe1265c5964cce3436fd501b14bae3b.tar.xz
mips: cache: Make flush_cache() weak to enable overwrite
This patch adds __weak to flush_cache() in lib/cache.c. This makes it possible to overwrite this function by a platforms specific version, like done with the Octeon base port. Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/lib/cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/lib/cache.c b/arch/mips/lib/cache.c
index b5c42aeed7..ad37f05802 100644
--- a/arch/mips/lib/cache.c
+++ b/arch/mips/lib/cache.c
@@ -107,7 +107,7 @@ static inline unsigned long scache_line_size(void)
} \
} while (0)
-void flush_cache(ulong start_addr, ulong size)
+void __weak flush_cache(ulong start_addr, ulong size)
{
unsigned long ilsize = icache_line_size();
unsigned long dlsize = dcache_line_size();