]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mips: cache: Make flush_cache() weak to enable overwrite
authorStefan Roese <sr@denx.de>
Thu, 14 May 2020 09:59:04 +0000 (11:59 +0200)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Sat, 18 Jul 2020 12:23:25 +0000 (14:23 +0200)
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>
arch/mips/lib/cache.c

index b5c42aeed7893bdea65f7b82557413b52ab888b8..ad37f0580217e78e1474d55d8027a489836e4988 100644 (file)
@@ -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();