Skip to contentSkip to conversation

MIPS: allow override of flush_dcache_range()

PATCH New Alex Nemirovsky 2 participants 3 messages Dec 23, 2019 – Jan 8, 2020 MIPS

lore
Share & tools
lore
#0 lore raw

cover MIPS: allow override of flush_dcache_range()

Useful in custom HW designs which have a need to flush dcache range in a completely non standard way.

Alex Nemirovsky (1):
MIPS: allow override of flush_dcache_range()

 arch/mips/lib/cache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 MIPS: allow override of flush_dcache_range()

Useful in custom HW designs which have a need to flush dcache range in a completely non standard way.

---

 arch/mips/lib/cache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/lib/cache.c +1 -1
index 502956d..1a8c87d 100644
@@ -141,7 +141,7 @@ ops_done:
 	instruction_hazard_barrier();
 }
 
-void flush_dcache_range(ulong start_addr, ulong stop)
+void __weak flush_dcache_range(ulong start_addr, ulong stop)
 {
 	unsigned long lsize = dcache_line_size();
 	unsigned long slsize = scache_line_size();
Signature · 1 line
2.7.4
#2 lore raw

PATCH 1/1 MIPS: allow override of flush_dcache_range()

Am 23.12.19 um 21:19 schrieb Alex Nemirovsky:

Quoted 9 lines

Useful in custom HW designs which have a need to flush dcache range in a completely non standard way.

---

 arch/mips/lib/cache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

applied to u-boot-mips, thanks.

Signature · 1 line
- Daniel