mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
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>
This commit is contained in:
parent
2eed3dca22
commit
1d4ba15c6f
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue