diff options
author | Stefan Roese <sr@denx.de> | 2020-05-14 11:59:04 +0200 |
---|---|---|
committer | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2020-07-18 14:23:25 +0200 |
commit | 1d4ba15c6fe1265c5964cce3436fd501b14bae3b (patch) | |
tree | 7898f9d4ffb5082ac79d4b030829cae6330c6261 /arch/mips/lib | |
parent | 2eed3dca229e97aa03954ee5178457c4f2f8cfdb (diff) | |
download | u-boot-1d4ba15c6fe1265c5964cce3436fd501b14bae3b.tar.gz |
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/lib')
-rw-r--r-- | arch/mips/lib/cache.c | 2 |
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(); |