From: Stefan Roese Date: Tue, 30 Jun 2020 10:33:19 +0000 (+0200) Subject: mips: cache: Make invalidate_dcache_range() weak to enable overwrite X-Git-Tag: v2020.10~109^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=60a0559b7fe9bdb9433dc39c42e3e12c4363d63e;p=platform%2Fkernel%2Fu-boot.git mips: cache: Make invalidate_dcache_range() weak to enable overwrite This patch adds __weak to invalidate_dcache_range() in lib/cache.c. This makes it possible to overwrite this function by a platforms specific version, which will be done for Octeon. Signed-off-by: Stefan Roese --- diff --git a/arch/mips/lib/cache.c b/arch/mips/lib/cache.c index ad37f05..cf29994 100644 --- a/arch/mips/lib/cache.c +++ b/arch/mips/lib/cache.c @@ -159,7 +159,7 @@ void __weak flush_dcache_range(ulong start_addr, ulong stop) sync(); } -void invalidate_dcache_range(ulong start_addr, ulong stop) +void __weak invalidate_dcache_range(ulong start_addr, ulong stop) { unsigned long lsize = dcache_line_size(); unsigned long slsize = scache_line_size();