summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/rolo.c2
-rw-r--r--firmware/target/mips/mmu-mips.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/firmware/rolo.c b/firmware/rolo.c
index 2a352b4f72..316d23f8e1 100644
--- a/firmware/rolo.c
+++ b/firmware/rolo.c
@@ -181,7 +181,7 @@ void rolo_restart(const unsigned char* source, unsigned char* dest,
: : "r"(dest)
);
#elif defined(CPU_MIPS)
- cpucache_invalidate();
+ __dcache_writeback_all();
asm volatile(
"jr %0 \n"
: : "r"(dest)
diff --git a/firmware/target/mips/mmu-mips.c b/firmware/target/mips/mmu-mips.c
index 2f7f19d3b3..92cdecdc85 100644
--- a/firmware/target/mips/mmu-mips.c
+++ b/firmware/target/mips/mmu-mips.c
@@ -189,6 +189,7 @@ void __dcache_invalidate_all(void)
__CACHE_OP(DCIndexStTag, i);
}
+void __dcache_writeback_all(void) __attribute__ ((section(".icode")));
void __dcache_writeback_all(void)
{
unsigned int i;