projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d4ba15
)
mips: cache: Make invalidate_dcache_range() weak to enable overwrite
author
Stefan Roese
<sr@denx.de>
Tue, 30 Jun 2020 10:33:19 +0000
(12:33 +0200)
committer
Daniel Schwierzeck
<daniel.schwierzeck@gmail.com>
Sat, 18 Jul 2020 12:23:25 +0000
(14:23 +0200)
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 <sr@denx.de>
arch/mips/lib/cache.c
patch
|
blob
|
history
diff --git
a/arch/mips/lib/cache.c
b/arch/mips/lib/cache.c
index ad37f0580217e78e1474d55d8027a489836e4988..cf29994a7ae82c0f9d42cbc09ef9546c2626508e 100644
(file)
--- 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();